Lines Matching refs:CLQuantum
293 inline CLQuantum ScaleCharToQuantum(const unsigned char value)
295 return((CLQuantum) value);
302 inline CLQuantum ScaleCharToQuantum(const unsigned char value)
304 return((CLQuantum) (257.0f*value));
311 inline CLQuantum ScaleCharToQuantum(const unsigned char value)
313 return((CLQuantum) (16843009.0*value));
327 inline CLQuantum ClampToQuantum(const float value)
329 return (CLQuantum) (clamp(value, 0.0f, QuantumRange) + 0.5f);
334 inline uint ScaleQuantumToMap(CLQuantum value)
336 if (value >= (CLQuantum) MaxMap)
366 inline float getPixelRed(const __global CLQuantum *p) { return (float)*p; }
367 inline float getPixelGreen(const __global CLQuantum *p) { return (float)*(p+1); }
368 inline float getPixelBlue(const __global CLQuantum *p) { return (float)*(p+2); }
369 inline float getPixelAlpha(const __global CLQuantum *p,const unsigned int number_channels) { return (float)*(p+number_channels-1); }
371 inline void setPixelRed(__global CLQuantum *p,const CLQuantum value) { *p=value; }
372 inline void setPixelGreen(__global CLQuantum *p,const CLQuantum value) { *(p+1)=value; }
373 inline void setPixelBlue(__global CLQuantum *p,const CLQuantum value) { *(p+2)=value; }
374 inline void setPixelAlpha(__global CLQuantum *p,const unsigned int number_channels,const CLQuantum value) { *(p+number_channels-1)=value; }
376 inline CLQuantum getBlue(CLPixelType p) { return p.x; }
377 inline void setBlue(CLPixelType* p, CLQuantum value) { (*p).x = value; }
381 inline CLQuantum getGreen(CLPixelType p) { return p.y; }
382 inline void setGreen(CLPixelType* p, CLQuantum value) { (*p).y = value; }
386 inline CLQuantum getRed(CLPixelType p) { return p.z; }
387 inline void setRed(CLPixelType* p, CLQuantum value) { (*p).z = value; }
391 inline CLQuantum getAlpha(CLPixelType p) { return p.w; }
392 inline void setAlpha(CLPixelType* p, CLQuantum value) { (*p).w = value; }
396 inline void ReadChannels(const __global CLQuantum *p, const unsigned int number_channels,
416 inline float4 ReadAllChannels(const __global CLQuantum *image, const unsigned int number_channels,
419 const __global CLQuantum *p = image + getPixelIndex(number_channels, columns, x, y);
436 inline float4 ReadFloat4(const __global CLQuantum *image, const unsigned int number_channels,
439 const __global CLQuantum *p = image + getPixelIndex(number_channels, columns, x, y);
450 inline void WriteChannels(__global CLQuantum *p, const unsigned int number_channels,
470 inline void WriteAllChannels(__global CLQuantum *image, const unsigned int number_channels,
473 __global CLQuantum *p = image + getPixelIndex(number_channels, columns, x, y);
487 inline void WriteFloat4(__global CLQuantum *image, const unsigned int number_channels,
491 __global CLQuantum *p = image + getPixelIndex(number_channels, columns, x, y);
835 void AddNoise(const __global CLQuantum *image,
840 __global CLQuantum *filteredImage)
855 const __global CLQuantum *p = image + pos;
856 __global CLQuantum *q = filteredImage + pos;
905 __kernel void BlurRow(const __global CLQuantum *image,
965 __local float4 *temp,__global CLQuantum *filteredImage)
1180 CLQuantum red, green, blue, alpha;
1516 v.x = (CLQuantum)sv[0];
1517 v.y = (CLQuantum)sv[1];
1518 v.z = (CLQuantum)sv[2];
1521 v.w = (CLQuantum)sv[3];
1601 v.x = (CLQuantum)sv[0];
1602 v.y = (CLQuantum)sv[1];
1603 v.z = (CLQuantum)sv[2];
1606 v.w = (CLQuantum)sv[3];
1640 CLQuantum red, green, blue, alpha;
1690 CLQuantum ApplyFunction(float pixel,const MagickFunction function,
1756 __kernel void ComputeFunction(__global CLQuantum *image,const unsigned int number_channels,
1763 __global CLQuantum *p = image + getPixelIndex(number_channels, columns, x, y);
1805 __kernel void Grayscale(__global CLQuantum *image,const int number_channels,
1811 __global CLQuantum *p = image + getPixelIndex(number_channels, columns, x, y);
1822 CLQuantum intensity=ClampToQuantum(GetPixelIntensity(colorspace, method, red, green, blue));
1962 inline void ConvertRGBToHSL(const CLQuantum red,const CLQuantum green, const CLQuantum blue,
2006 CLQuantum *red,CLQuantum *green,CLQuantum *blue)
2086 CLQuantum *red,CLQuantum *green,CLQuantum *blue)
2121 CLQuantum
2446 void ResizeHorizontalFilter(const __global CLQuantum *inputImage, const unsigned int number_channels,
2447 const unsigned int inputColumns, const unsigned int inputRows, __global CLQuantum *filteredImage,
2451 const float resizeFilterBlur, __local CLQuantum *inputImageCache, const int numCachedPixels,
2524 CLQuantum *p = inputImageCache + (cacheIndex*number_channels);
2608 void ResizeVerticalFilter(const __global CLQuantum *inputImage, const unsigned int number_channels,
2609 const unsigned int inputColumns, const unsigned int inputRows, __global CLQuantum *filteredImage,
2613 const float resizeFilterBlur, __local CLQuantum *inputImageCache, const int numCachedPixels,
2690 __local CLQuantum *p = inputImageCache + cacheIndex;
2784 __kernel void RotationalBlur(const __global CLQuantum *image,
2788 __global CLQuantum *filteredImage)
2868 __kernel void UnsharpMaskBlurColumn(const __global CLQuantum* image,
2874 __global CLQuantum *filteredImage)
2933 __kernel void UnsharpMask(const __global CLQuantum *image,const unsigned int number_channels,
2936 const float gain,const float threshold,__global CLQuantum *filteredImage)
3011 void WaveletDenoise(__global CLQuantum *srcImage,__global CLQuantum *dstImage,
3021 CLQuantum stage[48]; // 16 * 3 (we only need 3 channels)