30 #define randomize_buffers(buf, size) \ 33 for (j = 0; j < size; j++) { \ 35 AV_WN16A(buf + j, r); \ 45 for (i = 2; i <= 5; i++) {
46 int block_size = 1 <<
i;
47 int size = block_size * block_size;
48 int col_limit = block_size;
52 memcpy(coeffs1, coeffs0,
sizeof(*coeffs0) * size);
53 if (
check_func(h.
idct[i - 2],
"hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) {
56 if (memcmp(coeffs0, coeffs1,
sizeof(*coeffs0) * size))
69 for (i = 2; i <= 5; i++) {
70 int block_size = 1 <<
i;
71 int size = block_size * block_size;
75 memcpy(coeffs1, coeffs0,
sizeof(*coeffs0) * size);
77 if (
check_func(h.
idct_dc[i - 2],
"hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) {
80 if (memcmp(coeffs0, coeffs1,
sizeof(*coeffs0) * size))
91 for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) {
99 for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) {
#define LOCAL_ALIGNED(a, t, v,...)
void(* idct[4])(int16_t *coeffs, int col_limit)
#define AV_CPU_FLAG_MMXEXT
SSE integer functions or AMD MMX ext.
void checkasm_check_hevc_idct(void)
#define declare_func(ret,...)
static void bit_depth(AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth)
#define randomize_buffers(buf, size)
void(* idct_dc[4])(int16_t *coeffs)
#define declare_func_emms(cpu_flags, ret,...)
void ff_hevc_dsp_init(HEVCDSPContext *hevcdsp, int bit_depth)
#define check_func(func,...)
static void check_idct_dc(HEVCDSPContext h, int bit_depth)
static void check_idct(HEVCDSPContext h, int bit_depth)