31 #define randomize_buffers(buf, size) \ 34 for (j = 0; j < size; j++) \ 35 buf[j] = rnd() & 0xFFFF; \ 42 uint16_t *dst0 =
av_mallocz(width *
sizeof(uint16_t));
43 uint16_t *dst1 =
av_mallocz(width *
sizeof(uint16_t));
47 if (!src0 || !src1 || !dst0 || !dst1)
51 memcpy(src1, src0, width *
sizeof(uint16_t));
56 if (memcmp(dst0, dst1, width *
sizeof(uint16_t)))
70 int width = 16 * av_clip(
rnd(), 16, 128);
76 report(
"add_int16_rnd_width");
Memory handling functions.
void(* add_int16)(uint16_t *dst, const uint16_t *src, unsigned mask, int w)
static const uint16_t mask[17]
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
void checkasm_check_huffyuvdsp(void)
#define declare_func_emms(cpu_flags, ret,...)
static void check_add_int16(HuffYUVDSPContext c, unsigned mask, int width, const char *name)
#define randomize_buffers(buf, size)
#define AV_CPU_FLAG_MMX
standard MMX
#define check_func(func,...)
av_cold void ff_huffyuvdsp_init(HuffYUVDSPContext *c, enum AVPixelFormat pix_fmt)
common internal and external API header