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

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

Definition at line 59 of file asrc_afirsrc.c.

Definition at line 60 of file asrc_afirsrc.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( afirsrc  )
static av_cold int init ( AVFilterContext ctx)
static

Definition at line 102 of file asrc_afirsrc.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 114 of file asrc_afirsrc.c.

static av_cold int query_formats ( AVFilterContext ctx)
static

Definition at line 127 of file asrc_afirsrc.c.

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().

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().

static av_cold int config_output ( AVFilterLink outlink)
static

Definition at line 210 of file asrc_afirsrc.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 289 of file asrc_afirsrc.c.

Variable Documentation

const AVOption afirsrc_options[]
static

Definition at line 62 of file asrc_afirsrc.c.

const AVFilterPad afirsrc_outputs[]
static
Initial value:
= {
{
.name = "default",
.request_frame = request_frame,
.config_props = config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static av_cold int config_output(AVFilterLink *outlink)
Definition: asrc_afirsrc.c:210
static int request_frame(AVFilterLink *outlink)
Definition: asrc_afirsrc.c:289

Definition at line 310 of file asrc_afirsrc.c.

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,
}
#define NULL
Definition: coverity.c:32
static av_cold void uninit(AVFilterContext *ctx)
Definition: asrc_afirsrc.c:114
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
static const AVFilterPad afirsrc_outputs[]
Definition: asrc_afirsrc.c:310
static av_cold int query_formats(AVFilterContext *ctx)
Definition: asrc_afirsrc.c:127
static av_cold int init(AVFilterContext *ctx)
Definition: asrc_afirsrc.c:102

Definition at line 320 of file asrc_afirsrc.c.