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 | SilenceDetectContext |
Macros | |
#define | MAX_DURATION (24*3600*1000000LL) |
#define | OFFSET(x) offsetof(SilenceDetectContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM |
#define | SILENCE_DETECT(name, type) |
#define | SILENCE_DETECT_PLANAR(name, type) |
Functions | |
AVFILTER_DEFINE_CLASS (silencedetect) | |
static void | set_meta (AVFrame *insamples, int channel, const char *key, char *value) |
static av_always_inline void | update (SilenceDetectContext *s, AVFrame *insamples, int is_silence, int current_sample, int64_t nb_samples_notify, AVRational time_base) |
static int | config_input (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *insamples) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | silencedetect_options [] |
static const AVFilterPad | silencedetect_inputs [] |
static const AVFilterPad | silencedetect_outputs [] |
const AVFilter | ff_af_silencedetect |
Audio silence detector
Definition in file af_silencedetect.c.
#define MAX_DURATION (24*3600*1000000LL) |
Definition at line 53 of file af_silencedetect.c.
#define OFFSET | ( | x | ) | offsetof(SilenceDetectContext, x) |
Definition at line 54 of file af_silencedetect.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 55 of file af_silencedetect.c.
Definition at line 120 of file af_silencedetect.c.
Definition at line 134 of file af_silencedetect.c.
AVFILTER_DEFINE_CLASS | ( | silencedetect | ) |
Definition at line 68 of file af_silencedetect.c.
Referenced by update().
|
static |
Definition at line 78 of file af_silencedetect.c.
Referenced by adpcm_decode_frame(), estimate_pitch(), lsf2lsp_for_mode12k2(), ref_to_update(), and uninit().
|
static |
Definition at line 163 of file af_silencedetect.c.
|
static |
Definition at line 210 of file af_silencedetect.c.
|
static |
Definition at line 235 of file af_silencedetect.c.
|
static |
Definition at line 56 of file af_silencedetect.c.
|
static |
Definition at line 247 of file af_silencedetect.c.
|
static |
Definition at line 256 of file af_silencedetect.c.
const AVFilter ff_af_silencedetect |
Definition at line 263 of file af_silencedetect.c.