• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libswscale/

Lines Matching defs:Y1

339         int Y1 = 1 << 18;
343 Y1 += lumSrc[j][i] * lumFilter[j];
346 Y1 >>= 19;
348 if ((Y1 | Y2) & 0x100) {
349 Y1 = av_clip_uint8(Y1);
353 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;
355 acc = 2*acc + (Y1 >= 128);
356 Y1 -= 220*(acc&1);
358 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);
359 c->dither_error[0][i+1] = Y1;
363 accumulate_bit(acc, Y1 + d128[(i + 0) & 7]);
523 #define output_pixels(pos, Y1, U, Y2, V) \
525 dest[pos + 0] = Y1; \
530 dest[pos + 0] = Y1; \
536 dest[pos + 1] = Y1; \
553 int Y1 = 1 << 18;
559 Y1 += lumSrc[j][i * 2] * lumFilter[j];
566 Y1 >>= 19;
570 if ((Y1 | Y2 | U | V) & 0x100) {
571 Y1 = av_clip_uint8(Y1);
576 output_pixels(4*i, Y1, U, Y2, V);
595 int Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 19;
600 if ((Y1 | Y2 | U | V) & 0x100) {
601 Y1 = av_clip_uint8(Y1);
607 output_pixels(i * 4, Y1, U, Y2, V);
622 int Y1 = (buf0[i * 2 ]+64) >> 7;
627 if ((Y1 | Y2 | U | V) & 0x100) {
628 Y1 = av_clip_uint8(Y1);
634 Y1 = av_clip_uint8(Y1);
639 output_pixels(i * 4, Y1, U, Y2, V);
644 int Y1 = (buf0[i * 2 ] + 64) >> 7;
649 if ((Y1 | Y2 | U | V) & 0x100) {
650 Y1 = av_clip_uint8(Y1);
656 Y1 = av_clip_uint8(Y1);
661 output_pixels(i * 4, Y1, U, Y2, V);
694 int Y1 = -0x40000000;
701 Y1 += lumSrc[j][i * 2] * (unsigned)lumFilter[j];
723 Y1 >>= 14; // 10
724 Y1 += 0x10000;
731 Y1 -= c->yuv2rgb_y_offset;
733 Y1 *= c->yuv2rgb_y_coeff;
735 Y1 += 1 << 13; // 21
744 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
745 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
746 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
774 int Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 14;
780 Y1 -= c->yuv2rgb_y_offset;
782 Y1 *= c->yuv2rgb_y_coeff;
784 Y1 += 1 << 13;
799 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
800 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
801 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
823 int Y1 = (buf0[i * 2] ) >> 2;
829 Y1 -= c->yuv2rgb_y_offset;
831 Y1 *= c->yuv2rgb_y_coeff;
833 Y1 += 1 << 13;
848 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
849 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
850 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
862 int Y1 = (buf0[i * 2] ) >> 2;
868 Y1 -= c->yuv2rgb_y_offset;
870 Y1 *= c->yuv2rgb_y_coeff;
872 Y1 += 1 << 13;
887 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
888 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
889 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
912 int Y1 = -0x40000000;
919 Y1 += lumSrc[j][i * 2] * (unsigned)lumFilter[j];
928 Y1 >>= 14; // 10
929 Y1 += 0x10000;
936 Y1 -= c->yuv2rgb_y_offset;
938 Y1 *= c->yuv2rgb_y_coeff;
940 Y1 += 1 << 13; // 21
949 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
950 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
951 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
974 int Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 14;
980 Y1 -= c->yuv2rgb_y_offset;
982 Y1 *= c->yuv2rgb_y_coeff;
984 Y1 += 1 << 13;
991 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
992 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
993 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
1012 int Y1 = (buf0[i * 2] ) >> 2;
1018 Y1 -= c->yuv2rgb_y_offset;
1020 Y1 *= c->yuv2rgb_y_coeff;
1022 Y1 += 1 << 13;
1029 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
1030 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
1031 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
1040 int Y1 = (buf0[i * 2] ) >> 2;
1046 Y1 -= c->yuv2rgb_y_offset;
1048 Y1 *= c->yuv2rgb_y_coeff;
1050 Y1 += 1 << 13;
1057 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
1058 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
1059 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
1136 * This function then uses the luminance (Y1/Y2) values to write out the
1140 yuv2rgb_write(uint8_t *_dest, int i, int Y1, int Y2,
1155 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0);
1161 av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0);
1162 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (A1 << sh);
1168 av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0xFF);
1170 dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1];
1183 dest[i * 6 + 0] = r_b[Y1];
1184 dest[i * 6 + 1] = g[Y1];
1185 dest[i * 6 + 2] = b_r[Y1];
1223 dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1];
1249 dest[i] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1] +
1252 dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1];
1270 int Y1 = 1 << 18;
1277 Y1 += lumSrc[j][i * 2] * lumFilter[j];
1284 Y1 >>= 19;
1307 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1329 int Y1 = (buf0[i * 2] * yalpha1 + buf1[i * 2] * yalpha) >> 19;
1345 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1362 int Y1 = (buf0[i * 2 ] + 64) >> 7;
1378 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,
1384 int Y1 = (buf0[i * 2 ] + 64) >> 7;
1400 yuv2rgb_write(dest, i, Y1, Y2, hasAlpha ? A1 : 0, hasAlpha ? A2 : 0,