FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
avf_showspectrum.c File Reference

audio to spectrum (video) transmedia filter, based on ffplay rdft showmode (by Michael Niedermayer) and lavfi/avf_showwaves (by Stefano Sabatini). More...

#include <math.h>
#include "libavcodec/avfft.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  ShowSpectrumContext
 

Macros

#define OFFSET(x)   offsetof(ShowSpectrumContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 
#define RE(y, ch)   showspectrum->rdft_data[ch][2 * y + 0]
 
#define IM(y, ch)   showspectrum->rdft_data[ch][2 * y + 1]
 
#define MAGNITUDE(y, ch)   hypot(RE(y, ch), IM(y, ch))
 

Enumerations

enum  DisplayMode { COMBINED, SEPARATE, NB_MODES }
 
enum  DisplayScale {
  LINEAR, SQRT, CBRT, LOG,
  NB_SCALES
}
 
enum  ColorMode {
  CHANNEL, INTENSITY, NB_CLMODES, COLOR_MODE_NONE = -1,
  COLOR_MODE_BT709, COLOR_MODE_FCC, COLOR_MODE_BT601, COLOR_MODE_SMPTE240M,
  COLOR_MODE_COUNT
}
 

Functions

 AVFILTER_DEFINE_CLASS (showspectrum)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int push_frame (AVFilterLink *outlink)
 
static int request_frame (AVFilterLink *outlink)
 
static int plot_spectrum_column (AVFilterLink *inlink, AVFrame *insamples, int nb_samples)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *insamples)
 

Variables

static const AVOption showspectrum_options []
 
struct {
   float   a
 
   float   y
 
   float   u
 
   float   v
 
intensity_color_table []
 
static const AVFilterPad showspectrum_inputs []
 
static const AVFilterPad showspectrum_outputs []
 
AVFilter avfilter_avf_showspectrum
 

Detailed Description

audio to spectrum (video) transmedia filter, based on ffplay rdft showmode (by Michael Niedermayer) and lavfi/avf_showwaves (by Stefano Sabatini).

Definition in file avf_showspectrum.c.

Macro Definition Documentation

#define OFFSET (   x)    offsetof(ShowSpectrumContext, x)

Definition at line 63 of file avf_showspectrum.c.

Definition at line 64 of file avf_showspectrum.c.

#define RE (   y,
  ch 
)    showspectrum->rdft_data[ch][2 * y + 0]
#define IM (   y,
  ch 
)    showspectrum->rdft_data[ch][2 * y + 1]
#define MAGNITUDE (   y,
  ch 
)    hypot(RE(y, ch), IM(y, ch))

Referenced by plot_spectrum_column().

Enumeration Type Documentation

Enumerator:
COMBINED 
SEPARATE 
NB_MODES 

Definition at line 37 of file avf_showspectrum.c.

Enumerator:
LINEAR 
SQRT 
CBRT 
LOG 
NB_SCALES 

Definition at line 38 of file avf_showspectrum.c.

enum ColorMode
Enumerator:
CHANNEL 
INTENSITY 
NB_CLMODES 
COLOR_MODE_NONE 
COLOR_MODE_BT709 
COLOR_MODE_FCC 
COLOR_MODE_BT601 
COLOR_MODE_SMPTE240M 
COLOR_MODE_COUNT 

Definition at line 39 of file avf_showspectrum.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( showspectrum  )
static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 100 of file avf_showspectrum.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 114 of file avf_showspectrum.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 148 of file avf_showspectrum.c.

static int push_frame ( AVFilterLink outlink)
inlinestatic

Definition at line 233 of file avf_showspectrum.c.

Referenced by plot_spectrum_column(), and request_frame().

static int request_frame ( AVFilterLink outlink)
static

Definition at line 246 of file avf_showspectrum.c.

static int plot_spectrum_column ( AVFilterLink inlink,
AVFrame insamples,
int  nb_samples 
)
static

