29 if (avctx->
width & 1) {
46 const uint32_t *src = (
const uint32_t *)avpkt->
data;
50 uint16_t *ydst, *udst, *vdst, *yend;
69 ydst = (uint16_t *)pic->data[0];
70 udst = (uint16_t *)pic->data[1];
71 vdst = (uint16_t *)pic->data[2];
78 *udst++ = (v >> 16) & 0xFFC0;
79 *ydst++ = (v >> 6 ) & 0xFFC0;
80 *vdst++ = (v << 4 ) & 0xFFC0;
83 *ydst++ = (v >> 16) & 0xFFC0;
86 ydst += pic->linesize[0] / 2 -
width;
87 udst += pic->linesize[1] / 2 -
width / 2;
88 vdst += pic->linesize[2] / 2 -
width / 2;
94 *udst++ = (v >> 6 ) & 0xFFC0;
95 *ydst++ = (v << 4 ) & 0xFFC0;
98 *vdst++ = (v >> 16) & 0xFFC0;
99 *ydst++ = (v >> 6 ) & 0xFFC0;
102 ydst += pic->linesize[0] / 2 -
width;
103 udst += pic->linesize[1] / 2 -
width / 2;
104 vdst += pic->linesize[2] / 2 -
width / 2;
110 *udst++ = (v << 4 ) & 0xFFC0;
113 *ydst++ = (v >> 16) & 0xFFC0;
114 *vdst++ = (v >> 6 ) & 0xFFC0;
115 *ydst++ = (v << 4 ) & 0xFFC0;
117 ydst += pic->linesize[0] / 2 -
width;
118 udst += pic->linesize[1] / 2 -
width / 2;
119 vdst += pic->linesize[2] / 2 -
width / 2;