From: Maksim Shabunin Date: Wed, 5 Apr 2017 08:48:29 +0000 (+0300) Subject: Fixed cvtColor OCL compilation issue (BGRA2mBGRA) X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1090^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce50df564cef0452cf1536a99ccae92920e5c03e;p=platform%2Fupstream%2Fopencv.git Fixed cvtColor OCL compilation issue (BGRA2mBGRA) --- diff --git a/modules/imgproc/src/opencl/cvtcolor.cl b/modules/imgproc/src/opencl/cvtcolor.cl index daa0483..2193541 100644 --- a/modules/imgproc/src/opencl/cvtcolor.cl +++ b/modules/imgproc/src/opencl/cvtcolor.cl @@ -132,16 +132,10 @@ enum #define R_COMP z #define G_COMP y #define B_COMP x -#elif bidx == 2 +#else #define R_COMP x #define G_COMP y #define B_COMP z -#elif bidx == 3 -// The only kernel that uses bidx == 3 doesn't use these macros. -// But we still need to make the compiler happy. -#define R_COMP w -#define G_COMP w -#define B_COMP w #endif #ifndef uidx