FFmpeg
|
#include <stdint.h>
#include "config.h"
#include "libavutil/avstring.h"
#include "libavutil/cpu.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/timer.h"
#include <setjmp.h>
Go to the source code of this file.
Data Structures | |
struct | CheckasmPerf |
Macros | |
#define | checkasm_save_context() checkasm_handle_signal(sigsetjmp(checkasm_context_buf, 1)) |
#define | checkasm_load_context(s) siglongjmp(checkasm_context_buf, s) |
#define | rnd() av_lfg_get(&checkasm_lfg) |
#define | check_func(func, ...) (checkasm_save_context(), 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(...) |
#define | declare_new(ret, ...) |
#define | declare_new_float(ret, ...) |
#define | declare_new_emms(cpu_flags, ret, ...) |
#define | call_new(...) |
#define | bench_new(...) while(0) |
#define | PERF_START(t) while(0) |
#define | PERF_STOP(t) while(0) |
#define | DECL_CHECKASM_CHECK_FUNC(type) |
#define | PASTE(a, b) a ## b |
#define | CONCAT(a, b) PASTE(a,b) |
#define | checkasm_check(prefix, ...) CONCAT(checkasm_check_, prefix)(__FILE__, __LINE__, __VA_ARGS__) |
Typedefs | |
typedef sigjmp_buf | checkasm_context |
Variables | |
checkasm_context | checkasm_context_buf |
AVLFG | checkasm_lfg |
static av_unused void * | func_ref |
static av_unused void * | func_new |
uint64_t | bench_runs |
#define checkasm_save_context | ( | ) | checkasm_handle_signal(sigsetjmp(checkasm_context_buf, 1)) |
Definition at line 72 of file checkasm.h.
#define checkasm_load_context | ( | s | ) | siglongjmp(checkasm_context_buf, s) |
Definition at line 73 of file checkasm.h.
#define rnd | ( | ) | av_lfg_get(&checkasm_lfg) |
Definition at line 173 of file checkasm.h.
#define check_func | ( | func, | |
... | |||
) | (checkasm_save_context(), func_ref = checkasm_check_func((func_new = func), __VA_ARGS__)) |
Definition at line 180 of file checkasm.h.
#define declare_func | ( | ret, | |
... | |||
) | declare_new(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 184 of file checkasm.h.
#define declare_func_float | ( | ret, | |
... | |||
) | declare_new_float(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 185 of file checkasm.h.
#define declare_func_emms | ( | cpu_flags, | |
ret, | |||
... | |||
) | declare_new_emms(cpu_flags, ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 186 of file checkasm.h.
#define fail | ( | ) | checkasm_fail_func("%s:%d", av_basename(__FILE__), __LINE__) |
Definition at line 189 of file checkasm.h.
#define report checkasm_report |
Definition at line 192 of file checkasm.h.
#define call_ref | ( | ... | ) |
Definition at line 195 of file checkasm.h.
#define declare_new | ( | ret, | |
... | |||
) |
Definition at line 294 of file checkasm.h.
#define declare_new_float | ( | ret, | |
... | |||
) |
Definition at line 295 of file checkasm.h.
Definition at line 296 of file checkasm.h.
#define call_new | ( | ... | ) |
Definition at line 298 of file checkasm.h.
#define bench_new | ( | ... | ) | while(0) |
Definition at line 369 of file checkasm.h.
#define PERF_START | ( | t | ) | while(0) |
Definition at line 370 of file checkasm.h.
#define PERF_STOP | ( | t | ) | while(0) |
Definition at line 371 of file checkasm.h.
#define DECL_CHECKASM_CHECK_FUNC | ( | type | ) |
#define checkasm_check | ( | prefix, | |
... | |||
) | CONCAT(checkasm_check_, prefix)(__FILE__, __LINE__, __VA_ARGS__) |
Definition at line 389 of file checkasm.h.
typedef sigjmp_buf checkasm_context |
Definition at line 71 of file checkasm.h.
void checkasm_check_aacencdsp | ( | void | ) |
Definition at line 100 of file aacencdsp.c.
void checkasm_check_aacpsdsp | ( | void | ) |
Definition at line 234 of file aacpsdsp.c.
void checkasm_check_audiodsp | ( | void | ) |
Definition at line 52 of file audiodsp.c.
void checkasm_check_blend | ( | void | ) |
Definition at line 89 of file vf_blend.c.
void checkasm_check_blockdsp | ( | void | ) |
Definition at line 78 of file blockdsp.c.
void checkasm_check_bswapdsp | ( | void | ) |
Definition at line 60 of file bswapdsp.c.
void checkasm_check_colorspace | ( | void | ) |
Definition at line 309 of file vf_colorspace.c.
void checkasm_check_diracdsp | ( | void | ) |
Definition at line 85 of file diracdsp.c.
void checkasm_check_fixed_dsp | ( | void | ) |
Definition at line 133 of file fixed_dsp.c.
void checkasm_check_float_dsp | ( | void | ) |
Definition at line 297 of file float_dsp.c.
void checkasm_check_fmtconvert | ( | void | ) |
Definition at line 46 of file fmtconvert.c.
void checkasm_check_h264chroma | ( | void | ) |
Definition at line 81 of file h264chroma.c.
void checkasm_check_h264pred | ( | void | ) |
Definition at line 233 of file h264pred.c.
void checkasm_check_h264qpel | ( | void | ) |
Definition at line 51 of file h264qpel.c.
void checkasm_check_hevc_add_res | ( | void | ) |
Definition at line 87 of file hevc_add_res.c.
void checkasm_check_hevc_deblock | ( | void | ) |
Definition at line 264 of file hevc_deblock.c.
void checkasm_check_hevc_idct | ( | void | ) |
Definition at line 108 of file hevc_idct.c.
void checkasm_check_hevc_pel | ( | void | ) |
Definition at line 607 of file hevc_pel.c.
void checkasm_check_hevc_sao | ( | void | ) |
Definition at line 141 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 95 of file huffyuvdsp.c.
void checkasm_check_jpeg2000dsp | ( | void | ) |
Definition at line 92 of file jpeg2000dsp.c.
void checkasm_check_llauddsp | ( | void | ) |
Definition at line 108 of file llauddsp.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_mpegvideoencdsp | ( | void | ) |
Definition at line 132 of file mpegvideoencdsp.c.
void checkasm_check_nlmeans | ( | void | ) |
Definition at line 32 of file vf_nlmeans.c.
void checkasm_check_pixblockdsp | ( | void | ) |
Definition at line 82 of file pixblockdsp.c.
void checkasm_check_synth_filter | ( | void | ) |
Definition at line 47 of file synth_filter.c.
void checkasm_check_sw_range_convert | ( | void | ) |
Definition at line 158 of file sw_range_convert.c.
void checkasm_check_sw_scale | ( | void | ) |
Definition at line 365 of file sw_scale.c.
void checkasm_check_sw_yuv2rgb | ( | void | ) |
Definition at line 233 of file sw_yuv2rgb.c.
void checkasm_check_sw_yuv2yuv | ( | void | ) |
Definition at line 131 of file sw_yuv2yuv.c.
void checkasm_check_utvideodsp | ( | void | ) |
Definition at line 90 of file utvideodsp.c.
void checkasm_check_vf_bwdif | ( | void | ) |
Definition at line 72 of file vf_bwdif.c.
void checkasm_check_vf_gblur | ( | void | ) |
Definition at line 82 of file vf_gblur.c.
void checkasm_check_vf_hflip | ( | void | ) |
Definition at line 72 of file vf_hflip.c.
void checkasm_check_vf_threshold | ( | void | ) |
Definition at line 79 of file vf_threshold.c.
void checkasm_check_vf_sobel | ( | void | ) |
Definition at line 100 of file vf_convolution.c.
void checkasm_check_videodsp | ( | void | ) |
Definition at line 81 of file videodsp.c.
void checkasm_check_vorbisdsp | ( | void | ) |
Definition at line 76 of file vorbisdsp.c.
void* checkasm_check_func | ( | void * | func, |
const char * | name, | ||
... | |||
) |
void int checkasm_bench_func | ( | void | ) |
Definition at line 1078 of file checkasm.c.
void checkasm_fail_func | ( | const char * | msg, |
... | |||
) |
void struct CheckasmPerf* checkasm_get_perf_context | ( | void | ) |
Definition at line 1123 of file checkasm.c.
void checkasm_report | ( | const char * | name, |
... | |||
) |
void void checkasm_set_signal_handler_state | ( | int | enabled | ) |
Definition at line 1104 of file checkasm.c.
Referenced by bench_init_ffmpeg().
int checkasm_handle_signal | ( | int | s | ) |
Definition at line 1108 of file checkasm.c.
Definition at line 419 of file checkasm.c.
Referenced by float_near_abs_eps_ulp(), and float_near_ulp_array().
Definition at line 449 of file checkasm.c.
Referenced by float_near_abs_eps_array(), float_near_abs_eps_ulp(), test_butterflies_float(), test_deemphasis(), test_fcmul_add(), test_inverse_coupling(), test_scalarproduct_float(), test_sum_square(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), test_vector_fmul_scalar(), and test_vector_fmul_window().
Definition at line 472 of file checkasm.c.
Referenced by checkasm_check_synth_filter(), and float_near_abs_eps_array_ulp().
Definition at line 437 of file checkasm.c.
Referenced by check_ac3_sum_square_butterfly_float(), checkasm_check_audiodsp(), checkasm_check_fmtconvert(), and test_abs_pow34().
Definition at line 460 of file checkasm.c.
Referenced by check_horiz_slice(), check_ict_float(), check_postscale_slice(), check_verti_slice(), checkasm_check_av_tx(), test_add_squares(), test_autocorrelate(), test_deemphasis(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), test_mul_pair_single(), test_neg_odd_64(), test_postfilter(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_stereo_interpolate(), and test_sum64x5().
int float_near_abs_eps_array_ulp | ( | const float * | a, |
const float * | b, | ||
float | eps, | ||
unsigned | max_ulp, | ||
unsigned | len | ||
) |
Definition at line 477 of file checkasm.c.
Definition at line 489 of file checkasm.c.
Referenced by double_near_abs_eps_array(), test_compute_autocorr(), test_dcmul_add(), test_evaluate(), test_scalarproduct_double(), test_update(), test_vector_dmac_scalar(), test_vector_dmul(), test_vector_dmul_scalar(), and test_window().
Definition at line 496 of file checkasm.c.
Referenced by checkasm_check_av_tx().
DECL_CHECKASM_CHECK_FUNC | ( | uint8_t | ) |
DECL_CHECKASM_CHECK_FUNC | ( | uint16_t | ) |
DECL_CHECKASM_CHECK_FUNC | ( | uint32_t | ) |
DECL_CHECKASM_CHECK_FUNC | ( | int16_t | ) |
DECL_CHECKASM_CHECK_FUNC | ( | int32_t | ) |
checkasm_context checkasm_context_buf |
Definition at line 734 of file checkasm.c.
AVLFG checkasm_lfg |
Definition at line 411 of file checkasm.c.
Referenced by main().
|
static |
Definition at line 175 of file checkasm.h.
|
static |
Definition at line 175 of file checkasm.h.
uint64_t bench_runs |
Definition at line 110 of file checkasm.c.
Referenced by main().