Mercurial > libavcodec.hg
comparison avcodec.h @ 12449:3bca212d6f51 libavcodec
add FF_API_PALETTE_CONTROL define to drop usage of AVPaletteControl
and delay this transition to v54 as it is currently not functional
author | aurel |
---|---|
date | Wed, 01 Sep 2010 10:26:28 +0000 |
parents | d23e48091c51 |
children | a5ddb39627fd |
comparison
equal
deleted
inserted
replaced
12448:601fbb943758 | 12449:3bca212d6f51 |
---|---|
40 LIBAVCODEC_VERSION_MINOR, \ | 40 LIBAVCODEC_VERSION_MINOR, \ |
41 LIBAVCODEC_VERSION_MICRO) | 41 LIBAVCODEC_VERSION_MICRO) |
42 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT | 42 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT |
43 | 43 |
44 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) | 44 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) |
45 | |
46 /** | |
47 * Those FF_API_* defines are not part of public API. | |
48 * They may change, break or disappear at any time. | |
49 */ | |
50 #ifndef FF_API_PALETTE_CONTROL | |
51 #define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54) | |
52 #endif | |
45 | 53 |
46 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) | 54 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) |
47 #define AV_TIME_BASE 1000000 | 55 #define AV_TIME_BASE 1000000 |
48 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} | 56 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} |
49 | 57 |
2023 * - encoding: Set by user. | 2031 * - encoding: Set by user. |
2024 * - decoding: unused | 2032 * - decoding: unused |
2025 */ | 2033 */ |
2026 int lmax; | 2034 int lmax; |
2027 | 2035 |
2036 #if FF_API_PALETTE_CONTROL | |
2028 /** | 2037 /** |
2029 * palette control structure | 2038 * palette control structure |
2030 * - encoding: ??? (no palette-enabled encoder yet) | 2039 * - encoding: ??? (no palette-enabled encoder yet) |
2031 * - decoding: Set by user. | 2040 * - decoding: Set by user. |
2032 */ | 2041 */ |
2033 struct AVPaletteControl *palctrl; | 2042 struct AVPaletteControl *palctrl; |
2043 #endif | |
2034 | 2044 |
2035 /** | 2045 /** |
2036 * noise reduction strength | 2046 * noise reduction strength |
2037 * - encoding: Set by user. | 2047 * - encoding: Set by user. |
2038 * - decoding: unused | 2048 * - decoding: unused |
2850 typedef struct AVPicture { | 2860 typedef struct AVPicture { |
2851 uint8_t *data[4]; | 2861 uint8_t *data[4]; |
2852 int linesize[4]; ///< number of bytes per line | 2862 int linesize[4]; ///< number of bytes per line |
2853 } AVPicture; | 2863 } AVPicture; |
2854 | 2864 |
2855 #if LIBAVCODEC_VERSION_MAJOR < 53 | 2865 #if FF_API_PALETTE_CONTROL |
2856 /** | 2866 /** |
2857 * AVPaletteControl | 2867 * AVPaletteControl |
2858 * This structure defines a method for communicating palette changes | 2868 * This structure defines a method for communicating palette changes |
2859 * between and demuxer and a decoder. | 2869 * between and demuxer and a decoder. |
2860 * | 2870 * |