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 {
  LINE, BAR, DOT, NB_MODES,
  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_RECT, WFUNC_HANNING, WFUNC_HAMMING, WFUNC_BLACKMAN,
  WFUNC_BARTLETT, WFUNC_WELCH, WFUNC_FLATTOP, WFUNC_BHARRIS,
  WFUNC_BNUTTALL, WFUNC_SINE, WFUNC_NUTTALL, WFUNC_BHANN,
  NB_WFUNC, WFUNC_NONE, WFUNC_HANN, WFUNC_HAMMING,
  WFUNC_BLACKMAN, NB_WFUNC
}
 
enum  SlideMode { REPLACE, SCROLL, FULLFRAME, NB_SLIDES }
 

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 request_frame (AVFilterLink *outlink)
 
static int plot_spectrum_column (AVFilterLink *inlink, AVFrame *insamples)
 
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 64 of file avf_showspectrum.c.

Definition at line 65 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
LINE 
BAR 
DOT 
NB_MODES 
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_RECT 
WFUNC_HANNING 
WFUNC_HAMMING 
WFUNC_BLACKMAN 
WFUNC_BARTLETT 
WFUNC_WELCH 
WFUNC_FLATTOP 
WFUNC_BHARRIS 
WFUNC_BNUTTALL 
WFUNC_SINE 
WFUNC_NUTTALL 
WFUNC_BHANN 
NB_WFUNC 
WFUNC_NONE 
WFUNC_HANN 
WFUNC_HAMMING 
WFUNC_BLACKMAN 
NB_WFUNC 

Definition at line 40 of file avf_showspectrum.c.

enum SlideMode
Enumerator
REPLACE 
SCROLL 
FULLFRAME 
NB_SLIDES 

Definition at line 41 of file avf_showspectrum.c.

Function Documentation

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

Definition at line 108 of file avf_showspectrum.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 122 of file avf_showspectrum.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 156 of file avf_showspectrum.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 264 of file avf_showspectrum.c.

static int plot_spectrum_column ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 290 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, NB_SLIDES, FLAGS, "slide" },
{ "replace", "replace old columns with new", 0, AV_OPT_TYPE_CONST, {.i64=REPLACE}, 0, 0, FLAGS, "slide" },
{ "scroll", "scroll from right to left", 0, AV_OPT_TYPE_CONST, {.i64=SCROLL}, 0, 0, FLAGS, "slide" },
{ "fullframe", "return full frames", 0, AV_OPT_TYPE_CONST, {.i64=FULLFRAME}, 0, 0, FLAGS, "slide" },
{ "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 }
}
#define NULL
Definition: coverity.c:32
mode
Definition: f_perms.c:27
#define FLAGS
offset must point to two consecutive integers
Definition: opt.h:232
#define OFFSET(x)

Definition at line 67 of file avf_showspectrum.c.

float a

Definition at line 96 of file avf_showspectrum.c.

Referenced by plot_spectrum_column().

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

Definition at line 96 of file avf_showspectrum.c.

