30#define randomize_buf(buf, size) \
32 for (int i = 0; i < size; i++) \
33 buf[i] = (uint8_t)rnd(); \
43 const uint8_t *
src2,
int w);
50 const int size[] = {15, 2043, 4096};
74 const uint8_t *top,
int w,
int bpp);
76 const int bpps[] = {3, 4, 6, 8};
79 if (
check_func(
c->add_paeth_prediction,
"add_paeth_prediction_%d", bpp)) {
81 uint8_t *dst0 = &dst0_buf[bpp];
82 uint8_t *dst1 = &dst1_buf[bpp];
83 uint8_t *top = &top_buf[bpp];
87 memcpy(dst1_buf, dst0_buf,
BUF_SIZE);
97 for (
int j =
w - 3; j <
w; j++)
101 checkasm_check(uint8_t, dst0_buf, 0, dst1_buf, 0,
BUF_SIZE, 1,
"dst");
116 report(
"add_paeth_prediction");
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)
#define LOCAL_ALIGNED_16(t, v,...)
av_cold void ff_pngdsp_init(PNGDSPContext *dsp)
#define FF_ARRAY_ELEMS(a)
static void check_add_bytes_l2(const PNGDSPContext *c)
#define randomize_buf(buf, size)
static void check_add_paeth_prediction(const PNGDSPContext *c)
void checkasm_check_png(void)