FFmpeg
|
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
Go to the source code of this file.
Data Structures | |
struct | CompensationDelayContext |
Macros | |
#define | OFFSET(x) offsetof(CompensationDelayContext, x) |
#define | A (AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM) |
#define | COMP_DELAY_MAX_DISTANCE (100.0 * 100.0 + 100.0 * 1.0 + 1.0) |
#define | COMP_DELAY_SOUND_SPEED_KM_H(temp) 1.85325 * (643.95 * sqrt(((temp + 273.15) / 273.15))) |
#define | COMP_DELAY_SOUND_SPEED_CM_S(temp) (COMP_DELAY_SOUND_SPEED_KM_H(temp) * (1000.0 * 100.0) /* cm/km */ / (60.0 * 60.0) /* s/h */) |
#define | COMP_DELAY_SOUND_FRONT_DELAY(temp) (1.0 / COMP_DELAY_SOUND_SPEED_CM_S(temp)) |
#define | COMP_DELAY_MAX_DELAY (COMP_DELAY_MAX_DISTANCE * COMP_DELAY_SOUND_FRONT_DELAY(50)) |
Functions | |
AVFILTER_DEFINE_CLASS (compensationdelay) | |
static int | config_input (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | compensationdelay_options [] |
static const AVFilterPad | compensationdelay_inputs [] |
const AVFilter | ff_af_compensationdelay |
#define OFFSET | ( | x | ) | offsetof(CompensationDelayContext, x) |
Definition at line 42 of file af_compensationdelay.c.
Definition at line 43 of file af_compensationdelay.c.
#define COMP_DELAY_MAX_DISTANCE (100.0 * 100.0 + 100.0 * 1.0 + 1.0) |
Definition at line 58 of file af_compensationdelay.c.
Definition at line 60 of file af_compensationdelay.c.
#define COMP_DELAY_SOUND_SPEED_CM_S | ( | temp | ) | (COMP_DELAY_SOUND_SPEED_KM_H(temp) * (1000.0 * 100.0) /* cm/km */ / (60.0 * 60.0) /* s/h */) |
Definition at line 61 of file af_compensationdelay.c.
#define COMP_DELAY_SOUND_FRONT_DELAY | ( | temp | ) | (1.0 / COMP_DELAY_SOUND_SPEED_CM_S(temp)) |
Definition at line 62 of file af_compensationdelay.c.
#define COMP_DELAY_MAX_DELAY (COMP_DELAY_MAX_DISTANCE * COMP_DELAY_SOUND_FRONT_DELAY(50)) |
Definition at line 64 of file af_compensationdelay.c.
AVFILTER_DEFINE_CLASS | ( | compensationdelay | ) |
|
static |
Definition at line 66 of file af_compensationdelay.c.
|
static |
Definition at line 87 of file af_compensationdelay.c.
|
static |
Definition at line 136 of file af_compensationdelay.c.
|
static |
Definition at line 153 of file af_compensationdelay.c.
|
static |
Definition at line 45 of file af_compensationdelay.c.
|
static |
Definition at line 160 of file af_compensationdelay.c.
const AVFilter ff_af_compensationdelay |
Definition at line 169 of file af_compensationdelay.c.