FFmpeg
Data Structures | Macros | Functions | Variables
opus_metadata_bsf.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 AVBitStreamFilter ff_opus_metadata_bsf
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(OpusBSFContext, x)

Definition at line 41 of file opus_metadata_bsf.c.

◆ FLAGS

Definition at line 42 of file opus_metadata_bsf.c.

Function Documentation

◆ opus_metadata_init()

static int opus_metadata_init ( AVBSFContext bsfc)
static

Definition at line 29 of file opus_metadata_bsf.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_bsf.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_bsf.c.

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 57 of file opus_metadata_bsf.c.

◆ ff_opus_metadata_bsf

const AVBitStreamFilter ff_opus_metadata_bsf
Initial value:
= {
.name = "opus_metadata",
.priv_data_size = sizeof(OpusBSFContext),
.priv_class = &opus_metadata_class,
}

Definition at line 61 of file opus_metadata_bsf.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
codec_ids
static enum AVCodecID codec_ids[]
Definition: opus_metadata_bsf.c:57
opus_metadata_init
static int opus_metadata_init(AVBSFContext *bsfc)
Definition: opus_metadata_bsf.c:29
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
FLAGS
#define FLAGS
Definition: opus_metadata_bsf.c:42
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
OpusBSFContext
Definition: opus_metadata_bsf.c:24
opus_metadata_options
static const AVOption opus_metadata_options[]
Definition: opus_metadata_bsf.c:43
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
OFFSET
#define OFFSET(x)
Definition: opus_metadata_bsf.c:41
AV_CODEC_ID_OPUS
@ AV_CODEC_ID_OPUS
Definition: codec_id.h:482
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:48
opus_metadata_class
static const AVClass opus_metadata_class
Definition: opus_metadata_bsf.c:50
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:224
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
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:252