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 "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 | 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 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 45 of file avf_showcqt.c.
Referenced by config_output(), plot_cqt(), and uninit().
#define VIDEO_HEIGHT 1080 |
Definition at line 46 of file avf_showcqt.c.
Referenced by config_output().
#define FONT_HEIGHT 32 |
Definition at line 47 of file avf_showcqt.c.
Referenced by plot_cqt().
#define SPECTOGRAM_HEIGHT ((VIDEO_HEIGHT-FONT_HEIGHT)/2) |
Definition at line 48 of file avf_showcqt.c.
Referenced by config_output(), and plot_cqt().
#define SPECTOGRAM_START (VIDEO_HEIGHT-SPECTOGRAM_HEIGHT) |
Definition at line 49 of file avf_showcqt.c.
Referenced by plot_cqt().
#define BASE_FREQ 20.051392800492 |
Definition at line 50 of file avf_showcqt.c.
Referenced by config_output().
#define COEFF_CLAMP 1.0e-4 |
Definition at line 51 of file avf_showcqt.c.
Referenced by config_output().
#define OFFSET | ( | x | ) | offsetof(ShowCQTContext, x) |
Definition at line 87 of file avf_showcqt.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 88 of file avf_showcqt.c.
AVFILTER_DEFINE_CLASS | ( | showcqt | ) |
|
static |
Definition at line 104 of file avf_showcqt.c.
|
static |
Definition at line 122 of file avf_showcqt.c.
|
inlinestatic |
Definition at line 249 of file avf_showcqt.c.
Referenced by config_output().
|
static |
Definition at line 257 of file avf_showcqt.c.
|
static |
Definition at line 416 of file avf_showcqt.c.
Referenced by filter_frame().
|
static |
Definition at line 592 of file avf_showcqt.c.
Referenced by request_frame().
|
static |
Definition at line 652 of file avf_showcqt.c.
|
static |
Definition at line 90 of file avf_showcqt.c.
|
static |
Definition at line 668 of file avf_showcqt.c.
|
static |
Definition at line 677 of file avf_showcqt.c.
AVFilter ff_avf_showcqt |
Definition at line 687 of file avf_showcqt.c.