comparison avcodec.h @ 6011:b1fe945d73f9 libavcodec

av_*_next() API for libavcodec
author michael
date Wed, 12 Dec 2007 18:40:11 +0000
parents 5a8ca3d8ca7d
children e0e55a5a74c0
comparison
equal deleted inserted replaced
6010:5a8ca3d8ca7d 6011:b1fe945d73f9
31 #include <sys/types.h> /* size_t */ 31 #include <sys/types.h> /* size_t */
32 32
33 #define AV_STRINGIFY(s) AV_TOSTRING(s) 33 #define AV_STRINGIFY(s) AV_TOSTRING(s)
34 #define AV_TOSTRING(s) #s 34 #define AV_TOSTRING(s) #s
35 35
36 #define LIBAVCODEC_VERSION_INT ((51<<16)+(48<<8)+0) 36 #define LIBAVCODEC_VERSION_INT ((51<<16)+(49<<8)+0)
37 #define LIBAVCODEC_VERSION 51.48.0 37 #define LIBAVCODEC_VERSION 51.49.0
38 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT 38 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
39 39
40 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) 40 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
41 41
42 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) 42 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
2426 int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, 2426 int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
2427 int pix_fmt, int width, int height); 2427 int pix_fmt, int width, int height);
2428 2428
2429 /* external high level API */ 2429 /* external high level API */
2430 2430
2431 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
2431 extern AVCodec *first_avcodec; 2432 extern AVCodec *first_avcodec;
2433 #endif
2434 AVCodec *av_codec_next(AVCodec *c);
2432 2435
2433 /* returns LIBAVCODEC_VERSION_INT constant */ 2436 /* returns LIBAVCODEC_VERSION_INT constant */
2434 unsigned avcodec_version(void); 2437 unsigned avcodec_version(void);
2435 /* returns LIBAVCODEC_BUILD constant */ 2438 /* returns LIBAVCODEC_BUILD constant */
2436 unsigned avcodec_build(void); 2439 unsigned avcodec_build(void);
2782 void (*parser_close)(AVCodecParserContext *s); 2785 void (*parser_close)(AVCodecParserContext *s);
2783 int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size); 2786 int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size);
2784 struct AVCodecParser *next; 2787 struct AVCodecParser *next;
2785 } AVCodecParser; 2788 } AVCodecParser;
2786 2789
2790 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
2787 extern AVCodecParser *av_first_parser; 2791 extern AVCodecParser *av_first_parser;
2792 #endif
2793 AVCodecParser *av_parser_next(AVCodecParser *c);
2788 2794
2789 void av_register_codec_parser(AVCodecParser *parser); 2795 void av_register_codec_parser(AVCodecParser *parser);
2790 AVCodecParserContext *av_parser_init(int codec_id); 2796 AVCodecParserContext *av_parser_init(int codec_id);
2791 int av_parser_parse(AVCodecParserContext *s, 2797 int av_parser_parse(AVCodecParserContext *s,
2792 AVCodecContext *avctx, 2798 AVCodecContext *avctx,
2825 AVCodecContext *avctx, const char *args, 2831 AVCodecContext *avctx, const char *args,
2826 uint8_t **poutbuf, int *poutbuf_size, 2832 uint8_t **poutbuf, int *poutbuf_size,
2827 const uint8_t *buf, int buf_size, int keyframe); 2833 const uint8_t *buf, int buf_size, int keyframe);
2828 void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); 2834 void av_bitstream_filter_close(AVBitStreamFilterContext *bsf);
2829 2835
2830 extern AVBitStreamFilter *first_bitstream_filter; 2836 AVBitStreamFilter *av_bitstream_filter_next(AVBitStreamFilter *f);
2831 2837
2832 /* memory */ 2838 /* memory */
2833 2839
2834 /** 2840 /**
2835 * Reallocates the given block if it is not large enough, otherwise it 2841 * Reallocates the given block if it is not large enough, otherwise it