FFmpeg
Loading...
Searching...
No Matches
opus_metadata.c File Reference

Go to the source code of this file.

Data Structures

struct  OpusBSFContext
 

Macros

#define OFFSET(x)
 
#define FLAGS   (AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 

Functions

static int opus_metadata_init (AVBSFContext *bsfc)
 

Variables

static const AVOption opus_metadata_options []
 
static const AVClass opus_metadata_class
 
static enum AVCodecID codec_ids []
 
const FFBitStreamFilter ff_opus_metadata_bsf
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 41 of file opus_metadata.c.

◆ FLAGS

Definition at line 42 of file opus_metadata.c.

Function Documentation

◆ opus_metadata_init()

static int opus_metadata_init ( AVBSFContext * bsfc)
static

Definition at line 29 of file opus_metadata.c.

Variable Documentation

◆ opus_metadata_options

const AVOption opus_metadata_options[]
static
Initial value:
= {
{ "gain", "Gain, actual amplification is pow(10, gain/(20.0*256))", OFFSET(gain),
AV_OPT_TYPE_INT, { .i64 = 0 }, -(INT16_MAX + 1), INT16_MAX, .flags = FLAGS },
{ NULL },
}
#define flags(name, subs,...)
Definition cbs_h264.c:74
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

Definition at line 43 of file opus_metadata.c.

◆ opus_metadata_class

const AVClass opus_metadata_class
static
Initial value:
= {
.class_name = "opus_metadata_bsf",
.item_name = av_default_item_name,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption opus_metadata_options[]

Definition at line 50 of file opus_metadata.c.

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:
= {
}
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_OPUS
Definition codec_id.h:513

Definition at line 57 of file opus_metadata.c.

◆ ff_opus_metadata_bsf

const FFBitStreamFilter ff_opus_metadata_bsf
Initial value:
= {
.p.name = "opus_metadata",
.p.codec_ids = codec_ids,
.p.priv_class = &opus_metadata_class,
.priv_data_size = sizeof(OpusBSFContext),
}
static enum AVCodecID codec_ids[]
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
Definition bsf.c:254
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
static const AVClass opus_metadata_class
static int opus_metadata_init(AVBSFContext *bsfc)
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)
Definition h263dsp.c:29

Definition at line 61 of file opus_metadata.c.