Definition at line 262 of file avf_showspectrum.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 455 of file avf_showspectrum.c.

Variable Documentation

const AVOption showspectrum_options[]
static
Initial value:
= {
{ "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x512"}, 0, 0, FLAGS },
{ "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x512"}, 0, 0, FLAGS },
{ "slide", "set sliding mode", OFFSET(sliding), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, FLAGS },
{ "mode", "set channel display mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=COMBINED}, COMBINED, NB_MODES-1, FLAGS, "mode" },
{ "combined", "combined mode", 0, AV_OPT_TYPE_CONST, {.i64=COMBINED}, 0, 0, FLAGS, "mode" },
{ "separate", "separate mode", 0, AV_OPT_TYPE_CONST, {.i64=SEPARATE}, 0, 0, FLAGS, "mode" },
{ "color", "set channel coloring", OFFSET(color_mode), AV_OPT_TYPE_INT, {.i64=CHANNEL}, CHANNEL, NB_CLMODES-1, FLAGS, "color" },
{ "channel", "separate color for each channel", 0, AV_OPT_TYPE_CONST, {.i64=CHANNEL}, 0, 0, FLAGS, "color" },
{ "intensity", "intensity based coloring", 0, AV_OPT_TYPE_CONST, {.i64=INTENSITY}, 0, 0, FLAGS, "color" },
{ "scale", "set display scale", OFFSET(scale), AV_OPT_TYPE_INT, {.i64=SQRT}, LINEAR, NB_SCALES-1, FLAGS, "scale" },
{ "sqrt", "square root", 0, AV_OPT_TYPE_CONST, {.i64=SQRT}, 0, 0, FLAGS, "scale" },
{ "cbrt", "cubic root", 0, AV_OPT_TYPE_CONST, {.i64=CBRT}, 0, 0, FLAGS, "scale" },
{ "log", "logarithmic", 0, AV_OPT_TYPE_CONST, {.i64=LOG}, 0, 0, FLAGS, "scale" },
{ "lin", "linear", 0, AV_OPT_TYPE_CONST, {.i64=LINEAR}, 0, 0, FLAGS, "scale" },
{ "saturation", "color saturation multiplier", OFFSET(saturation), AV_OPT_TYPE_FLOAT, {.dbl = 1}, -10, 10, FLAGS },
{ NULL },
}

Definition at line 66 of file avf_showspectrum.c.

float a

Definition at line 88 of file avf_showspectrum.c.

float y
Examples:
doc/examples/decoding_encoding.c, doc/examples/filtering_video.c, doc/examples/muxing.c, and doc/examples/scaling_video.c.

Definition at line 88 of file avf_showspectrum.c.

