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) |
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 104 of file checkasm.h.
#define BENCH_RUNS 1000 /* Trade-off between accuracy and speed */ |
Definition at line 108 of file checkasm.h.
#define check_func | ( | func, | |
... | |||
) | (func_ref = checkasm_check_func((func_new = func), __VA_ARGS__)) |
Definition at line 111 of file checkasm.h.
#define declare_func | ( | ret, | |
... | |||
) | declare_new(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 115 of file checkasm.h.
#define declare_func_float | ( | ret, | |
... | |||
) | declare_new_float(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 116 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 117 of file checkasm.h.
#define fail | ( | ) | checkasm_fail_func("%s:%d", av_basename(__FILE__), __LINE__) |
Definition at line 120 of file checkasm.h.
#define report checkasm_report |
Definition at line 123 of file checkasm.h.
#define call_ref | ( | ... | ) | ((func_type *)func_ref)(__VA_ARGS__) |
Definition at line 126 of file checkasm.h.
#define declare_new | ( | ret, | |
... | |||
) |
Definition at line 189 of file checkasm.h.
#define declare_new_float | ( | ret, | |
... | |||
) |
Definition at line 190 of file checkasm.h.
Definition at line 191 of file checkasm.h.
#define call_new | ( | ... | ) | ((func_type *)func_new)(__VA_ARGS__) |
Definition at line 193 of file checkasm.h.
#define bench_new | ( | ... | ) | while(0) |
Definition at line 253 of file checkasm.h.
#define PERF_START | ( | t | ) | while(0) |
Definition at line 254 of file checkasm.h.
#define PERF_STOP | ( | t | ) | while(0) |
Definition at line 255 of file checkasm.h.
void checkasm_check_aacpsdsp | ( | void | ) |
Definition at line 215 of file aacpsdsp.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_fixed_dsp | ( | void | ) |
Definition at line 132 of file fixed_dsp.c.
void checkasm_check_float_dsp | ( | void | ) |
Definition at line 277 of file float_dsp.c.
void checkasm_check_fmtconvert | ( | void | ) |
Definition at line 44 of file fmtconvert.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_nlmeans | ( | void | ) |
Definition at line 31 of file vf_nlmeans.c.
void checkasm_check_pixblockdsp | ( | void | ) |
Definition at line 81 of file pixblockdsp.c.
void checkasm_check_synth_filter | ( | void | ) |
Definition at line 44 of file synth_filter.c.
void checkasm_check_utvideodsp | ( | void | ) |
Definition at line 90 of file utvideodsp.c.
void checkasm_check_vf_gblur | ( | void | ) |
Definition at line 36 of file vf_gblur.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_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 763 of file checkasm.c.
void checkasm_fail_func | ( | const char * | msg, |
... | |||
) |
void struct CheckasmPerf* checkasm_get_perf_context | ( | void | ) |
Definition at line 788 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 276 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 | ||
) |
Definition at line 306 of file checkasm.c.
Referenced by float_near_abs_eps_array(), float_near_abs_eps_ulp(), test_butterflies_float(), test_fcmul_add(), 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().
int float_near_abs_eps_ulp | ( | float | a, |
float | b, | ||
float | eps, | ||
unsigned | max_ulp | ||
) |
Definition at line 329 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 294 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 | ||
) |
Definition at line 317 of file checkasm.c.
Referenced by check_ict_float(), checkasm_check_vf_gblur(), test_add_squares(), test_autocorrelate(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), 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_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 334 of file checkasm.c.
int double_near_abs_eps | ( | double | a, |
double | b, | ||
double | eps | ||
) |
Definition at line 346 of file checkasm.c.
Referenced by double_near_abs_eps_array(), test_vector_dmac_scalar(), test_vector_dmul(), and test_vector_dmul_scalar().
int double_near_abs_eps_array | ( | const double * | a, |
const double * | b, | ||
double | eps, | ||
unsigned | len | ||
) |
Definition at line 353 of file checkasm.c.
AVLFG checkasm_lfg |
Definition at line 268 of file checkasm.c.
Referenced by main().
|
static |
Definition at line 106 of file checkasm.h.
|
static |
Definition at line 106 of file checkasm.h.