/external/opencv3/modules/core/include/opencv2/core/cuda/detail/ |
D | color_detail.hpp | 56 #ifndef CV_DESCALE 57 #define CV_DESCALE(x, n) (((x) + (1 << ((n)-1))) >> (n)) macro 409 …return (uchar)CV_DESCALE(((t << 3) & 0xf8) * B2Y + ((t >> 3) & 0xfc) * G2Y + ((t >> 8) & 0xf8) * R… in cvt() 417 …return (uchar)CV_DESCALE(((t << 3) & 0xf8) * B2Y + ((t >> 2) & 0xf8) * G2Y + ((t >> 7) & 0xf8) * R… in cvt() 446 … return (T)CV_DESCALE((unsigned)(src[bidx] * B2Y + src[1] * G2Y + src[bidx^2] * R2Y), yuv_shift); in RGB2GrayConvert() 454 return CV_DESCALE((uint)(b * B2Y + g * G2Y + r * R2Y), yuv_shift); in RGB2GrayConvert() 504 …const int Y = CV_DESCALE(src[0] * c_RGB2YUVCoeffs_i[bidx^2] + src[1] * c_RGB2YUVCoeffs_i[1] + src[… in RGB2YUVConvert() 505 const int Cr = CV_DESCALE((src[bidx^2] - Y) * c_RGB2YUVCoeffs_i[3] + delta, yuv_shift); in RGB2YUVConvert() 506 const int Cb = CV_DESCALE((src[bidx] - Y) * c_RGB2YUVCoeffs_i[4] + delta, yuv_shift); in RGB2YUVConvert() 551 …const int b = src.x + CV_DESCALE((src.z - ColorChannel<D>::half()) * c_YUV2RGBCoeffs_i[3], yuv_shi… in YUV2RGBConvert() [all …]
|
/external/opencv3/modules/imgproc/src/opencl/ |
D | cvtcolor.cl | 74 #define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n)) 156 …dst[0] = (DATA_TYPE)CV_DESCALE(mad24(src_pix.B_COMP, B2Y, mad24(src_pix.G_COMP, G2Y, mul24(src_pix… 237 …const int Y = CV_DESCALE(mad24(b, coeffs[0], mad24(g, coeffs[1], mul24(r, coeffs[2]))), yuv_shift); 238 const int U = CV_DESCALE(mad24(b - Y, coeffs[3], delta), yuv_shift); 239 const int V = CV_DESCALE(mad24(r - Y, coeffs[4], delta), yuv_shift); 286 const int r = Y + CV_DESCALE(mul24(V - HALF_MAX, coeffs[3]), yuv_shift); 287 …const int g = Y + CV_DESCALE(mad24(V - HALF_MAX, coeffs[2], mul24(U - HALF_MAX, coeffs[1])), yuv_s… 288 const int b = Y + CV_DESCALE(mul24(U - HALF_MAX, coeffs[0]), yuv_shift); 652 … int Y = CV_DESCALE(mad24(b, coeffs[2], mad24(g, coeffs[1], mul24(r, coeffs[0]))), yuv_shift); 653 int Cr = CV_DESCALE(mad24(r - Y, coeffs[3], delta), yuv_shift); [all …]
|
/external/opencv/cv/src/ |
D | cvcolor.cpp | 472 #define descale CV_DESCALE 533 dst[i] = (uchar)CV_DESCALE(t,csc_shift); in icvBGR5x52Gray_8u_C2C1R() 541 dst[i] = (uchar)CV_DESCALE(t,csc_shift); in icvBGR5x52Gray_8u_C2C1R() 618 dst[i] = (uchar)CV_DESCALE(t0, csc_shift); in icvBGRx2Gray_8u_CnC1R() 642 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + in icvBGRx2Gray_16u_CnC1R() 688 #define yuv_descale(x) CV_DESCALE((x), yuv_shift) 841 #define xyz_descale(x) CV_DESCALE((x),xyz_shift) 1815 x = CV_DESCALE( x, lab_shift ); in icvBGRx2Lab_8u_CnC3R() 1820 x = CV_DESCALE(x*labSmallScale + labSmallShift,lab_shift); in icvBGRx2Lab_8u_CnC3R() 1823 z = CV_DESCALE( z, lab_shift ); in icvBGRx2Lab_8u_CnC3R() [all …]
|
D | cvderiv.cpp | 600 int s0 = CV_DESCALE(src0[i] - src1[i]*2 + src2[i] + in icvLaplaceCol_32s16s() 602 int s1 = CV_DESCALE(src0[i+1] - src1[i+1]*2 + src2[i+1] + in icvLaplaceCol_32s16s() 624 int s0 = CV_DESCALE(src0[i] - src2[i]*2 + src4[i] + in icvLaplaceCol_32s16s() 627 int s1 = CV_DESCALE(src0[i+1] - src2[i+1]*2 + src4[i+1] + in icvLaplaceCol_32s16s() 665 s0 = CV_DESCALE( s0, shift ); s1 = CV_DESCALE( s1, shift ); in icvLaplaceCol_32s16s()
|
D | cvfilter.cpp | 1273 s0 = CV_DESCALE(s0, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1274 s1 = CV_DESCALE(s1, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1287 s0 = CV_DESCALE(s0, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1288 s1 = CV_DESCALE(s1, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1309 s0 = CV_DESCALE(s0, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1310 s1 = CV_DESCALE(s1, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1312 s2 = CV_DESCALE(s2, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1313 s3 = CV_DESCALE(s3, FILTER_BITS*2); in icvFilterColSymm_32s8u() 1323 s0 = CV_DESCALE(s0, FILTER_BITS*2); in icvFilterColSymm_32s8u()
|
D | cvsmooth.cpp | 283 int t0 = CV_DESCALE(s0*iscale, BLUR_SHIFT), t1 = CV_DESCALE(s1*iscale, BLUR_SHIFT); in icvSumCol_32s8u() 291 int s0 = sum[i] + sp[i], t0 = CV_DESCALE(s0*iscale, BLUR_SHIFT); in icvSumCol_32s8u()
|
D | cvimgwarp.cpp | 54 #define ICV_WARP_DESCALE_8U(x) CV_DESCALE((x), ICV_WARP_SHIFT*2)
|
/external/opencv3/modules/imgproc/src/ |
D | color.cpp | 97 #define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n)) macro 1167 dst[i] = (uchar)CV_DESCALE(((t << 3) & 0xf8)*B2Y + in operator ()() 1231 dst[i] = (uchar)CV_DESCALE(((t << 3) & 0xf8)*B2Y + in operator ()() 1390 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift); in operator ()() 1571 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift); in operator ()() 1695 dst[i] = (ushort)CV_DESCALE((unsigned)(src[0]*cb + src[1]*cg + src[2]*cr), yuv_shift); in operator ()() 1917 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift); in operator ()() 1918 int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift); in operator ()() 1919 int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift); in operator ()() 2012 int Y = CV_DESCALE(src[0]*C0 + src[1]*C1 + src[2]*C2, yuv_shift); in operator ()() [all …]
|
D | demosaicing.cpp | 48 #define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n)) macro 559 dst[0] = (T)CV_DESCALE(t0 + t1 + t2, SHIFT+1); in operator ()() 573 dst[0] = (T)CV_DESCALE(t0 + t1 + t2, SHIFT+2); in operator ()() 578 dst[1] = (T)CV_DESCALE(t0 + t1 + t2, SHIFT+1); in operator ()() 586 dst[0] = (T)CV_DESCALE(t0 + t1 + t2, SHIFT+2); in operator ()()
|
/external/opencv3/modules/video/src/ |
D | lkpyramid.cpp | 48 #define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n)) macro 449 int ival = CV_DESCALE(src[x]*iw00 + src[x+cn]*iw01 + in operator ()() 451 int ixval = CV_DESCALE(dsrc[0]*iw00 + dsrc[cn2]*iw01 + in operator ()() 453 int iyval = CV_DESCALE(dsrc[1]*iw00 + dsrc[cn2+1]*iw01 + dsrc[dstep+1]*iw10 + in operator ()() 659 int diff = CV_DESCALE(Jptr[x]*iw00 + Jptr[x+cn]*iw01 + in operator ()() 733 int diff = CV_DESCALE(Jptr[x]*iw00 + Jptr[x+cn]*iw01 + in operator ()()
|
/external/opencv/cvaux/src/ |
D | cvhmmobs.cpp | 102 #define DESCALE CV_DESCALE
|
/external/opencv/cxcore/include/ |
D | cxmisc.h | 253 #define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n)) macro
|