FFmpeg
4.0
|
#include <math.h>
#include <mysofa.h>
#include "libavcodec/avfft.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/intmath.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"
Go to the source code of this file.
Data Structures | |
struct | MySofa |
struct | VirtualSpeaker |
struct | SOFAlizerContext |
struct | ThreadData |
Macros | |
#define | TIME_DOMAIN 0 |
#define | FREQUENCY_DOMAIN 1 |
#define | OFFSET(x) offsetof(SOFAlizerContext, x) |
#define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
static int | close_sofa (struct MySofa *sofa) |
static int | preload_sofa (AVFilterContext *ctx, char *filename, int *samplingrate) |
static int | parse_channel_name (char **arg, int *rchannel, char *buf) |
static void | parse_speaker_pos (AVFilterContext *ctx, int64_t in_channel_layout) |
static int | get_speaker_pos (AVFilterContext *ctx, float *speaker_azim, float *speaker_elev) |
static int | sofalizer_convolute (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
static int | sofalizer_fast_convolute (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | query_formats (AVFilterContext *ctx) |
static int | load_data (AVFilterContext *ctx, int azim, int elev, float radius, int sample_rate) |
static av_cold int | init (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static av_cold void | uninit (AVFilterContext *ctx) |
AVFILTER_DEFINE_CLASS (sofalizer) | |
Variables | |
static const AVOption | sofalizer_options [] |
static const AVFilterPad | inputs [] |
static const AVFilterPad | outputs [] |
AVFilter | ff_af_sofalizer |
#define TIME_DOMAIN 0 |
Definition at line 41 of file af_sofalizer.c.
Referenced by filter_frame(), and load_data().
#define FREQUENCY_DOMAIN 1 |
Definition at line 42 of file af_sofalizer.c.
Referenced by config_input(), and load_data().
#define OFFSET | ( | x | ) | offsetof(SOFAlizerContext, x) |
Definition at line 866 of file af_sofalizer.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 867 of file af_sofalizer.c.
Definition at line 104 of file af_sofalizer.c.
Referenced by uninit().
|
static |
Definition at line 112 of file af_sofalizer.c.
Referenced by init().
Definition at line 133 of file af_sofalizer.c.
Referenced by parse_speaker_pos().
|
static |
Definition at line 158 of file af_sofalizer.c.
Referenced by get_speaker_pos().
|
static |
Definition at line 191 of file af_sofalizer.c.
Referenced by load_data().
|
static |
Definition at line 277 of file af_sofalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 363 of file af_sofalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 481 of file af_sofalizer.c.
|
static |
Definition at line 519 of file af_sofalizer.c.
|
static |
Definition at line 557 of file af_sofalizer.c.
Referenced by config_input().
|
static |
Definition at line 782 of file af_sofalizer.c.
|
static |
Definition at line 813 of file af_sofalizer.c.
|
static |
Definition at line 840 of file af_sofalizer.c.
AVFILTER_DEFINE_CLASS | ( | sofalizer | ) |
|
static |
Definition at line 869 of file af_sofalizer.c.
|
static |
Definition at line 885 of file af_sofalizer.c.
|
static |
Definition at line 895 of file af_sofalizer.c.
AVFilter ff_af_sofalizer |
Definition at line 903 of file af_sofalizer.c.