29 if (avctx->
width & 1) {
42 const uint32_t *
src = (
const uint32_t *)avpkt->
data;
46 uint16_t *ydst, *udst, *vdst, *yend;
61 ydst = (uint16_t *)pic->data[0];
62 udst = (uint16_t *)pic->data[1];
63 vdst = (uint16_t *)pic->data[2];
70 *udst++ = (v >> 16) & 0xFFC0;
71 *ydst++ = (v >> 6 ) & 0xFFC0;
72 *vdst++ = (v << 4 ) & 0xFFC0;
75 *ydst++ = (v >> 16) & 0xFFC0;
78 ydst += pic->linesize[0] / 2 -
width;
79 udst += pic->linesize[1] / 2 -
width / 2;
80 vdst += pic->linesize[2] / 2 -
width / 2;
86 *udst++ = (v >> 6 ) & 0xFFC0;
87 *ydst++ = (v << 4 ) & 0xFFC0;
90 *vdst++ = (v >> 16) & 0xFFC0;
91 *ydst++ = (v >> 6 ) & 0xFFC0;
94 ydst += pic->linesize[0] / 2 -
width;
95 udst += pic->linesize[1] / 2 -
width / 2;
96 vdst += pic->linesize[2] / 2 -
width / 2;
102 *udst++ = (v << 4 ) & 0xFFC0;
105 *ydst++ = (v >> 16) & 0xFFC0;
106 *vdst++ = (v >> 6 ) & 0xFFC0;
107 *ydst++ = (v << 4 ) & 0xFFC0;
109 ydst += pic->linesize[0] / 2 -
width;
110 udst += pic->linesize[1] / 2 -
width / 2;
111 vdst += pic->linesize[2] / 2 -
width / 2;