FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
checkasm.h File Reference
#include <stdint.h>
#include "config.h"
#include "libavutil/avstring.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/timer.h"

Go to the source code of this file.

Data Structures

struct  CheckasmPerf
 

Macros

#define rnd()   av_lfg_get(&checkasm_lfg)
 
#define BENCH_RUNS   1000 /* Trade-off between accuracy and speed */
 
#define check_func(func,...)   (func_ref = checkasm_check_func((func_new = func), __VA_ARGS__))
 
#define declare_func(ret,...)   declare_new(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__)
 
#define declare_func_float(ret,...)   declare_new_float(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__)
 
#define declare_func_emms(cpu_flags, ret,...)   declare_new_emms(cpu_flags, ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__)
 
#define fail()   checkasm_fail_func("%s:%d", av_basename(__FILE__), __LINE__)
 
#define report   checkasm_report
 
#define call_ref(...)   ((func_type *)func_ref)(__VA_ARGS__)
 
#define declare_new(ret,...)
 
#define declare_new_float(ret,...)
 
#define declare_new_emms(cpu_flags, ret,...)
 
#define call_new(...)   ((func_type *)func_new)(__VA_ARGS__)
 
#define bench_new(...)   while(0)
 
#define PERF_START(t)   while(0)
 
#define PERF_STOP(t)   while(0)
 

Functions

void checkasm_check_aacpsdsp (void)
 
void checkasm_check_alacdsp (void)
 
void checkasm_check_audiodsp (void)
 
void checkasm_check_blend (void)
 
void checkasm_check_blockdsp (void)
 
void checkasm_check_bswapdsp (void)
 
void checkasm_check_colorspace (void)
 
void checkasm_check_exrdsp (void)
 
void checkasm_check_fixed_dsp (void)
 
void checkasm_check_flacdsp (void)
 
void checkasm_check_float_dsp (void)
 
void checkasm_check_fmtconvert (void)
 
void checkasm_check_g722dsp (void)
 
void checkasm_check_h264dsp (void)
 
void checkasm_check_h264pred (void)
 
void checkasm_check_h264qpel (void)
 
void checkasm_check_hevc_add_res (void)
 
void checkasm_check_hevc_idct (void)
 
void checkasm_check_hevc_sao (void)
 
void checkasm_check_huffyuvdsp (void)
 
void checkasm_check_jpeg2000dsp (void)
 
void checkasm_check_llviddsp (void)
 
void checkasm_check_llviddspenc (void)
 
void checkasm_check_pixblockdsp (void)
 
void checkasm_check_sbrdsp (void)
 
void checkasm_check_synth_filter (void)
 
void checkasm_check_sw_rgb (void)
 
void checkasm_check_utvideodsp (void)
 
void checkasm_check_v210enc (void)
 
void checkasm_check_vf_hflip (void)
 
void checkasm_check_vf_threshold (void)
 
void checkasm_check_vp8dsp (void)
 
void checkasm_check_vp9dsp (void)
 
void checkasm_check_videodsp (void)
 
voidcheckasm_check_func (void *func, const char *name,...) av_printf_format(2
 
void int checkasm_bench_func (void)
 
void checkasm_fail_func (const char *msg,...) av_printf_format(1
 
void struct CheckasmPerfcheckasm_get_perf_context (void)
 
void checkasm_report (const char *name,...) av_printf_format(1
 
void int float_near_ulp (float a, float b, unsigned max_ulp)
 
int float_near_abs_eps (float a, float b, float eps)
 
int float_near_abs_eps_ulp (float a, float b, float eps, unsigned max_ulp)
 
int float_near_ulp_array (const float *a, const float *b, unsigned max_ulp, unsigned len)
 
int float_near_abs_eps_array (const float *a, const float *b, float eps, unsigned len)
 
int float_near_abs_eps_array_ulp (const float *a, const float *b, float eps, unsigned max_ulp, unsigned len)
 
int double_near_abs_eps (double a, double b, double eps)
 
int double_near_abs_eps_array (const double *a, const double *b, double eps, unsigned len)
 

Variables

AVLFG checkasm_lfg
 
static av_unused voidfunc_ref
 
static av_unused voidfunc_new
 

Macro Definition Documentation

#define rnd ( )    av_lfg_get(&checkasm_lfg)
#define BENCH_RUNS   1000 /* Trade-off between accuracy and speed */

Definition at line 104 of file checkasm.h.

#define check_func (   func,
  ... 
)    (func_ref = checkasm_check_func((func_new = func), __VA_ARGS__))
#define declare_func (   ret,
  ... 
)    declare_new(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__)
#define declare_func_float (   ret,
  ... 
)    declare_new_float(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__)