Referenced by a64multi_encode_frame(), achroma(), add_block(), add_dc(), add_rect_clamped_c(), add_yblock(), aflat(), aic_decode_frame(), alias_pix_read_probe(), alpha_inverse_prediction(), amp_test(), apng_do_inverse_blend(), apng_encode_frame(), apply_color_indexing_transform(), apply_color_transform(), apply_delogo(), apply_ir_filter(), apply_loop_filter(), apply_lut(), apply_obmc(), apply_palette(), 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(), celt_alg_unquant(), check_intra_mode(), choose_rct_params(), chroma(), cinepak_decode_vectors(), cinvideo_decode_frame(), cmv_decode_inter(), codeblock(), color(), color16(), color_correlation(), color_decorrelation(), compare(), compare_fields(), compare_sl(), compose2D(), compress_alpha(), compute_default_clut(), compute_mb_distortion(), compute_metric(), config_input(), config_output(), config_video_output(), constant_color(), convert_mask_to_strength_mask(), copy_frame(), copy_mb(), copy_processed_frame(), copy_rectangle(), copy_superblock(), correlate(), correlate_slice_buffered(), count_colors(), cover_rect(), 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(), deband_16_c(), deband_8_c(), deblocking_filter_CTB(), debug_mean_error(), decode(), decode_0(), decode_13(), decode_555(), decode_blocks(), 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_frame_common(), 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(), decompress_texture_thread(), decorrelate(), 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(), disp_palette(), display_frame(), distance(), dnxhd_decode_macroblocks(), dnxhd_encode_fast(), dnxhd_encode_rdo(), dnxhd_find_qscale(), dnxhd_mb_var_thread(), do_a_deblock_C(), do_colorkey_slice(), doHorizDefFilter_C(), doHorizLowPass_C(), downscale(), draw_dc(), draw_frame(), draw_glyph(), draw_line(), draw_mandelbrot(), draw_n_color(), draw_slice(), draw_text(), dss_read_metadata_date(), 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(), dxn3dc_block(), dxt1_block_internal(), dxt2_block(), dxt3_block_internal(), dxt4_block(), dxt5_block_internal(), dxt5y_block(), dxt5ys_block(), encode_422_bitstream(), encode_apng(), 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(), envelope_instant(), envelope_instant16(), envelope_peak(), envelope_peak16(), epic_decode_tile(), escape130_decode_frame(), estimate_sid_gain(), eval_motion_dist(), extract_from_packed(), fade(), ff_avg_h264_chroma_mc4_mmi(), ff_avg_h264_chroma_mc8_mmi(), ff_blend_mask(), ff_blend_rectangle(), 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_h264_biweight_pixels16_8_mmi(), ff_h264_biweight_pixels4_8_mmi(), ff_h264_biweight_pixels8_8_mmi(), ff_h264_slice_context_init(), ff_h264_weight_pixels16_8_mmi(), ff_h264_weight_pixels4_8_mmi(), ff_h264_weight_pixels8_8_mmi(), ff_hevc_hls_mvd_coding(), ff_intra_pred_8_16x16_msa(), ff_intra_pred_8_32x32_msa(), 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_libwebp_get_frame(), ff_mpeg4_encode_mb(), ff_print_debug_info2(), ff_put_h264_chroma_mc4_mmi(), ff_put_h264_chroma_mc8_mmi(), 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_sws_alphablendaway(), 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_brng(), filter_frame(), filter_mb_dir(), filter_plane_cols(), filter_plane_rows(), filter_slice(), filter_slice16(), filter_slice8(), filter_tout(), filter_vrep(), find_block_motion(), find_motion(), find_quant_thread(), find_smallest_bounding_rectangle(), flat(), 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_scene_score(), 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(), handle_p_frame_apng(), hblur(), hevc_await_progress(), hex_search(), hls_coding_unit(), hor_16x16_c(), hor_32x32_c(), hor_8x8_c(), horizX1Filter(), hqx_filter(), huffman_decode(), idcin_decode_vlcs(), idct_mb(), idct_put(), 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_po_iteration(), jpeg2000_decode_tile(), l2s_dia_search(), libkvazaar_encode(), 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(), load_palette(), lowdelay_subband(), lowpass(), lowpass16(), lum(), luma_abs_diff(), main(), make_point(), mask_edges(), match_colors(), 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(), optimize_colors(), output_plane(), p8idct(), paint_mouse_pointer(), parse_ifo_palette(), parse_palette_segment(), parse_psfile(), pcx_decode_frame(), pcx_encode_frame(), pick_palette_entry(), planar2x_c(), planarCopyWrapper(), plot_cqt(), plot_freq(), plot_spectrum_column(), postprocess_current_frame(), postProcess_TMPL(), pp_postprocess(), precomputeMDS(), pred16x16_tm_vp8_c(), pred4x4_tm_vp8_c(), pred8x8_tm_vp8_c(), pred8x8l_vertical(), pred_angular(), pred_dc(), pred_planar(), predict_slice(), predict_slice_buffered(), pRNG(), process_c(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), propagate_block_data(), prores_fdct(), ptx_decode_frame(), put_cursor(), put_dc(), put_hevc_epel_bi_h(), put_hevc_epel_bi_hv(), put_hevc_epel_bi_v(), put_hevc_epel_bi_w_h(), put_hevc_epel_bi_w_hv(), put_hevc_epel_bi_w_v(), put_hevc_epel_h(), put_hevc_epel_hv(), put_hevc_epel_uni_h(), put_hevc_epel_uni_hv(), put_hevc_epel_uni_v(), put_hevc_epel_uni_w_h(), put_hevc_epel_uni_w_hv(), put_hevc_epel_uni_w_v(), put_hevc_epel_v(), put_hevc_pel_bi_pixels(), put_hevc_pel_bi_w_pixels(), put_hevc_pel_pixels(), put_hevc_pel_uni_pixels(), put_hevc_pel_uni_w_pixels(), put_hevc_qpel_bi_h(), put_hevc_qpel_bi_hv(), put_hevc_qpel_bi_v(), put_hevc_qpel_bi_w_h(), put_hevc_qpel_bi_w_hv(), put_hevc_qpel_bi_w_v(), put_hevc_qpel_h(), put_hevc_qpel_hv(), put_hevc_qpel_uni_h(), put_hevc_qpel_uni_hv(), put_hevc_qpel_uni_v(), put_hevc_qpel_uni_w_h(), put_hevc_qpel_uni_w_hv(), put_hevc_qpel_uni_w_v(), put_hevc_qpel_v(), put_pcm(), put_pixels(), put_signed_rect_clamped_c(), quantize(), ratecontrol_1pass(), raw_decode(), rd_frame(), read_rle_sgi(), read_uncompressed_sgi(), reconstruct_and_encode_image(), refine_colors(), render_charset(), render_line(), render_slice(), resample_cubic(), resample_linear(), restore_tqb_pixels(), reverse_dc_prediction(), revert_channel_correlation(), rgb24_to_yuv420p(), rgb48Toxyz12(), rgb_to_yuv(), rgba2ycocg(), rgtc2_block_internal(), rgtc_block_internal(), ring1_test(), ring2_test(), roqvideo_decode_frame(), rotate_faulty_loco(), run_postproc(), sab_diamond_search(), sao_band_filter(), sao_edge_filter(), sao_edge_restore_0(), sao_edge_restore_1(), search(), seqvideo_decode(), set_ct_depth(), set_frame(), set_processing_window(), set_src_position(), setup_pps(), silk_decode_lpc(), 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_4x4xn(), ssim_plane(), store_slice16_c(), store_slice2_c(), store_slice_c(), sub2video_copy_rect(), 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(), tdsc_decode_tiles(), tdsc_paint_cursor(), tempNoiseReducer_TMPL(), temporal_luma_motion_vector(), test_motion(), tf_h(), 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_rdpcm(), transform_skip(), transquant_bypass(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), txd_decode_frame(), ulti_decode_frame(), umh_search(), unpack_coeffs(), update_context(), update_histogram_diff(), update_histogram_frame(), utvideo_decode_frame(), 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(), vectorscope(), vert_16x16_c(), vert_32x32_c(), vert_8x8_c(), video_audio_display(), video_encode_example(), video_frame_cksum(), decklink_input_callback::VideoInputFrameArrived(), vp3_draw_horiz_band(), vp6_block_variance(), vp6_filter_hv4(), vp8_lossy_decode_alpha(), vqa_decode_chunk(), vu9_to_vu12_c(), vu9_to_vu12_TMPL(), write_palette(), xan_wc3_decode_frame(), xbr_filter(), xcbgrab_reposition(), xget_zpixmap(), xsub_encode_rle(), xyz12Torgb48(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), ycocg2rgba(), 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(), yuv_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 96 of file avf_showspectrum.c.

