28 if (avctx->
width & 1) {
41 const uint32_t *
src = (
const uint32_t *)avpkt->
data;
45 uint16_t *ydst, *udst, *vdst, *yend;
60 ydst = (uint16_t *)pic->data[0];
61 udst = (uint16_t *)pic->data[1];
62 vdst = (uint16_t *)pic->data[2];
69 *udst++ = (v >> 16) & 0xFFC0;
70 *ydst++ = (v >> 6 ) & 0xFFC0;
71 *vdst++ = (v << 4 ) & 0xFFC0;
74 *ydst++ = (v >> 16) & 0xFFC0;
77 ydst += pic->linesize[0] / 2 -
width;
78 udst += pic->linesize[1] / 2 -
width / 2;
79 vdst += pic->linesize[2] / 2 -
width / 2;
85 *udst++ = (v >> 6 ) & 0xFFC0;
86 *ydst++ = (v << 4 ) & 0xFFC0;
89 *vdst++ = (v >> 16) & 0xFFC0;
90 *ydst++ = (v >> 6 ) & 0xFFC0;
93 ydst += pic->linesize[0] / 2 -
width;
94 udst += pic->linesize[1] / 2 -
width / 2;
95 vdst += pic->linesize[2] / 2 -
width / 2;
101 *udst++ = (v << 4 ) & 0xFFC0;
104 *ydst++ = (v >> 16) & 0xFFC0;
105 *vdst++ = (v >> 6 ) & 0xFFC0;
106 *ydst++ = (v << 4 ) & 0xFFC0;
108 ydst += pic->linesize[0] / 2 -
width;
109 udst += pic->linesize[1] / 2 -
width / 2;
110 vdst += pic->linesize[2] / 2 -
width / 2;