Go to the documentation of this file.
28 #define MAX_BLOCK_SIZE 16
31 #define BUF_SIZE ((MAX_BLOCK_SIZE - 1) * MAX_STRIDE + MAX_BLOCK_SIZE)
36 #define INPUT_BUF_SIZE (MAX_BLOCK_SIZE * MAX_STRIDE + MAX_BLOCK_SIZE + 1 + (MAX_BLOCK_SIZE - 1))
38 #define randomize_buffers(buf0, buf1) \
40 static_assert(sizeof(buf0) == sizeof(buf1), "Incompatible buffers"); \
41 static_assert(!(sizeof(buf0) % 4), "Tail handling needed"); \
42 static_assert(sizeof(buf0[0]) == 1 && sizeof(buf1[0]) == 1, \
43 "Pointer arithmetic needs to be adapted"); \
44 for (size_t k = 0; k < sizeof(buf0); k += 4) { \
46 AV_WN32A(buf0 + k, r); \
47 AV_WN32A(buf1 + k, r); \
63 #define TEST(NAME) { .name = #NAME, .offset = offsetof(QpelDSPContext, NAME) }
64 TEST(put_qpel_pixels_tab),
65 TEST(avg_qpel_pixels_tab),
66 TEST(put_no_rnd_qpel_pixels_tab),
74 for (
unsigned j = 0; j < 2; ++j) {
77 for (
unsigned dxy = 0; dxy < 16; ++dxy) {
83 const uint8_t *
src0 = srcbuf0 + src_offset, *
src1 = srcbuf1 + src_offset;
84 uint8_t *dst0 = dstbuf0 + dst_offset, *dst1 = dstbuf1 + dst_offset;
88 dst1 += (blocksize - 1) *
stride;
89 dst0 += (blocksize - 1) *
stride;
101 if (memcmp(srcbuf0, srcbuf1,
sizeof(srcbuf0)) || memcmp(dstbuf0, dstbuf1,
sizeof(dstbuf0)))
#define declare_func_emms(cpu_flags, ret,...)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
#define check_func(func,...)
static const struct @67 func_tab[]
#define FF_ARRAY_ELEMS(a)
void checkasm_check_qpeldsp(void)
av_cold void ff_qpeldsp_init(QpelDSPContext *c)
void(* qpel_mc_func)(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)
#define DECLARE_ALIGNED(n, t, v)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf offset
#define i(width, name, range_min, range_max)
#define AV_CPU_FLAG_MMXEXT
SSE integer functions or AMD MMX ext.
#define randomize_buffers(buf0, buf1)