49 if (!strcmp(name, bsf->
name)) {
82 uint8_t **poutbuf,
int *poutbuf_size,
83 const uint8_t *
buf,
int buf_size,
int keyframe)
86 *poutbuf_size = buf_size;
87 return bsfc->
filter->
filter(bsfc, avctx, args, poutbuf, poutbuf_size,
88 buf, buf_size, keyframe);
memory handling functions
struct AVBitStreamFilter * next
AVCodecParserContext * parser
static AVBitStreamFilter * first_bitstream_filter
#define avpriv_atomic_ptr_cas
void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc)
Release bitstream filter context.
Libavcodec external API header.
AVBitStreamFilter * av_bitstream_filter_next(const AVBitStreamFilter *f)
If f is NULL, return the first registered bitstream filter, if f is non-NULL, return the next registe...
AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
Create and initialize a bitstream filter context given a bitstream filter name.
void av_parser_close(AVCodecParserContext *s)
void av_register_bitstream_filter(AVBitStreamFilter *bsf)
Register a bitstream filter.
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)
Filter bitstream.
main external API structure.
struct AVBitStreamFilter * filter
void(* close)(AVBitStreamFilterContext *bsfc)
int(* 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_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...