99 uint8_t **poutbuf,
int *poutbuf_size,
100 const uint8_t *buf,
int buf_size,
int keyframe)
119 const char * shorthand[2] = {
NULL};
122 shorthand[0] = opt->
name;
156 *poutbuf_size = pkt.
size;
157 memcpy(*poutbuf, pkt.
data, pkt.
size);
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)
const AVClass * priv_class
A class for the private data, used to declare bitstream filter private AVOptions. ...
AVCodecParameters * par_out
Parameters of the output stream.
Memory handling functions.
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)
The bitstream filter state.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
void * priv_data
Opaque filter-specific private data.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
int av_opt_set_from_string(void *ctx, const char *opts, const char *const *shorthand, const char *key_val_sep, const char *pairs_sep)
Parse the key-value pairs list in opts.
FF_DISABLE_DEPRECATION_WARNINGS const AVBitStreamFilter * av_bitstream_filter_next(const AVBitStreamFilter *f)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
#define AVERROR_EOF
End of file.
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **pctx)
Allocate a context for a given bitstream filter.
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
AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
AVRational time_base_in
The timebase used for the timestamps of the input packets.
const AVOption * av_opt_next(const void *obj, const AVOption *last)
Iterate over all AVOptions belonging to obj.
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
int extradata_size
Size of the extradata content in bytes.
common internal API header
void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc)
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
Submit a packet for filtering.
Libavcodec external API header.
main external API structure.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
int avcodec_parameters_from_context(AVCodecParameters *par, const AVCodecContext *codec)
Fill the parameters struct based on the values from the supplied codec context.
const AVBitStreamFilter * av_bsf_iterate(void **opaque)
Iterate over all registered bitstream filters.
#define FF_DISABLE_DEPRECATION_WARNINGS
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
#define FF_ENABLE_DEPRECATION_WARNINGS
char * args
Internal default arguments, used if NULL is passed to av_bitstream_filter_filter().
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
void av_register_bitstream_filter(AVBitStreamFilter *bsf)
const struct AVBitStreamFilter * filter
void av_bsf_free(AVBSFContext **pctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later.That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another.Frame references ownership and permissions
This structure stores compressed data.
AVCodecParameters * par_in
Parameters of the input stream.