34#define randomize(buf, len) \
36 for (int i = 0; i < len; i++) \
43 if (
check_func(
s->rv34_inv_transform_dc,
"rv34_inv_transform_dc")) {
48 memcpy(p2, p1,
sizeof(p1));
53 if (memcmp(p1, p2,
sizeof(p1))) {
60 report(
"rv34_inv_transform_dc");
66 if (
check_func(
s->rv34_idct_dc_add,
"rv34_idct_dc_add")) {
71 memcpy(p2, p1,
sizeof(p1));
76 if (memcmp(p1, p2,
sizeof(p1))) {
83 report(
"rv34_idct_dc_add");
93 if (
check_func(
s->rv34_idct_add,
"rv34_idct_add")) {
101 uint8_t *dst_refp = dst_ref, *dst_newp = dst_new;
111 for (
size_t i = 0;
i <
sizeof(dst_ref);
i += 4)
113 memcpy(block_new, block_ref,
sizeof(block_new));
114 memcpy(dst_new, dst_ref,
sizeof(dst_new));
119 if (memcmp(dst_ref, dst_new,
sizeof(dst_new)) ||
120 memcmp(block_ref, block_new,
sizeof(block_new)))
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
av_cold void ff_rv34dsp_init(RV34DSPContext *c)
Utility Preprocessor macros.
static av_const int sign_extend(int val, unsigned bits)
#define DECLARE_ALIGNED_4(t, v)
#define DECLARE_ALIGNED_16(t, v)
RV30/40 decoder motion compensation functions.
#define FF_ARRAY_ELEMS(a)
static void test_rv34_idct_add(const RV34DSPContext *const s)
#define randomize(buf, len)
void checkasm_check_rv34dsp(void)
static void test_rv34_idct_dc_add(RV34DSPContext *s)
static void test_rv34_inv_transform_dc(RV34DSPContext *s)