comparison avcodec.h @ 3797:0596dbc4f858 libavcodec

marking AVPaletteControl as deprecated due to thread saftey amongth other issues (it doesnt work if theres any delay between demuxer and decoder)
author michael
date Sat, 30 Sep 2006 18:16:38 +0000
parents e25069d292fb
children ac5df84bc14c
comparison
equal deleted inserted replaced
3796:83aa3105b758 3797:0596dbc4f858
2084 2084
2085 /** 2085 /**
2086 * AVPaletteControl 2086 * AVPaletteControl
2087 * This structure defines a method for communicating palette changes 2087 * This structure defines a method for communicating palette changes
2088 * between and demuxer and a decoder. 2088 * between and demuxer and a decoder.
2089 * this is totally broken, palette changes should be sent as AVPackets
2089 */ 2090 */
2090 #define AVPALETTE_SIZE 1024 2091 #define AVPALETTE_SIZE 1024
2091 #define AVPALETTE_COUNT 256 2092 #define AVPALETTE_COUNT 256
2092 typedef struct AVPaletteControl { 2093 typedef struct AVPaletteControl {
2093 2094
2099 * the individual palette components should be on a 8-bit scale; if 2100 * the individual palette components should be on a 8-bit scale; if
2100 * the palette data comes from a IBM VGA native format, the component 2101 * the palette data comes from a IBM VGA native format, the component
2101 * data is probably 6 bits in size and needs to be scaled */ 2102 * data is probably 6 bits in size and needs to be scaled */
2102 unsigned int palette[AVPALETTE_COUNT]; 2103 unsigned int palette[AVPALETTE_COUNT];
2103 2104
2104 } AVPaletteControl; 2105 } AVPaletteControl attribute_deprecated;
2105 2106
2106 typedef struct AVSubtitleRect { 2107 typedef struct AVSubtitleRect {
2107 uint16_t x; 2108 uint16_t x;
2108 uint16_t y; 2109 uint16_t y;
2109 uint16_t w; 2110 uint16_t w;