Home
last modified time | relevance | path

Searched refs:yuv_shift (Results 1 – 5 of 5) sorted by relevance

/external/opencv3/modules/core/include/opencv2/core/cuda/detail/
Dcolor_detail.hpp97 yuv_shift = 14, enumerator
409 …CV_DESCALE(((t << 3) & 0xf8) * B2Y + ((t >> 3) & 0xfc) * G2Y + ((t >> 8) & 0xf8) * R2Y, yuv_shift); in cvt()
417 …CV_DESCALE(((t << 3) & 0xf8) * B2Y + ((t >> 2) & 0xf8) * G2Y + ((t >> 7) & 0xf8) * R2Y, yuv_shift); 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()
502 const int delta = ColorChannel<T>::half() * (1 << yuv_shift); in RGB2YUVConvert()
504 …YUVCoeffs_i[bidx^2] + src[1] * c_RGB2YUVCoeffs_i[1] + src[2] * c_RGB2YUVCoeffs_i[bidx], yuv_shift); 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 …st int b = src.x + CV_DESCALE((src.z - ColorChannel<D>::half()) * c_YUV2RGBCoeffs_i[3], yuv_shift); in YUV2RGBConvert()
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/functional/detail/
Dcolor_cvt.hpp96 yuv_shift = 14, enumerator
290 …CALE(((src << 3) & 0xf8) * B2Y + ((src >> 2) & 0xf8) * G2Y + ((src >> 7) & 0xf8) * R2Y, yuv_shift); in operator ()()
299 …CALE(((src << 3) & 0xf8) * B2Y + ((src >> 3) & 0xfc) * G2Y + ((src >> 8) & 0xf8) * R2Y, yuv_shift); in operator ()()
313 return (T) CV_CUDEV_DESCALE(b * B2Y + g * G2Y + r * R2Y, yuv_shift); in operator ()()
343 const int delta = ColorChannel<T>::half() * (1 << yuv_shift); in operator ()()
345 …DESCALE(b * c_RGB2YUVCoeffs_i[2] + g * c_RGB2YUVCoeffs_i[1] + r * c_RGB2YUVCoeffs_i[0], yuv_shift); in operator ()()
346 const int Cr = CV_CUDEV_DESCALE((r - Y) * c_RGB2YUVCoeffs_i[3] + delta, yuv_shift); in operator ()()
347 const int Cb = CV_CUDEV_DESCALE((b - Y) * c_RGB2YUVCoeffs_i[4] + delta, yuv_shift); in operator ()()
388 … b = src.x + CV_CUDEV_DESCALE((src.z - ColorChannel<T>::half()) * c_YUV2RGBCoeffs_i[3], yuv_shift); in operator ()()
389 …f()) * c_YUV2RGBCoeffs_i[2] + (src.y - ColorChannel<T>::half()) * c_YUV2RGBCoeffs_i[1], yuv_shift); in operator ()()
[all …]
/external/opencv3/modules/imgproc/src/
Dcolor.cpp1072 yuv_shift = 14, enumerator
1091 v_delta = vdupq_n_u32(1 << (yuv_shift - 1)); in RGB5x52Gray()
1099 v_delta = _mm_set1_epi32(1 << (yuv_shift - 1)); in RGB5x52Gray()
1122 v_dst0 = vshrq_n_u32(vaddq_u32(v_dst0, v_delta), yuv_shift); in operator ()()
1123 v_dst1 = vshrq_n_u32(vaddq_u32(v_dst1, v_delta), yuv_shift); in operator ()()
1156 v_dst0 = _mm_srli_epi32(v_dst0, yuv_shift); in operator ()()
1157 v_dst1 = _mm_srli_epi32(v_dst1, yuv_shift); in operator ()()
1169 ((t >> 8) & 0xf8)*R2Y, yuv_shift); in operator ()()
1186 v_dst0 = vshrq_n_u32(vaddq_u32(v_dst0, v_delta), yuv_shift); in operator ()()
1187 v_dst1 = vshrq_n_u32(vaddq_u32(v_dst1, v_delta), yuv_shift); in operator ()()
[all …]
/external/opencv/cv/src/
Dcvcolor.cpp681 #define yuv_shift 14 macro
682 #define yuvYr fix(yuvYr_32f,yuv_shift)
683 #define yuvYg fix(yuvYg_32f,yuv_shift)
684 #define yuvYb fix(yuvYb_32f,yuv_shift)
685 #define yuvCr fix(yuvCr_32f,yuv_shift)
686 #define yuvCb fix(yuvCb_32f,yuv_shift)
688 #define yuv_descale(x) CV_DESCALE((x), yuv_shift)
689 #define yuv_prescale(x) ((x) << yuv_shift)
696 #define yuvRCr fix(yuvRCr_32f,yuv_shift)
697 #define yuvGCr (-fix(-yuvGCr_32f,yuv_shift))
[all …]
/external/opencv3/modules/imgproc/src/opencl/
Dcvtcolor.cl78 yuv_shift = 14,
156 …ALE(mad24(src_pix.B_COMP, B2Y, mad24(src_pix.G_COMP, G2Y, mul24(src_pix.R_COMP, R2Y))), yuv_shift);
236 const int delta = HALF_MAX * (1 << yuv_shift);
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 … int g = Y + CV_DESCALE(mad24(V - HALF_MAX, coeffs[2], mul24(U - HALF_MAX, coeffs[1])), yuv_shift);
288 const int b = Y + CV_DESCALE(mul24(U - HALF_MAX, coeffs[0]), yuv_shift);
651 int delta = HALF_MAX * (1 << yuv_shift);
[all …]