Lines Matching defs:CV_DESCALE
97 #define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n))
1167 dst[i] = (uchar)CV_DESCALE(((t << 3) & 0xf8)*B2Y +
1231 dst[i] = (uchar)CV_DESCALE(((t << 3) & 0xf8)*B2Y +
1390 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift);
1571 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift);
1695 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift);
1917 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift);
1918 int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift);
1919 int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift);
2012 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift);
2013 int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift);
2014 int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift);
2134 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift);
2135 int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift);
2136 int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift);
2282 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift);
2283 int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift);
2284 int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift);
2411 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift);
2412 int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift);
2413 int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift);
2674 int b = Y + CV_DESCALE((Cb - delta)*C3, yuv_shift);
2675 int g = Y + CV_DESCALE((Cb - delta)*C2 + (Cr - delta)*C1, yuv_shift);
2676 int r = Y + CV_DESCALE((Cr - delta)*C0, yuv_shift);
2777 int b = Y + CV_DESCALE((Cb - delta)*C3, yuv_shift);
2778 int g = Y + CV_DESCALE((Cb - delta)*C2 + (Cr - delta)*C1, yuv_shift);
2779 int r = Y + CV_DESCALE((Cr - delta)*C0, yuv_shift);
2917 int b = Y + CV_DESCALE((Cb - delta)*C3, yuv_shift);
2918 int g = Y + CV_DESCALE((Cb - delta)*C2 + (Cr - delta)*C1, yuv_shift);
2919 int r = Y + CV_DESCALE((Cr - delta)*C0, yuv_shift);
3095 int b = Y + CV_DESCALE((Cb - delta)*C3, yuv_shift);
3096 int g = Y + CV_DESCALE((Cb - delta)*C2 + (Cr - delta)*C1, yuv_shift);
3097 int r = Y + CV_DESCALE((Cr - delta)*C0, yuv_shift);
3382 int X = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, xyz_shift);
3383 int Y = CV_DESCALE(src[0]*C3 + src[1]*C4 + src[2]*C5, xyz_shift);
3384 int Z = CV_DESCALE(src[0]*C6 + src[1]*C7 + src[2]*C8, xyz_shift);
3487 int X = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, xyz_shift);
3488 int Y = CV_DESCALE(src[0]*C3 + src[1]*C4 + src[2]*C5, xyz_shift);
3489 int Z = CV_DESCALE(src[0]*C6 + src[1]*C7 + src[2]*C8, xyz_shift);
3619 int X = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, xyz_shift);
3620 int Y = CV_DESCALE(src[0]*C3 + src[1]*C4 + src[2]*C5, xyz_shift);
3621 int Z = CV_DESCALE(src[0]*C6 + src[1]*C7 + src[2]*C8, xyz_shift);
3831 int B = CV_DESCALE(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2, xyz_shift);
3832 int G = CV_DESCALE(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5, xyz_shift);
3833 int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift);
3947 int B = CV_DESCALE(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2, xyz_shift);
3948 int G = CV_DESCALE(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5, xyz_shift);
3949 int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift);
4098 int B = CV_DESCALE(src[i]*C0 + src[i+1]*C1 + src[i+2]*C2, xyz_shift);
4099 int G = CV_DESCALE(src[i]*C3 + src[i+1]*C4 + src[i+2]*C5, xyz_shift);
4100 int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift);
5118 int fX = LabCbrtTab_b[CV_DESCALE(R*C0 + G*C1 + B*C2, lab_shift)];
5119 int fY = LabCbrtTab_b[CV_DESCALE(R*C3 + G*C4 + B*C5, lab_shift)];
5120 int fZ = LabCbrtTab_b[CV_DESCALE(R*C6 + G*C7 + B*C8, lab_shift)];
5122 int L = CV_DESCALE( Lscale*fY + Lshift, lab_shift2 );
5123 int a = CV_DESCALE( 500*(fX - fY) + 128*(1 << lab_shift2), lab_shift2 );
5124 int b = CV_DESCALE( 200*(fY - fZ) + 128*(1 << lab_shift2), lab_shift2 );