FFmpeg
Data Structures | Functions | Variables
af_asdr.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
#include "filters.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AudioSDRContext
 

Functions

static void sdr (AVFilterContext *ctx, const AVFrame *u, const AVFrame *v)
 
static int activate (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
const AVFilter ff_af_asdr
 

Function Documentation

◆ sdr()

static void sdr ( AVFilterContext ctx,
const AVFrame u,
const AVFrame v 
)
static

Definition at line 40 of file af_asdr.c.

Referenced by activate().

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 60 of file af_asdr.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 112 of file af_asdr.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 130 of file af_asdr.c.

Variable Documentation

◆ inputs

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "input0",
},
{
.name = "input1",
},
}

Definition at line 144 of file af_asdr.c.

◆ outputs

const AVFilterPad outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
}

Definition at line 155 of file af_asdr.c.

◆ ff_af_asdr

const AVFilter ff_af_asdr
Initial value:
= {
.name = "asdr",
.description = NULL_IF_CONFIG_SMALL("Measure Audio Signal-to-Distortion Ratio."),
.priv_size = sizeof(AudioSDRContext),
}

Definition at line 163 of file af_asdr.c.

FILTER_SINGLE_SAMPLEFMT
#define FILTER_SINGLE_SAMPLEFMT(sample_fmt_)
Definition: internal.h:183
config_output
static int config_output(AVFilterLink *outlink)
Definition: af_asdr.c:112
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
activate
static int activate(AVFilterContext *ctx)
Definition: af_asdr.c:60
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:190
AudioSDRContext
Definition: af_asdr.c:31
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:115
outputs
static const AVFilterPad outputs[]
Definition: af_asdr.c:155
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_asdr.c:130
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:143
AV_SAMPLE_FMT_DBLP
@ AV_SAMPLE_FMT_DBLP
double, planar
Definition: samplefmt.h:67
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:191
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
inputs
static const AVFilterPad inputs[]
Definition: af_asdr.c:144