Lines Matching defs:Y1

593         int Y1 = 1 << 18;
597 Y1 += lumSrc[j][i] * lumFilter[j];
600 Y1 >>= 19;
602 if ((Y1 | Y2) & 0x100) {
603 Y1 = av_clip_uint8(Y1);
607 Y1 += (7*err + 1*c->dither_error[0][i] + 5*c->dither_error[0][i+1] + 3*c->dither_error[0][i+2] + 8 - 256)>>4;
609 acc = 2*acc + (Y1 >= 128);
610 Y1 -= 220*(acc&1);
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);
613 c->dither_error[0][i+1] = Y1;
617 accumulate_bit(acc, Y1 + d128[(i + 0) & 7]);
778 #define output_pixels(pos, Y1, U, Y2, V) \
780 dest[pos + 0] = Y1; \
785 dest[pos + 0] = Y1; \
791 dest[pos + 1] = Y1; \
808 int Y1 = 1 << 18;
814 Y1 += lumSrc[j][i * 2] * lumFilter[j];
821 Y1 >>= 19;
825 if ((Y1 | Y2 | U | V) & 0x100) {
826 Y1 = av_clip_uint8(Y1);
831 output_pixels(4*i, Y1, U, Y2, V);
852 int Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 19;
857 if ((Y1 | Y2 | U | V) & 0x100) {
858 Y1 = av_clip_uint8(Y1);
864 output_pixels(i * 4, Y1, U, Y2, V);
879 int Y1 = (buf0[i * 2 ]+64) >> 7;
884 if ((Y1 | Y2 | U | V) & 0x100) {
885 Y1 = av_clip_uint8(Y1);
891 output_pixels(i * 4, Y1, U, Y2, V);
896 int Y1 = (buf0[i * 2 ] + 64) >> 7;
901 if ((Y1 | Y2 | U | V) & 0x100) {
902 Y1 = av_clip_uint8(Y1);
908 output_pixels(i * 4, Y1, U, Y2, V);
1037 int Y1 = -0x40000000;
1044 Y1 += lumSrc[j][i * 2] * (unsigned)lumFilter[j];
1066 Y1 >>= 14; // 10
1067 Y1 += 0x10000;
1074 Y1 -= c->yuv2rgb_y_offset;
1076 Y1 *= c->yuv2rgb_y_coeff;
1078 Y1 += (1 << 13) - (1 << 29); // 21
1087 output_pixel(&dest[0], av_clip_uintp2(((R_B + Y1) >> 14) + (1<<15), 16));
1088 output_pixel(&dest[1], av_clip_uintp2((( G + Y1) >> 14) + (1<<15), 16));
1089 output_pixel(&dest[2], av_clip_uintp2(((B_R + Y1) >> 14) + (1<<15), 16));
1127 unsigned Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 14;
1133 Y1 -= c->yuv2rgb_y_offset;
1135 Y1 *= c->yuv2rgb_y_coeff;
1137 Y1 += (1 << 13) - (1 << 29);
1152 output_pixel(&dest[0], av_clip_uintp2(((int)(R_B + Y1) >> 14) + (1<<15), 16));
1153 output_pixel(&dest[1], av_clip_uintp2(((int)( G + Y1) >> 14) + (1<<15), 16));
1154 output_pixel(&dest[2], av_clip_uintp2(((int)(B_R + Y1) >> 14) + (1<<15), 16));
1183 SUINT Y1 = (buf0[i * 2] ) >> 2;
1189 Y1 -= c->yuv2rgb_y_offset;
1191 Y1 *= c->yuv2rgb_y_coeff;
1193 Y1 += (1 << 13) - (1 << 29);
1208 output_pixel(&dest[0], av_clip_uintp2(((int)(R_B + Y1) >> 14) + (1<<15), 16));
1209 output_pixel(&dest[1], av_clip_uintp2(((int)( G + Y1) >> 14) + (1<<15), 16));
1210 output_pixel(&dest[2], av_clip_uintp2(((int)(B_R + Y1) >> 14) + (1<<15), 16));
1229 SUINT Y1 = (buf0[i * 2] ) >> 2;
1235 Y1 -= c->yuv2rgb_y_offset;
1237 Y1 *= c->yuv2rgb_y_coeff;
1239 Y1 += (1 << 13) - (1 << 29);
1254 output_pixel(&dest[0], av_clip_uintp2(((int)(R_B + Y1) >> 14) + (1<<15), 16));
1255 output_pixel(&dest[1], av_clip_uintp2(((int)( G + Y1) >> 14) + (1<<15), 16));
1256 output_pixel(&dest[2], av_clip_uintp2(((int)(B_R + Y1) >> 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,
1569 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0);
1575 av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0);
1576 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (A1 << sh);
1582 av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0xFF);
1584 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1];
1597 dest[i * 6 + 0] = r_b[Y1];
1598 dest[i * 6 + 1] = g[Y1];
1599 dest[i * 6 + 2] = b_r[Y1];
1637 dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1];
1644 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1];
1670 dest[i] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1] +
1673 dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1];
1691 int Y1 = 1 << 18;
1698 Y1 += lumSrc[j][i * 2] * lumFilter[j];
1705 Y1 >>= 19;
1728 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1752 int Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 19;
1768 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1785 int Y1 = (buf0[i * 2 ] + 64) >> 7;
1801 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1807 int Y1 = (buf0[i * 2 ] + 64) >> 7;
1823 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,