comparison avcodec.h @ 9218:18dffa8f2382 libavcodec

Remove deprecated functions and structures on next version bump.
author diego
date Sat, 21 Mar 2009 13:51:29 +0000
parents 53ec03e7ba40
children a15ec86bf752
comparison
equal deleted inserted replaced
9217:53ec03e7ba40 9218:18dffa8f2382
2494 typedef struct AVPicture { 2494 typedef struct AVPicture {
2495 uint8_t *data[4]; 2495 uint8_t *data[4];
2496 int linesize[4]; ///< number of bytes per line 2496 int linesize[4]; ///< number of bytes per line
2497 } AVPicture; 2497 } AVPicture;
2498 2498
2499 #if LIBAVCODEC_VERSION_MAJOR < 53
2499 /** 2500 /**
2500 * AVPaletteControl 2501 * AVPaletteControl
2501 * This structure defines a method for communicating palette changes 2502 * This structure defines a method for communicating palette changes
2502 * between and demuxer and a decoder. 2503 * between and demuxer and a decoder.
2503 * 2504 *
2517 * the palette data comes from an IBM VGA native format, the component 2518 * the palette data comes from an IBM VGA native format, the component
2518 * data is probably 6 bits in size and needs to be scaled. */ 2519 * data is probably 6 bits in size and needs to be scaled. */
2519 unsigned int palette[AVPALETTE_COUNT]; 2520 unsigned int palette[AVPALETTE_COUNT];
2520 2521
2521 } AVPaletteControl attribute_deprecated; 2522 } AVPaletteControl attribute_deprecated;
2523 #endif
2522 2524
2523 enum AVSubtitleType { 2525 enum AVSubtitleType {
2524 SUBTITLE_NONE, 2526 SUBTITLE_NONE,
2525 2527
2526 SUBTITLE_BITMAP, ///< A bitmap, pict will be set 2528 SUBTITLE_BITMAP, ///< A bitmap, pict will be set
3267 AVCodecParser *av_parser_next(AVCodecParser *c); 3269 AVCodecParser *av_parser_next(AVCodecParser *c);
3268 3270
3269 void av_register_codec_parser(AVCodecParser *parser); 3271 void av_register_codec_parser(AVCodecParser *parser);
3270 AVCodecParserContext *av_parser_init(int codec_id); 3272 AVCodecParserContext *av_parser_init(int codec_id);
3271 3273
3274 #if LIBAVCODEC_VERSION_MAJOR < 53
3272 attribute_deprecated 3275 attribute_deprecated
3273 int av_parser_parse(AVCodecParserContext *s, 3276 int av_parser_parse(AVCodecParserContext *s,
3274 AVCodecContext *avctx, 3277 AVCodecContext *avctx,
3275 uint8_t **poutbuf, int *poutbuf_size, 3278 uint8_t **poutbuf, int *poutbuf_size,
3276 const uint8_t *buf, int buf_size, 3279 const uint8_t *buf, int buf_size,
3277 int64_t pts, int64_t dts); 3280 int64_t pts, int64_t dts);
3281 #endif
3278 3282
3279 /** 3283 /**
3280 * Parse a packet. 3284 * Parse a packet.
3281 * 3285 *
3282 * @param s parser context. 3286 * @param s parser context.