FFmpeg
|
#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) |
#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__) |
Variables | |
AVLFG | checkasm_lfg |
static av_unused void * | func_ref |
static av_unused void * | func_new |
#define rnd | ( | ) | av_lfg_get(&checkasm_lfg) |
Definition at line 118 of file checkasm.h.
#define BENCH_RUNS 1000 /* Trade-off between accuracy and speed */ |
Definition at line 122 of file checkasm.h.
#define check_func | ( | func, | |
... | |||
) | (func_ref = checkasm_check_func((func_new = func), __VA_ARGS__)) |
Definition at line 125 of file checkasm.h.
#define declare_func | ( | ret, | |
... | |||
) | declare_new(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 129 of file checkasm.h.
#define declare_func_float | ( | ret, | |
... | |||
) | declare_new_float(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 130 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 131 of file checkasm.h.
#define fail | ( | ) | checkasm_fail_func("%s:%d", av_basename(__FILE__), __LINE__) |
Definition at line 134 of file checkasm.h.
#define report checkasm_report |
Definition at line 137 of file checkasm.h.
#define call_ref | ( | ... | ) | ((func_type *)func_ref)(__VA_ARGS__) |
Definition at line 140 of file checkasm.h.
#define declare_new | ( | ret, | |
... | |||
) |
Definition at line 218 of file checkasm.h.
#define declare_new_float | ( | ret, | |
... | |||
) |
Definition at line 219 of file checkasm.h.
Definition at line 220 of file checkasm.h.
#define call_new | ( | ... | ) | ((func_type *)func_new)(__VA_ARGS__) |
Definition at line 222 of file checkasm.h.
#define bench_new | ( | ... | ) | while(0) |
Definition at line 287 of file checkasm.h.
#define PERF_START | ( | t | ) | while(0) |
Definition at line 288 of file checkasm.h.
#define PERF_STOP | ( | t | ) | while(0) |
Definition at line 289 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 307 of file checkasm.h.
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 88 of file vf_blend.c.
void checkasm_check_blockdsp | ( | void | ) |
Definition at line 55 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_fixed_dsp | ( | void | ) |
Definition at line 133 of file fixed_dsp.c.
void checkasm_check_float_dsp | ( | void | ) |
Definition at line 282 of file float_dsp.c.
void checkasm_check_fmtconvert | ( | void | ) |
Definition at line 46 of file fmtconvert.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_idct | ( | void | ) |
Definition at line 87 of file hevc_idct.c.
void checkasm_check_hevc_pel | ( | void | ) |
Definition at line 534 of file hevc_pel.c.
void checkasm_check_hevc_sao | ( | void | ) |
Definition at line 143 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 92 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_nlmeans | ( | void | ) |
Definition at line 31 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_scale | ( | void | ) |
Definition at line 361 of file sw_scale.c.
void checkasm_check_utvideodsp | ( | void | ) |
Definition at line 91 of file utvideodsp.c.
void checkasm_check_vf_gblur | ( | void | ) |
Definition at line 81 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 78 of file vorbisdsp.c.
void* checkasm_check_func | ( | void * | func, |
const char * | name, | ||
... | |||
) |
void int checkasm_bench_func | ( | void | ) |
Definition at line 817 of file checkasm.c.
void checkasm_fail_func | ( | const char * | msg, |
... | |||
) |
void struct CheckasmPerf* checkasm_get_perf_context | ( | void | ) |
Definition at line 842 of file checkasm.c.
void checkasm_report | ( | const char * | name, |
... | |||
) |
Definition at line 322 of file checkasm.c.
Referenced by float_near_abs_eps_ulp(), and float_near_ulp_array().
Definition at line 352 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 375 of file checkasm.c.
Referenced by checkasm_check_synth_filter(), and float_near_abs_eps_array_ulp().
Definition at line 340 of file checkasm.c.
Referenced by checkasm_check_audiodsp(), and checkasm_check_fmtconvert().
Definition at line 363 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 380 of file checkasm.c.
Definition at line 392 of file checkasm.c.
Referenced by double_near_abs_eps_array(), test_vector_dmac_scalar(), test_vector_dmul(), test_vector_dmul_scalar(), and test_window().
Definition at line 399 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 | ) |
AVLFG checkasm_lfg |
Definition at line 314 of file checkasm.c.
Referenced by main().
|
static |
Definition at line 120 of file checkasm.h.
|
static |
Definition at line 120 of file checkasm.h.