Home | History | Annotate | Download | only in imgproc

Lines Matching full:yuv_shift

1398 "yuv_shift  = 14,\n"
1460 "dst[0] = (DATA_TYPE)CV_DESCALE(mad24(src_pix.B_COMP, B2Y, mad24(src_pix.G_COMP, G2Y, mul24(src_pix.R_COMP, R2Y))), yuv_shift);\n"
1530 "const int delta = HALF_MAX * (1 << yuv_shift);\n"
1531 "const int Y = CV_DESCALE(mad24(b, coeffs[0], mad24(g, coeffs[1], mul24(r, coeffs[2]))), yuv_shift);\n"
1532 "const int U = CV_DESCALE(mad24(b - Y, coeffs[3], delta), yuv_shift);\n"
1533 "const int V = CV_DESCALE(mad24(r - Y, coeffs[4], delta), yuv_shift);\n"
1573 "const int r = Y + CV_DESCALE(mul24(V - HALF_MAX, coeffs[3]), yuv_shift);\n"
1574 "const int g = Y + CV_DESCALE(mad24(V - HALF_MAX, coeffs[2], mul24(U - HALF_MAX, coeffs[1])), yuv_shift);\n"
1575 "const int b = Y + CV_DESCALE(mul24(U - HALF_MAX, coeffs[0]), yuv_shift);\n"
1892 "int delta = HALF_MAX * (1 << yuv_shift);\n"
1893 "int Y = CV_DESCALE(mad24(b, coeffs[2], mad24(g, coeffs[1], mul24(r, coeffs[0]))), yuv_shift);\n"
1894 "int Cr = CV_DESCALE(mad24(r - Y, coeffs[3], delta), yuv_shift);\n"
1895 "int Cb = CV_DESCALE(mad24(b - Y, coeffs[4], delta), yuv_shift);\n"
1935 "int r = yp + CV_DESCALE(coeff[0] * (cr - HALF_MAX), yuv_shift);\n"
1936 "int g = yp + CV_DESCALE(mad24(coeff[1], cr - HALF_MAX, coeff[2] * (cb - HALF_MAX)), yuv_shift);\n"
1937 "int b = yp + CV_DESCALE(coeff[3] * (cb - HALF_MAX), yuv_shift);\n"
2166 "dst[dst_index] = (uchar)CV_DESCALE(mad24((t << 3) & 0xf8, B2Y, mad24((t >> 3) & 0xfc, G2Y, ((t >> 8) & 0xf8) * R2Y)), yuv_shift);\n"
2168 "dst[dst_index] = (uchar)CV_DESCALE(mad24((t << 3) & 0xf8, B2Y, mad24((t >> 2) & 0xf8, G2Y, ((t >> 7) & 0xf8) * R2Y)), yuv_shift);\n"