FFmpeg
4.1.5
|
#include <float.h>
#include "libavutil/opt.h"
#include "libavutil/timestamp.h"
#include "audio.h"
#include "formats.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | SilenceRemoveContext |
Macros | |
#define | OFFSET(x) offsetof(SilenceRemoveContext, x) |
#define | AF AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM |
Enumerations | |
enum | SilenceDetect { D_PEAK, D_RMS } |
enum | ThresholdMode { T_ANY, T_ALL } |
enum | SilenceMode { SILENCE_TRIM, SILENCE_TRIM_FLUSH, SILENCE_COPY, SILENCE_COPY_FLUSH, SILENCE_STOP } |
Functions | |
AVFILTER_DEFINE_CLASS (silenceremove) | |
static double | compute_peak (SilenceRemoveContext *s, double sample) |
static void | update_peak (SilenceRemoveContext *s, double sample) |
static double | compute_rms (SilenceRemoveContext *s, double sample) |
static void | update_rms (SilenceRemoveContext *s, double sample) |
static av_cold int | init (AVFilterContext *ctx) |
static void | clear_window (SilenceRemoveContext *s) |
static int | config_input (AVFilterLink *inlink) |
static void | flush (SilenceRemoveContext *s, AVFrame *out, AVFilterLink *outlink, int *nb_samples_written, int *ret, int flush_silence) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | request_frame (AVFilterLink *outlink) |
static int | query_formats (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | silenceremove_options [] |
static const AVFilterPad | silenceremove_inputs [] |
static const AVFilterPad | silenceremove_outputs [] |
AVFilter | ff_af_silenceremove |
#define OFFSET | ( | x | ) | offsetof(SilenceRemoveContext, x) |
Definition at line 103 of file af_silenceremove.c.
Definition at line 104 of file af_silenceremove.c.
enum SilenceDetect |
Enumerator | |
---|---|
D_PEAK | |
D_RMS |
Definition at line 33 of file af_silenceremove.c.
enum ThresholdMode |
Enumerator | |
---|---|
T_ANY | |
T_ALL |
Definition at line 38 of file af_silenceremove.c.
enum SilenceMode |
Enumerator | |
---|---|
SILENCE_TRIM | |
SILENCE_TRIM_FLUSH | |
SILENCE_COPY | |
SILENCE_COPY_FLUSH | |
SILENCE_STOP |
Definition at line 43 of file af_silenceremove.c.
AVFILTER_DEFINE_CLASS | ( | silenceremove | ) |
|
static |
Definition at line 128 of file af_silenceremove.c.
Referenced by init().
|
static |
Definition at line 139 of file af_silenceremove.c.
Referenced by init().
|
static |
Definition at line 150 of file af_silenceremove.c.
Referenced by init().
|
static |
Definition at line 161 of file af_silenceremove.c.
Referenced by init().
|
static |
Definition at line 172 of file af_silenceremove.c.
|
static |
Definition at line 195 of file af_silenceremove.c.
Referenced by config_input(), and filter_frame().
|
static |
Definition at line 204 of file af_silenceremove.c.
|
static |
Definition at line 265 of file af_silenceremove.c.
Referenced by filter_frame().
|
static |
Definition at line 319 of file af_silenceremove.c.
|
static |
Definition at line 576 of file af_silenceremove.c.
|
static |
Definition at line 608 of file af_silenceremove.c.
|
static |
Definition at line 637 of file af_silenceremove.c.
|
static |
Definition at line 106 of file af_silenceremove.c.
|
static |
Definition at line 648 of file af_silenceremove.c.
|
static |
Definition at line 658 of file af_silenceremove.c.
AVFilter ff_af_silenceremove |
Definition at line 667 of file af_silenceremove.c.