2 * $Id: video.h,v 1.4 2006-02-05 04:05:27 nkeynes Exp $
4 * The PC side of the video support (responsible for actually displaying /
7 * Copyright (c) 2005 Nathan Keynes.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
30 #define COLFMT_RGB15 0x00000000
31 #define COLFMT_RGB16 0x00000004
32 #define COLFMT_RGB24 0x00000008
33 #define COLFMT_RGB32 0x0000000C
35 typedef struct video_buffer {
43 typedef struct video_driver {
45 gboolean (*set_output_format)( uint32_t hres, uint32_t vres,
47 gboolean (*display_frame)( video_buffer_t buffer );
48 gboolean (*display_blank_frame)( uint32_t rgb );
52 void video_open( void );
53 void video_update_frame( void );
54 void video_update_size( int, int, int );
56 extern uint32_t pvr2_frame_counter;
58 extern struct video_driver video_gtk_driver;
.