FFmpeg
|
MP test source, ported from MPlayer libmpcodecs/vf_test.c. More...
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
#include "formats.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | MPTestContext |
Macros | |
#define | WIDTH 512 |
#define | HEIGHT 512 |
#define | OFFSET(x) offsetof(MPTestContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Enumerations | |
enum | test_type { TEST_DC_LUMA, TEST_DC_CHROMA, TEST_FREQ_LUMA, TEST_FREQ_CHROMA, TEST_AMP_LUMA, TEST_AMP_CHROMA, TEST_CBP, TEST_MV, TEST_RING1, TEST_RING2, TEST_ALL, TEST_NB } |
Functions | |
AVFILTER_DEFINE_CLASS (mptestsrc) | |
static void | init_idct (void) |
static void | idct (uint8_t *dst, int dst_linesize, int src[64]) |
static void | draw_dc (uint8_t *dst, int dst_linesize, int color, int w, int h) |
static void | draw_basis (uint8_t *dst, int dst_linesize, int amp, int freq, int dc) |
static void | draw_cbp (uint8_t *dst[3], int dst_linesize[3], int cbp, int amp, int dc) |
static void | dc_test (uint8_t *dst, int dst_linesize, int w, int h, int off) |
static void | freq_test (uint8_t *dst, int dst_linesize, int off) |
static void | amp_test (uint8_t *dst, int dst_linesize, int off) |
static void | cbp_test (uint8_t *dst[3], int dst_linesize[3], int off) |
static void | mv_test (uint8_t *dst, int dst_linesize, int off) |
static void | ring1_test (uint8_t *dst, int dst_linesize, int off) |
static void | ring2_test (uint8_t *dst, int dst_linesize, int off) |
static av_cold int | init (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *outlink) |
static int | query_formats (AVFilterContext *ctx) |
static int | request_frame (AVFilterLink *outlink) |
Variables | |
static const AVOption | mptestsrc_options [] |
static double | c [64] |
static const AVFilterPad | mptestsrc_outputs [] |
AVFilter | ff_vsrc_mptestsrc |
MP test source, ported from MPlayer libmpcodecs/vf_test.c.
Definition in file vsrc_mptestsrc.c.
#define WIDTH 512 |
Definition at line 35 of file vsrc_mptestsrc.c.
Referenced by config_props(), and request_frame().
#define HEIGHT 512 |
Definition at line 36 of file vsrc_mptestsrc.c.
Referenced by config_props(), and request_frame().
#define OFFSET | ( | x | ) | offsetof(MPTestContext, x) |
Definition at line 61 of file vsrc_mptestsrc.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 62 of file vsrc_mptestsrc.c.
enum test_type |
Enumerator | |
---|---|
TEST_DC_LUMA | |
TEST_DC_CHROMA | |
TEST_FREQ_LUMA | |
TEST_FREQ_CHROMA | |
TEST_AMP_LUMA | |
TEST_AMP_CHROMA | |
TEST_CBP | |
TEST_MV | |
TEST_RING1 | |
TEST_RING2 | |
TEST_ALL | |
TEST_NB |
Definition at line 38 of file vsrc_mptestsrc.c.
AVFILTER_DEFINE_CLASS | ( | mptestsrc | ) |
Definition at line 89 of file vsrc_mptestsrc.c.
Referenced by init().
Definition at line 101 of file vsrc_mptestsrc.c.
Referenced by draw_basis().
Definition at line 129 of file vsrc_mptestsrc.c.
Referenced by dc_test(), and ring1_test().
Definition at line 138 of file vsrc_mptestsrc.c.
Referenced by amp_test(), draw_cbp(), and freq_test().
Definition at line 149 of file vsrc_mptestsrc.c.
Referenced by cbp_test().
Definition at line 159 of file vsrc_mptestsrc.c.
Referenced by request_frame().
Definition at line 172 of file vsrc_mptestsrc.c.
Referenced by request_frame().
Definition at line 184 of file vsrc_mptestsrc.c.
Referenced by request_frame().
Definition at line 196 of file vsrc_mptestsrc.c.
Referenced by request_frame().
Definition at line 213 of file vsrc_mptestsrc.c.
Referenced by request_frame().
Definition at line 225 of file vsrc_mptestsrc.c.
Referenced by request_frame().
Definition at line 237 of file vsrc_mptestsrc.c.
Referenced by request_frame().
|
static |
Definition at line 256 of file vsrc_mptestsrc.c.
|
static |
Definition at line 272 of file vsrc_mptestsrc.c.
|
static |
Definition at line 288 of file vsrc_mptestsrc.c.
|
static |
Definition at line 300 of file vsrc_mptestsrc.c.
|
static |
Definition at line 63 of file vsrc_mptestsrc.c.
|
static |
Definition at line 87 of file vsrc_mptestsrc.c.
Referenced by a64multi_close_encoder(), a64multi_encode_frame(), a64multi_encode_init(), aa_read_close(), aa_read_header(), aa_read_packet(), adapt_probs(), add_entry(), add_stream(), addCode(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_frame(), adpcm_flush(), adpcm_swf_decode(), adx_decode_flush(), adx_decode_frame(), adx_decode_init(), adx_encode_frame(), adx_encode_header(), adx_encode_init(), adx_read_header(), adx_read_packet(), afc_read_header(), afc_read_packet(), amplify_frame(), analyze_frame(), any_vscale(), ape_tag_read_field(), apply_channel_coupling(), apply_dependent_coupling_fixed(), apply_independent_coupling_fixed(), apply_intensity_stereo(), ARRAY_RENAME(), asf_get_packet(), asf_write_markers(), ass_split(), asym_quant(), async_buffer_task(), async_check_interrupt(), async_close(), async_open(), async_read_internal(), async_seek(), audio_decode_example(), audio_encode_example(), auto_matrix(), av_compare_mod(), av_crc_init(), av_display_rotation_set(), av_get_bits_per_pixel(), av_get_frame_filename(), av_get_padded_bits_per_pixel(), av_get_token(), av_hmac_alloc(), av_lzo1x_decode(), av_opt_child_next(), av_opt_copy(), av_opt_find2(), av_opt_query_ranges(), av_parse_ratio(), av_read_image_line(), av_resample_init(), av_rescale_q_rnd(), av_rescale_rnd(), av_small_strptime(), av_timecode_init_from_string(), av_tolower(), av_toupper(), av_write_image_line(), avf_read_packet(), avpriv_dv_init_demux(), avresample_get_delay(), avresample_set_compensation(), bidir_refine(), bktr_init(), blur(), blur_power(), bmv_read_close(), bmv_read_header(), bmv_read_packet(), body(), bs_get_v(), caca_write_header(), caca_write_packet(), caca_write_trailer(), cache_close(), cache_open(), cache_read(), cache_seek(), calc_lowcomp1(), cdxl_decode_end(), cdxl_decode_frame(), cdxl_decode_init(), celt_decode_band(), celt_exp_rotation(), chebyshev1_fo_section(), chebyshev2_fo_section(), check_append_extra_bits(), check_bidir_mv(), check_decorrelate_stereo(), checkasm_check_fmtconvert(), chr_planar_vscale(), cmp_direct_inline(), cmp_inline(), codec_child_class_next(), codec_reinit(), color_cache_put(), colormap_insert(), colormap_nearest_bruteforce(), compare(), compressor(), compute_frame_rms(), compute_frame_std_dev(), compute_images_mse(), config_input(), config_props(), config_video_output(), convert_timestamp(), copy_pad(), copy_samples(), create(), create_vorbis_context(), crypto_close(), crypto_open2(), crypto_read(), crypto_write(), dash_flush(), dash_free(), dash_write_header(), dash_write_packet(), dash_write_trailer(), date_get_num(), dct_calc_I_c(), dct_calc_II_c(), dct_calc_III_c(), decklink_setup_audio(), decklink_setup_video(), decode_block_coeffs_internal(), decode_blocks(), decode_blocks_ind(), decode_bytes(), decode_cce(), decode_cdlms(), decode_coeffs(), decode_end(), decode_flush(), decode_frame(), decode_frame_header(), decode_hybrid(), decode_init(), decode_line(), decode_mb_mode(), decode_mb_row_no_filter(), decode_mclms(), decode_mode(), decode_region_inter(), decode_region_intra(), decode_residues(), decode_sb(), decode_scale_factors(), decode_slice_header(), decode_spectrum_and_dequant(), decode_subband_internal(), decode_subframe(), decode_subframe_fixed(), decode_sym(), decode_sym_565(), decode_tilehdr(), decode_tonal_components(), decode_wmv9(), deInterlaceBlendLinear_TMPL(), deInterlaceMedian_TMPL(), dering_TMPL(), diamond_search(), diff_pixels_mvi(), diff_planes(), direct_search(), displace_packed(), do_psnr(), do_ssim(), doVertDefFilter_TMPL(), doVertLowPass_TMPL(), draw_mandelbrot(), dv_extract_pack(), dv_init_mux(), dv_init_weight_tables(), dv_read_close(), dv_read_header(), dv_read_packet(), dv_read_seek(), dv_read_timecode(), dxa_read_header(), dxa_read_packet(), encode_end(), encode_frame(), encode_init(), encode_line(), encode_picture(), encode_plane(), encode_q_branch(), encode_residual_fixed(), encode_slice_header(), epzs_motion_search2(), epzs_motion_search4(), epzs_motion_search_internal(), estimate_best_b_count(), estimate_motion_b(), expand_filename_template(), ff_add_png_paeth_prediction(), ff_adx_calculate_coeffs(), ff_ass_split_override_codes(), ff_audio_resample_init(), ff_big_add(), ff_big_div(), ff_big_mul(), ff_celp_lp_synthesis_filterf(), ff_check_pixfmt_descriptors(), ff_command_queue_pop(), ff_dca_xll_close(), ff_dca_xll_filter_frame(), ff_decklink_write_header(), ff_dither_alloc(), ff_dither_free(), ff_draw_init(), ff_dv_init_dynamic_tables(), ff_epzs_motion_search(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), ff_fix_long_mvs(), ff_fix_long_p_mvs(), ff_frame_thread_encoder_free(), ff_frame_thread_encoder_init(), ff_get_cpu_flags_x86(), ff_get_line(), ff_h263_pred_acdc(), ff_h263_pred_dc(), ff_h264_chroma_dc_dequant_idct(), ff_h264_chroma_dc_dequant_idct_8_mmi(), ff_h264_decode_mb_cabac(), ff_hex_to_data(), ff_iir_filter_init_coeffs(), ff_init_me(), ff_lzw_decode(), ff_lzw_encode(), ff_mov_iso639_to_lang(), ff_mp4_read_descr_len(), ff_mpeg4_pred_dc(), ff_msmpeg4_coded_block_pred(), ff_msmpeg4_pred_dc(), ff_mss12_decode_init(), ff_pca(), ff_pre_estimate_p_frame_motion(), ff_print_debug_info2(), ff_printGUID(), ff_slice_thread_free(), ff_slice_thread_init(), ff_sqrt(), ff_subtitles_read_line(), ff_subtitles_read_text_chunk(), ff_text_peek_r8(), ff_thread_video_encode_frame(), ff_urldecode(), ff_vc1_pred_dc(), fft_ref(), file_get_handle(), file_read(), file_write(), fill24(), fill_picture_rgb(), fill_samples(), filter_frame(), filter_rgb(), filter_slice(), find_next_hier_dmix_chset(), find_peak_magnitude(), find_ref_mvs(), find_rtp_session(), flac_lpc_16_c(), flac_lpc_encode_c(), flac_parse_init(), flac_write_header(), flac_write_packet(), flac_write_trailer(), floor_encode(), flush(), flush_buffer(), free_section(), fsb_read_header(), full_search(), funny_diamond_search(), g2m_decode_end(), g2m_decode_frame(), g2m_decode_init(), g722_decode_frame(), g722_decode_init(), g722_encode_close(), g722_encode_frame(), g722_encode_init(), gate(), gen_image(), generate_noise(), genh_read_header(), genh_read_packet(), get16(), get8(), get_delay(), get_exponent_dynamic(), get_limits(), get_line(), get_match_score(), get_mb_score(), get_natural_factor(), get_next_color(), get_out_samples(), get_pts(), get_shift(), get_string(), get_token(), get_video_frame(), getopt(), getutime(), global_mv(), grab_read_close(), gsm_read_header(), gxf_init_timecode(), gxf_parse_mpeg_frame(), h263_get_modb(), h263_mv4_search(), h264_frame_start(), h_block_filter(), hadamard_func(), hds_flush(), hds_free(), hds_write_header(), hds_write_packet(), hds_write_trailer(), hex_dump_internal(), hex_search(), hls_close(), hls_read_header(), hls_read_packet(), hls_read_seek(), hls_start(), horizX1Filter(), hpel_motion_search(), http_server(), huf_build_dec_table(), huf_canonical_code_table(), huf_decode(), ico_write_packet(), idct(), ini_escape_str(), init(), init_idct(), init_interlaced_ref(), init_video(), initFilter(), interlaced_search(), interp_tetrahedral(), interp_trilinear(), interpol(), interpolate(), interpolate_isp(), ir2_decode_plane(), ir2_decode_plane_inter(), ism_flush(), ism_free(), ism_write_header(), ism_write_packet(), ism_write_trailer(), jacosub_to_ass(), jpeg_probe(), l2s_dia_search(), lcg_seek(), lex_char(), lex_name(), lex_space(), lex_wsword(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), libvorbis_encode_frame(), ljpeg_decode_rgb_scan(), ljpeg_decode_yuv_scan(), load_ca(), load_cert(), load_colormap(), loco_predict(), lpc_apply_welch_window_c(), lzw_get_code(), main(), make_filters_from_proto(), make_sin_table(), matroska_parse_webvtt(), md5_close(), md5_finish(), md5_open(), md5_write(), microdvd_probe(), microdvd_read_header(), mid_pred(), mix_core(), mjpeg_decode_scan(), mjpeg_decode_scan_progressive_ac(), mkv_write_attachments(), mkv_write_chapters(), mode24(), mov_create_chapter_track(), mov_parse_mpeg2_frame(), mov_read_mac_string(), mov_write_chpl_tag(), movie_config_output_props(), movie_query_formats(), mp3_parse_vbr_tags(), mpc7_decode_close(), mpc7_decode_flush(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_flush(), mpc8_decode_frame(), mpc8_decode_init(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), mpc_read_close(), mpc_read_header(), mpc_read_packet(), mpc_read_seek(), mpegps_read_pes_header(), mpegts_resync(), mpl2_probe(), mss1_decode_frame(), mss1_decode_init(), mss2_decode_frame(), mss2_decode_init(), mss3_decode_end(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_end(), mss4_decode_frame(), mss4_decode_init(), mul_poly(), multiswap_dec(), multiswap_enc(), mxf_parse_mpeg2_frame(), mxf_write_essence_container_refs(), new_connection(), noise_scale(), ogg_read_page(), on2avc_decode_close(), on2avc_decode_frame(), on2avc_decode_init(), open_audio(), open_video(), opt_map(), opt_target(), opus_decode_close(), opus_decode_flush(), opus_decode_init(), opus_decode_packet(), packed_vscale(), paf_video_close(), paf_video_decode(), paf_video_init(), parse_band_data(), parse_forced_key_frames(), parse_navi_table(), parse_segment_info(), parse_sub_headers(), parse_term(), parse_timecode(), pcm_decode_frame(), pcm_encode_frame(), perform_compression(), perform_dc_correction(), pjs_probe(), pnm_decode_frame(), pnm_encode_frame(), pnm_get(), poll_frame(), postProcess(), postProcess_TMPL(), pp_free_context(), pp_get_context(), pp_postprocess(), pred16x16_vertical(), print_stats(), print_tls_error(), process_subpacket_11(), ps_tableinit(), pxr24_uncompress(), qcp_read_header(), qcp_read_packet(), qdm2_fft_generate_tone(), qdm2_fft_tone_synthesizer(), qpel_motion_search(), quantize_and_encode_band_cost_template(), quantize_mantissas_blk_ch(), query_formats(), read_data(), read_extra_header(), read_frame_data(), read_header(), read_line(), read_mv_component(), read_time(), read_ts(), read_var_block_data(), read_yesno(), realtext_read_header(), recheck_discard_flags(), ref_to_update(), render_charset(), request_frame(), resample_common_TMPL(), resample_cubic(), resample_init(), resample_linear(), resample_linear_TMPL(), resample_one(), reset_stats(), revert_channel_correlation(), rgtc_block_internal(), ripemd128_transform(), ripemd160_transform(), ripemd256_transform(), ripemd320_transform(), rtmp_http_send_cmd(), rtmp_open(), rtmp_write(), rtp_new_connection(), s302m_encode2_frame(), sab_diamond_search(), sad_hpel_motion_search(), sami_read_header(), save_avio_options(), scale_down_mix(), seqvideo_decode(), set_frame(), set_identity_matrix(), set_metadata(), set_string_number(), sha1_transform(), sha256_transform(), sha512_transform(), show_codec_opts(), siff_read_header(), siff_read_packet(), silk_decode_excitation(), slave_seek(), small_diamond_search(), srt_stack_push(), srt_style_apply(), stl_probe(), sub_png_paeth_prediction(), subband_scale(), subfile_close(), subfile_open(), subfile_read(), subfile_seek(), subviewer_probe(), surround_to_stereo(), sws_alloc_context(), sws_alloc_set_opts(), sws_getContext(), sym_quant(), synth_filter_fixed(), synth_filter_fixed_64(), synth_filter_float(), synth_filter_float_64(), thread_execute(), thread_execute2(), tiff_unpack_strip(), timed_line(), tls_client_handshake(), tls_client_handshake_loop(), tls_close(), tls_open(), tls_read(), tls_read_cb(), tls_shutdown_client(), tls_write(), tls_write_cb(), tmv_decode_frame(), truespeech_decode_frame(), truespeech_decode_init(), try_push_frame(), tscc2_decode_end(), tscc2_decode_frame(), tscc2_decode_init(), tta_encode_frame(), tta_read_header(), tta_read_packet(), tta_read_seek(), umh_search(), undo_down_mix(), uninit(), update_init_section(), update_lf_deltas(), update_refs(), utvideo_encode_close(), utvideo_encode_frame(), utvideo_encode_init(), v_block_filter(), var_diamond_search(), vc1_coded_block_pred(), vc1_h_overlap_c(), vc1_h_s_overlap_c(), vc1_i_pred_dc(), vc1_v_overlap_c(), vc1_v_s_overlap_c(), vertX1Filter_TMPL(), video_audio_display(), video_decode_example(), video_encode_example(), decklink_input_callback::VideoInputFrameArrived(), vivo_get_packet_header(), vivo_probe(), vp56_parse_mb_type(), vp56_parse_mb_type_models(), vp5_parse_coeff(), vp5_parse_coeff_models(), vp5_parse_header(), vp5_parse_vector_adjustment(), vp5_parse_vector_models(), vp6_parse_coeff(), vp6_parse_coeff_models(), vp6_parse_header(), vp6_parse_vector_adjustment(), vp6_parse_vector_models(), vp78_update_pred16x16_pred8x8_mvc_probabilities(), vp78_update_probability_tables(), vp7_decode_frame_header(), vp7_decode_mvs(), vp7_get_quants(), vp8_decode_frame_header(), vp8_decode_mvs(), vp8_get_quants(), vplayer_probe(), vqf_read_header(), vqf_read_packet(), vqf_read_seek(), wait_frame(), wavesynth_decode(), wavesynth_synth_sample(), webvtt_stack_push(), wmapro_window(), worker(), wrapped_url_read(), write_abst(), write_audio_frame(), write_extradata(), write_header(), write_manifest(), write_video_frame(), wv_get_value(), wv_mono(), wv_stereo(), x8_get_dc_rlf(), x8_get_prediction(), x8_setup_spatial_compensation(), xcbgrab_frame(), xcbgrab_reposition(), xface_decode_frame(), yuv2bgr32_X_TMPL(), yuv2rgb32_X_ar_TMPL(), yuv2rgb32_X_TMPL(), yuv2rgb555_X_ar_TMPL(), yuv2rgb555_X_TMPL(), yuv2rgb565_X_ar_TMPL(), yuv2rgb565_X_TMPL(), yuv420_rgb15_TMPL(), and yuv420_rgb16_TMPL().
|
static |
Definition at line 344 of file vsrc_mptestsrc.c.
AVFilter ff_vsrc_mptestsrc |
Definition at line 354 of file vsrc_mptestsrc.c.