FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 query_formats (AVFilterContext *ctx)
 
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 []
 
static const AVFilterPad volumedetect_outputs []
 
AVFilter ff_af_volumedetect
 

Macro Definition Documentation

#define MAX_DB   91

Definition at line 76 of file af_volumedetect.c.

Referenced by logdb(), and print_stats().

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 36 of file af_volumedetect.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame samples 
)
static

Definition at line 52 of file af_volumedetect.c.

static double logdb ( uint64_t  v)
inlinestatic

Definition at line 78 of file af_volumedetect.c.

Referenced by print_stats().

static void print_stats ( AVFilterContext ctx)
static

Definition at line 86 of file af_volumedetect.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 129 of file af_volumedetect.c.

Variable Documentation

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

Definition at line 134 of file af_volumedetect.c.

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

Definition at line 143 of file af_volumedetect.c.

AVFilter ff_af_volumedetect
Initial value:
= {
.name = "volumedetect",
.description = NULL_IF_CONFIG_SMALL("Detect audio volume."),
.priv_size = sizeof(VolDetectContext),
}

Definition at line 151 of file af_volumedetect.c.