Lines Matching refs:Y2

594         int Y2 = 1 << 18;
598 Y2 += lumSrc[j][i+1] * lumFilter[j];
601 Y2 >>= 19;
602 if ((Y1 | Y2) & 0x100) {
604 Y2 = av_clip_uint8(Y2);
612 err = Y2 + ((7*Y1 + 1*c->dither_error[0][i+1] + 5*c->dither_error[0][i+2] + 3*c->dither_error[0][i+3] + 8 - 256)>>4);
618 accumulate_bit(acc, Y2 + d128[(i + 1) & 7]);
778 #define output_pixels(pos, Y1, U, Y2, V) \
782 dest[pos + 2] = Y2; \
787 dest[pos + 2] = Y2; \
793 dest[pos + 3] = Y2; \
809 int Y2 = 1 << 18;
815 Y2 += lumSrc[j][i * 2 + 1] * lumFilter[j];
822 Y2 >>= 19;
825 if ((Y1 | Y2 | U | V) & 0x100) {
827 Y2 = av_clip_uint8(Y2);
831 output_pixels(4*i, Y1, U, Y2, V);
853 int Y2 = (buf0[i * 2 + 1] * yalpha1 + buf1[i * 2 + 1] * yalpha) >> 19;
857 if ((Y1 | Y2 | U | V) & 0x100) {
859 Y2 = av_clip_uint8(Y2);
864 output_pixels(i * 4, Y1, U, Y2, V);
880 int Y2 = (buf0[i * 2 + 1]+64) >> 7;
884 if ((Y1 | Y2 | U | V) & 0x100) {
886 Y2 = av_clip_uint8(Y2);
891 output_pixels(i * 4, Y1, U, Y2, V);
897 int Y2 = (buf0[i * 2 + 1] + 64) >> 7;
901 if ((Y1 | Y2 | U | V) & 0x100) {
903 Y2 = av_clip_uint8(Y2);
908 output_pixels(i * 4, Y1, U, Y2, V);
1038 int Y2 = -0x40000000;
1045 Y2 += lumSrc[j][i * 2 + 1] * (unsigned)lumFilter[j];
1068 Y2 >>= 14;
1069 Y2 += 0x10000;
1075 Y2 -= c->yuv2rgb_y_offset;
1077 Y2 *= c->yuv2rgb_y_coeff;
1079 Y2 += (1 << 13) - (1 << 29);
1092 output_pixel(&dest[4], av_clip_uintp2(((R_B + Y2) >> 14) + (1<<15), 16));
1093 output_pixel(&dest[5], av_clip_uintp2((( G + Y2) >> 14) + (1<<15), 16));
1094 output_pixel(&dest[6], av_clip_uintp2(((B_R + Y2) >> 14) + (1<<15), 16));
1098 output_pixel(&dest[3], av_clip_uintp2(((R_B + Y2) >> 14) + (1<<15), 16));
1099 output_pixel(&dest[4], av_clip_uintp2((( G + Y2) >> 14) + (1<<15), 16));
1100 output_pixel(&dest[5], av_clip_uintp2(((B_R + Y2) >> 14) + (1<<15), 16));
1128 unsigned Y2 = (buf0[i * 2 + 1] * yalpha1 + buf1[i * 2 + 1] * yalpha) >> 14;
1134 Y2 -= c->yuv2rgb_y_offset;
1136 Y2 *= c->yuv2rgb_y_coeff;
1138 Y2 += (1 << 13) - (1 << 29);
1157 output_pixel(&dest[4], av_clip_uintp2(((int)(R_B + Y2) >> 14) + (1<<15), 16));
1158 output_pixel(&dest[5], av_clip_uintp2(((int)( G + Y2) >> 14) + (1<<15), 16));
1159 output_pixel(&dest[6], av_clip_uintp2(((int)(B_R + Y2) >> 14) + (1<<15), 16));
1163 output_pixel(&dest[3], av_clip_uintp2(((int)(R_B + Y2) >> 14) + (1<<15), 16));
1164 output_pixel(&dest[4], av_clip_uintp2(((int)( G + Y2) >> 14) + (1<<15), 16));
1165 output_pixel(&dest[5], av_clip_uintp2(((int)(B_R + Y2) >> 14) + (1<<15), 16));
1184 SUINT Y2 = (buf0[i * 2 + 1]) >> 2;
1190 Y2 -= c->yuv2rgb_y_offset;
1192 Y2 *= c->yuv2rgb_y_coeff;
1194 Y2 += (1 << 13) - (1 << 29);
1213 output_pixel(&dest[4], av_clip_uintp2(((int)(R_B + Y2) >> 14) + (1<<15), 16));
1214 output_pixel(&dest[5], av_clip_uintp2(((int)( G + Y2) >> 14) + (1<<15), 16));
1215 output_pixel(&dest[6], av_clip_uintp2(((int)(B_R + Y2) >> 14) + (1<<15), 16));
1219 output_pixel(&dest[3], av_clip_uintp2(((int)(R_B + Y2) >> 14) + (1<<15), 16));
1220 output_pixel(&dest[4], av_clip_uintp2(((int)( G + Y2) >> 14) + (1<<15), 16));
1221 output_pixel(&dest[5], av_clip_uintp2(((int)(B_R + Y2) >> 14) + (1<<15), 16));
1230 SUINT Y2 = (buf0[i * 2 + 1]) >> 2;
1236 Y2 -= c->yuv2rgb_y_offset;
1238 Y2 *= c->yuv2rgb_y_coeff;
1240 Y2 += (1 << 13) - (1 << 29);
1259 output_pixel(&dest[4], av_clip_uintp2(((int)(R_B + Y2) >> 14) + (1<<15), 16));
1260 output_pixel(&dest[5], av_clip_uintp2(((int)( G + Y2) >> 14) + (1<<15), 16));
1261 output_pixel(&dest[6], av_clip_uintp2(((int)(B_R + Y2) >> 14) + (1<<15), 16));
1265 output_pixel(&dest[3], av_clip_uintp2(((int)(R_B + Y2) >> 14) + (1<<15), 16));
1266 output_pixel(&dest[4], av_clip_uintp2(((int)( G + Y2) >> 14) + (1<<15), 16));
1267 output_pixel(&dest[5], av_clip_uintp2(((int)(B_R + Y2) >> 14) + (1<<15), 16));
1550 * This function then uses the luminance (Y1/Y2) values to write out the
1554 yuv2rgb_write(uint8_t *_dest, int i, int Y1, int Y2,
1570 dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (hasAlpha ? A2 << sh : 0);
1577 dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (A2 << sh);
1585 dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2];
1600 dest[i * 6 + 3] = r_b[Y2];
1601 dest[i * 6 + 4] = g[Y2];
1602 dest[i * 6 + 5] = b_r[Y2];
1638 dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2];
1645 dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2];
1671 ((r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]) << 4);
1674 dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2];
1692 int Y2 = 1 << 18;
1699 Y2 += lumSrc[j][i * 2 + 1] * lumFilter[j];
1706 Y2 >>= 19;
1728 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1753 int Y2 = (buf0[i * 2 + 1] * yalpha1 + buf1[i * 2 + 1] * yalpha) >> 19;
1768 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1786 int Y2 = (buf0[i * 2 + 1] + 64) >> 7;
1801 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1808 int Y2 = (buf0[i * 2 + 1] + 64) >> 7;
1823 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,