diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-06-25 03:37:52 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-06-25 03:37:52 +0000 |
commit | 21bea7e4ba8963fe942cec7741635ae259dd33c0 (patch) | |
tree | 697ee7bd27b0ea9a9968cc9886cb6115edfff6a7 /src/xine-engine/buffer.h | |
parent | 047b977dd4386dbb3b5ab11dbd136e378be40cf4 (diff) | |
download | xine-lib-21bea7e4ba8963fe942cec7741635ae259dd33c0.tar.gz xine-lib-21bea7e4ba8963fe942cec7741635ae259dd33c0.tar.bz2 |
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
CVS patchset: 2160
CVS date: 2002/06/25 03:37:52
Diffstat (limited to 'src/xine-engine/buffer.h')
-rw-r--r-- | src/xine-engine/buffer.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h index 81c10f6f7..7cf623c1e 100644 --- a/src/xine-engine/buffer.h +++ b/src/xine-engine/buffer.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: buffer.h,v 1.51 2002/06/19 23:25:15 tmattern Exp $ + * $Id: buffer.h,v 1.52 2002/06/25 03:37:52 tmmm Exp $ * * * contents: @@ -192,6 +192,26 @@ struct buf_element_s { #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 |