Compute Library
18.05
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | RGB888_to_RGBA8888_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes) |
Convert an RGB888 image to RGBX8888. More... | |
__kernel void | RGBA8888_to_RGB888_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes) |
Convert an RGB888 image to RGBX8888. More... | |
__kernel void | UYVY422_to_RGB888_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes) |
Convert a UYVY422 image to RGB888 using BT709 color space. More... | |
__kernel void | UYVY422_to_RGBA8888_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes) |
Convert a UYVY422 image to RGBX8888 using BT709 color space. More... | |
__kernel void | YUYV422_to_RGB888_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes) |
Convert a YUYV422 image to RGB888 using BT709 color space. More... | |
__kernel void | YUYV422_to_RGBA8888_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *output_ptr, uint output_stride_x, uint output_step_x, uint output_stride_y, uint output_step_y, uint output_offset_first_element_in_bytes) |
Convert a YUYV422 image to RGBX8888 using BT709 color space. More... | |
__kernel void | RGB888_to_NV12_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *luma_ptr, uint luma_stride_x, uint luma_step_x, uint luma_stride_y, uint luma_step_y, uint luma_offset_first_element_in_bytes, __global uchar *uv_ptr, uint uv_stride_x, uint uv_step_x, uint uv_stride_y, uint uv_step_y, uint uv_offset_first_element_in_bytes) |
Convert a RGB image to NV12 using BT709 color space. More... | |
__kernel void | NV12_to_RGB888_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *rgb_output_ptr, uint rgb_output_stride_x, uint rgb_output_step_x, uint rgb_output_stride_y, uint rgb_output_step_y, uint rgb_output_offset_first_element_in_bytes) |
Convert an NV12 image to RGB888. More... | |
__kernel void | RGB888_to_YUV444_bt709 (__global uchar *rgb_input_ptr, uint rgb_input_stride_x, uint rgb_input_step_x, uint rgb_input_stride_y, uint rgb_input_step_y, uint rgb_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert a RGB image to YUV444 using BT709 color space. More... | |
__kernel void | RGB888_to_IYUV_bt709 (__global uchar *rgb_input_ptr, uint rgb_input_stride_x, uint rgb_input_step_x, uint rgb_input_stride_y, uint rgb_input_step_y, uint rgb_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert a RGB image to IYUV using BT709 color space. More... | |
__kernel void | RGBA8888_to_YUV444_bt709 (__global uchar *rgba_input_ptr, uint rgba_input_stride_x, uint rgba_input_step_x, uint rgba_input_stride_y, uint rgba_input_step_y, uint rgba_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert a RGBA image to YUV444 using BT709 color space. More... | |
__kernel void | RGBA8888_to_NV12_bt709 (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *uv_output_ptr, uint uv_output_stride_x, uint uv_output_step_x, uint uv_output_stride_y, uint uv_output_step_y, uint uv_output_offset_first_element_in_bytes) |
Convert a RGBA image to NV12 using BT709 color space. More... | |
__kernel void | RGBA8888_to_IYUV_bt709 (__global uchar *rgba_input_ptr, uint rgba_input_stride_x, uint rgba_input_step_x, uint rgba_input_stride_y, uint rgba_input_step_y, uint rgba_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert a RGBA image to IYUV using BT709 color space. More... | |
__kernel void | NV12_to_RGBA8888_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *rgb_output_ptr, uint rgb_output_stride_x, uint rgb_output_step_x, uint rgb_output_stride_y, uint rgb_output_step_y, uint rgb_output_offset_first_element_in_bytes) |
Convert an NV12 image to RGB8888. More... | |
__kernel void | NV12_to_IYUV_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert an NV12 image to IYUV. More... | |
__kernel void | NV12_to_YUV444_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert an NV12 image to YUV444. More... | |
__kernel void | NV21_to_RGB888_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *rgb_output_ptr, uint rgb_output_stride_x, uint rgb_output_step_x, uint rgb_output_stride_y, uint rgb_output_step_y, uint rgb_output_offset_first_element_in_bytes) |
Convert an NV21 image to RGB888. More... | |
__kernel void | NV21_to_RGBA8888_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *rgba_output_ptr, uint rgba_output_stride_x, uint rgba_output_step_x, uint rgba_output_stride_y, uint rgba_output_step_y, uint rgba_output_offset_first_element_in_bytes) |
Convert an NV12 image to RGB8888. More... | |
__kernel void | NV21_to_YUV444_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert an NV21 image to YUV444. More... | |
__kernel void | NV21_to_IYUV_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *uv_input_ptr, uint uv_input_stride_x, uint uv_input_step_x, uint uv_input_stride_y, uint uv_input_step_y, uint uv_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert an NV21 image to IYUV. More... | |
__kernel void | UYVY422_to_IYUV_bt709 (__global uchar *uyvy_input_ptr, uint uyvy_input_stride_x, uint uyvy_input_step_x, uint uyvy_input_stride_y, uint uyvy_input_step_y, uint uyvy_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert a UYVY image to IYUV using BT709 color space. More... | |
__kernel void | YUYV422_to_IYUV_bt709 (__global uchar *yuyv_input_ptr, uint yuyv_input_stride_x, uint yuyv_input_step_x, uint yuyv_input_stride_y, uint yuyv_input_step_y, uint yuyv_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert a YUYV image to IYUV using BT709 color space. More... | |
__kernel void | IYUV_to_RGB888_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *u_input_ptr, uint u_input_stride_x, uint u_input_step_x, uint u_input_stride_y, uint u_input_step_y, uint u_input_offset_first_element_in_bytes, __global uchar *v_input_ptr, uint v_input_stride_x, uint v_input_step_x, uint v_input_stride_y, uint v_input_step_y, uint v_input_offset_first_element_in_bytes, __global uchar *rgb_output_ptr, uint rgb_output_stride_x, uint rgb_output_step_x, uint rgb_output_stride_y, uint rgb_output_step_y, uint rgb_output_offset_first_element_in_bytes) |
Convert an IYUV image to RGB888. More... | |
__kernel void | IYUV_to_RGBA8888_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *u_input_ptr, uint u_input_stride_x, uint u_input_step_x, uint u_input_stride_y, uint u_input_step_y, uint u_input_offset_first_element_in_bytes, __global uchar *v_input_ptr, uint v_input_stride_x, uint v_input_step_x, uint v_input_stride_y, uint v_input_step_y, uint v_input_offset_first_element_in_bytes, __global uchar *rgba_output_ptr, uint rgba_output_stride_x, uint rgba_output_step_x, uint rgba_output_stride_y, uint rgba_output_step_y, uint rgba_output_offset_first_element_in_bytes) |
Convert an IYUV image to RGB8888. More... | |
__kernel void | IYUV_to_YUV444_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *u_input_ptr, uint u_input_stride_x, uint u_input_step_x, uint u_input_stride_y, uint u_input_step_y, uint u_input_offset_first_element_in_bytes, __global uchar *v_input_ptr, uint v_input_stride_x, uint v_input_step_x, uint v_input_stride_y, uint v_input_step_y, uint v_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *u_output_ptr, uint u_output_stride_x, uint u_output_step_x, uint u_output_stride_y, uint u_output_step_y, uint u_output_offset_first_element_in_bytes, __global uchar *v_output_ptr, uint v_output_stride_x, uint v_output_step_x, uint v_output_stride_y, uint v_output_step_y, uint v_output_offset_first_element_in_bytes) |
Convert an IYUV image to YUV444. More... | |
__kernel void | IYUV_to_NV12_bt709 (__global uchar *luma_input_ptr, uint luma_input_stride_x, uint luma_input_step_x, uint luma_input_stride_y, uint luma_input_step_y, uint luma_input_offset_first_element_in_bytes, __global uchar *u_input_ptr, uint u_input_stride_x, uint u_input_step_x, uint u_input_stride_y, uint u_input_step_y, uint u_input_offset_first_element_in_bytes, __global uchar *v_input_ptr, uint v_input_stride_x, uint v_input_step_x, uint v_input_stride_y, uint v_input_step_y, uint v_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *uv_output_ptr, uint uv_output_stride_x, uint uv_output_step_x, uint uv_output_stride_y, uint uv_output_step_y, uint uv_output_offset_first_element_in_bytes) |
Convert an IYUV image to NV12. More... | |
__kernel void | YUYV422_to_NV12_bt709 (__global uchar *yuyv_input_ptr, uint yuyv_input_stride_x, uint yuyv_input_step_x, uint yuyv_input_stride_y, uint yuyv_input_step_y, uint yuyv_input_offset_first_element_in_bytes, __global uchar *luma_output_ptr, uint luma_output_stride_x, uint luma_output_step_x, uint luma_output_stride_y, uint luma_output_step_y, uint luma_output_offset_first_element_in_bytes, __global uchar *uv_output_ptr, uint uv_output_stride_x, uint uv_output_step_x, uint uv_output_stride_y, uint uv_output_step_y, uint uv_output_offset_first_element_in_bytes) |
Convert a YUYV image to NV12 using BT709 color space. More... | |
__kernel void | UYVY422_to_NV12_bt709 (__global uchar *input_uyvy_ptr, uint input_uyvy_stride_x, uint input_uyvy_step_x, uint input_uyvy_stride_y, uint input_uyvy_step_y, uint input_uyvy_offset_first_element_in_bytes, __global uchar *luma_ptr, uint luma_stride_x, uint luma_step_x, uint luma_stride_y, uint luma_step_y, uint luma_offset_first_element_in_bytes, __global uchar *uv_ptr, uint uv_stride_x, uint uv_step_x, uint uv_stride_y, uint uv_step_y, uint uv_offset_first_element_in_bytes) |
Convert a UYVY image to NV12 using BT709 color space. More... | |
__kernel void IYUV_to_NV12_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | u_input_ptr, | ||
uint | u_input_stride_x, | ||
uint | u_input_step_x, | ||
uint | u_input_stride_y, | ||
uint | u_input_step_y, | ||
uint | u_input_offset_first_element_in_bytes, | ||
__global uchar * | v_input_ptr, | ||
uint | v_input_stride_x, | ||
uint | v_input_step_x, | ||
uint | v_input_stride_y, | ||
uint | v_input_step_y, | ||
uint | v_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | uv_output_ptr, | ||
uint | uv_output_stride_x, | ||
uint | uv_output_step_x, | ||
uint | uv_output_stride_y, | ||
uint | uv_output_step_y, | ||
uint | uv_output_offset_first_element_in_bytes | ||
) |
Convert an IYUV image to NV12.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | u_input_ptr | Pointer to the source U channel. Supported Format: U8 |
[in] | u_input_stride_x | Stride of the source image U channel in X dimension (in bytes) |
[in] | u_input_step_x | u_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | u_input_step_y | u_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_input_offset_first_element_in_bytes | The offset of the first element in the source U channel |
[in] | v_input_ptr | Pointer to the source V channel. Supported Format: U8 |
[in] | v_input_stride_x | Stride of the source image V channel in X dimension (in bytes) |
[in] | v_input_step_x | v_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_input_stride_y | Stride of the source image V channel in Y dimension (in bytes) |
[in] | v_input_step_y | v_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_input_offset_first_element_in_bytes | The offset of the first element in the source image V channel |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | uv_output_ptr | Pointer to the destination UV channel. Supported Format: U8 |
[in] | uv_output_stride_x | Stride of the destination UV channel in X dimension (in bytes) |
[in] | uv_output_step_x | uv_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | uv_output_step_y | uv_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_output_offset_first_element_in_bytes | The offset of the first element in the destination UV channel |
Definition at line 1703 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void IYUV_to_RGB888_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | u_input_ptr, | ||
uint | u_input_stride_x, | ||
uint | u_input_step_x, | ||
uint | u_input_stride_y, | ||
uint | u_input_step_y, | ||
uint | u_input_offset_first_element_in_bytes, | ||
__global uchar * | v_input_ptr, | ||
uint | v_input_stride_x, | ||
uint | v_input_step_x, | ||
uint | v_input_stride_y, | ||
uint | v_input_step_y, | ||
uint | v_input_offset_first_element_in_bytes, | ||
__global uchar * | rgb_output_ptr, | ||
uint | rgb_output_stride_x, | ||
uint | rgb_output_step_x, | ||
uint | rgb_output_stride_y, | ||
uint | rgb_output_step_y, | ||
uint | rgb_output_offset_first_element_in_bytes | ||
) |
Convert an IYUV image to RGB888.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | u_input_ptr | Pointer to the source U channel. Supported Format: U8 |
[in] | u_input_stride_x | Stride of the source image U channel in X dimension (in bytes) |
[in] | u_input_step_x | u_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | u_input_step_y | u_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_input_offset_first_element_in_bytes | The offset of the first element in the source U channel |
[in] | v_input_ptr | Pointer to the source V channel. Supported Format: U8 |
[in] | v_input_stride_x | Stride of the source image V channel in X dimension (in bytes) |
[in] | v_input_step_x | v_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_input_stride_y | Stride of the source image V channel in Y dimension (in bytes) |
[in] | v_input_step_y | v_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_input_offset_first_element_in_bytes | The offset of the first element in the source image V channel |
[out] | rgb_output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | rgb_output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | rgb_output_step_x | rgb_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgb_output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | rgb_output_step_y | rgb_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgb_output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 1462 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void IYUV_to_RGBA8888_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | u_input_ptr, | ||
uint | u_input_stride_x, | ||
uint | u_input_step_x, | ||
uint | u_input_stride_y, | ||
uint | u_input_step_y, | ||
uint | u_input_offset_first_element_in_bytes, | ||
__global uchar * | v_input_ptr, | ||
uint | v_input_stride_x, | ||
uint | v_input_step_x, | ||
uint | v_input_stride_y, | ||
uint | v_input_step_y, | ||
uint | v_input_offset_first_element_in_bytes, | ||
__global uchar * | rgba_output_ptr, | ||
uint | rgba_output_stride_x, | ||
uint | rgba_output_step_x, | ||
uint | rgba_output_stride_y, | ||
uint | rgba_output_step_y, | ||
uint | rgba_output_offset_first_element_in_bytes | ||
) |
Convert an IYUV image to RGB8888.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | u_input_ptr | Pointer to the source U channel. Supported Format: U8 |
[in] | u_input_stride_x | Stride of the source image U channel in X dimension (in bytes) |
[in] | u_input_step_x | u_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | u_input_step_y | u_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_input_offset_first_element_in_bytes | The offset of the first element in the source U channel |
[in] | v_input_ptr | Pointer to the source V channel. Supported Format: U8 |
[in] | v_input_stride_x | Stride of the source image V channel in X dimension (in bytes) |
[in] | v_input_step_x | v_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_input_stride_y | Stride of the source image V channel in Y dimension (in bytes) |
[in] | v_input_step_y | v_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_input_offset_first_element_in_bytes | The offset of the first element in the source image V channel |
[out] | rgba_output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | rgba_output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | rgba_output_step_x | rgba_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgba_output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | rgba_output_step_y | rgba_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgba_output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 1541 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void IYUV_to_YUV444_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | u_input_ptr, | ||
uint | u_input_stride_x, | ||
uint | u_input_step_x, | ||
uint | u_input_stride_y, | ||
uint | u_input_step_y, | ||
uint | u_input_offset_first_element_in_bytes, | ||
__global uchar * | v_input_ptr, | ||
uint | v_input_stride_x, | ||
uint | v_input_step_x, | ||
uint | v_input_stride_y, | ||
uint | v_input_step_y, | ||
uint | v_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert an IYUV image to YUV444.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | u_input_ptr | Pointer to the source U channel. Supported Format: U8 |
[in] | u_input_stride_x | Stride of the source image U channel in X dimension (in bytes) |
[in] | u_input_step_x | u_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | u_input_step_y | u_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_input_offset_first_element_in_bytes | The offset of the first element in the source U channel |
[in] | v_input_ptr | Pointer to the source V channel. Supported Format: U8 |
[in] | v_input_stride_x | Stride of the source image V channel in X dimension (in bytes) |
[in] | v_input_step_x | v_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_input_stride_y | Stride of the source image V channel in Y dimension (in bytes) |
[in] | v_input_step_y | v_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_input_offset_first_element_in_bytes | The offset of the first element in the source image V channel |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 1633 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV12_to_IYUV_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert an NV12 image to IYUV.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 949 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV12_to_RGB888_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | rgb_output_ptr, | ||
uint | rgb_output_stride_x, | ||
uint | rgb_output_step_x, | ||
uint | rgb_output_stride_y, | ||
uint | rgb_output_step_y, | ||
uint | rgb_output_offset_first_element_in_bytes | ||
) |
Convert an NV12 image to RGB888.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | rgb_output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | rgb_output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | rgb_output_step_x | rgb_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgb_output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | rgb_output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgb_output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 410 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV12_to_RGBA8888_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | rgb_output_ptr, | ||
uint | rgb_output_stride_x, | ||
uint | rgb_output_step_x, | ||
uint | rgb_output_stride_y, | ||
uint | rgb_output_step_y, | ||
uint | rgb_output_offset_first_element_in_bytes | ||
) |
Convert an NV12 image to RGB8888.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | rgb_output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | rgb_output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | rgb_output_step_x | rgb_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgb_output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | rgb_output_step_y | rgb_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgb_output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 867 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV12_to_YUV444_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert an NV12 image to YUV444.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 1011 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV21_to_IYUV_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert an NV21 image to IYUV.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 1285 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV21_to_RGB888_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | rgb_output_ptr, | ||
uint | rgb_output_stride_x, | ||
uint | rgb_output_step_x, | ||
uint | rgb_output_stride_y, | ||
uint | rgb_output_step_y, | ||
uint | rgb_output_offset_first_element_in_bytes | ||
) |
Convert an NV21 image to RGB888.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | rgb_output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | rgb_output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | rgb_output_step_x | rgb_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgb_output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | rgb_output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgb_output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 1065 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV21_to_RGBA8888_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | rgba_output_ptr, | ||
uint | rgba_output_stride_x, | ||
uint | rgba_output_step_x, | ||
uint | rgba_output_stride_y, | ||
uint | rgba_output_step_y, | ||
uint | rgba_output_offset_first_element_in_bytes | ||
) |
Convert an NV12 image to RGB8888.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | rgba_output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | rgba_output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | rgba_output_step_x | rgba_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgba_output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | rgba_output_step_y | rgba_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgba_output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 1136 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void NV21_to_YUV444_bt709 | ( | __global uchar * | luma_input_ptr, |
uint | luma_input_stride_x, | ||
uint | luma_input_step_x, | ||
uint | luma_input_stride_y, | ||
uint | luma_input_step_y, | ||
uint | luma_input_offset_first_element_in_bytes, | ||
__global uchar * | uv_input_ptr, | ||
uint | uv_input_stride_x, | ||
uint | uv_input_step_x, | ||
uint | uv_input_stride_y, | ||
uint | uv_input_step_y, | ||
uint | uv_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert an NV21 image to YUV444.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | luma_input_ptr | Pointer to the source luma channel. Supported Format: U8 |
[in] | luma_input_stride_x | Stride of the luma image in X dimension (in bytes) |
[in] | luma_input_step_x | luma_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_input_stride_y | Stride of the source luma channel in Y dimension (in bytes) |
[in] | luma_input_step_y | luma_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | uv_input_ptr | Pointer to the source uv channel. Supported Format: U8 |
[in] | uv_input_stride_x | Stride of the source image uv channel in X dimension (in bytes) |
[in] | uv_input_step_x | uv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uv_input_step_y | uv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 1219 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void RGB888_to_IYUV_bt709 | ( | __global uchar * | rgb_input_ptr, |
uint | rgb_input_stride_x, | ||
uint | rgb_input_step_x, | ||
uint | rgb_input_stride_y, | ||
uint | rgb_input_step_y, | ||
uint | rgb_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert a RGB image to IYUV using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 2), height ] No offset.
[in] | rgb_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | rgb_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | rgb_input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgb_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | rgb_input_step_y | rgb_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgb_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 554 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, arm_compute::test::fixed_point_arithmetic::detail::max(), arm_compute::test::fixed_point_arithmetic::detail::min(), and Image::ptr.
__kernel void RGB888_to_NV12_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | luma_ptr, | ||
uint | luma_stride_x, | ||
uint | luma_step_x, | ||
uint | luma_stride_y, | ||
uint | luma_step_y, | ||
uint | luma_offset_first_element_in_bytes, | ||
__global uchar * | uv_ptr, | ||
uint | uv_stride_x, | ||
uint | uv_step_x, | ||
uint | uv_stride_y, | ||
uint | uv_step_y, | ||
uint | uv_offset_first_element_in_bytes | ||
) |
Convert a RGB image to NV12 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_step_x | luma_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_step_y | luma_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_offset_first_element_in_bytes | The offset of the first element in the destination image luma channel |
[out] | uv_ptr | Pointer to the destination uv channel. Supported Format: U8 |
[in] | uv_stride_x | Stride of the destination uv channel in X dimension (in bytes) |
[in] | uv_step_x | uv_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | uv_step_y | uv_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_offset_first_element_in_bytes | The offset of the first element in the destination image uv channel |
Definition at line 325 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, arm_compute::test::fixed_point_arithmetic::detail::max(), arm_compute::test::fixed_point_arithmetic::detail::min(), and Image::ptr.
__kernel void RGB888_to_RGBA8888_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_offset_first_element_in_bytes | ||
) |
Convert an RGB888 image to RGBX8888.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 44 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void RGB888_to_YUV444_bt709 | ( | __global uchar * | rgb_input_ptr, |
uint | rgb_input_stride_x, | ||
uint | rgb_input_step_x, | ||
uint | rgb_input_stride_y, | ||
uint | rgb_input_step_y, | ||
uint | rgb_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert a RGB image to YUV444 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | rgb_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | rgb_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | rgb_input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgb_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | rgb_input_step_y | rgb_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgb_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination image V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 488 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, arm_compute::test::fixed_point_arithmetic::detail::max(), arm_compute::test::fixed_point_arithmetic::detail::min(), and Image::ptr.
__kernel void RGBA8888_to_IYUV_bt709 | ( | __global uchar * | rgba_input_ptr, |
uint | rgba_input_stride_x, | ||
uint | rgba_input_step_x, | ||
uint | rgba_input_stride_y, | ||
uint | rgba_input_step_y, | ||
uint | rgba_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert a RGBA image to IYUV using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 2), height ] No offset.
[in] | rgba_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | rgba_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | rgba_input_step_x | rgba_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgba_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | rgba_input_step_y | rgba_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgba_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 786 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, arm_compute::test::fixed_point_arithmetic::detail::max(), arm_compute::test::fixed_point_arithmetic::detail::min(), and Image::ptr.
__kernel void RGBA8888_to_NV12_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | uv_output_ptr, | ||
uint | uv_output_stride_x, | ||
uint | uv_output_step_x, | ||
uint | uv_output_stride_y, | ||
uint | uv_output_step_y, | ||
uint | uv_output_offset_first_element_in_bytes | ||
) |
Convert a RGBA image to NV12 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 2), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination image luma channel |
[out] | uv_output_ptr | Pointer to the destination uv channel. Supported Format: U8 |
[in] | uv_output_stride_x | Stride of the destination uv channel in X dimension (in bytes) |
[in] | uv_output_step_x | uv_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_output_stride_y | Stride of the destination image uv channel in Y dimension (in bytes) |
[in] | uv_output_step_y | uv_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_output_offset_first_element_in_bytes | The offset of the first element in the destination image uv channel |
Definition at line 702 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, arm_compute::test::fixed_point_arithmetic::detail::max(), arm_compute::test::fixed_point_arithmetic::detail::min(), and Image::ptr.
__kernel void RGBA8888_to_RGB888_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_offset_first_element_in_bytes | ||
) |
Convert an RGB888 image to RGBX8888.
Global Workgroup Size [ DIV_CEIL(width, 16), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 85 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void RGBA8888_to_YUV444_bt709 | ( | __global uchar * | rgba_input_ptr, |
uint | rgba_input_stride_x, | ||
uint | rgba_input_step_x, | ||
uint | rgba_input_stride_y, | ||
uint | rgba_input_step_y, | ||
uint | rgba_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert a RGBA image to YUV444 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | rgba_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | rgba_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | rgba_input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | rgba_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | rgba_input_step_y | rgb_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | rgba_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination image V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 642 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, arm_compute::test::fixed_point_arithmetic::detail::max(), arm_compute::test::fixed_point_arithmetic::detail::min(), and Image::ptr.
__kernel void UYVY422_to_IYUV_bt709 | ( | __global uchar * | uyvy_input_ptr, |
uint | uyvy_input_stride_x, | ||
uint | uyvy_input_step_x, | ||
uint | uyvy_input_stride_y, | ||
uint | uyvy_input_step_y, | ||
uint | uyvy_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert a UYVY image to IYUV using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | uyvy_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | uyvy_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | uyvy_input_step_x | uyvy_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uyvy_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | uyvy_input_step_y | uyvy_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uyvy_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 1341 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void UYVY422_to_NV12_bt709 | ( | __global uchar * | input_uyvy_ptr, |
uint | input_uyvy_stride_x, | ||
uint | input_uyvy_step_x, | ||
uint | input_uyvy_stride_y, | ||
uint | input_uyvy_step_y, | ||
uint | input_uyvy_offset_first_element_in_bytes, | ||
__global uchar * | luma_ptr, | ||
uint | luma_stride_x, | ||
uint | luma_step_x, | ||
uint | luma_stride_y, | ||
uint | luma_step_y, | ||
uint | luma_offset_first_element_in_bytes, | ||
__global uchar * | uv_ptr, | ||
uint | uv_stride_x, | ||
uint | uv_step_x, | ||
uint | uv_stride_y, | ||
uint | uv_step_y, | ||
uint | uv_offset_first_element_in_bytes | ||
) |
Convert a UYVY image to NV12 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 4), height ] No offset.
[in] | input_uyvy_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_uyvy_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_uyvy_step_x | input_uyvy_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_uyvy_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_uyvy_step_y | input_uyvy_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_uyvy_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_step_x | luma_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_step_y | luma_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_offset_first_element_in_bytes | The offset of the first element in the destination image luma channel |
[out] | uv_ptr | Pointer to the destination uv channel. Supported Format: U8 |
[in] | uv_stride_x | Stride of the destination uv channel in X dimension (in bytes) |
[in] | uv_step_x | uv_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | uv_step_y | uv_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_offset_first_element_in_bytes | The offset of the first element in the destination image uv channel |
Definition at line 1803 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void UYVY422_to_RGB888_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_offset_first_element_in_bytes | ||
) |
Convert a UYVY422 image to RGB888 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 124 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void UYVY422_to_RGBA8888_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_offset_first_element_in_bytes | ||
) |
Convert a UYVY422 image to RGBX8888 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 172 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void YUYV422_to_IYUV_bt709 | ( | __global uchar * | yuyv_input_ptr, |
uint | yuyv_input_stride_x, | ||
uint | yuyv_input_step_x, | ||
uint | yuyv_input_stride_y, | ||
uint | yuyv_input_step_y, | ||
uint | yuyv_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | u_output_ptr, | ||
uint | u_output_stride_x, | ||
uint | u_output_step_x, | ||
uint | u_output_stride_y, | ||
uint | u_output_step_y, | ||
uint | u_output_offset_first_element_in_bytes, | ||
__global uchar * | v_output_ptr, | ||
uint | v_output_stride_x, | ||
uint | v_output_step_x, | ||
uint | v_output_stride_y, | ||
uint | v_output_step_y, | ||
uint | v_output_offset_first_element_in_bytes | ||
) |
Convert a YUYV image to IYUV using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | yuyv_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | yuyv_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | yuyv_input_step_x | yuyv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | yuyv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | yuyv_input_step_y | yuyv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | yuyv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | u_output_ptr | Pointer to the destination U channel. Supported Format: U8 |
[in] | u_output_stride_x | Stride of the destination U channel in X dimension (in bytes) |
[in] | u_output_step_x | u_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | u_output_stride_y | Stride of the destination image U channel in Y dimension (in bytes) |
[in] | u_output_step_y | u_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | u_output_offset_first_element_in_bytes | The offset of the first element in the destination U channel |
[out] | v_output_ptr | Pointer to the destination V channel. Supported Format: U8 |
[in] | v_output_stride_x | Stride of the destination V channel in X dimension (in bytes) |
[in] | v_output_step_x | v_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | v_output_stride_y | Stride of the destination V channel in Y dimension (in bytes) |
[in] | v_output_step_y | v_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | v_output_offset_first_element_in_bytes | The offset of the first element in the destination V channel |
Definition at line 1402 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void YUYV422_to_NV12_bt709 | ( | __global uchar * | yuyv_input_ptr, |
uint | yuyv_input_stride_x, | ||
uint | yuyv_input_step_x, | ||
uint | yuyv_input_stride_y, | ||
uint | yuyv_input_step_y, | ||
uint | yuyv_input_offset_first_element_in_bytes, | ||
__global uchar * | luma_output_ptr, | ||
uint | luma_output_stride_x, | ||
uint | luma_output_step_x, | ||
uint | luma_output_stride_y, | ||
uint | luma_output_step_y, | ||
uint | luma_output_offset_first_element_in_bytes, | ||
__global uchar * | uv_output_ptr, | ||
uint | uv_output_stride_x, | ||
uint | uv_output_step_x, | ||
uint | uv_output_stride_y, | ||
uint | uv_output_step_y, | ||
uint | uv_output_offset_first_element_in_bytes | ||
) |
Convert a YUYV image to NV12 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | yuyv_input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | yuyv_input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | yuyv_input_step_x | yuyv_input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | yuyv_input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | yuyv_input_step_y | yuyv_input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | yuyv_input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | luma_output_ptr | Pointer to the destination luma channel. Supported Format: U8 |
[in] | luma_output_stride_x | Stride of the destination luma channel in X dimension (in bytes) |
[in] | luma_output_step_x | luma_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | luma_output_stride_y | Stride of the destination image luma channel in Y dimension (in bytes) |
[in] | luma_output_step_y | luma_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | luma_output_offset_first_element_in_bytes | The offset of the first element in the destination luma channel |
[out] | uv_output_ptr | Pointer to the destination UV channel. Supported Format: U8 |
[in] | uv_output_stride_x | Stride of the destination UV channel in X dimension (in bytes) |
[in] | uv_output_step_x | uv_output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | uv_output_stride_y | Stride of the destination image UV channel in Y dimension (in bytes) |
[in] | uv_output_step_y | uv_output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | uv_output_offset_first_element_in_bytes | The offset of the first element in the destination UV channel |
Definition at line 1754 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void YUYV422_to_RGB888_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_offset_first_element_in_bytes | ||
) |
Convert a YUYV422 image to RGB888 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 221 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void YUYV422_to_RGBA8888_bt709 | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | output_ptr, | ||
uint | output_stride_x, | ||
uint | output_step_x, | ||
uint | output_stride_y, | ||
uint | output_step_y, | ||
uint | output_offset_first_element_in_bytes | ||
) |
Convert a YUYV422 image to RGBX8888 using BT709 color space.
Global Workgroup Size [ DIV_CEIL(width, 8), height ] No offset.
[in] | input_ptr | Pointer to the source image. Supported Format: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | output_ptr | Pointer to the destination image. Supported Format: U8 |
[in] | output_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | output_step_x | output_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | output_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | output_step_y | output_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | output_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 269 of file color_convert.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.