FFmpeg
Data Structures | Macros | Functions | Variables
af_volumedetect.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/avassert.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  VolDetectContext
 

Macros

#define MAX_DB   91
 

Functions

static int filter_frame (AVFilterLink *inlink, AVFrame *samples)
 
static double logdb (uint64_t v)
 
static void print_stats (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVFilterPad volumedetect_inputs []
 
const AVFilter ff_af_volumedetect
 

Macro Definition Documentation

◆ MAX_DB

#define MAX_DB   91

Definition at line 59 of file af_volumedetect.c.

Function Documentation

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame samples 
)
static

Definition at line 36 of file af_volumedetect.c.

◆ logdb()

static double logdb ( uint64_t  v)
inlinestatic

Definition at line 61 of file af_volumedetect.c.

Referenced by print_stats().

◆ print_stats()

static void print_stats ( AVFilterContext ctx)
static

Definition at line 69 of file af_volumedetect.c.

Referenced by uninit().

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 112 of file af_volumedetect.c.

Variable Documentation

◆ volumedetect_inputs

const AVFilterPad volumedetect_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
}

Definition at line 117 of file af_volumedetect.c.

◆ ff_af_volumedetect

const AVFilter ff_af_volumedetect
Initial value:

Definition at line 125 of file af_volumedetect.c.

uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_volumedetect.c:112
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
ff_audio_default_filterpad
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
Definition: audio.c:33
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
AV_SAMPLE_FMT_S16P
@ AV_SAMPLE_FMT_S16P
signed 16 bits, planar
Definition: samplefmt.h:64
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *samples)
Definition: af_volumedetect.c:36
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:58
AVFILTER_FLAG_METADATA_ONLY
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition: avfilter.h:133
VolDetectContext
Definition: af_volumedetect.c:27
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474
FILTER_SAMPLEFMTS
#define FILTER_SAMPLEFMTS(...)
Definition: internal.h:170
volumedetect_inputs
static const AVFilterPad volumedetect_inputs[]
Definition: af_volumedetect.c:117