Definition at line 112 of file checkasm.h.

Referenced by test_scalarproduct_float(), and test_sum_square().

#define declare_func_emms (   cpu_flags,
  ret,
  ... 
)    declare_new_emms(cpu_flags, ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__)
#define fail ( )    checkasm_fail_func("%s:%d", av_basename(__FILE__), __LINE__)
Examples:
filter_audio.c, hw_decode.c, qsvdec.c, and vaapi_transcode.c.

Definition at line 116 of file checkasm.h.

Referenced by aac_adtstoasc_filter(), aac_decode_frame_int(), aac_encode_init(), add_entry(), add_file(), alloc_frame(), alloc_picture(), apng_encode_frame(), apng_read_header(), apply_param_change(), asf_read_picture(), audio_get_buffer(), audio_read_header(), audio_write_header(), av_bitstream_filter_init(), av_bsf_alloc(), av_frame_ref(), av_get_frame_filename2(), av_hwdevice_ctx_alloc(), av_hwdevice_ctx_create(), av_hwdevice_ctx_create_derived(), av_hwdevice_ctx_init(), av_hwframe_ctx_alloc(), av_hwframe_ctx_create_derived(), av_hwframe_ctx_init(), av_interleaved_write_frame(), av_opt_query_ranges_default(), av_packet_pack_dictionary(), av_packet_ref(), av_probe_input_buffer2(), av_write_trailer(), avcodec_copy_context(), avdevice_capabilities_create(), avf_read_header(), avfilter_graph_create_filter(), avfilter_graph_parse(), avfilter_graph_parse2(), avfilter_init_str(), avformat_new_stream(), avformat_open_input(), avformat_write_header(), avgblur_opencl_filter_frame(), avgblur_opencl_init(), avi_read_header(), avi_write_packet(), avio_open_dir(), avisynth_load_library(), avisynth_open_file(), binkaudio_receive_frame(), bsf_list_init(), bsfs_init(), build_filter(), caca_write_header(), callback(), channelmap_query_formats(), check_add_bytes(), check_add_gradient_pred(), check_add_int16(), check_add_left_pred(), check_add_left_pred_16(), check_add_median_pred(), check_add_res(), check_append_extra_bits(), check_butterflies(), check_decorrelate(), check_decorrelate_stereo(), check_diff_bytes(), check_hflip(), check_ict_float(), check_idct(), check_idct_dc(), check_idct_dc4(), check_idct_multiple(), check_ipred(), check_itxfm(), check_loopfilter(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), check_multiply3x3(), check_pred16x16(), check_pred4x4(), check_pred8x8(), check_pred8x8l(), check_predictor(), check_qmf(), check_rct_int(), check_reorder_pixels(), check_rgb2yuv(), check_sao_band(), check_sao_edge(), check_scalarproduct_fixed(), check_shuffle_bytes(), check_sub_left_pred(), check_threshold(), check_vector_fmul(), check_vector_fmul_add(), check_vector_fmul_window(), check_vector_fmul_window_scaled(), check_yuv2rgb(), check_yuv2yuv(), checkasm_check_audiodsp(), checkasm_check_fmtconvert(), checkasm_check_h264qpel(), checkasm_check_synth_filter(), chunk_end(), codec_create(), codec_init_static_fields(), compute_lpc_coefs(), concat_read_header(), config_input(), config_output(), config_props(), configure_filtergraph(), configure_input_video_filter(), convert_coeffs(), convert_zp2tf(), convolution_opencl_filter_frame(), convolution_opencl_init(), create_master_playlist(), cuda_pool_alloc(), cudascale_config_props(), cudascale_filter_frame(), cudaupload_filter_frame(), dash_read_header(), dec_enc(), decode_blocks(), decode_dvd_subtitles(), decode_extradata_ps(), decode_frame(), decode_frame_common(), decode_frame_header(), decode_header(), decode_ics(), decode_ics_info(), decode_info_header(), decode_init(), decode_main_header(), decode_nal_unit(), decode_nal_units(), decode_packet(), decode_plane(), decode_plane10(), decode_stream_header(), decode_video(), decode_write(), decode_zbuf(), deint_vaapi_filter_frame(), device_open(), dh_is_valid_public_key(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), drm_map_frame(), drm_transfer_data_from(), drm_transfer_data_to(), dshow_show_filter_properties(), dump_extradata(), dump_paramchange(), dvdsub_parse_extradata(), dxva2_map_frame(), dxva2_transfer_data_from(), dxva2_transfer_data_to(), eac3_core_filter(), encode_dvd_subtitles(), encode_frame(), estimate_best_b_count(), extract_extradata_filter(), extract_extradata_init(), fbdev_read_header(), fbdev_write_header(), ff_alloc_picture(), ff_alsa_get_device_list(), ff_alsa_open(), ff_AMediaCodec_cleanOutputBuffers(), ff_AMediaCodec_configure(), ff_AMediaCodec_dequeueInputBuffer(), ff_AMediaCodec_flush(), ff_AMediaCodec_getInputBuffer(), ff_AMediaCodec_getName(), ff_AMediaCodec_getOutputBuffer(), ff_AMediaCodec_getOutputFormat(), ff_AMediaCodec_queueInputBuffer(), ff_AMediaCodec_releaseOutputBuffer(), ff_AMediaCodec_releaseOutputBufferAtTime(), ff_AMediaCodec_start(), ff_AMediaCodec_stop(), ff_AMediaFormat_getBuffer(), ff_AMediaFormat_getFloat(), ff_AMediaFormat_getInt32(), ff_AMediaFormat_getInt64(), ff_AMediaFormat_getString(), ff_AMediaFormat_new(), ff_AMediaFormat_newFromObject(), ff_AMediaFormat_setBuffer(), ff_AMediaFormat_setFloat(), ff_AMediaFormat_setInt32(), ff_AMediaFormat_setInt64(), ff_AMediaFormat_setString(), ff_AMediaFormat_toString(), ff_ccitt_unpack(), ff_celt_init(), ff_dh_compute_shared_secret_key(), ff_dh_init(), ff_dither_alloc(), ff_dxva2_decode_init(), ff_fft_init(), ff_filter_frame_framed(), ff_flac_parse_picture(), ff_frame_pool_audio_init(), ff_frame_pool_get(), ff_frame_pool_video_init(), ff_frame_thread_encoder_init(), ff_h264_alloc_tables(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_h264_parse_ref_count(), ff_h264_ref_picture(), ff_h264_slice_context_init(), ff_hevc_frame_rps(), ff_hwframe_map_create(), ff_img_read_packet(), ff_isom_write_avcc(), ff_mdct15_init(), ff_mdct_init(), ff_mediacodec_dec_init(), ff_merge_channel_layouts(), ff_merge_formats(), ff_merge_samplerates(), ff_mjpeg_decode_frame(), ff_mjpeg_encode_stuffing(), ff_mov_init_hinting(), ff_mpeg_er_init(), ff_mpeg_framesize_alloc(), ff_mpeg_ref_picture(), ff_mpv_common_frame_size_change(), ff_mpv_common_init(), ff_mpv_encode_init(), ff_nvdec_decode_init(), ff_nvdec_start_frame(), ff_opencl_filter_config_output(), ff_opencl_filter_load_program_from_file(), ff_opus_parse_packet(), ff_opus_psy_init(), ff_oss_audio_open(), ff_pulse_audio_connect_context(), ff_pulse_audio_get_devices(), ff_raw_video_read_header(), ff_reshuffle_raw_rgb(), ff_rl_init(), ff_rtp_chain_mux_open(), ff_scale_eval_dimensions(), ff_sndio_open(), ff_snow_common_init_after_header(), ff_tee_parse_slave_options(), ff_thread_release_buffer(), ff_tls_open(), ff_vaapi_decode_init(), ff_vaapi_decode_issue(), ff_vaapi_encode2(), ff_vaapi_encode_init(), ff_vaapi_vpp_config_output(), ff_vaapi_vpp_render_picture(), ffio_fdopen(), ffmal_update_format(), ffmmal_flush(), ffmmal_init_decoder(), ffmpeg_parse_options(), ffurl_open_whitelist(), fifo_basic_test(), fifo_overflow_drop_test(), fifo_thread_attempt_recovery(), fifo_write_packet(), film_read_header(), filter_frame(), filter_units_filter(), find_and_decode_index(), find_image_range(), find_sidx(), fits_read_packet(), flac_read_header(), format_name(), fourxm_read_header(), ftp_current_dir(), ftp_open(), ftp_open_dir(), ftp_passive_mode(), ftp_passive_mode_epsv(), get_buffer(), get_private_data(), get_video_buffer(), get_video_private_data(), gopher_open(), guess_dc(), h264_metadata_filter(), h264_metadata_init(), h264_mp4toannexb_filter(), h264_slice_header_init(), h265_metadata_filter(), h265_metadata_init(), handle_file(), handle_invoke_result(), hapqa_extract(), hds_write_header(), hevc_extradata_to_annexb(), hevc_frame_start(), hevc_init_context(), hevc_mp4toannexb_filter(), hevc_ref_frame(), hls_delete_old_segments(), hls_init(), hls_open(), hls_read_header(), hls_start(), hls_window(), hls_write_header(), http_accept(), http_listen(), http_open_cnx(), huf_uncompress(), hw_device_init_from_string(), hw_device_init_from_type(), hwaccel_retrieve_data(), hwdownload_filter_frame(), hwframe_pool_prealloc(), hwmap_config_output(), hwmap_filter_frame(), hwupload_config_output(), hwupload_filter_frame(), hwupload_query_formats(), iec61883_read_header(), imx_dump_header(), init(), init_axis_from_font(), init_complex_filtergraph(), init_context_frame(), init_cscheme(), init_duplicate_context(), init_muxer(), init_stage(), initFilter(), ism_write_header(), jacosub_read_header(), join_config_output(), kmsgrab_read_header(), libopus_encode_init(), libsmbc_open(), libsmbc_open_dir(), libsrt_setup(), libssh_open(), libssh_open_dir(), list_devices_for_context(), list_op(), ljpeg_encode_init(), load_data(), main(), matroska_parse_frame(), matroska_parse_wavpack(), matroska_read_header(), mca(), mediacodec_dec_parse_format(), mediacodec_wrap_hw_buffer(), misc_vaapi_filter_frame(), mjpeg2jpeg_filter(), mjpega_dump_header(), mkv_strip_wavpack(), mkv_write_header(), mkv_write_seekhead(), mms_open(), mmsh_open_internal(), mov_read_adrm(), mov_read_mfra(), mov_read_stsd(), mov_write_packet(), mp3_header_decompress(), mpeg2_metadata_filter(), mpeg2_metadata_init(), mpeg4_unpack_bframes_filter(), mpeg_mux_init(), mpegts_add_service(), mpegts_init(), mxf_read_header(), noise(), nppscale_config_props(), nppscale_filter_frame(), nsv_parse_NSVs_header(), nut_read_header(), nut_write_packet(), nvdec_decoder_create(), nvenc_check_codec_support(), nvenc_check_device(), nvenc_setup_surfaces(), ogg_read_packet(), old_flac_header(), omx_encode_init(), open_demux_for_component(), opencl_device_create_internal(), opencl_device_init(), opencl_frames_get_constraints(), opencl_map_frame(), opencl_pool_alloc(), opengl_compile_shaders(), opengl_configure_texture(), opengl_draw(), opengl_init_context(), opengl_load_shader(), opengl_prepare(), opengl_prepare_vertex(), opengl_read_limits(), opengl_write_header(), opus_decode_init(), opus_decode_redundancy(), overlay_opencl_blend(), overlay_opencl_load(), pad_last_frame(), parse_command(), parse_fragment(), parse_frame_pbr(), parse_link_name(), parse_nal_units(), parse_packet(), parse_playlist(), parse_script(), parse_string(), pic_arrays_init(), print_sdp(), procamp_vaapi_filter_frame(), process_frame(), program_opencl_run(), prompeg_init(), prompeg_open(), pulse_add_detected_device(), pulse_update_sink_input_info(), pulse_write_header(), pulse_write_packet(), qsv_decode_init(), qsv_device_derive_from_child(), qsv_frame_lock(), qsv_init_child_ctx(), qsv_map_from(), qsvscale_config_props(), qsvscale_filter_frame(), query_formats(), read_apic(), read_chapter(), read_decoding_params(), read_frame(), read_geobtag(), read_header(), read_mfra(), read_moof_duration(), read_packet(), read_priv(), read_tfra(), read_thread(), read_whole_file(), render_fontconfig(), render_freetype(), reopen_demux_for_component(), rkmpp_init_decoder(), rkmpp_retrieve_frame(), rm_read_header(), rtmp_calc_swfhash(), rtmp_http_open(), rtmp_open(), rtmp_send_packet(), rtmp_write_amf_data(), rtp_mpegts_write_header(), rtp_open(), rtp_write_header(), sap_read_header(), sap_write_header(), sbg_read_header(), scale_vaapi_filter_frame(), sctp_open(), sdl2_write_header(), seg_write_packet(), seg_write_trailer(), set_param(), set_sps(), set_string_bool(), shuffleplanes_filter_frame(), srtp_open(), stream_component_open(), stream_open(), svq3_decode_init(), swr_alloc_set_opts(), swr_config_frame(), swr_init(), sws_getDefaultFilter(), sws_init_context(), tcp_open(), tee_open(), tee_write_header(), test_add_squares(), test_autocorrelate(), test_butterflies_float(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), test_hybrid_analysis_ileave(), test_hybrid_synthesis_deint(), test_mul_pair_single(), test_neg_odd_64(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_random_shared_secret(), test_ref_data(), test_scalarproduct_float(), test_stereo_interpolate(), test_sum64x5(), test_sum_square(), test_vector_dmac_scalar(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), test_vector_fmul_scalar(), test_vector_fmul_window(), text2movsub(), tls_client_handshake(), tls_client_handshake_loop(), tls_open(), transcode(), transfer_data_alloc(), try_decode_frame(), try_push_frame(), udp_open(), udp_socket_create(), unix_open(), unsharp_opencl_filter_frame(), unsharp_opencl_init(), unsharp_opencl_make_filter_params(), update_frame_pool(), update_frames(), update_master_pl_info(), url_alloc_for_protocol(), v4l2_get_device_list(), v4l2_read_header(), vaapi_decode_make_config(), vaapi_device_init(), vaapi_encode_config_attributes(), vaapi_encode_create_recon_frames(), vaapi_encode_get_next(), vaapi_encode_h264_write_extra_header(), vaapi_encode_h264_write_sequence_header(), vaapi_encode_h264_write_slice_header(), vaapi_encode_h265_write_sequence_header(), vaapi_encode_h265_write_slice_header(), vaapi_encode_issue(), vaapi_encode_mpeg2_write_picture_header(), vaapi_encode_mpeg2_write_sequence_header(), vaapi_encode_output(), vaapi_frames_get_constraints(), vaapi_frames_init(), vaapi_h264_start_frame(), vaapi_hevc_end_frame(), vaapi_hevc_start_frame(), vaapi_map_frame(), vaapi_mjpeg_decode_slice(), vaapi_mjpeg_start_frame(), vaapi_mpeg2_end_frame(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_end_frame(), vaapi_mpeg4_start_frame(), vaapi_transfer_data_from(), vaapi_transfer_data_to(), vaapi_vc1_end_frame(), vaapi_vp8_decode_slice(), vaapi_vp8_start_frame(), validate_name(), vfw_read_header(), video_get_buffer(), videostream_cb(), videotoolbox_init(), vivo_read_packet(), vp6_parse_header(), vp8_alloc_frame(), vp9_frame_alloc(), vp9_frame_ref(), vp9_raw_reorder_filter(), vp9_superframe_split_filter(), vqa_decode_init(), vt_transfer_data_from(), vt_transfer_data_to(), wavesynth_init(), wavpack_encode_init(), webm_dash_manifest_write_header(), wma_decode_superframe(), write_chapter(), write_codec_attr(), write_fragments(), write_header(), write_sm_data(), write_trailer(), writer_open(), xmv_read_header(), xv_write_header(), and xwma_read_header().

#define report   checkasm_report
#define call_ref (   ...)    ((func_type *)func_ref)(__VA_ARGS__)

Definition at line 122 of file checkasm.h.

Referenced by check_add_bytes(), check_add_gradient_pred(), check_add_int16(), check_add_left_pred(), check_add_left_pred_16(), check_add_median_pred(), check_add_res(), check_append_extra_bits(), check_butterflies(), check_decorrelate(), check_decorrelate_stereo(), check_diff_bytes(), check_hflip(), check_ict_float(), check_idct(), check_idct_dc(), check_idct_dc4(), check_idct_multiple(), check_ipred(), check_itxfm(), check_loopfilter(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), check_multiply3x3(), check_pred16x16(), check_pred4x4(), check_pred8x8(), check_pred8x8l(), check_predictor(), check_qmf(), check_rct_int(), check_reorder_pixels(), check_rgb2yuv(), check_sao_band(), check_sao_edge(), check_scalarproduct_fixed(), check_shuffle_bytes(), check_sub_left_pred(), check_threshold(), check_vector_fmul(), check_vector_fmul_add(), check_vector_fmul_window(), check_vector_fmul_window_scaled(), check_yuv2rgb(), check_yuv2yuv(), checkasm_check_audiodsp(), checkasm_check_fmtconvert(), checkasm_check_h264qpel(), checkasm_check_synth_filter(), test_add_squares(), test_autocorrelate(), test_butterflies_float(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), test_hybrid_analysis_ileave(), test_hybrid_synthesis_deint(), test_mul_pair_single(), test_neg_odd_64(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_scalarproduct_float(), test_stereo_interpolate(), test_sum64x5(), test_sum_square(), test_vector_dmac_scalar(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), test_vector_fmul_scalar(), and test_vector_fmul_window().

#define declare_new (   ret,
  ... 
)

Definition at line 185 of file checkasm.h.

#define declare_new_float (   ret,
  ... 
)

Definition at line 186 of file checkasm.h.

#define declare_new_emms (   cpu_flags,
  ret,
  ... 
)

Definition at line 187 of file checkasm.h.

#define call_new (   ...)    ((func_type *)func_new)(__VA_ARGS__)

Definition at line 189 of file checkasm.h.

Referenced by check_add_bytes(), check_add_gradient_pred(), check_add_int16(), check_add_left_pred(), check_add_left_pred_16(), check_add_median_pred(), check_add_res(), check_append_extra_bits(), check_butterflies(), check_decorrelate(), check_decorrelate_stereo(), check_diff_bytes(), check_hflip(), check_ict_float(), check_idct(), check_idct_dc(), check_idct_dc4(), check_idct_multiple(), check_ipred(), check_itxfm(), check_loopfilter(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), check_multiply3x3(), check_pred16x16(), check_pred4x4(), check_pred8x8(), check_pred8x8l(), check_predictor(), check_qmf(), check_rct_int(), check_reorder_pixels(), check_rgb2yuv(), check_sao_band(), check_sao_edge(), check_scalarproduct_fixed(), check_shuffle_bytes(), check_sub_left_pred(), check_threshold(), check_vector_fmul(), check_vector_fmul_add(), check_vector_fmul_window(), check_vector_fmul_window_scaled(), check_yuv2rgb(), check_yuv2yuv(), checkasm_check_audiodsp(), checkasm_check_fmtconvert(), checkasm_check_h264qpel(), checkasm_check_synth_filter(), test_add_squares(), test_autocorrelate(), test_butterflies_float(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), test_hybrid_analysis_ileave(), test_hybrid_synthesis_deint(), test_mul_pair_single(), test_neg_odd_64(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_scalarproduct_float(), test_stereo_interpolate(), test_sum64x5(), test_sum_square(), test_vector_dmac_scalar(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), test_vector_fmul_scalar(), and test_vector_fmul_window().

#define bench_new (   ...)    while(0)

Definition at line 249 of file checkasm.h.

Referenced by check_add_bytes(), check_add_gradient_pred(), check_add_int16(), check_add_left_pred(), check_add_left_pred_16(), check_add_median_pred(), check_add_res(), check_append_extra_bits(), check_butterflies(), check_decorrelate(), check_decorrelate_stereo(), check_diff_bytes(), check_hflip(), check_ict_float(), check_idct(), check_idct_dc(), check_idct_dc4(), check_idct_multiple(), check_ipred(), check_itxfm(), check_loopfilter(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), check_pred16x16(), check_pred4x4(), check_pred8x8(), check_pred8x8l(), check_predictor(), check_qmf(), check_rct_int(), check_reorder_pixels(), check_sao_band(), check_sao_edge(), check_scalarproduct_fixed(), check_shuffle_bytes(), check_sub_left_pred(), check_threshold(), check_vector_fmul(), check_vector_fmul_add(), check_vector_fmul_window(), check_vector_fmul_window_scaled(), checkasm_check_audiodsp(), checkasm_check_fmtconvert(), checkasm_check_h264qpel(), checkasm_check_synth_filter(), test_add_squares(), test_autocorrelate(), test_butterflies_float(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), test_hybrid_analysis_ileave(), test_hybrid_synthesis_deint(), test_mul_pair_single(), test_neg_odd_64(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_scalarproduct_float(), test_stereo_interpolate(), test_sum64x5(), test_sum_square(), test_vector_dmac_scalar(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), test_vector_fmul_scalar(), and test_vector_fmul_window().

#define PERF_START (   t)    while(0)

Definition at line 250 of file checkasm.h.

Referenced by measure_nop_time().

#define PERF_STOP (   t)    while(0)

Definition at line 251 of file checkasm.h.

Referenced by measure_nop_time().

Function Documentation

void checkasm_check_aacpsdsp ( void  )

Definition at line 215 of file aacpsdsp.c.

void checkasm_check_alacdsp ( void  )

Definition at line 115 of file alacdsp.c.

void checkasm_check_audiodsp ( void  )

Definition at line 51 of file audiodsp.c.

void checkasm_check_blend ( void  )

Definition at line 88 of file vf_blend.c.

void checkasm_check_blockdsp ( void  )

Definition at line 54 of file blockdsp.c.

void checkasm_check_bswapdsp ( void  )

Definition at line 59 of file bswapdsp.c.

void checkasm_check_colorspace ( void  )

Definition at line 308 of file vf_colorspace.c.

void checkasm_check_exrdsp ( void  )

Definition at line 76 of file exrdsp.c.

void checkasm_check_fixed_dsp ( void  )

Definition at line 132 of file fixed_dsp.c.

void checkasm_check_flacdsp ( void  )

Definition at line 56 of file flacdsp.c.

void checkasm_check_float_dsp ( void  )

Definition at line 255 of file float_dsp.c.

void checkasm_check_fmtconvert ( void  )

Definition at line 44 of file fmtconvert.c.

void checkasm_check_g722dsp ( void  )

Definition at line 53 of file g722dsp.c.

void checkasm_check_h264dsp ( void  )

Definition at line 315 of file h264dsp.c.

void checkasm_check_h264pred ( void  )

Definition at line 232 of file h264pred.c.

void checkasm_check_h264qpel ( void  )

Definition at line 50 of file h264qpel.c.

void checkasm_check_hevc_add_res ( void  )

Definition at line 74 of file hevc_add_res.c.

void checkasm_check_hevc_idct ( void  )

Definition at line 86 of file hevc_idct.c.

void checkasm_check_hevc_sao ( void  )

Definition at line 131 of file hevc_sao.c.

void checkasm_check_huffyuvdsp ( void  )

test width not multiple of mmsize

test always with the same size (for perf test)

Definition at line 67 of file huffyuvdsp.c.

void checkasm_check_jpeg2000dsp ( void  )

Definition at line 91 of file jpeg2000dsp.c.

void checkasm_check_llviddsp ( void  )

Definition at line 195 of file llviddsp.c.

void checkasm_check_llviddspenc ( void  )

Definition at line 104 of file llviddspenc.c.

void checkasm_check_pixblockdsp ( void  )

Definition at line 81 of file pixblockdsp.c.

void checkasm_check_sbrdsp ( void  )

Definition at line 250 of file sbrdsp.c.

void checkasm_check_synth_filter ( void  )

Definition at line 44 of file synth_filter.c.

void checkasm_check_sw_rgb ( void  )

Definition at line 67 of file sw_rgb.c.

void checkasm_check_utvideodsp ( void  )

Definition at line 90 of file utvideodsp.c.

void checkasm_check_v210enc ( void  )

Definition at line 81 of file v210enc.c.

void checkasm_check_vf_hflip ( void  )

Definition at line 69 of file vf_hflip.c.

void checkasm_check_vf_threshold ( void  )

Definition at line 78 of file vf_threshold.c.

void checkasm_check_vp8dsp ( void  )

Definition at line 507 of file vp8dsp.c.

void checkasm_check_vp9dsp ( void  )

Definition at line 625 of file vp9dsp.c.

void checkasm_check_videodsp ( void  )

Definition at line 80 of file videodsp.c.

void* checkasm_check_func ( void func,
const char *  name,
  ... 
)
void int checkasm_bench_func ( void  )

Definition at line 749 of file checkasm.c.

void checkasm_fail_func ( const char *  msg,
  ... 
)
void struct CheckasmPerf* checkasm_get_perf_context ( void  )

Definition at line 774 of file checkasm.c.

void checkasm_report ( const char *  name,
  ... 
)
void int float_near_ulp ( float  a,
float  b,
unsigned  max_ulp 
)

Definition at line 264 of file checkasm.c.

Referenced by float_near_abs_eps_ulp(), and float_near_ulp_array().

int float_near_abs_eps ( float  a,
float  b,
float  eps 
)
int float_near_abs_eps_ulp ( float  a,
float  b,
float  eps,
unsigned  max_ulp 
)

Definition at line 317 of file checkasm.c.

Referenced by checkasm_check_synth_filter(), and float_near_abs_eps_array_ulp().

int float_near_ulp_array ( const float *  a,
const float *  b,
unsigned  max_ulp,
unsigned  len 
)

Definition at line 282 of file checkasm.c.

Referenced by checkasm_check_audiodsp(), and checkasm_check_fmtconvert().

int float_near_abs_eps_array ( const float *  a,
const float *  b,
float  eps,
unsigned  len 
)
int float_near_abs_eps_array_ulp ( const float *  a,
const float *  b,
float  eps,
unsigned  max_ulp,
unsigned  len 
)

Definition at line 322 of file checkasm.c.

int double_near_abs_eps ( double  a,
double  b,
double  eps 
)
int double_near_abs_eps_array ( const double *  a,
const double *  b,
double  eps,
unsigned  len 
)

Definition at line 341 of file checkasm.c.

Variable Documentation

AVLFG checkasm_lfg

Definition at line 256 of file checkasm.c.

av_unused void* func_ref
static

Definition at line 102 of file checkasm.h.

av_unused void * func_new
static

Definition at line 102 of file checkasm.h.