32 for (
int i = 0;
i <
len;
i++) {
41 static const int widths[] = { 8, 16, 24, 32, 40, 48, 56,
MAX_WIDTH };
42 static const int tail_widths[] = { 2, 6, 10, 14, 16 };
47 if (
check_func(
h.unpack_yuv422p10,
"bitpacked_unpack_yuv422p10")) {
57 uint16_t *v,
int width);
60 const int width = widths[
i];
61 const int src_size =
width * 5 / 2;
64 memset(y0, 0,
width *
sizeof(*y0));
65 memset(y1, 0,
width *
sizeof(*y1));
66 memset(u0, 0,
width / 2 *
sizeof(*u0));
67 memset(u1, 0,
width / 2 *
sizeof(*u1));
68 memset(v0, 0,
width / 2 *
sizeof(*v0));
69 memset(v1, 0,
width / 2 *
sizeof(*v1));
74 memcmp(y0, y1,
width *
sizeof(*y0)) ||
75 memcmp(u0, u1,
width / 2 *
sizeof(*u0)) ||
76 memcmp(v0, v1,
width / 2 *
sizeof(*v0)))
81 const int width = tail_widths[
i];
82 const int bulk =
width & ~7;
83 const int src_size =
width * 5 / 2;
88 h.unpack_yuv422p10(
src1, y1, u1, v1, bulk);
90 y1 + bulk, u1 + bulk / 2, v1 + bulk / 2,
93 memcmp(y0, y1,
width *
sizeof(*y0)) ||
94 memcmp(u0, u1,
width / 2 *
sizeof(*u0)) ||
95 memcmp(v0, v1,
width / 2 *
sizeof(*v0)))
102 report(
"bitpacked_unpack_yuv422p10");
static void bitpacked_unpack_yuv422p10_c(const uint8_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
static av_unused av_cold void ff_bitpackeddec_init(struct BitpackedContext *s)
void checkasm_check_bitpackeddec(void)
#define i(width, name, range_min, range_max)
#define u(width, name, range_min, range_max)
#define LOCAL_ALIGNED_16(t, v,...)
#define FF_ARRAY_ELEMS(a)
#define randomize_buffers()