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 111 of file checkasm.h.
#define BENCH_RUNS 1000 /* Trade-off between accuracy and speed */ |
Definition at line 115 of file checkasm.h.
#define check_func | ( | func, | |
... | |||
) | (func_ref = checkasm_check_func((func_new = func), __VA_ARGS__)) |
Definition at line 118 of file checkasm.h.
#define declare_func | ( | ret, | |
... | |||
) | declare_new(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 122 of file checkasm.h.
#define declare_func_float | ( | ret, | |
... | |||
) | declare_new_float(ret, __VA_ARGS__) typedef ret func_type(__VA_ARGS__) |
Definition at line 123 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 124 of file checkasm.h.
#define fail | ( | ) | checkasm_fail_func("%s:%d", av_basename(__FILE__), __LINE__) |
Definition at line 127 of file checkasm.h.
#define report checkasm_report |
Definition at line 130 of file checkasm.h.
#define call_ref | ( | ... | ) | ((func_type *)func_ref)(__VA_ARGS__) |
Definition at line 133 of file checkasm.h.
#define declare_new | ( | ret, | |
... | |||
) |
Definition at line 201 of file checkasm.h.
#define declare_new_float | ( | ret, | |
... | |||
) |
Definition at line 202 of file checkasm.h.
Definition at line 203 of file checkasm.h.
#define call_new | ( | ... | ) | ((func_type *)func_new)(__VA_ARGS__) |
Definition at line 205 of file checkasm.h.
#define bench_new | ( | ... | ) | while(0) |
Definition at line 268 of file checkasm.h.
#define PERF_START | ( | t | ) | while(0) |
Definition at line 269 of file checkasm.h.
#define PERF_STOP | ( | t | ) | while(0) |
Definition at line 270 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 287 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 86 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 132 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 46 of file synth_filter.c.
void checkasm_check_sw_scale | ( | void | ) |
Definition at line 238 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 71 of file vf_hflip.c.
void checkasm_check_vf_threshold | ( | void | ) |
Definition at line 79 of file vf_threshold.c.
void checkasm_check_videodsp | ( | void | ) |
Definition at line 81 of file videodsp.c.
void* checkasm_check_func | ( | void * | func, |
const char * | name, | ||
... | |||
) |
void int checkasm_bench_func | ( | void | ) |
Definition at line 787 of file checkasm.c.
void checkasm_fail_func | ( | const char * | msg, |
... | |||
) |
void struct CheckasmPerf* checkasm_get_perf_context | ( | void | ) |
Definition at line 812 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 292 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 322 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_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 345 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 310 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 333 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 350 of file checkasm.c.
int double_near_abs_eps | ( | double | a, |
double | b, | ||
double | eps | ||
) |
Definition at line 362 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 369 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 | ( | int16_t | ) |
DECL_CHECKASM_CHECK_FUNC | ( | int32_t | ) |
AVLFG checkasm_lfg |
Definition at line 284 of file checkasm.c.
Referenced by main().
|
static |
Definition at line 113 of file checkasm.h.
|
static |
Definition at line 113 of file checkasm.h.