30 #define randomize_buffers(buf, size) \
33 for (j = 0; j < size; j+=4) \
34 AV_WN32(buf + j, rnd()); \
37 static const uint8_t
width[] = {12, 16, 20, 32, 36, 128};
39 {12,16,12}, {16,16,16}, {20,23,25}, {32,18,48}, {8,128,16}, {128,128,128}
42 #define MAX_STRIDE 128
43 #define MAX_HEIGHT 128
61 for (
i = 0;
i < 6;
i ++) {
86 int lumStride,
int chromStride,
int srcStride);
92 for (
i = 0;
i < 6;
i ++) {
122 uint8_t *
src0 = src0_buf + 1;
123 uint8_t *
src1 = src1_buf + 1;
124 uint8_t *dst0 = dst0_buf + 2;
125 uint8_t *dst1 = dst1_buf + 2;
128 uint8_t *,
int,
int,
int,
int,
int);
134 for (
int i = 0;
i <= 16;
i++) {
140 int src0_offset = 0, src0_stride =
MAX_STRIDE;
141 int src1_offset = 0, src1_stride =
MAX_STRIDE;
142 int dst_offset = 0, dst_stride = 2 *
MAX_STRIDE;
149 src0_offset = (
h-1)*src0_stride;
150 src0_stride = -src0_stride;
153 src1_offset = (
h-1)*src1_stride;
154 src1_stride = -src1_stride;
157 dst_offset = (
h-1)*dst_stride;
158 dst_stride = -dst_stride;
162 w,
h, src0_stride, src1_stride, dst_stride);
164 w,
h, src0_stride, src1_stride, dst_stride);
168 2 *
w + 2,
h + 1,
"dst");
187 report(
"shuffle_bytes_2103");
190 report(
"shuffle_bytes_0321");
193 report(
"shuffle_bytes_1230");
196 report(
"shuffle_bytes_3012");
199 report(
"shuffle_bytes_3210");
205 report(
"interleave_bytes");