Creating Image Variables

To create a new image variable, open the Code Builder Variable Management view. Go to Tools > Intel Code Builder for OpenCL API > OpenCL Kernel Development > Windows > Variable Management.

Create Image Variables in Bitmap Format

To create an input image variable:

  1. Click the Choose type drop-down menu near Add variable at the bottom of the view, and select Images.
  2. In the Image Variable context menu, enter the Input image variable:
    1. Enter a meaningful name, such as bmp_input1.
    2. For IO Mode from the drop-down, select Input.
    3. In the Source field browse to, or enter the path to input bitmap file.
    4. Enter the appropriate size, type, channel order, and other parameters for your input image.

 

To create an output image variable:

  1. Click the Choose type drop-down menu near the Add variable at the bottom of the view, and select Images.
  2. In the Image Variable context menu, enter the Output image variable:
    1. Enter a meaningful name, such as bmp_output1.
    2. For IO Mode from the drop-down, select Output. The output image variable does not take a source file.
    3. Enter the appropriate size, type, channel order, and other parameters for your output image.
    4. Create output images with the correct size, type, channel order, and so on.

 

Create Image Variables in YUV Format

  1. In the IO mode, select Input
  2. Fill out the image variable dialog box features for the input image.
    1. For the Source field, browse to select your YUV image file.
    2. For Source Format, select the appropriate YUV format from the drop-down.
    3. For width and height enter the appropriate values for the image file.
    4. For the rest of the fields, you can use the defaults, or revise to use one of the valid.