diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-07-06 15:04:46 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-07-06 15:04:46 +0000 |
commit | 748c2fca7e4d99357c234936aa71212a6282be36 (patch) | |
tree | dd31be48f45e433c1e6b9c002553a2f4191de893 /libavcodec/avcodec.h | |
parent | 06fcf56c50eb6194270656ac8c4fddb250b14eab (diff) | |
download | ffmpeg-748c2fca7e4d99357c234936aa71212a6282be36.tar.gz |
AVBitStreamFilter (some thingy which can modify the bitstream like add or remove global headers or change the headers or ...)
Originally committed as revision 5643 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 30aad8fadf..1af9901999 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2571,6 +2571,37 @@ extern AVCodecParser dvdsub_parser; extern AVCodecParser dvbsub_parser; extern AVCodecParser aac_parser; + +typedef struct AVBitStreamFilterContext { + struct AVBitStreamFilter *filter; + AVCodecParserContext *parser; + struct AVBitStreamFilterContext *next; +} AVBitStreamFilterContext; + + +typedef struct AVBitStreamFilter { + const char *name; + int (*filter)(AVBitStreamFilterContext *bsfc, + AVCodecContext *avctx, const char *args, + uint8_t **poutbuf, int *poutbuf_size, + const uint8_t *buf, int buf_size, int keyframe); + struct AVBitStreamFilter *next; +} AVBitStreamFilter; + +extern AVBitStreamFilter *av_first_bitstream_filter; + +void av_register_bitstream_filter(AVBitStreamFilter *bsf); +AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); +int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, + AVCodecContext *avctx, const char *args, + uint8_t **poutbuf, int *poutbuf_size, + const uint8_t *buf, int buf_size, int keyframe); +void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); + +extern AVBitStreamFilter dump_extradata_bsf; +extern AVBitStreamFilter remove_extradata_bsf; + + /* memory */ void *av_malloc(unsigned int size); void *av_mallocz(unsigned int size); |