Go to the documentation of this file.
30 #define BUF_SIZE (BUF_UNITS * 128 + 8 * BUF_UNITS)
32 #define randomize_buffers() \
35 for (i = 0; i < BUF_SIZE; i += 4) { \
37 AV_WN32A(src10 + i, r); \
38 AV_WN32A(src11 + i, r); \
40 AV_WN32A(src20 + i, r); \
41 AV_WN32A(src21 + i, r); \
43 AV_WN32A(dst0_ + i, r); \
44 AV_WN32A(dst1_ + i, r); \
48 #define check_get_pixels(type, aligned) \
51 declare_func(void, int16_t *block, const uint8_t *pixels, ptrdiff_t line_size); \
53 for (i = 0; i < BUF_UNITS; i++) { \
54 int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \
55 int dst_offset = i * 64; \
56 randomize_buffers(); \
57 call_ref(dst0 + dst_offset, src10 + src_offset, 8); \
58 call_new(dst1 + dst_offset, src11 + src_offset, 8); \
59 if (memcmp(src10, src11, BUF_SIZE)|| memcmp(dst0, dst1, BUF_SIZE)) \
61 bench_new(dst1 + dst_offset, src11 + src_offset, 8); \
65 #define check_diff_pixels(type, aligned) \
68 declare_func(void, int16_t *restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \
70 for (i = 0; i < BUF_UNITS; i++) { \
71 int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \
72 int dst_offset = i * 64; \
73 randomize_buffers(); \
74 call_ref(dst0 + dst_offset, src10 + src_offset, src20 + src_offset, 8); \
75 call_new(dst1 + dst_offset, src11 + src_offset, src21 + src_offset, 8); \
76 if (memcmp(src10, src11, BUF_SIZE) || memcmp(src20, src21, BUF_SIZE) || memcmp(dst0, dst1, BUF_SIZE)) \
78 bench_new(dst1 + dst_offset, src11 + src_offset, src21 + src_offset, 8); \
90 uint16_t *dst0 = (uint16_t *)dst0_;
91 uint16_t *dst1 = (uint16_t *)dst1_;
98 if (
check_func(
h.get_pixels_unaligned,
"get_pixels_unaligned"))
105 if (
check_func(
h.diff_pixels_unaligned,
"diff_pixels_unaligned"))
#define check_func(func,...)
#define check_get_pixels(type, aligned)
void checkasm_check_pixblockdsp(void)
#define LOCAL_ALIGNED_16(t, v,...)
av_cold void ff_pixblockdsp_init(PixblockDSPContext *c, int bits_per_raw_sample)
#define check_diff_pixels(type, aligned)