Khronos* Debug Kernels

VAD includes  a library of debug user kernels from Khronos* that are available under the org.khronos.debug namespace. Debug kernels that read and write images support only PGM formats and RGB raw binary images. RGB binary images are raw binary files in which the file name serves as the header for describing the image content. For example, input_1344x800_I444.rgb file name describes an image named input and the size of 1344X800. The binary file contains the RGB pixels data. The fread_image kernel can handle PGM or RGB images. The fwrite_image gets an image and an array of characters that correspond to the required output image file path.

The table below lists the available set of Khronos Debug Kernels exposed by VAD:

Kernel

Description

Inputs

Outputs

check_array

Compares each item in array with a scalar and reports results as a scalar indicating match

vx_array

vx_scalar

vx_scalar - number of errors (non matching items)

check_image

Compares each pixel in image with a scalar and reports results as a scalar indicating match

vx_image

vx_scalar

vx_scalar - number of errors (non matching pixels)

compare_images

Compares two images

vx_image

vx_image

vx_scalar - number indicating similarity

copy_array

Copies array from input to output

vx_array

vx_array

copy_image

Copies image from input to output

vx_image

vx_image

fill_image

Creates uniform image from single input pixel color

vx_scalar

vx_image

fread_array

Reads array from file. Allows selecting a file via dialog

vx_array

vx_array

fread_image

Reads image from file. Allows selecting a file via dialog

vx_array

vx_image

fwrite_array

Writes array to file. Allows selecting  a file via dialog

vx_array

vx_array

-

fwrite_image

Writes image to file. Allows selecting a file via dialog

vx_image

vx_array

-

 

For more complete information about compiler optimizations, see our Optimization Notice.