From 566f783968226a95402ab8b1006f763624882d9b Mon Sep 17 00:00:00 2001 From: vbystricky Date: Fri, 4 Apr 2014 13:24:08 +0400 Subject: [PATCH] Fix errors --- modules/imgproc/src/color.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/src/color.cpp b/modules/imgproc/src/color.cpp index 9d203ff..30b04c2 100644 --- a/modules/imgproc/src/color.cpp +++ b/modules/imgproc/src/color.cpp @@ -298,7 +298,7 @@ static ippiReorderFunc ippiSwapChannelsC3RTab[] = 0, (ippiReorderFunc)ippiSwapChannels_32f_C3R, 0, 0 }; -#if (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MAJOR >= 1) +#if (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MINOR >= 1) static ippiReorderFunc ippiSwapChannelsC4RTab[] = { (ippiReorderFunc)ippiSwapChannels_8u_C4R, 0, (ippiReorderFunc)ippiSwapChannels_16u_C4R, 0, @@ -3254,7 +3254,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn ) if( CvtColorIPPLoopCopy(src, dst, IPPReorderFunctor(ippiSwapChannelsC3RTab[depth], 2, 1, 0)) ) return; } -#if (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MAJOR >= 1) +#if (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MINOR >= 1) else if( code == CV_RGBA2BGRA ) { if( CvtColorIPPLoopCopy(src, dst, IPPReorderFunctor(ippiSwapChannelsC4RTab[depth], 2, 1, 0)) ) -- 2.7.4