40 #define OFFSET(x) offsetof(OpusBSFContext, x) 41 #define FLAGS (AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_BSF_PARAM) 43 {
"gain",
"Gain, actual amplification is pow(10, gain/(20.0*256))",
OFFSET(
gain),
61 .
name =
"opus_metadata",
63 .priv_class = &opus_metadata_class,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
AVCodecParameters * par_out
Parameters of the output stream.
#define LIBAVUTIL_VERSION_INT
static av_cold int init(AVCodecContext *avctx)
The bitstream filter state.
const char * av_default_item_name(void *ptr)
Return the context name.
void * priv_data
Opaque filter-specific private data.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVCodecID
Identify the syntax and semantics of the bitstream.
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
int extradata_size
Size of the extradata content in bytes.
Describe the class of an AVClass context structure.
#define flags(name, subs,...)
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.