Lines Matching refs:SCALE
45 #define SCALE 14
46 #define cR (int)(0.299*(1 << SCALE) + 0.5)
47 #define cG (int)(0.587*(1 << SCALE) + 0.5)
48 #define cB ((1 << SCALE) - cR - cG)
60 int t = descale( rgb[swap_rb]*cB + rgb[1]*cG + rgb[swap_rb^2]*cR, SCALE );
79 int t = descale( rgb[swap_rb]*cB + rgb[1]*cG + rgb[swap_rb^2]*cR, SCALE );
98 int t = descale( rgba[swap_rb]*cB + rgba[1]*cG + rgba[swap_rb^2]*cR, SCALE );
261 ((((ushort*)bgr555)[i] >> 7) & 0xf8)*cR, SCALE );
278 ((((ushort*)bgr565)[i] >> 8) & 0xf8)*cR, SCALE );
353 int t = descale( y*cB + m*cG + c*cR, SCALE );
622 double scale = src_depth <= CV_8S ? 1 : src_depth <= CV_32S ? 1./256 : 255;
629 cvConvertScale( src, temp, scale, shift );
634 cvConvertScale( src, dst, scale, shift );