Go to the source code of this file.
|
| enum | FrequencyScale {
FSCALE_LINEAR
, FSCALE_LOG
, FSCALE_BARK
, FSCALE_MEL
,
FSCALE_ERBS
, FSCALE_SQRT
, FSCALE_CBRT
, FSCALE_QDRT
,
FSCALE_FM
, NB_FSCALE
} |
| |
| enum | IntensityScale {
ISCALE_LOG
, ISCALE_LINEAR
, ISCALE_SQRT
, ISCALE_CBRT
,
ISCALE_QDRT
, NB_ISCALE
} |
| |
| enum | DirectionMode {
DIRECTION_LR
, DIRECTION_RL
, DIRECTION_UD
, DIRECTION_DU
,
NB_DIRECTION
} |
| |
| enum | SlideMode { SLIDE_REPLACE
, SLIDE_SCROLL
, SLIDE_FRAME
, NB_SLIDE
} |
| |
|
| | AVFILTER_DEFINE_CLASS (showcwt) |
| |
| static av_cold void | uninit (AVFilterContext *ctx) |
| |
| static int | query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| |
| static float | frequency_band (float *frequency_band, int frequency_band_count, float frequency_range, float frequency_offset, int frequency_scale, float deviation) |
| |
| static float | remap_log (ShowCWTContext *s, float value, int iscale, float log_factor) |
| |
| static int | run_channel_cwt_prepare (AVFilterContext *ctx, void *arg, int jobnr, int ch) |
| |
| static void | draw_bar (ShowCWTContext *s, int y, float Y, float U, float V) |
| |
| static int | draw (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| |
| static int | run_channel_cwt (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| |
| static int | compute_kernel (AVFilterContext *ctx) |
| |
| static int | config_output (AVFilterLink *outlink) |
| |
| static int | output_frame (AVFilterContext *ctx) |
| |
| static int | run_channels_cwt_prepare (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| |
| static int | activate (AVFilterContext *ctx) |
| |
◆ OFFSET
◆ FLAGS
◆ DRAW_BAR_COLOR
| #define DRAW_BAR_COLOR |
( |
| x | ) |
|
Value:do { \
dstY[x] = 0; \
dstU[x] = 128; \
dstV[x] = 128; \
} else { \
float mul = (
Y - ht) * bh[0]; \
} \
} while (0)
Definition at line 365 of file avf_showcwt.c.
Referenced by draw_bar().
◆ FrequencyScale
| Enumerator |
|---|
| FSCALE_LINEAR | |
| FSCALE_LOG | |
| FSCALE_BARK | |
| FSCALE_MEL | |
| FSCALE_ERBS | |
| FSCALE_SQRT | |
| FSCALE_CBRT | |
| FSCALE_QDRT | |
| FSCALE_FM | |
| NB_FSCALE | |
Definition at line 37 of file avf_showcwt.c.
◆ IntensityScale
| Enumerator |
|---|
| ISCALE_LOG | |
| ISCALE_LINEAR | |
| ISCALE_SQRT | |
| ISCALE_CBRT | |
| ISCALE_QDRT | |
| NB_ISCALE | |
Definition at line 50 of file avf_showcwt.c.
◆ DirectionMode
| Enumerator |
|---|
| DIRECTION_LR | |
| DIRECTION_RL | |
| DIRECTION_UD | |
| DIRECTION_DU | |
| NB_DIRECTION | |
Definition at line 59 of file avf_showcwt.c.
◆ SlideMode
| Enumerator |
|---|
| SLIDE_REPLACE | |
| SLIDE_SCROLL | |
| SLIDE_FRAME | |
| NB_SLIDE | |
Definition at line 67 of file avf_showcwt.c.
◆ AVFILTER_DEFINE_CLASS()
| AVFILTER_DEFINE_CLASS |
( |
showcwt | | ) |
|
◆ uninit()
◆ query_formats()
◆ frequency_band()
| static float frequency_band |
( |
float * | frequency_band, |
|
|
int | frequency_band_count, |
|
|
float | frequency_range, |
|
|
float | frequency_offset, |
|
|
int | frequency_scale, |
|
|
float | deviation ) |
|
static |
◆ remap_log()
◆ run_channel_cwt_prepare()
| static int run_channel_cwt_prepare |
( |
AVFilterContext * | ctx, |
|
|
void * | arg, |
|
|
int | jobnr, |
|
|
int | ch ) |
|
static |
◆ draw_bar()
◆ draw()
| static int draw |
( |
AVFilterContext * | ctx, |
|
|
void * | arg, |
|
|
int | jobnr, |
|
|
int | nb_jobs ) |
|
static |
Definition at line 440 of file avf_showcwt.c.
Referenced by calc_draw_region(), draw_line(), draw_text(), draw_text(), ff_blend_mask(), ff_blend_rectangle(), ff_copy_rectangle2(), ff_draw_color(), ff_draw_init(), ff_draw_init2(), ff_draw_init_from_link(), ff_draw_round_to_sub(), ff_draw_supported_pixel_formats(), ff_fill_rectangle(), main(), mss2_decode_frame(), output_frame(), pick_color16(), pick_color8(), pointer_at(), qrencodesrc_query_formats(), reverse_color16(), and reverse_color8().
◆ run_channel_cwt()
| static int run_channel_cwt |
( |
AVFilterContext * | ctx, |
|
|
void * | arg, |
|
|
int | jobnr, |
|
|
int | nb_jobs ) |
|
static |
◆ compute_kernel()
◆ config_output()
◆ output_frame()
◆ run_channels_cwt_prepare()
| static int run_channels_cwt_prepare |
( |
AVFilterContext * | ctx, |
|
|
void * | arg, |
|
|
int | jobnr, |
|
|
int | nb_jobs ) |
|
static |
◆ activate()
◆ showcwt_options
◆ showcwt_outputs
Initial value:= {
{
.name = "default",
},
}
static int config_output(AVBitStreamFilterLink *outlink)
Definition at line 1314 of file avf_showcwt.c.
◆ ff_avf_showcwt
Initial value:= {
.p.name = "showcwt",
.p.description =
NULL_IF_CONFIG_SMALL(
"Convert input audio to a CWT (Continuous Wavelet Transform) spectrum video output."),
.p.priv_class = &showcwt_class,
}
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
static const AVFilterPad showcwt_outputs[]
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_QUERY_FUNC2(func)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition at line 1322 of file avf_showcwt.c.