Referenced by adpcm_compress_trellis(), adpcm_decode_frame(), apply_lut(), avui_decode_frame(), aw_pulse_set2(), 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_subband_slice_buffered(), dv_decode_ac(), encode_422_bitstream(), encode_frame(), ff_h264_decode_picture_parameter_set(), ff_print_debug_info2(), ff_rtjpeg_decode_frame_yuv420(), ff_sws_alphablendaway(), 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(), init(), intra_predict(), jp2_find_codestream(), lcg_random(), mode17(), mode23(), mode24(), 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(), opus_rc_normalize(), plot_cqt(), plot_spectrum_column(), pow_m1_4(), print_option(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), 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(), svq3_decode_mb(), sws_scale(), tm2_decode_blocks(), uninit_options(), utvideo_decode_frame(), 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 96 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(), adpcm_encode_frame(), apply_channel_coupling(), apply_lut(), audiogen(), av_adler32_update(), av_base64_decode(), av_cmp_i(), av_free(), av_int2sf(), 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(), bs_get_v(), build_xlaw_table(), calc_coefficients(), calc_combed_score(), categorize(), check_mv(), checkasm_check_func(), choose_rct_params(), cinepak_decode_codebook(), clip_f15(), commit_bitstream_and_slice_buffer(), compute_affinity(), compute_default_clut(), compute_scale_factors(), config_input(), copy_elem(), cpia_decode_frame(), create_chrominance_lut(), create_lut(), dca_downmix(), dca_qmf_32_subbands(), dct_error(), deblocking_filter_CTB(), decode2x2(), decode4x4(), decode8x8(), decode_b(), 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_trns_chunk(), decode_tsw1(), decode_wdlt(), decode_wmv9(), decodeplane8(), decorrelate(), decouple_info(), dequant_lsp10i(), dequant_lsp10r(), dequant_lsp16i(), dequant_lsp16r(), destroy_func_tree(), 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_headers(), 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_idet_filter_line_c(), ff_idet_filter_line_c_16bit(), ff_j_rev_dct(), ff_j_rev_dct4(), ff_line_noise_c(), ff_log2_16bit_c(), ff_log2_c(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_sos(), ff_mjpeg_escape_FF(), ff_mp4_read_dec_config_descr(), 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_tadd_bytes_metadata(), ff_tadd_shorts_metadata(), ff_vorbis_comment(), ff_vp9dsp_init_x86(), fill16(), fill24(), fill32(), fill_picture_rgb(), fill_rectangle(), fill_slice(), fillPlane16(), filter(), filter_frame(), filter_slice(), find_marker(), find_next_start_code(), frame_block_to_cell(), g723_1_decode_frame(), gb_get_v(), get_amv(), get_audio_frame(), get_block_rd(), get_egolomb(), get_graph_color(), get_palette_transparency_index(), 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(), hqx_idct_put(), huffman_decode(), idcin_decode_vlcs(), idct(), idct248_error(), idct248_ref(), init(), 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(), ljpeg_decode_yuv_scan(), ljpeg_encode_yuv_mb(), load_matrix(), loco_get_rice(), log2sample(), lowpass16(), lu_to_y(), main(), mix_1_to_2_fltp_flt_c(), mjpeg_decode_scan(), mono_to_stereo(), mp3_parse_info_tag(), mp3_parse_vbr_tags(), mp3_parse_vbri_tag(), 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(), nsv_resync(), parse_options(), parse_pcr(), parse_volume(), pcm_decode_frame(), pcm_encode_frame(), pcx_decode_frame(), pink_fill(), playlist_in_multiple_variants(), plot_cqt(), plot_spectrum_column(), pnm_decode_frame(), pow_m1_4(), pred4x4_horizontal_add(), pred4x4_vertical_add(), pred4x4_vertical_vp8_c(), pred8x8l_horizontal_add(), pred8x8l_horizontal_filter_add(), pred8x8l_vertical_add(), pred8x8l_vertical_filter_add(), predict_slice(), predict_slice_buffered(), print_fps(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), 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(), rm_read_header(), 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_0321_c(), shuffle_bytes_2103_c(), shuffle_bytes_2103_TMPL(), sign_extend(), skip_check(), smk_get_code(), srt_probe(), 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_decode_frame(), 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().

const { ... } 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 }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)

Definition at line 495 of file avf_showspectrum.c.

const AVFilterPad showspectrum_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
.request_frame = request_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int request_frame(AVFilterLink *outlink)
static int config_output(AVFilterLink *outlink)

Definition at line 504 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,
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:248
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad showspectrum_outputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static const AVFilterPad showspectrum_inputs[]
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:239
static av_cold void uninit(AVFilterContext *ctx)

Definition at line 514 of file avf_showspectrum.c.