Referenced by a64multi_encode_frame(), add_block(), add_dc(), add_rect_clamped_c(), add_yblock(), aic_decode_frame(), amp_test(), apply_delogo(), apply_ir_filter(), apply_loop_filter(), apply_lut(), apply_unsharp(), aura_decode_frame(), av_picture_pad(), av_rc4_crypt(), av_rc4_init(), av_timegm(), avfilter_transform(), avpriv_color_frame(), avs_decode_frame(), avs_set_fps(), avui_decode_frame(), bitline2chunky(), bitplanar2chunky(), bitplane_decoding(), blend_pixel(), blend_subrect(), blur(), blur_image(), build_abs_diff_mask(), build_basis(), build_diff_map(), build_filter(), C_JPEG_TO_CCIR(), calc_combed_score(), calc_diffs(), calculate_display_rect(), calculate_visual_weight(), cbp_test(), cdg_border_preset(), cdg_copy_rect_buf(), cdg_fill_rect_preset(), cdg_scroll(), cdg_tile_block(), cdxl_decode_ham6(), cdxl_decode_ham8(), cinepak_decode_vectors(), cinvideo_decode_frame(), cmv_decode_inter(), codeblock(), color_correlation(), color_decorrelation(), compare_fields(), compare_sl(), compose2D(), compute_metric(), config_input(), config_video_output(), context_init(), convert_mask_to_strength_mask(), copy_frame(), copy_rectangle(), copy_superblock(), correlate(), correlate_slice_buffered(), count_colors(), cpia_decode_frame(), create_cel_evals(), dc_test(), dct_block(), decode(), decode_0(), decode_13(), decode_555(), decode_blocks(), decode_cblk(), decode_cell_data(), decode_clnpass(), decode_colskip(), decode_decorrelation_matrix(), decode_deep_rle32(), decode_deep_tvdc32(), decode_frame(), decode_hybrid(), decode_i2_frame(), decode_i_frame(), decode_init_static(), decode_intra4x4_modes(), decode_mb_coeffs(), decode_mb_info(), decode_mvc1(), decode_mvc2(), decode_p_frame(), decode_plane(), decode_refpass(), decode_rgb8(), decode_rgb_frame(), decode_rgbn(), decode_rle(), decode_rowskip(), decode_sgirle8(), decode_sigpass(), decode_slice(), decode_subband_slice_buffered(), decode_subframe(), decode_var_block_data(), decode_wdlt(), decompose2D(), decorrelate(), DEFINE_BLEND(), deInterlaceMedian_TMPL(), denoise_depth(), denoise_spatial(), denoise_temporal(), dequantize(), dequantize_slice_buffered(), dering_TMPL(), diff_pixels_mvi(), diff_planes(), dirac_decode_frame_internal(), dirac_hpel_filter(), dirac_unpack_block_motion_data(), display_frame(), distance(), dnxhd_decode_macroblocks(), dnxhd_encode_fast(), dnxhd_encode_rdo(), dnxhd_find_qscale(), dnxhd_mb_var_thread(), do_a_deblock_C(), doHorizDefFilter_C(), doHorizLowPass_C(), draw_dc(), draw_frame(), draw_glyph(), draw_glyphs(), draw_line(), draw_mandelbrot(), draw_n_color(), draw_slice(), draw_text(), dv_calc_mb_coordinates(), dv_decode_video_segment(), dvb_encode_rle2(), dvb_encode_rle4(), dvb_encode_rle8(), dvbsub_parse_clut_segment(), dvd_encode_rle(), dx2_decode_slice(), dxt1_decode_pixels(), encode_422_bitstream(), encode_block(), encode_blocks(), encode_cblk(), encode_clnpass(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_picture(), encode_picture_lossless(), encode_plane(), encode_refpass(), encode_rgb48_10bit(), encode_rgb_frame(), encode_sigpass(), encode_slice(), encode_subband_c0run(), encode_tile(), enlarge_roq_mb4(), escape130_decode_frame(), estimate_sid_gain(), eval_motion_dist(), extract_from_packed(), ff_blend_mask(), ff_blend_rectangle(), ff_brktimegm(), ff_calculate_bounding_box(), ff_copy_rectangle2(), ff_emulated_edge_mc(), ff_er_frame_end(), ff_fill_rectangle(), ff_fix_long_mvs(), ff_fix_long_p_mvs(), ff_get_best_fcode(), ff_gmc_c(), ff_h263_pred_acdc(), ff_h263_pred_dc(), ff_h264_alloc_tables(), ff_ivi_dc_col_slant(), ff_ivi_dc_haar_2d(), ff_ivi_dc_row_slant(), ff_ivi_dc_slant_2d(), ff_ivi_put_dc_pixel_8x8(), ff_ivi_put_pixels_8x8(), ff_ivi_recompose53(), ff_ivi_recompose_haar(), ff_jpeg2000_set_significance(), ff_mpeg4_encode_mb(), ff_print_debug_info2(), ff_rgb24toyv12_c(), ff_rm_parse_packet(), ff_rm_reorder_sipr_data(), ff_rtjpeg_decode_frame_yuv420(), ff_set_fixed_vector(), ff_snow_inner_add_yblock(), ff_snow_pred_block(), ff_spatial_idwt(), ff_spatial_idwt2(), ff_vf_mpi_clear(), ff_vp56_decode_mbs(), ff_vp6_filter_diag4_c(), fill_block(), fill_border(), fill_buf(), fill_rectangle(), fill_yuv_image(), fillPlane(), fillPlane16(), filter(), filter181(), filter_frame(), filter_mb_dir(), filter_plane(), filter_slice(), find_block_motion(), find_motion(), find_quant_thread(), find_smallest_bounding_rectangle(), for(), freq_test(), full_search(), funny_diamond_search(), g2m_paint_cursor(), gen_image(), generate_half_size_image(), generate_joint_tables(), geq_filter_frame(), get_amv(), get_block_rd(), get_dc(), get_graph_color(), get_intra_count(), get_limits(), get_sae(), get_video_page_offset(), get_visual_weight(), getSSD(), gif_image_write_image(), gif_read_image(), global_mv(), h261_loop_filter(), h263_h_loop_filter_c(), h_block_filter(), halfpel_interpol(), hblur(), hex_search(), horizX1Filter(), huffman_decode(), idcin_decode_vlcs(), idct_block(), idct_mb(), idct_put(), ilpack(), init(), init_block_mapping(), init_context_frame(), init_mv_table(), init_obmc_weight(), initPv(), inter_predict(), interleave(), INTERPOLATE_METHOD(), intra_dc_prediction(), intra_pred_dc_128(), intra_pred_down_left(), intra_pred_down_right(), intra_pred_horiz(), intra_pred_lp(), intra_pred_lp_left(), intra_pred_lp_top(), intra_pred_plane(), intra_pred_vert(), intra_predict(), inverse_channel_transform(), ipvideo_decode_block_opcode_0x2(), ipvideo_decode_block_opcode_0x3(), ipvideo_decode_block_opcode_0x4(), ipvideo_decode_block_opcode_0x5(), ipvideo_decode_block_opcode_0x6_16(), ipvideo_decode_block_opcode_0x7(), ipvideo_decode_block_opcode_0x7_16(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0x8_16(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0x9_16(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xA_16(), ipvideo_decode_block_opcode_0xB(), ipvideo_decode_block_opcode_0xB_16(), ipvideo_decode_block_opcode_0xC(), ipvideo_decode_block_opcode_0xC_16(), ipvideo_decode_block_opcode_0xD(), ipvideo_decode_block_opcode_0xD_16(), ipvideo_decode_block_opcode_0xE(), ipvideo_decode_block_opcode_0xE_16(), ipvideo_decode_block_opcode_0xF(), ipvideo_decode_opcodes(), isHorizDC_C(), isVertDC_C(), iterative_me(), ivi_init_tiles(), ivi_output_plane(), ivi_process_empty_tile(), jpeg2000_decode_packets(), jpeg2000_decode_tile(), l2s_dia_search(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libopenjpeg_copyto16(), libopenjpeg_copyto8(), ljpeg_decode_yuv_scan(), lowdelay_subband(), luma_abs_diff(), main(), make_point(), matroska_parse_rm_audio(), mc_block(), mjpeg_decode_scan(), mm_decode_inter(), mm_decode_intra(), modplug_read_packet(), mp_build_rgb_yuv_table(), mp_decode_frame_helper(), mp_decode_line(), mp_read_changes_map(), mp_set_zero_yuv(), mpeg4_decode_sprite_trajectory(), MPV_motion_internal(), mss2_blit_wmv9_template(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), mv_test(), noise(), nsse16_c(), nsse8_c(), open_filter_param(), output_plane(), p8idct(), pack_nn_MMX(), paint_mouse_pointer(), parse_palette_segment(), parse_psfile(), pcx_decode_frame(), pcx_encode_frame(), pick_palette_entry(), planar2x_c(), planarCopyWrapper(), plot_spectrum_column(), postProcess_TMPL(), pp_postprocess(), pred16x16_tm_vp8_c(), pred4x4_tm_vp8_c(), pred8x8_tm_vp8_c(), pred8x8l_vertical(), predict_slice(), predict_slice_buffered(), pRNG(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), propagate_block_data(), ptx_decode_frame(), put_cursor(), put_dc(), put_image(), put_signed_rect_clamped_c(), quantize(), ratecontrol_1pass(), raw_decode(), read_rle_sgi(), read_uncompressed_sgi(), reconstruct_and_encode_image(), render_charset(), render_line(), render_slice(), resampleCubic(), resampleLinear(), reverse_dc_prediction(), revert_channel_correlation(), rgb24_to_yuv420p(), ring1_test(), ring2_test(), roqvideo_decode_frame(), sab_diamond_search(), seqvideo_decode(), skip_check(), small_diamond_search(), spatial_compensation_0(), spatial_compensation_1(), spatial_compensation_10(), spatial_compensation_11(), spatial_compensation_2(), spatial_compensation_3(), spatial_compensation_4(), spatial_compensation_5(), spatial_compensation_6(), spatial_compensation_7(), spatial_compensation_8(), spatial_compensation_9(), spatial_compose53i_dy(), spatial_compose53i_dy_buffered(), spatial_compose97i_dy(), spatial_compose97i_dy_buffered(), spatial_compose_daub97i_dy(), spatial_compose_dd137i_dy(), spatial_compose_dd97i_dy(), spatial_compose_dirac53i_dy(), spatial_compose_fidelity(), spatial_compose_haari_dy(), spatial_decompose53i(), spatial_decompose97i(), sse(), ssim_4x4x2_core(), ssim_plane(), store_slice_c(), sub2video_copy_rect(), subtitle_thread(), sunrast_decode_frame(), sunrast_image_write_image(), super2xsai(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_frame(), svq1_decode_motion_vector(), svq1_encode_plane(), svq3_mc_dir(), svq3_mc_dir_part(), sws_scale(), targa_decode_rle(), targa_encode_rle(), tempNoiseReducer_TMPL(), test_motion(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), tm2_decode_blocks(), tmv_decode_frame(), to_meta_with_crop(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), txd_decode_frame(), ulti_decode_frame(), umh_search(), unpack_coeffs(), update_context(), utvideo_encode_frame(), uyvytoyuv420_c(), uyvytoyuv420_TMPL(), uyvytoyuv422_c(), uyvytoyuv422_TMPL(), uyvytoyv12_c(), uyvytoyv12_TMPL(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vaapi_vc1_start_frame(), var_diamond_search(), vb_decode_framedata(), vcr1_decode_frame(), video_audio_display(), video_encode_example(), vis_420P_ARGB32(), vis_422P_ARGB32(), vp3_draw_horiz_band(), vp6_block_variance(), vp6_filter_hv4(), vp8_decode_mb_row_no_filter(), vqa_decode_chunk(), vsad16_c(), vsse16_c(), vu9_to_vu12_c(), vu9_to_vu12_TMPL(), xan_wc3_decode_frame(), xget_zpixmap(), xsub_encode_rle(), xv_write_packet(), xyz12Torgb48(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yop_decode_frame(), yuv420_bgr24_TMPL(), yuv420_bgr32_TMPL(), yuv420_rgb15_TMPL(), yuv420_rgb16_TMPL(), yuv420_rgb24_TMPL(), yuv420_rgb32_TMPL(), yuv4_decode_frame(), yuv4_encode_frame(), yuv_a_to_rgba(), yuvPlanartouyvy_c(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_c(), yuvPlanartoyuy2_TMPL(), yuy2toyv12_c(), yuy2toyv12_TMPL(), yuyvtoyuv420_c(), yuyvtoyuv420_TMPL(), yuyvtoyuv422_c(), yuyvtoyuv422_TMPL(), yv12touyvy_unscaled_altivec(), yv12toyuy2_unscaled_altivec(), yvu9_to_yuy2_c(), yvu9_to_yuy2_TMPL(), zero12v_decode_frame(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), zmbv_decode_xor_8(), and zmbv_me().

float u

Definition at line 88 of file avf_showspectrum.c.

Referenced by adpcm_compress_trellis(), adpcm_decode_frame(), avui_decode_frame(), aw_pulse_set2(), blend_subrect(), build_diff_map(), build_huff(), calc_combed_score(), calculate_codes(), cinepak_decode_codebook(), cpia_decode_frame(), dca_downmix(), decode_frame(), decode_mb_mode(), decode_subband_slice_buffered(), dv_decode_ac(), dxt1_decode_pixels(), encode_422_bitstream(), encode_frame(), ff_h264_decode_picture_parameter_set(), ff_print_debug_info2(), ff_rtjpeg_decode_frame_yuv420(), ff_yuv2rgb_c_init_tables(), filter_frame(), frame_block_to_cell(), generate_joint_tables(), get_bits(), get_s16l(), getutime(), hl_decode_mb_predict_luma(), hls_read_header(), ilpack(), initPv(), intra_predict(), lcg_random(), model256_update(), model2_update(), model_update(), motionpixels_tableinit(), mp_build_rgb_yuv_table(), mp_set_zero_yuv(), mp_yuv_to_rgb(), mss2_blit_wmv9_template(), plot_spectrum_column(), pow_m1_4(), print_option(), process_chrominance(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), resampleCubic(), resampleLinear(), reverse_dc_prediction(), rgb16_32ToUV_c_template(), rso_write_header(), rv34_pred_4x4_block(), rv40_weak_loop_filter(), sign_extend(), ssd_int8_vs_int16_altivec(), subtitle_thread(), svq3_decode_mb(), sws_scale(), tm2_decode_blocks(), uninit_options(), utvideo_encode_frame(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), wv_get_value_float(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yuv2nv12cX_c(), yuv4_decode_frame(), yuv4_encode_frame(), and zero12v_decode_frame().

float v
Examples:
doc/examples/muxing.c.

Definition at line 88 of file avf_showspectrum.c.

Referenced by ac3_extract_exponents_c(), ac3_max_msb_abs_int16_c(), ac3_tables_init(), add_wav(), add_yblock(), adpcm_decode_frame(), apply_channel_coupling(), audiogen(), av_adler32_update(), av_base64_decode(), av_cmp_i(), av_free(), AV_RB16(), AV_RB24(), AV_RB32(), AV_RB64(), AV_RL16(), AV_RL24(), AV_RL32(), AV_RL64(), av_shr_i(), av_tree_enumerate(), av_tree_find(), av_tree_insert(), av_xiphlacing(), avs_array_elt(), avs_new_value_array(), avs_new_value_bool(), avs_new_value_clip(), avs_new_value_error(), avs_new_value_float(), avs_new_value_int(), avs_new_value_string(), avui_decode_frame(), aw_pulse_set1(), bessel(), bink_decode_plane(), binkb_decode_plane(), blend_subrect(), bs_get_v(), build_xlaw_table(), calc_coefficients(), calc_combed_score(), categorize(), check_mv(), cinepak_decode_codebook(), clip_f15(), commit_bitstream_and_slice_buffer(), compute_affinity(), compute_scale_factors(), cpia_decode_frame(), create_lut(), dca_downmix(), dct_error(), decode2x2(), decode4x4(), decode8x8(), decode_block(), decode_channel(), decode_dds1(), decode_dsw1(), decode_exp_vlc(), decode_frame(), decode_init(), decode_init_static(), decode_mb(), decode_mv_component(), decode_mvc1(), decode_mvc2(), decode_rbsp_trailing(), decode_run_2bit(), decode_sgirle8(), decode_slice(), decode_spectrum_and_dequant(), decode_subband_slice_buffered(), decode_subframe(), decode_tsw1(), decode_vol_header(), decode_wdlt(), decode_wmv9(), decodeplane8(), decorrelate(), decouple_info(), dequant_lsp10i(), dequant_lsp10r(), dequant_lsp16i(), dequant_lsp16r(), dshow_add_device(), dshow_cycle_formats(), dvb_encode_rle2(), dvb_encode_rle4(), dxva2_vc1_decode_slice(), dxva2_vc1_end_frame(), dxva2_vc1_start_frame(), encode_422_bitstream(), encode_block(), encode_frame(), encode_picture_lossless(), encode_picture_ls(), encode_rgb_frame(), encode_subband_c0run(), escape_FF(), eval_expr(), evolve(), f_func(), ff_ac3_bit_alloc_calc_psd(), ff_acelp_interpolate(), ff_acelp_interpolatef(), ff_audio_mix_set_matrix(), ff_bgmc_decode(), ff_eac3_decode_transform_coeffs_aht_ch(), ff_gradfun_blur_line_c(), ff_h263_decode_mb(), ff_h263_decode_picture_header(), ff_h264_decode_picture_parameter_set(), ff_hex_to_data(), ff_j_rev_dct(), ff_j_rev_dct4(), ff_log2_16bit_c(), ff_log2_c(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_sos(), ff_mpa_synth_init_TMPL(), ff_mpeg4_decode_picture_header(), ff_print_AM_MEDIA_TYPE(), ff_print_debug_info2(), ff_rm_read_mdpr_codecdata(), ff_rtjpeg_decode_frame_yuv420(), ff_simple_idct_axp(), ff_snow_inner_add_yblock(), ff_srtp_decrypt(), ff_vorbis_comment(), fill16(), fill24(), fill32(), fill_picture_rgb(), fill_rectangle(), fill_slice(), fillPlane16(), filter(), filter_frame(), filter_line_c(), filter_line_c_16bit(), find_marker(), find_next_start_code(), flush_packet(), frame_block_to_cell(), g723_1_decode_frame(), gb_get_v(), get_amv(), get_audio_frame(), get_block_rd(), get_graph_color(), get_s(), get_s16l(), get_size(), get_sr_golomb(), get_sr_golomb_flac(), get_symbol2(), get_visual_weight(), get_vlc_symbol(), getsigctxno(), gif_image_write_header(), gif_image_write_image(), gif_read_header1(), h264_filter_mb_fast_internal(), h264_find_frame_end(), hls_read_header(), horizontal_compose_fidelityi(), horizX1Filter(), huffman_decode(), idcin_decode_vlcs(), idct(), idct248_error(), idct248_ref(), ilpack(), init_exp(), init_h263_dc_for_msmpeg4(), init_qexp(), init_uni_dc_tab(), initFilter(), initPv(), int_cos(), int_pow(), inverse(), isinf(), isnan(), iso_clip(), jpeg2000_decode_packet(), lcg_random(), lerp(), line_noise_c(), ljpeg_decode_yuv_scan(), load_matrix(), loco_get_rice(), lu_to_y(), main(), mirror(), mix_1_to_2_fltp_flt_c(), mjpeg_decode_scan(), mp3_parse_vbr_tags(), mp3_write_audio_packet(), mp_build_rgb_yuv_table(), mp_decode_layer1(), mp_decode_layer2(), mp_set_zero_yuv(), mp_yuv_to_rgb(), MPA_encode_init(), mpeg1_decode_sequence(), mpeg1_encode_sequence_header(), mpeg4_encode_dc(), mpeg4_is_resync(), mss2_blit_wmv9_template(), multiswap_inv_step(), multiswap_step(), mv_read_header(), nelly_decode_block(), normalize_samples(), nsse16_c(), nsse8_c(), nsv_resync(), pack_nn_MMX(), parse_dB(), parse_options(), parse_pcr(), parse_volume(), pcm_decode_frame(), pcm_encode_frame(), pcx_decode_frame(), pink_fill(), plot_spectrum_column(), pnm_decode_frame(), pow_m1_4(), pred4x4_horizontal_add(), pred4x4_vertical_add(), pred4x4_vertical_vp8_c(), pred8x8l_horizontal_add(), pred8x8l_vertical_add(), predict_slice(), predict_slice_buffered(), print_fps(), process_chrominance(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), put_vlc_symbol(), qmf_32_subbands(), quantize_mantissas_blk_ch(), radix_count(), radix_sort_pass(), read_and_decode_spectrum(), read_block_types(), read_colors(), read_data(), read_dcs(), read_extra_header(), read_header(), read_motion_values(), read_patterns(), read_quant_table(), read_runs(), recheck_discard_flags(), remove_wasted_bits(), resampleCubic(), resampleLinear(), rice_count_exact(), rv10_decode_packet(), rv10_write_header(), rv40_decode_intra_types(), sbr_qmf_synthesis(), set(), set_params(), set_sr_golomb(), set_sr_golomb_flac(), shuffle_bytes_2103_c(), shuffle_bytes_2103_TMPL(), sign_extend(), skip_check(), smk_get_code(), srt_probe(), subtitle_thread(), swf_read_packet(), swf_write_header(), swri_get_dither(), swri_rematrix(), sws_scale(), sym_quant(), tget_long(), tget_short(), tm2_decode_blocks(), tm2_read_deltas(), txd_decode_frame(), unpack_coeffs(), update_md5_sum(), update_vlc_state(), utvideo_encode_frame(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vaapi_vc1_decode_slice(), vaapi_vc1_start_frame(), var_read_float(), var_read_int(), vble_restore_plane(), vc1_pack_bitplanes(), vcr2_init_sequence(), vdpau_vc1_start_frame(), vertX1Filter_TMPL(), vorbis_floor1_decode(), vp56_rac_gets_nn(), vp5_adjust(), vp6_adjust(), vp8_rac_get_coeff(), vp8_rac_get_nn(), vp8_rac_get_sint(), wma_decode_block(), wma_lsp_to_curve(), wmv9_init(), wnv1_get_code(), worker(), write_extradata(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yuv2nv12cX_c(), yuv4_decode_frame(), yuv4_encode_frame(), and zero12v_decode_frame().

struct { ... } intensity_color_table[]
Initial value:
= {
{ 0, 0, 0, 0 },
{ 0.13, .03587126228984074, .1573300977624594, -.02548747583751842 },
{ 0.30, .18572281794568020, .1772436246393981, .17475554840414750 },
{ 0.60, .28184980583656130, -.1593064119945782, .47132074554608920 },
{ 0.73, .65830621175547810, -.3716070802232764, .24352759331252930 },
{ 0.78, .76318535758242900, -.4307467689263783, .16866496622310430 },
{ 0.91, .95336363636363640, -.2045454545454546, .03313636363636363 },
{ 1, 1, 0, 0 }
}

Referenced by plot_spectrum_column().

const AVFilterPad showspectrum_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 474 of file avf_showspectrum.c.

const AVFilterPad showspectrum_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
.request_frame = request_frame,
},
{ NULL }
}

Definition at line 483 of file avf_showspectrum.c.

AVFilter avfilter_avf_showspectrum
Initial value:
= {
.name = "showspectrum",
.description = NULL_IF_CONFIG_SMALL("Convert input audio to a spectrum video output."),
.uninit = uninit,
.query_formats = query_formats,
.priv_size = sizeof(ShowSpectrumContext),
.priv_class = &showspectrum_class,
}

Definition at line 493 of file avf_showspectrum.c.