const unsigned int stopStep = MagickMin(startStep+numStepsPerWorkItem, n);
unsigned int cacheIndex = start+startStep-cacheRangeStartX;
-
for (unsigned int i = startStep; i < stopStep; i++, cacheIndex++)
{
float weight = getResizeFilterWeight(resizeFilterCubicCoefficients,
resizeFilterScale, resizeFilterWindowSupport,
resizeFilterBlur, scale*(start + i - bisect + 0.5));
- float4 cp = (float4) 0;
+ float4 cp = (float4)0.0f;
__local CLQuantum *p = inputImageCache + (cacheIndex*number_channels);
cp.x = (float) *(p);
{
density = PerceptibleReciprocal(density);
filteredPixel *= (float4) density;
- gamma *= density;
+ if (alpha_index != 0)
+ gamma *= density;
}
if (alpha_index != 0)
{
density = PerceptibleReciprocal(density);
filteredPixel *= (float4) density;
- gamma *= density;
+ if (alpha_index != 0)
+ gamma *= density;
}
if (alpha_index != 0)
else
{
length=image->columns*resizedRows*number_channels;
- tempImageBuffer=CreateOpenCLBuffer(device,CL_MEM_READ_WRITE,
- length*sizeof(CLQuantum),(void *) NULL);
+ tempImageBuffer=CreateOpenCLBuffer(device,CL_MEM_READ_WRITE,length*
+ sizeof(CLQuantum),(void *) NULL);
if (tempImageBuffer == (cl_mem) NULL)
{
(void) OpenCLThrowMagickException(device,exception,GetMagickModule(),