Add check for depths of destination and source image. Fix warning C4127.

This commit is contained in:
Vladimir Bystricky 2013-12-06 14:21:51 +04:00
parent af6134b4b6
commit 3013b469fe

View File

@ -714,7 +714,10 @@ static bool ocl_boxFilter( InputArray _src, OutputArray _dst, int ddepth,
if (BLOCK_SIZE < kernelWorkGroupSize)
return false;
tryWorkItems = kernelWorkGroupSize;
#pragma warning( push )
#pragma warning( disable : 4127 )
} while (true);
#pragma warning( pop )
_dst.create(sz, CV_MAKETYPE(ddepth, cn));
UMat dst = _dst.getUMat();