FFmpeg
Data Structures | Macros | Functions | Variables
opus_metadata.c File Reference
#include "bsf.h"
#include "bsf_internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  OpusBSFContext
 

Macros

#define OFFSET(x)   offsetof(OpusBSFContext, 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)    offsetof(OpusBSFContext, x)

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 },
}

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,
}

Definition at line 50 of file opus_metadata.c.

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

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),
}

Definition at line 61 of file opus_metadata.c.

opus_metadata_init
static int opus_metadata_init(AVBSFContext *bsfc)
Definition: opus_metadata.c:29
FLAGS
#define FLAGS
Definition: opus_metadata.c:42
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
Definition: filter_design.txt:228
OFFSET
#define OFFSET(x)
Definition: opus_metadata.c:41
opus_metadata_class
static const AVClass opus_metadata_class
Definition: opus_metadata.c:50
opus_metadata_options
static const AVOption opus_metadata_options[]
Definition: opus_metadata.c:43
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
codec_ids
static enum AVCodecID codec_ids[]
Definition: opus_metadata.c:57
NULL
#define NULL
Definition: coverity.c:32
OpusBSFContext
Definition: opus_metadata.c:24
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:366
AV_CODEC_ID_OPUS
@ AV_CODEC_ID_OPUS
Definition: codec_id.h:500
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:235
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474
ff_bsf_get_packet_ref
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
Definition: bsf.c:256