AVCodecParameters * par_in
Parameters of the input stream.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
This struct describes the properties of an encoded stream.
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
AVBSFList * av_bsf_list_alloc(void)
Allocate empty list of bitstream filters.
const AVClass * av_class
A class for logging and AVOptions.
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
const AVBitStreamFilter * av_bsf_iterate(void **opaque)
Iterate over all registered bitstream filters.
The bitstream filter state.
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)
int av_bsf_get_null_filter(AVBSFContext **bsf)
Get null/pass-through bitstream filter.
AVCodecParameters * par_out
Parameters of the output stream.
void av_bsf_list_free(AVBSFList **lst)
Free list of bitstream filters.
const AVClass * av_bsf_get_class(void)
Get the AVClass for AVBSFContext.
AVRational time_base_in
The timebase used for the timestamps of the input packets.
enum AVCodecID * codec_ids
A list of codec ids supported by the filter, terminated by AV_CODEC_ID_NONE.
int av_bsf_list_finalize(AVBSFList **lst, AVBSFContext **bsf)
Finalize list of bitstream filters.
Describe the class of an AVClass context structure.
int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf)
Parse string describing list of bitstream filters and create single AVBSFContext describing the whole...
Rational number (pair of numerator and denominator).
void(* close)(AVBSFContext *ctx)
const AVClass * priv_class
A class for the private data, used to declare bitstream filter private AVOptions.
AVCodecID
Identify the syntax and semantics of the bitstream.
const OptionDef options[]
int av_bsf_list_append2(AVBSFList *lst, const char *bsf_name, AVDictionary **options)
Construct new bitstream filter context given it's name and options and append it to the list of bitst...
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
int(* filter)(AVBSFContext *ctx, AVPacket *pkt)
AVRational time_base_out
The timebase used for the timestamps of the output packets.
void * priv_data
Opaque filter-specific private data.
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
Submit a packet for filtering.
int av_bsf_list_append(AVBSFList *lst, AVBSFContext *bsf)
Append bitstream filter to the list of bitstream filters.
void av_bsf_flush(AVBSFContext *ctx)
Reset the internal bitstream filter state.
Structure for chain/list of bitstream filters.
const struct AVBitStreamFilter * filter
The bitstream filter this context is an instance of.
This structure stores compressed data.
void av_bsf_free(AVBSFContext **ctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
int(* init)(AVBSFContext *ctx)
void(* flush)(AVBSFContext *ctx)
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx)
Allocate a context for a given bitstream filter.