FFmpeg
Data Structures | Functions | Variables
af_ashowinfo.c File Reference
#include <inttypes.h>
#include <stddef.h>
#include "libavutil/adler32.h"
#include "libavutil/attributes.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/downmix_info.h"
#include "libavutil/intreadwrite.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 "internal.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 []
 
static const AVFilterPad outputs []
 
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 53 of file af_ashowinfo.c.

◆ dump_matrixenc()

static void dump_matrixenc ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 59 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ dump_downmix()

static void dump_downmix ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 83 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 110 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 120 of file af_ashowinfo.c.

Referenced by dump_replaygain().

◆ dump_replaygain()

static void dump_replaygain ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 130 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 147 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ dump_unknown()

static void dump_unknown ( AVFilterContext ctx,
AVFrameSideData sd 
)
static

Definition at line 171 of file af_ashowinfo.c.

Referenced by filter_frame().

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame buf 
)
static

Definition at line 177 of file af_ashowinfo.c.

Variable Documentation

◆ inputs

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

Definition at line 249 of file af_ashowinfo.c.

◆ outputs

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

Definition at line 257 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 264 of file af_ashowinfo.c.

outputs
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:257
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
Definition: af_ashowinfo.c:177
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:194
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_ashowinfo.c:53
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
inputs
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:249
AShowInfoContext
Definition: af_ashowinfo.c:46
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
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:195
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561