FFmpeg
|
#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 | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM |
Enumerations | |
enum | SilenceMode { SILENCE_TRIM, SILENCE_TRIM_FLUSH, SILENCE_COPY, SILENCE_COPY_FLUSH, SILENCE_STOP } |
Functions | |
AVFILTER_DEFINE_CLASS (silenceremove) | |
static av_cold int | init (AVFilterContext *ctx) |
static void | clear_rms (SilenceRemoveContext *s) |
static int | config_input (AVFilterLink *inlink) |
static int | config_output (AVFilterLink *outlink) |
static double | compute_rms (SilenceRemoveContext *s, double sample) |
static void | update_rms (SilenceRemoveContext *s, double sample) |
static void | flush (AVFrame *out, AVFilterLink *outlink, int *nb_samples_written, int *ret) |
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 75 of file af_silenceremove.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 76 of file af_silenceremove.c.
enum SilenceMode |
Enumerator | |
---|---|
SILENCE_TRIM | |
SILENCE_TRIM_FLUSH | |
SILENCE_COPY | |
SILENCE_COPY_FLUSH | |
SILENCE_STOP |
Definition at line 33 of file af_silenceremove.c.
AVFILTER_DEFINE_CLASS | ( | silenceremove | ) |
|
static |
Definition at line 90 of file af_silenceremove.c.
|
static |
Definition at line 102 of file af_silenceremove.c.
Referenced by config_input(), and filter_frame().
|
static |
Definition at line 111 of file af_silenceremove.c.
|
static |
Definition at line 156 of file af_silenceremove.c.
|
static |
Definition at line 163 of file af_silenceremove.c.
Referenced by filter_frame().
|
static |
Definition at line 174 of file af_silenceremove.c.
Referenced by filter_frame().
|
static |
Definition at line 185 of file af_silenceremove.c.
Referenced by filter_frame().
|
static |
Definition at line 197 of file af_silenceremove.c.
|
static |
Definition at line 388 of file af_silenceremove.c.
|
static |
Definition at line 414 of file af_silenceremove.c.
|
static |
Definition at line 443 of file af_silenceremove.c.
|
static |
Definition at line 77 of file af_silenceremove.c.
|
static |
Definition at line 452 of file af_silenceremove.c.
|
static |
Definition at line 462 of file af_silenceremove.c.
AVFilter ff_af_silenceremove |
Definition at line 472 of file af_silenceremove.c.