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.
const AVClass * av_class
A class for logging and AVOptions.
void(* filter)(uint8_t *src, int stride, int qscale)
void av_bsf_free(AVBSFContext **ctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
The bitstream filter state.
AVCodecParameters * par_out
Parameters of the output stream.
void av_bsf_flush(AVBSFContext *ctx)
Reset the internal bitstream filter state.
void av_bsf_list_free(AVBSFList **lst)
Free list of bitstream filters.
AVRational time_base_in
The timebase used for the timestamps of the input packets.
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx)
Allocate a context for a given bitstream filter.
enum AVCodecID * codec_ids
A list of codec ids supported by the filter, terminated by AV_CODEC_ID_NONE.
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
Describe the class of an AVClass context structure.
const AVClass * av_bsf_get_class(void)
Get the AVClass for AVBSFContext.
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
Rational number (pair of numerator and denominator).
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.
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
Submit a packet for filtering.
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...
AVRational time_base_out
The timebase used for the timestamps of the output packets.
AVBSFList * av_bsf_list_alloc(void)
Allocate empty list of bitstream filters.
void * priv_data
Opaque filter-specific private data.
const AVBitStreamFilter * av_bsf_iterate(void **opaque)
Iterate over all registered bitstream filters.
int av_bsf_get_null_filter(AVBSFContext **bsf)
Get null/pass-through bitstream filter.
Structure for chain/list of bitstream filters.
const struct AVBitStreamFilter * filter
The bitstream filter this context is an instance of.
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...
This structure stores compressed data.
int av_bsf_list_finalize(AVBSFList **lst, AVBSFContext **bsf)
Finalize list of bitstream filters.
int av_bsf_list_append(AVBSFList *lst, AVBSFContext *bsf)
Append bitstream filter to the list of bitstream filters.
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)