comparison avcodec.h @ 1594:6d37b161cf85 libavcodec

Fix some palette related defines, bump build number
author rtognimp
date Sun, 02 Nov 2003 21:53:28 +0000
parents 6b224ca24033
children c1d5491f144a
comparison
equal deleted inserted replaced
1593:5495691106c3 1594:6d37b161cf85
14 #include "common.h" 14 #include "common.h"
15 #include "rational.h" 15 #include "rational.h"
16 16
17 #define FFMPEG_VERSION_INT 0x000408 17 #define FFMPEG_VERSION_INT 0x000408
18 #define FFMPEG_VERSION "0.4.8" 18 #define FFMPEG_VERSION "0.4.8"
19 #define LIBAVCODEC_BUILD 4688 19 #define LIBAVCODEC_BUILD 4689
20 20
21 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT 21 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
22 #define LIBAVCODEC_VERSION FFMPEG_VERSION 22 #define LIBAVCODEC_VERSION FFMPEG_VERSION
23 23
24 #define AV_STRINGIFY(s) AV_TOSTRING(s) 24 #define AV_STRINGIFY(s) AV_TOSTRING(s)
1437 /** 1437 /**
1438 * AVPaletteControl 1438 * AVPaletteControl
1439 * This structure defines a method for communicating palette changes 1439 * This structure defines a method for communicating palette changes
1440 * between and demuxer and a decoder. 1440 * between and demuxer and a decoder.
1441 */ 1441 */
1442 #define AVPALETTE_SIZE 256 1442 #define AVPALETTE_SIZE 1024
1443 #define AVPALETT_COUNT 256
1443 typedef struct AVPaletteControl { 1444 typedef struct AVPaletteControl {
1444 1445
1445 /* demuxer sets this to 1 to indicate the palette has changed; 1446 /* demuxer sets this to 1 to indicate the palette has changed;
1446 * decoder resets to 0 */ 1447 * decoder resets to 0 */
1447 int palette_changed; 1448 int palette_changed;
1448 1449
1449 /* 4-byte ARGB palette entries, stored in native byte order; note that 1450 /* 4-byte ARGB palette entries, stored in native byte order; note that
1450 * the individual palette components should be on a 8-bit scale; if 1451 * the individual palette components should be on a 8-bit scale; if
1451 * the palette data comes from a IBM VGA native format, the component 1452 * the palette data comes from a IBM VGA native format, the component
1452 * data is probably 6 bits in size and needs to be scaled */ 1453 * data is probably 6 bits in size and needs to be scaled */
1453 unsigned int palette[AVPALETTE_SIZE]; 1454 unsigned int palette[AVPALETTE_COUNT];
1454 1455
1455 } AVPaletteControl; 1456 } AVPaletteControl;
1456 1457
1457 extern AVCodec ac3_encoder; 1458 extern AVCodec ac3_encoder;
1458 extern AVCodec mp2_encoder; 1459 extern AVCodec mp2_encoder;