Search
lxdream.org :: lxdream/src/video.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/video.h
changeset 94:8d80d9c7cc7d
prev65:9f124c245fc6
next103:9b9cfc5855e0
author nkeynes
date Sun Feb 05 04:05:27 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Video code reshuffle to start getting real video happening.
Implement colourspace conversions
Various tweaks
file annotate diff log raw
1.1 --- a/src/video.h Tue Jan 03 12:21:45 2006 +0000
1.2 +++ b/src/video.h Sun Feb 05 04:05:27 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: video.h,v 1.3 2006-01-03 12:21:45 nkeynes Exp $
1.6 + * $Id: video.h,v 1.4 2006-02-05 04:05:27 nkeynes Exp $
1.7 *
1.8 * The PC side of the video support (responsible for actually displaying /
1.9 * rendering frames)
1.10 @@ -21,17 +21,41 @@
1.11 #define dream_video_H
1.12
1.13 #include <stdint.h>
1.14 +#include <glib.h>
1.15
1.16 #ifdef __cplusplus
1.17 extern "C" {
1.18 #endif
1.19
1.20 +#define COLFMT_RGB15 0x00000000
1.21 +#define COLFMT_RGB16 0x00000004
1.22 +#define COLFMT_RGB24 0x00000008
1.23 +#define COLFMT_RGB32 0x0000000C
1.24 +
1.25 +typedef struct video_buffer {
1.26 + uint32_t hres;
1.27 + uint32_t vres;
1.28 + uint32_t rowstride;
1.29 + int colour_format;
1.30 + char *data;
1.31 +} *video_buffer_t;
1.32 +
1.33 +typedef struct video_driver {
1.34 + char *name;
1.35 + gboolean (*set_output_format)( uint32_t hres, uint32_t vres,
1.36 + int colour_fmt );
1.37 + gboolean (*display_frame)( video_buffer_t buffer );
1.38 + gboolean (*display_blank_frame)( uint32_t rgb );
1.39 +} *video_driver_t;
1.40 +
1.41 +
1.42 void video_open( void );
1.43 void video_update_frame( void );
1.44 void video_update_size( int, int, int );
1.45
1.46 -extern char *video_data;
1.47 -extern uint32_t video_frame_count;
1.48 +extern uint32_t pvr2_frame_counter;
1.49 +
1.50 +extern struct video_driver video_gtk_driver;
1.51
1.52 #ifdef __cplusplus
1.53 }
.