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)   s->rdft_data[ch][2 * y + 0]
 
#define IM(y, ch)   s->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
}
 
enum  WindowFunc {
  WFUNC_NONE, WFUNC_HANN, WFUNC_HAMMING, WFUNC_BLACKMAN,
  NB_WFUNC
}
 

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 ff_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 65 of file avf_showspectrum.c.

Definition at line 66 of file avf_showspectrum.c.

#define RE (   y,
  ch 
)    s->rdft_data[ch][2 * y + 0]
#define IM (   y,
  ch 
)    s->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.

enum WindowFunc
Enumerator:
WFUNC_NONE 
WFUNC_HANN 
WFUNC_HAMMING 
WFUNC_BLACKMAN 
NB_WFUNC 

Definition at line 40 of file avf_showspectrum.c.

Function Documentation

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

Definition at line 106 of file avf_showspectrum.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 120 of file avf_showspectrum.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 154 of file avf_showspectrum.c.

static int push_frame ( AVFilterLink outlink)
inlinestatic

Definition at line 258 of file avf_showspectrum.c.

Referenced by plot_spectrum_column(), and request_frame().

static int request_frame ( AVFilterLink outlink)
static

Definition at line 271 of file avf_showspectrum.c.

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

Definition at line 287 of file avf_showspectrum.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 480 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 },
{ "win_func", "set window function", OFFSET(win_func), AV_OPT_TYPE_INT, {.i64 = WFUNC_HANN}, 0, NB_WFUNC-1, FLAGS, "win_func" },
{ "hann", "Hann window", 0, AV_OPT_TYPE_CONST, {.i64 = WFUNC_HANN}, 0, 0, FLAGS, "win_func" },
{ "hamming", "Hamming window", 0, AV_OPT_TYPE_CONST, {.i64 = WFUNC_HAMMING}, 0, 0, FLAGS, "win_func" },
{ "blackman", "Blackman window", 0, AV_OPT_TYPE_CONST, {.i64 = WFUNC_BLACKMAN}, 0, 0, FLAGS, "win_func" },
{ NULL }
}

Definition at line 68 of file avf_showspectrum.c.

float a

Definition at line 94 of file avf_showspectrum.c.

float y
Examples:
avcodec.c, filtering_video.c, muxing.c, and scaling_video.c.

Definition at line 94 of file avf_showspectrum.c.

