Kernels used by the provided example applications. More...
Functions | |
| kernel void | combineRGBGL (global float *r, global float *g, global float *b, write_only image2d_t out, local float *data, int width, int norm) |
| Combines the 3 channels of an RGB Image. More... | |
| kernel void | combineRGBGL_PC (global float *r, global float *g, global float *b, global float4 *out, local float *data, int width, int norm) |
| Combines the 3 channels of an RGB Image. More... | |
Kernels used by the provided example applications.
| kernel void combineRGBGL | ( | global float * | r, |
| global float * | g, | ||
| global float * | b, | ||
| write_only image2d_t | out, | ||
| local float * | data, | ||
| int | width, | ||
| int | norm | ||
| ) |
Combines the 3 channels of an RGB Image.
Assembles the pixels, performs RGB normalization, and stores the resulting pixel to an image object.
(SoA -> AoS). For avoiding alignment restrictions, the SoA structure is broken out to the individual channels, R, G, B. (= # pixels in the input buffer). The global and local workspaces should be a multiple of 3.| [in] | r | input buffer with all the pixel values in channel R. |
| [in] | g | input buffer with all the pixel values in channel G. |
| [in] | b | input buffer with all the pixel values in channel B. |
| [out] | out | output RGBA image. |
| [in] | data | local buffer with size 3 x (# work-items in work-group) x sizeof (float) bytes. |
| [in] | width | width the images. |
| [in] | norm | flag to indicate whether to perform RGB normalization before storing the pixels. |
| kernel void combineRGBGL_PC | ( | global float * | r, |
| global float * | g, | ||
| global float * | b, | ||
| global float4 * | out, | ||
| local float * | data, | ||
| int | width, | ||
| int | norm | ||
| ) |
Combines the 3 channels of an RGB Image.
Assembles the pixels, performs RGB normalization, and stores the resulting pixel to an image object.
(SoA -> AoS). For avoiding alignment restrictions, the SoA structure is broken out to the individual channels, R, G, B. (= # pixels in the input buffer). The global and local workspaces should be a multiple of 3.| [in] | r | input buffer with all the pixel values in channel R. |
| [in] | g | input buffer with all the pixel values in channel G. |
| [in] | b | input buffer with all the pixel values in channel B. |
| [out] | out | output RGBA image. |
| [in] | data | local buffer with size 3 x (# work-items in work-group) x sizeof (float) bytes. |
| [in] | width | width the images. |
| [in] | norm | flag to indicate whether to perform RGB normalization before storing the pixels. |
1.8.9.1