Go to the documentation of this file.
55 && avpkt->
size / avctx->
height * 3 >= width * 8)
70 y = (uint16_t *)pic->
data[0];
71 u = (uint16_t *)pic->
data[1];
72 v = (uint16_t *)pic->
data[2];
73 line_end = avpkt->
data + stride;
75 while (line++ < avctx->
height) {
79 *u++ = t << 6 & 0xFFC0;
80 *y++ = t >> 4 & 0xFFC0;
81 *v++ = t >> 14 & 0xFFC0;
83 if (src >= line_end - 1) {
87 y = (uint16_t *)(pic->
data[0] + line * pic->
linesize[0]);
88 u = (uint16_t *)(pic->
data[1] + line * pic->
linesize[1]);
89 v = (uint16_t *)(pic->
data[2] + line * pic->
linesize[2]);
95 *y++ = t << 6 & 0xFFC0;
96 *u++ = t >> 4 & 0xFFC0;
97 *y++ = t >> 14 & 0xFFC0;
98 if (src >= line_end - 2) {
104 y = (uint16_t *)(pic->
data[0] + line * pic->
linesize[0]);
105 u = (uint16_t *)(pic->
data[1] + line * pic->
linesize[1]);
106 v = (uint16_t *)(pic->
data[2] + line * pic->
linesize[2]);
112 *v++ = t << 6 & 0xFFC0;
113 *y++ = t >> 4 & 0xFFC0;
114 *u++ = t >> 14 & 0xFFC0;
116 if (src >= line_end - 1) {
120 y = (uint16_t *)(pic->
data[0] + line * pic->
linesize[0]);
121 u = (uint16_t *)(pic->
data[1] + line * pic->
linesize[1]);
122 v = (uint16_t *)(pic->
data[2] + line * pic->
linesize[2]);
128 *y++ = t << 6 & 0xFFC0;
129 *v++ = t >> 4 & 0xFFC0;
130 *y++ = t >> 14 & 0xFFC0;
132 if (src >= line_end - 2) {
138 y = (uint16_t *)(pic->
data[0] + line * pic->
linesize[0]);
139 u = (uint16_t *)(pic->
data[1] + line * pic->
linesize[1]);
140 v = (uint16_t *)(pic->
data[2] + line * pic->
linesize[2]);