Mercurial > libavcodec.hg
diff avcodec.h @ 1462:eabd6b8f83ed libavcodec
deploy palette control API
author | tmmm |
---|---|
date | Fri, 12 Sep 2003 03:48:14 +0000 |
parents | 918f1772e7d2 |
children | 51239e385475 |
line wrap: on
line diff
--- a/avcodec.h Thu Sep 11 22:51:05 2003 +0000 +++ b/avcodec.h Fri Sep 12 03:48:14 2003 +0000 @@ -1305,6 +1305,25 @@ int linesize[4]; ///< number of bytes per line } AVPicture; +/** + * AVPaletteControl + * This structure defines a method for communicating palette changes + * between and demuxer and a decoder. + */ +typedef struct AVPaletteControl { + + /* demuxer sets this to 1 to indicate the palette has changed; + * decoder resets to 0 */ + int palette_changed; + + /* 256 3-byte RGB palette entries; the components should be + * formatted in the buffer as "RGBRGB..." and should be scaled to + * 8 bits if they originally represented 6-bit VGA palette + * components */ + unsigned char palette[256 * 3]; + +} AVPaletteControl; + extern AVCodec ac3_encoder; extern AVCodec mp2_encoder; extern AVCodec mp3lame_encoder;