FFmpeg
|
#include "config.h"
#include "libavcodec/avfft.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavutil/xga_font_data.h"
#include "libavutil/qsort.h"
#include "libavutil/time.h"
#include "libavutil/eval.h"
#include "avfilter.h"
#include "internal.h"
#include <math.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | SparseCoeff |
struct | ShowCQTContext |
Macros | |
#define | VIDEO_WIDTH 1920 |
#define | VIDEO_HEIGHT 1080 |
#define | FONT_HEIGHT 32 |
#define | SPECTOGRAM_HEIGHT ((VIDEO_HEIGHT-FONT_HEIGHT)/2) |
#define | SPECTOGRAM_START (VIDEO_HEIGHT-SPECTOGRAM_HEIGHT) |
#define | BASE_FREQ 20.051392800492 |
#define | COEFF_CLAMP 1.0e-4 |
#define | TLENGTH_MIN 0.001 |
#define | TLENGTH_DEFAULT "384/f*tc/(384/f+tc)" |
#define | VOLUME_MIN 1e-10 |
#define | VOLUME_MAX 100.0 |
#define | FONTCOLOR_DEFAULT |
#define | OFFSET(x) offsetof(ShowCQTContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (showcqt) | |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static double | a_weighting (void *p, double f) |
static double | b_weighting (void *p, double f) |
static double | c_weighting (void *p, double f) |
static double | midi (void *p, double f) |
static double | r_func (void *p, double x) |
static double | g_func (void *p, double x) |
static double | b_func (void *p, double x) |
static int | qsort_sparsecoeff (const SparseCoeff *a, const SparseCoeff *b) |
static int | config_output (AVFilterLink *outlink) |
static int | plot_cqt (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *insamples) |
static int | request_frame (AVFilterLink *outlink) |
Variables | |
static const AVOption | showcqt_options [] |
static const AVFilterPad | showcqt_inputs [] |
static const AVFilterPad | showcqt_outputs [] |
AVFilter | ff_avf_showcqt |
#define VIDEO_WIDTH 1920 |
Definition at line 46 of file avf_showcqt.c.
Referenced by config_output(), plot_cqt(), and uninit().
#define VIDEO_HEIGHT 1080 |
Definition at line 47 of file avf_showcqt.c.
Referenced by config_output().
#define FONT_HEIGHT 32 |
Definition at line 48 of file avf_showcqt.c.
Referenced by plot_cqt().
#define SPECTOGRAM_HEIGHT ((VIDEO_HEIGHT-FONT_HEIGHT)/2) |
Definition at line 49 of file avf_showcqt.c.
Referenced by config_output(), and plot_cqt().
#define SPECTOGRAM_START (VIDEO_HEIGHT-SPECTOGRAM_HEIGHT) |
Definition at line 50 of file avf_showcqt.c.
Referenced by plot_cqt().
#define BASE_FREQ 20.051392800492 |
Definition at line 51 of file avf_showcqt.c.
Referenced by config_output().
#define COEFF_CLAMP 1.0e-4 |
Definition at line 52 of file avf_showcqt.c.
Referenced by config_output().
#define TLENGTH_MIN 0.001 |
Definition at line 53 of file avf_showcqt.c.
Referenced by config_output().
Definition at line 54 of file avf_showcqt.c.
#define VOLUME_MIN 1e-10 |
Definition at line 55 of file avf_showcqt.c.
Referenced by config_output().
#define VOLUME_MAX 100.0 |
Definition at line 56 of file avf_showcqt.c.
Referenced by config_output().
#define FONTCOLOR_DEFAULT |
Definition at line 57 of file avf_showcqt.c.
#define OFFSET | ( | x | ) | offsetof(ShowCQTContext, x) |
Definition at line 98 of file avf_showcqt.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 99 of file avf_showcqt.c.
AVFILTER_DEFINE_CLASS | ( | showcqt | ) |
|
static |
Definition at line 118 of file avf_showcqt.c.
|
static |
Definition at line 136 of file avf_showcqt.c.
|
static |
Definition at line 263 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 271 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 278 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 285 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 290 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 296 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 302 of file avf_showcqt.c.
Referenced by config_output().
|
inlinestatic |
Definition at line 308 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 316 of file avf_showcqt.c.
|
static |
Definition at line 528 of file avf_showcqt.c.
Referenced by filter_frame().
|
static |
Definition at line 736 of file avf_showcqt.c.
Referenced by request_frame().
|
static |
Definition at line 796 of file avf_showcqt.c.
|
static |
Definition at line 101 of file avf_showcqt.c.
|
static |
Definition at line 812 of file avf_showcqt.c.
|
static |
Definition at line 821 of file avf_showcqt.c.
AVFilter ff_avf_showcqt |
Definition at line 831 of file avf_showcqt.c.