FFmpeg
Data Structures | Functions | Variables
af_ashowinfo.c File Reference
#include <inttypes.h>
#include "libavutil/adler32.h"
#include "libavutil/attributes.h"
#include "libavutil/channel_layout.h"
#include "libavutil/downmix_info.h"
#include "libavutil/mem.h"
#include "libavutil/replaygain.h"
#include "libavutil/timestamp.h"
#include "libavutil/samplefmt.h"
#include "libavcodec/defs.h"
#include "audio.h"
#include "avfilter.h"
#include "filters.h"

Go to the source code of this file.

Data Structures

struct  AShowInfoContext
 

Functions

static av_cold void uninit (AVFilterContext *ctx)
 
static void dump_matrixenc (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_downmix (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void print_gain (AVFilterContext *ctx, const char *str, int32_t gain)
 
static void print_peak (AVFilterContext *ctx, const char *str, uint32_t peak)
 
static void dump_replaygain (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_audio_service_type (AVFilterContext *ctx, AVFrameSideData *sd)
 
static void dump_unknown (AVFilterContext *ctx, AVFrameSideData *sd)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *buf)
 

Variables

static const AVFilterPad inputs []
 
const AVFilter ff_af_ashowinfo
 

Detailed Description

filter for showing textual audio frame information

Definition in file af_ashowinfo.c.

Function Documentation

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 50 of file af_ashowinfo.c.

◆ dump_matrixenc()

static void dump_matrixenc ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 56 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ dump_downmix()

static void dump_downmix ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 80 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ print_gain()

static void print_gain ( AVFilterContext ctx,
const char *  str,
int32_t  gain 
)
static

Definition at line 107 of file af_ashowinfo.c.

Referenced by dump_replaygain().

◆ print_peak()

static void print_peak ( AVFilterContext ctx,
const char *  str,
uint32_t  peak 
)
static

Definition at line 117 of file af_ashowinfo.c.

Referenced by dump_replaygain().

◆ dump_replaygain()

static void dump_replaygain ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 127 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ dump_audio_service_type()

static void dump_audio_service_type ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 144 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ dump_unknown()

static void dump_unknown ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 168 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame buf 
)
static

Definition at line 174 of file af_ashowinfo.c.

Variable Documentation

◆ inputs

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

Definition at line 236 of file af_ashowinfo.c.

◆ ff_af_ashowinfo

const AVFilter ff_af_ashowinfo
Initial value:
= {
.name = "ashowinfo",
.description = NULL_IF_CONFIG_SMALL("Show textual information for each audio frame."),
.priv_size = sizeof(AShowInfoContext),
}

Definition at line 244 of file af_ashowinfo.c.

FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
Definition: af_ashowinfo.c:174
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_ashowinfo.c:50
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:34
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:94
inputs
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:236
AShowInfoContext
Definition: af_ashowinfo.c:43
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:168
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:482