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);
void av_bsf_free(AVBSFContext **ctx)
Free a bitstream filter context and everything associated with it; write NULL into the supplied point...
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)
Filter bitstream.
The bitstream filter state.
const AVBitStreamFilter * av_bsf_get_by_name(const char *name)
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.
int av_bsf_init(AVBSFContext *ctx)
Prepare the filter for use, after all the parameters and options have been set.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
int av_bsf_alloc(const AVBitStreamFilter *filter, AVBSFContext **ctx)
Allocate a context for a given bitstream filter.
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.
int av_bsf_receive_packet(AVBSFContext *ctx, AVPacket *pkt)
Retrieve a filtered packet.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
static void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, uint8_t clip)
#define AVERROR_EOF
End of file.
const AVBitStreamFilter * av_bsf_next(void **opaque)
Iterate over all registered bitstream filters.
AVBitStreamFilterContext * av_bitstream_filter_init(const char *name)
Create and initialize a bitstream filter context given a bitstream filter 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 extradata_size
Size of the extradata content in bytes.
common internal API header
void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc)
Release bitstream filter context.
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 avcodec_parameters_from_context(AVCodecParameters *par, const AVCodecContext *codec)
Fill the parameters struct based on the values from the supplied codec context.
#define FF_DISABLE_DEPRECATION_WARNINGS
FF_DISABLE_DEPRECATION_WARNINGS 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...
#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)
Register a bitstream filter.
const struct AVBitStreamFilter * filter
This structure stores compressed data.
AVCodecParameters * par_in
Parameters of the input stream.