FFmpeg
Classes | Macros | Typedefs | Functions | Variables
af_mcompand.c File Reference

audio multiband compand filter More...

#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/ffmath.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Classes

struct  CompandSegment
 
struct  CompandT
 
struct  PrevCrossover
 
struct  Crossover
 
struct  CompBand
 
struct  MCompandContext
 

Macros

#define N   4
 
#define OFFSET(x)   offsetof(MCompandContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define S(x)   s->segments[2 * ((x) + 1)]
 
#define S(x)   s->segments[2 * (x)]
 
#define L(x)   s->segments[i - (x)]
 
#define CONVOLVE   _ _ _ _
 
#define _
 
#define _
 

Typedefs

typedef struct CompandSegment CompandSegment
 
typedef struct CompandT CompandT
 
typedef struct PrevCrossover PrevCrossover[N *2]
 
typedef struct Crossover Crossover
 
typedef struct CompBand CompBand
 
typedef struct MCompandContext MCompandContext
 

Functions

 AVFILTER_DEFINE_CLASS (mcompand)
 

Variables

AVFilter ff_af_mcompand
 

Detailed Description

audio multiband compand filter

Macro Definition Documentation

§ _ [1/2]

#define _
Value:
out_low += p->coefs[j] * p->previous[ch][p->pos + j].in \
- p->coefs[2*N+2 + j] * p->previous[ch][p->pos + j].out_low, j++;

§ _ [2/2]

#define _
Value:
out_high += p->coefs[j+N+1] * p->previous[ch][p->pos + j].in \
- p->coefs[2*N+2 + j] * p->previous[ch][p->pos + j].out_high, j++;

Variable Documentation

§ ff_af_mcompand

AVFilter ff_af_mcompand
Initial value:
= {
.name = "mcompand",
.description = NULL_IF_CONFIG_SMALL(
"Multiband Compress or expand audio dynamic range."),
.query_formats = query_formats,
.priv_size = sizeof(MCompandContext),
.priv_class = &mcompand_class,
.uninit = uninit,
.inputs = mcompand_inputs,
.outputs = mcompand_outputs,
}
Definition: af_mcompand.c:82
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186