29 #define YUV2RGB_LOOP(depth) \
30 h_size = (c->dstW + 7) & ~7; \
31 if (h_size * depth > FFABS(dstStride[0])) \
34 vshift = c->srcFormat != AV_PIX_FMT_YUV422P; \
36 for (y = 0; y < srcSliceH; y++) { \
37 uint8_t *image = dst[0] + (y + srcSliceY) * dstStride[0]; \
38 const uint8_t *py = src[0] + y * srcStride[0]; \
39 const uint8_t *pu = src[1] + (y >> vshift) * srcStride[1]; \
40 const uint8_t *pv = src[2] + (y >> vshift) * srcStride[2]; \
41 x86_reg index = -h_size / 2; \
43 extern void RENAME(ff_yuv_420_rgb24)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
44 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
45 const uint8_t *py_2index);
46 extern void RENAME(ff_yuv_420_bgr24)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
47 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
48 const uint8_t *py_2index);
50 extern void RENAME(ff_yuv_420_rgb15)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
51 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
52 const uint8_t *py_2index);
53 extern void RENAME(ff_yuv_420_rgb16)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
54 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
55 const uint8_t *py_2index);
56 extern void RENAME(ff_yuv_420_rgb32)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
57 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
58 const uint8_t *py_2index);
59 extern void RENAME(ff_yuv_420_bgr32)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
60 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
61 const uint8_t *py_2index);
62 extern void RENAME(ff_yuva_420_rgb32)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
63 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
64 const uint8_t *py_2index,
const uint8_t *pa_2index);
65 extern void RENAME(ff_yuva_420_bgr32)(
x86_reg index, uint8_t *image,
const uint8_t *pu_index,
66 const uint8_t *pv_index,
const uint64_t *pointer_c_dither,
67 const uint8_t *py_2index,
const uint8_t *pa_2index);
72 uint8_t *dst[],
int dstStride[])
74 int y, h_size, vshift;
92 uint8_t *dst[],
int dstStride[])
94 int y, h_size, vshift;
112 uint8_t *dst[],
int dstStride[])
114 int y, h_size, vshift;
126 uint8_t *dst[],
int dstStride[])
128 int y, h_size, vshift;
140 uint8_t *dst[],
int dstStride[])
142 int y, h_size, vshift;
145 const uint8_t *pa =
src[3] + y * srcStride[3];
154 uint8_t *dst[],
int dstStride[])
156 int y, h_size, vshift;
160 const uint8_t *pa =
src[3] + y * srcStride[3];
169 uint8_t *dst[],
int dstStride[])
171 int y, h_size, vshift;
183 uint8_t *dst[],
int dstStride[])
185 int y, h_size, vshift;