Referenced by a64multi_encode_frame(), add_block(), add_dc(), add_rect_clamped_c(), add_yblock(), aic_decode_frame(), alpha_inverse_prediction(), amp_test(), apply_color_indexing_transform(), apply_color_transform(), apply_delogo(), apply_ir_filter(), apply_loop_filter(), apply_obmc(), apply_predictor_transform(), apply_subtract_green_transform(), 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_skip_errors(), 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(), check_intra_mode(), choose_rct_params(), cinepak_decode_vectors(), cinvideo_decode_frame(), cmv_decode_inter(), codeblock(), color_correlation(), color_decorrelation(), compare_fields(), compare_sl(), compareMVrefidx(), compose2D(), compute_mb_distortion(), compute_metric(), config_input(), config_output(), config_video_output(), context_init(), convert_mask_to_strength_mask(), copy_frame(), copy_mb(), copy_processed_frame(), copy_rectangle(), copy_superblock(), correlate(), correlate_slice_buffered(), count_colors(), cpia_decode_frame(), create_cel_evals(), dc_127_16x16_c(), dc_127_32x32_c(), dc_127_8x8_c(), dc_128_16x16_c(), dc_128_32x32_c(), dc_128_8x8_c(), dc_129_16x16_c(), dc_129_32x32_c(), dc_129_8x8_c(), dc_16x16_c(), dc_32x32_c(), dc_8x8_c(), dc_left_16x16_c(), dc_left_32x32_c(), dc_left_8x8_c(), dc_test(), dc_top_16x16_c(), dc_top_32x32_c(), dc_top_8x8_c(), dct_block(), deblocking_filter_CTB(), decode(), decode_0(), decode_13(), decode_555(), decode_blocks(), decode_cblk(), decode_cell_data(), decode_clnpass(), decode_coeffs(), decode_colskip(), decode_decorrelation_matrix(), decode_deep_rle32(), decode_deep_tvdc32(), decode_entropy_coded_image(), decode_entropy_image(), decode_frame(), decode_hybrid(), decode_i2_frame(), decode_i_frame(), decode_init_static(), decode_intra4x4_modes(), decode_mb_coeffs(), decode_mb_info(), decode_mode(), 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_v4_vector(), decode_var_block_data(), decode_wdlt(), decompose2D(), decorrelate(), DEFINE_BLEND(), deinterlace_bottom_field(), deinterlace_bottom_field_inplace(), 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_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_410(), dx2_decode_slice_420(), dx2_decode_slice_444(), dx2_decode_slice_565(), dx2_decode_slice_rgb(), dxt1_decode_pixels(), encode_422_bitstream(), encode_block(), encode_blocks(), encode_cblk(), encode_clnpass(), encode_codebook(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_mode(), encode_picture(), 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_decode_frame(), ff_h263_pred_acdc(), ff_h263_pred_dc(), ff_h264_alloc_tables(), ff_hevc_decode_nal_pps(), ff_hevc_hls_mvd_coding(), 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_vf_mpi_clear(), ff_vp56_decode_mbs(), ff_vp6_filter_diag4_c(), fic_decode_slice(), fill_block(), fill_border(), fill_buf(), fill_mv(), 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(), gen_waveform(), generate_half_size_image(), generate_joint_tables(), generate_missing_ref(), geq_filter_frame(), get_amv(), get_block_rd(), get_dc(), get_graph_color(), get_intra_count(), get_limits(), get_qPy(), 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(), hevc_await_progress(), hex_search(), hls_coding_unit(), hor_16x16_c(), hor_32x32_c(), hor_8x8_c(), 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(), inter_predict(), inter_recon(), interleave(), INTERPOLATE_METHOD(), intra_dc_prediction(), intra_pred(), 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(), intra_recon(), 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_packed12(), 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(), ljpeg_encode_bgr(), ljpeg_encode_yuv_mb(), loopfilter_sb(), lowdelay_subband(), luma_abs_diff(), luma_intra_pred_mode(), main(), make_point(), mask_edges(), 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(), 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_current_frame(), postProcess_TMPL(), pp_postprocess(), pred16x16_tm_vp8_c(), pred4x4_tm_vp8_c(), pred8x8_tm_vp8_c(), pred8x8l_vertical(), pred_angular(), pred_dc(), pred_planar_0(), pred_planar_1(), pred_planar_2(), pred_planar_3(), predict_slice(), predict_slice_buffered(), pRNG(), process_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), propagate_block_data(), prores_fdct(), ptx_decode_frame(), put_cursor(), put_dc(), put_hevc_epel_h(), put_hevc_epel_hv(), put_hevc_epel_pixels(), put_hevc_epel_v(), put_hevc_qpel_pixels(), put_pcm(), put_pixels(), put_signed_rect_clamped_c(), put_unweighted_pred(), put_weighted_pred_avg(), quantize(), ratecontrol_1pass(), raw_decode(), rd_frame(), read_rle_sgi(), read_uncompressed_sgi(), reconstruct_and_encode_image(), render_charset(), render_line(), render_slice(), resample_cubic(), resample_linear(), restore_tqb_pixels(), reverse_dc_prediction(), revert_channel_correlation(), rgb24_to_yuv420p(), rgb48Toxyz12(), ring1_test(), ring2_test(), roqvideo_decode_frame(), sab_diamond_search(), sao_band_filter(), sao_edge_filter_0(), sao_edge_filter_1(), sao_edge_filter_2(), sao_edge_filter_3(), seqvideo_decode(), set_ct_depth(), 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(), temporal_luma_motion_vector(), test_motion(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), tm2_decode_blocks(), tm_16x16_c(), tm_32x32_c(), tm_4x4_c(), tm_8x8_c(), tmv_decode_frame(), to_meta_with_crop(), transform_skip(), transquant_bypass16x16(), transquant_bypass32x32(), transquant_bypass4x4(), transquant_bypass8x8(), 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(), vert_16x16_c(), vert_32x32_c(), vert_8x8_c(), video_audio_display(), video_encode_example(), video_frame_cksum(), vis_420P_ARGB32(), vis_422P_ARGB32(), vp3_draw_horiz_band(), vp6_block_variance(), vp6_filter_hv4(), vp8_lossy_decode_alpha(), vqa_decode_chunk(), vsad16_c(), vsse16_c(), vu9_to_vu12_c(), vu9_to_vu12_TMPL(), weighted_pred(), weighted_pred_avg(), xan_wc3_decode_frame(), xget_zpixmap(), xsub_encode_rle(), 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(), 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 94 of file avf_showspectrum.c.

