From: The M. M. M. <tm...@us...> - 2002-06-25 03:37:57
|
Update of /cvsroot/xine/xine-lib/src/xine-engine In directory usw-pr-cvs1:/tmp/cvs-serv9029/xine-engine Modified Files: buffer.h Log Message: added support in buffer.h for transporting RGB palette from the demuxer to the decoder; modified AVI demuxer and MSVC decoder to support this feature Index: buffer.h =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/buffer.h,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- buffer.h 19 Jun 2002 23:25:15 -0000 1.51 +++ buffer.h 25 Jun 2002 03:37:52 -0000 1.52 @@ -192,6 +192,26 @@ #define BUF_FLAG_END_STREAM 0x0040 #define BUF_FLAG_FRAMERATE 0x0080 #define BUF_FLAG_SEEK 0x0100 +#define BUF_FLAG_SPECIAL 0x0200 + +/* these are the types of special buffers */ +/* + * In a BUF_SPECIAL_PALETTE buffer: + * decoder_info[1] = BUF_SPECIAL_PALETTE + * decoder_info[2] = number of entries in palette table + * decoder_info[3] = pointer to palette table + * A palette table is an array of palette_entry_t structures. A decoder + * should not count on this array to exist for the duration of the + * program's execution and should copy, manipulate, and store the palette + * data privately if it needs the palette information. + */ +#define BUF_SPECIAL_PALETTE 1 + +typedef struct palette_entry_s palette_entry_t; +struct palette_entry_s +{ + unsigned char r, g, b; +} ; typedef struct fifo_buffer_s fifo_buffer_t; struct fifo_buffer_s |