| FFmpeg
    | 
audio 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"Go to the source code of this file.
| Data Structures | |
| struct | ChanParam | 
| struct | CompandSegment | 
| struct | CompandContext | 
| Macros | |
| #define | OFFSET(x) offsetof(CompandContext, x) | 
| #define | A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM | 
| #define | MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) | 
| #define | S(x) s->segments[2 * ((x) + 1)] | 
| #define | S(x) s->segments[2 * (x)] | 
| #define | L(x) s->segments[i - (x)] | 
| Functions | |
| AVFILTER_DEFINE_CLASS (compand) | |
| static av_cold int | init (AVFilterContext *ctx) | 
| static av_cold void | uninit (AVFilterContext *ctx) | 
| static int | query_formats (AVFilterContext *ctx) | 
| static void | count_items (char *item_str, int *nb_items) | 
| static void | update_volume (ChanParam *cp, double in) | 
| static double | get_volume (CompandContext *s, double in_lin) | 
| static int | compand_nodelay (AVFilterContext *ctx, AVFrame *frame) | 
| static int | compand_delay (AVFilterContext *ctx, AVFrame *frame) | 
| static int | compand_drain (AVFilterLink *outlink) | 
| static int | config_output (AVFilterLink *outlink) | 
| static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) | 
| static int | request_frame (AVFilterLink *outlink) | 
| Variables | |
| static const AVOption | compand_options [] | 
| static const AVFilterPad | compand_inputs [] | 
| static const AVFilterPad | compand_outputs [] | 
| AVFilter | ff_af_compand | 
audio compand filter
Definition in file af_compand.c.
| #define OFFSET | ( | x | ) | offsetof(CompandContext, x) | 
Definition at line 71 of file af_compand.c.
Definition at line 72 of file af_compand.c.
Definition at line 219 of file af_compand.c.
Referenced by compand_delay().
| #define S | ( | x | ) | s->segments[2 * ((x) + 1)] | 
Referenced by config_output().
| #define S | ( | x | ) | s->segments[2 * (x)] | 
| #define L | ( | x | ) | s->segments[i - (x)] | 
Referenced by config_output().
| AVFILTER_DEFINE_CLASS | ( | compand | ) | 
| 
 | static | 
Definition at line 87 of file af_compand.c.
| 
 | static | 
Definition at line 94 of file af_compand.c.
Referenced by config_output().
| 
 | static | 
Definition at line 103 of file af_compand.c.
Definition at line 133 of file af_compand.c.
Referenced by config_output().
Definition at line 144 of file af_compand.c.
Referenced by compand_delay(), and compand_nodelay().
| 
 | static | 
Definition at line 154 of file af_compand.c.
Referenced by compand_delay(), and compand_nodelay().
| 
 | static | 
Definition at line 175 of file af_compand.c.
Referenced by config_output().
| 
 | static | 
Definition at line 221 of file af_compand.c.
Referenced by config_output().
| 
 | static | 
Definition at line 293 of file af_compand.c.
Referenced by request_frame().
| 
 | static | 
Definition at line 328 of file af_compand.c.
| 
 | static | 
Definition at line 545 of file af_compand.c.
| 
 | static | 
Definition at line 553 of file af_compand.c.
| 
 | static | 
Definition at line 74 of file af_compand.c.
| 
 | static | 
Definition at line 567 of file af_compand.c.
| 
 | static | 
Definition at line 576 of file af_compand.c.
| AVFilter ff_af_compand | 
Definition at line 587 of file af_compand.c.
 1.8.6
 1.8.6