29 #define randomize_buffers(buf, size) \
32 for (j = 0; j < size; j++) { \
34 AV_WN16A(buf + j, r); \
44 for (i = 2; i <= 5; i++) {
45 int block_size = 1 << i;
46 int size = block_size * block_size;
47 int col_limit = block_size;
51 memcpy(coeffs1, coeffs0,
sizeof(*coeffs0) * size);
52 if (
check_func(h.
idct[i - 2],
"hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) {
55 if (memcmp(coeffs0, coeffs1,
sizeof(*coeffs0) * size))
68 for (i = 2; i <= 5; i++) {
69 int block_size = 1 << i;
70 int size = block_size * block_size;
74 memcpy(coeffs1, coeffs0,
sizeof(*coeffs0) * size);
76 if (
check_func(h.
idct_dc[i - 2],
"hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) {
79 if (memcmp(coeffs0, coeffs1,
sizeof(*coeffs0) * size))
90 for (bit_depth = 8; bit_depth <= 10; bit_depth++) {
98 for (bit_depth = 8; bit_depth <= 10; bit_depth++) {
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,...)
#define LOCAL_ALIGNED(a, t, v,...)
static void check_idct_dc(HEVCDSPContext h, int bit_depth)
static const int16_t coeffs[]
static void check_idct(HEVCDSPContext h, int bit_depth)