Referenced by adpcm_compress_trellis(), adpcm_decode_frame(), apply_lut(), avui_decode_frame(), aw_pulse_set2(), blend_subrect(), build_diff_map(), build_huff(), calc_combed_score(), calculate_codes(), cinepak_decode_codebook(), config_input(), cpia_decode_frame(), create_chrominance_lut(), 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(), intra_predict(), jp2_find_codestream(), 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_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), resample_cubic(), resample_linear(), reverse_dc_prediction(), rgb16_32ToUV_c_template(), rso_write_header(), rv34_pred_4x4_block(), rv40_weak_loop_filter(), scan_float(), scan_int32(), 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(), wavpack_encode_block(), 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:
muxing.c.

Definition at line 94 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(), apply_lut(), 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(), choose_rct_params(), cinepak_decode_codebook(), clip_f15(), commit_bitstream_and_slice_buffer(), compute_affinity(), compute_scale_factors(), config_input(), cpia_decode_frame(), create_chrominance_lut(), create_lut(), dca_downmix(), dca_qmf_32_subbands(), dct_error(), decode2x2(), decode4x4(), decode8x8(), decode_block(), decode_channel(), decode_dds1(), decode_dsw1(), decode_entropy_coded_image(), decode_exp_vlc(), decode_frame(), decode_init(), decode_init_static(), decode_line(), 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_line(), encode_picture_ls(), encode_rgb_frame(), encode_subband_c0run(), 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_mjpeg_escape_FF(), 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_tget_long(), ff_tget_short(), ff_vorbis_comment(), fill16(), fill24(), fill32(), fill_picture_rgb(), fill_rectangle(), fill_slice(), fillPlane16(), filter(), filter_frame(), filter_line_c(), filter_line_c_16bit(), filter_slice(), 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_sbits_inv(), 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(), 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(), int_cos(), int_pow(), inverse(), isinf(), isnan(), iso_clip(), jpeg2000_decode_packet(), lcg_random(), lerp(), line_noise_c(), ljpeg_decode_yuv_scan(), ljpeg_encode_yuv_mb(), load_matrix(), loco_get_rice(), log2sample(), lu_to_y(), main(), mirror(), mix_1_to_2_fltp_flt_c(), mjpeg_decode_scan(), mono_to_stereo(), 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_options(), parse_pcr(), parse_volume(), pcm_decode_frame(), pcm_encode_frame(), pcx_decode_frame(), pink_fill(), playlist_in_multiple_variants(), 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_frame_uyvy422(), process_frame_yuv420p(), process_frame_yuv422p(), put_vlc_symbol(), quantize_mantissas_blk_ch(), radix_count(), radix_sort_pass(), read_block_types(), read_colors(), read_data(), read_dcs(), read_extra_header(), read_header(), read_motion_values(), read_patterns(), read_quant_table(), read_runs(), remove_wasted_bits(), resample_cubic(), resample_linear(), 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(), setctx_2d(), 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(), 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_decode_slice(), 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 499 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 508 of file avf_showspectrum.c.

AVFilter ff_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 518 of file avf_showspectrum.c.