FFmpeg
Data Structures | Macros | Functions | Variables
asrc_afirsrc.c File Reference
#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/tx.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
#include "window_func.h"

Go to the source code of this file.

Data Structures

struct  AudioFIRSourceContext
 

Macros

#define OFFSET(x)   offsetof(AudioFIRSourceContext, x)
 
#define FLAGS   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (afirsrc)
 
static av_cold int init (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static av_cold int query_formats (AVFilterContext *ctx)
 
static int parse_string (char *str, float **items, int *nb_items, int *items_size)
 
static void lininterp (AVComplexFloat *complexf, const float *freq, const float *magnitude, const float *phase, int m, int minterp)
 
static av_cold int config_output (AVFilterLink *outlink)
 
static int request_frame (AVFilterLink *outlink)
 

Variables

static const AVOption afirsrc_options []
 
static const AVFilterPad afirsrc_outputs []
 
AVFilter ff_asrc_afirsrc
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(AudioFIRSourceContext, x)

Definition at line 59 of file asrc_afirsrc.c.

◆ FLAGS

Definition at line 60 of file asrc_afirsrc.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( afirsrc  )

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 102 of file asrc_afirsrc.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 114 of file asrc_afirsrc.c.

◆ query_formats()

static av_cold int query_formats ( AVFilterContext ctx)
static

Definition at line 127 of file asrc_afirsrc.c.

◆ parse_string()

static int parse_string ( char *  str,
float **  items,
int nb_items,
int items_size 
)
static

Definition at line 161 of file asrc_afirsrc.c.

Referenced by config_output().

◆ lininterp()

static void lininterp ( AVComplexFloat complexf,
const float *  freq,
const float *  magnitude,
const float *  phase,
int  m,
int  minterp 
)
static

Definition at line 188 of file asrc_afirsrc.c.

Referenced by config_output().

◆ config_output()

static av_cold int config_output ( AVFilterLink outlink)
static

Definition at line 210 of file asrc_afirsrc.c.

◆ request_frame()

static int request_frame ( AVFilterLink outlink)
static

Definition at line 289 of file asrc_afirsrc.c.

Variable Documentation

◆ afirsrc_options

const AVOption afirsrc_options[]
static

Definition at line 62 of file asrc_afirsrc.c.

◆ afirsrc_outputs

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

Definition at line 310 of file asrc_afirsrc.c.

◆ ff_asrc_afirsrc

AVFilter ff_asrc_afirsrc
Initial value:
= {
.name = "afirsrc",
.description = NULL_IF_CONFIG_SMALL("Generate a FIR coefficients audio stream."),
.query_formats = query_formats,
.init = init,
.uninit = uninit,
.priv_size = sizeof(AudioFIRSourceContext),
.priv_class = &afirsrc_class,
}

Definition at line 320 of file asrc_afirsrc.c.

AudioFIRSourceContext
Definition: asrc_afirsrc.c:29
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: asrc_afirsrc.c:114
request_frame
static int request_frame(AVFilterLink *outlink)
Definition: asrc_afirsrc.c:289
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
NULL
#define NULL
Definition: coverity.c:32
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
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:117
query_formats
static av_cold int query_formats(AVFilterContext *ctx)
Definition: asrc_afirsrc.c:127
init
static av_cold int init(AVFilterContext *ctx)
Definition: asrc_afirsrc.c:102
afirsrc_outputs
static const AVFilterPad afirsrc_outputs[]
Definition: asrc_afirsrc.c:310
config_output
static av_cold int config_output(AVFilterLink *outlink)
Definition: asrc_afirsrc.c:210