|
FFmpeg
|
#include "libavutil/avassert.h"#include "libavutil/channel_layout.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/tx.h"#include "avfilter.h"#include "audio.h"#include "filters.h"#include "formats.h"#include "window_func.h"Go to the source code of this file.
Data Structures | |
| struct | AudioSurroundContext |
Macros | |
| #define | MIN_MAG_SUM 0.00000001f |
| #define | TRANSFORM |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
| #define | TFLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
Enumerations | |
| enum | SurroundChannel { SC_FL , SC_FR , SC_FC , SC_LF , SC_BL , SC_BR , SC_BC , SC_SL , SC_SR , SC_NB } |
Functions | |
| static int | query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| static void | set_input_levels (AVFilterContext *ctx) |
| static void | set_output_levels (AVFilterContext *ctx) |
| static int | config_input (AVFilterLink *inlink) |
| static int | config_output (AVFilterLink *outlink) |
| static float | sqrf (float x) |
| static float | r_distance (float a) |
| static void | angle_transform (float *x, float *y, float angle) |
| static void | focus_transform (float *x, float *y, float focus) |
| static void | stereo_position (float a, float p, float *x, float *y) |
| static void | get_lfe (int output_lfe, int n, float lowcut, float highcut, float *lfe_mag, float c_mag, float *mag_total, int lfe_mode) |
| static void | calculate_factors (AVFilterContext *ctx, int ch, int chan) |
| static void | do_transform (AVFilterContext *ctx, int ch) |
| static void | stereo_copy (AVFilterContext *ctx, int ch, int chan) |
| static void | stereo_upmix (AVFilterContext *ctx, int ch) |
| static void | l2_1_upmix (AVFilterContext *ctx, int ch) |
| static void | surround_upmix (AVFilterContext *ctx, int ch) |
| static void | upmix_7_1_5_0_side (AVFilterContext *ctx, float c_re, float c_im, float mag_totall, float mag_totalr, float fl_phase, float fr_phase, float bl_phase, float br_phase, float sl_phase, float sr_phase, float xl, float yl, float xr, float yr, int n) |
| static void | upmix_7_1_5_1 (AVFilterContext *ctx, float c_re, float c_im, float lfe_re, float lfe_im, float mag_totall, float mag_totalr, float fl_phase, float fr_phase, float bl_phase, float br_phase, float sl_phase, float sr_phase, float xl, float yl, float xr, float yr, int n) |
| static void | filter_stereo (AVFilterContext *ctx) |
| static void | filter_2_1 (AVFilterContext *ctx) |
| static void | filter_surround (AVFilterContext *ctx) |
| static void | filter_5_0_side (AVFilterContext *ctx) |
| static void | filter_5_1_side (AVFilterContext *ctx) |
| static void | filter_5_1_back (AVFilterContext *ctx) |
| static void | allchannels_spread (AVFilterContext *ctx) |
| static av_cold int | init (AVFilterContext *ctx) |
| static int | fft_channel (AVFilterContext *ctx, AVFrame *in, int ch) |
| static int | fft_channels (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| static int | ifft_channel (AVFilterContext *ctx, AVFrame *out, int ch) |
| static int | ifft_channels (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
| static int | activate (AVFilterContext *ctx) |
| static av_cold void | uninit (AVFilterContext *ctx) |
| static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
| AVFILTER_DEFINE_CLASS (surround) | |
Variables | |
| static const int | ch_map [SC_NB] |
| static const int | sc_map [16] |
| static const AVOption | surround_options [] |
| static const AVFilterPad | inputs [] |
| static const AVFilterPad | outputs [] |
| const FFFilter | ff_af_surround |
| #define MIN_MAG_SUM 0.00000001f |
Definition at line 326 of file af_surround.c.
Referenced by filter_2_1(), filter_5_0_side(), filter_5_1_back(), filter_5_1_side(), filter_stereo(), and filter_surround().
| #define TRANSFORM |
Definition at line 389 of file af_surround.c.
Referenced by do_transform().
| #define OFFSET | ( | x | ) |
Definition at line 1435 of file af_surround.c.
| #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 1436 of file af_surround.c.
Definition at line 1437 of file af_surround.c.
| enum SurroundChannel |
| Enumerator | |
|---|---|
| SC_FL | |
| SC_FR | |
| SC_FC | |
| SC_LF | |
| SC_BL | |
| SC_BR | |
| SC_BC | |
| SC_SL | |
| SC_SR | |
| SC_NB | |
Definition at line 32 of file af_surround.c.
|
static |
Definition at line 149 of file af_surround.c.
|
static |
Definition at line 187 of file af_surround.c.
Referenced by config_input(), and process_command().
|
static |
Definition at line 202 of file af_surround.c.
Referenced by config_output(), and process_command().
|
static |
Definition at line 217 of file af_surround.c.
|
static |
Definition at line 261 of file af_surround.c.
Definition at line 316 of file af_surround.c.
Referenced by r_distance().
Definition at line 321 of file af_surround.c.
Referenced by angle_transform(), and focus_transform().
Definition at line 328 of file af_surround.c.
Referenced by filter_2_1(), filter_stereo(), and filter_surround().
Definition at line 352 of file af_surround.c.
Referenced by filter_2_1(), filter_stereo(), and filter_surround().
Definition at line 368 of file af_surround.c.
Referenced by filter_2_1(), filter_5_0_side(), filter_5_1_back(), filter_5_1_side(), filter_stereo(), and filter_surround().
|
inlinestatic |
Definition at line 376 of file af_surround.c.
Referenced by filter_stereo(), filter_surround(), and upmix_7_1_5_0_side().
|
static |
Definition at line 393 of file af_surround.c.
Referenced by l2_1_upmix(), stereo_upmix(), and surround_upmix().
|
static |
Definition at line 447 of file af_surround.c.
Referenced by l2_1_upmix(), stereo_upmix(), and surround_upmix().
|
static |
Definition at line 476 of file af_surround.c.
Referenced by stereo_upmix(), and surround_upmix().
|
static |
Definition at line 530 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 542 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 611 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 630 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 690 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 746 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 801 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 858 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 915 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 973 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 1033 of file af_surround.c.
Referenced by init().
|
static |
Definition at line 1093 of file af_surround.c.
Referenced by init(), and process_command().
|
static |
Definition at line 1107 of file af_surround.c.
|
static |
Definition at line 1239 of file af_surround.c.
Referenced by fft_channels().
|
static |
Definition at line 1261 of file af_surround.c.
Referenced by filter_frame().
|
static |
Definition at line 1273 of file af_surround.c.
Referenced by ifft_channels().
|
static |
Definition at line 1301 of file af_surround.c.
Referenced by filter_frame().
|
static |
Definition at line 1317 of file af_surround.c.
Referenced by activate().
|
static |
Definition at line 1345 of file af_surround.c.
|
static |
Definition at line 1380 of file af_surround.c.
|
static |
Definition at line 1416 of file af_surround.c.
| AVFILTER_DEFINE_CLASS | ( | surround | ) |
|
static |
Definition at line 37 of file af_surround.c.
Referenced by set_input_levels(), set_output_levels(), swri_audio_convert_alloc(), and write_frame().
|
static |
Definition at line 49 of file af_surround.c.
Referenced by calculate_factors().
|
static |
Definition at line 1439 of file af_surround.c.
|
static |
Definition at line 1497 of file af_surround.c.
|
static |
Definition at line 1505 of file af_surround.c.
| const FFFilter ff_af_surround |
Definition at line 1513 of file af_surround.c.