21.02
|
Interface for the color convert kernel. More...
#include <NEColorConvertKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEColorConvertKernel () | |
Default constructor. More... | |
NEColorConvertKernel (const NEColorConvertKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEColorConvertKernel & | operator= (const NEColorConvertKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEColorConvertKernel (NEColorConvertKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEColorConvertKernel & | operator= (NEColorConvertKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEColorConvertKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, ITensor *output) |
Set the input and output of the kernel. More... | |
void | configure (const IMultiImage *input, IImage *output) |
Set the input and output of the kernel. More... | |
void | configure (const IImage *input, IMultiImage *output) |
Set the input and output of the kernel. More... | |
void | configure (const IMultiImage *input, IMultiImage *output) |
Set the input and output of the kernel. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
virtual void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Interface for the color convert kernel.
Definition at line 36 of file NEColorConvertKernel.h.
Default constructor.
Definition at line 43 of file NEColorConvertKernel.cpp.
Referenced by NEColorConvertKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
Referenced by NEColorConvertKernel::name().
Set the input and output of the kernel.
[in] | input | Source tensor. Formats supported: RGBA8888/UYVY422/YUYV422/RGB888 |
[out] | output | Destination tensor. Formats supported: RGB888 (if the formats of input are RGBA8888/UYVY422/YUYV422), RGBA8888 (if the formats of input are UYVY422/YUYV422/RGB888/), U8 (if the formats of input is RGB888) |
Definition at line 48 of file NEColorConvertKernel.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_ERROR_ON_NULLPTR, arm_compute::calculate_max_window(), arm_compute::colorconvert_rgb_to_rgbx(), arm_compute::colorconvert_rgb_to_u8(), arm_compute::colorconvert_rgbx_to_rgb(), ITensorInfo::format(), ITensor::info(), arm_compute::test::validation::input, num_elems_processed_per_iteration, arm_compute::RGB888, arm_compute::RGBA8888, arm_compute::set_shape_if_empty(), ITensorInfo::tensor_shape(), arm_compute::U8, arm_compute::update_window_and_padding(), arm_compute::UYVY422, ITensorInfo::valid_region(), and arm_compute::YUYV422.
Referenced by NEColorConvertKernel::name().
void configure | ( | const IMultiImage * | input, |
IImage * | output | ||
) |
Set the input and output of the kernel.
[in] | input | Multi-planar source image. Formats supported: NV12/NV21/IYUV |
[out] | output | Single-planar destination image. Formats supported: RGB888/RGBA8888 |
Definition at line 148 of file NEColorConvertKernel.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, arm_compute::calculate_max_window(), Window::DimY, MultiImageInfo::format(), ITensorInfo::format(), ITensor::info(), IMultiImage::info(), arm_compute::test::validation::input, arm_compute::intersect_valid_regions(), arm_compute::IYUV, num_elems_processed_per_iteration, arm_compute::NV12, arm_compute::NV21, IMultiImage::plane(), arm_compute::RGB888, arm_compute::RGBA8888, Window::set_dimension_step(), arm_compute::set_shape_if_empty(), ITensorInfo::tensor_shape(), arm_compute::update_window_and_padding(), and ITensorInfo::valid_region().
void configure | ( | const IImage * | input, |
IMultiImage * | output | ||
) |
Set the input and output of the kernel.
[in] | input | Single-planar source image. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422 |
[out] | output | Multi-planar destination image. Formats supported: NV12/IYUV/YUV444 (if the formats of input are RGB888/RGB8888) |
Definition at line 256 of file NEColorConvertKernel.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS, ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, arm_compute::calculate_max_window(), Window::DimY, MultiImageInfo::format(), ITensorInfo::format(), ITensor::info(), IMultiImage::info(), arm_compute::test::validation::input, arm_compute::IYUV, num_elems_processed_per_iteration, arm_compute::NV12, arm_compute::NV21, IMultiImage::plane(), arm_compute::RGB888, arm_compute::RGBA8888, TensorShape::set(), Window::set_dimension_step(), arm_compute::set_shape_if_empty(), ITensorInfo::tensor_shape(), arm_compute::update_window_and_padding(), arm_compute::UYVY422, ITensorInfo::valid_region(), arm_compute::YUV444, and arm_compute::YUYV422.
void configure | ( | const IMultiImage * | input, |
IMultiImage * | output | ||
) |
Set the input and output of the kernel.
[in] | input | Multi-planar source image. Formats supported: NV12/NV21/IYUV |
[out] | output | Multi-planar destination image. Formats supported: YUV444/IYUV (if the formats of input are NV12/NV21)/NV12 (if the format of input is IYUV) |
Definition at line 429 of file NEColorConvertKernel.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS, ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_ERROR_ON_NULLPTR, arm_compute::calculate_max_window(), arm_compute::colorconvert_iyuv_to_nv12(), arm_compute::colorconvert_iyuv_to_yuv4(), Window::DimY, MultiImageInfo::format(), ITensor::info(), IMultiImage::info(), arm_compute::test::validation::input, arm_compute::intersect_valid_regions(), arm_compute::IYUV, num_elems_processed_per_iteration, arm_compute::NV12, arm_compute::NV21, IMultiImage::plane(), TensorShape::set(), Window::set_dimension_step(), arm_compute::set_shape_if_empty(), ITensorInfo::tensor_shape(), arm_compute::update_window_and_padding(), ITensorInfo::valid_region(), and arm_compute::YUV444.
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 39 of file NEColorConvertKernel.h.
References NEColorConvertKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NEColorConvertKernel::NEColorConvertKernel(), NEColorConvertKernel::operator=(), NEColorConvertKernel::run(), IKernel::window(), and NEColorConvertKernel::~NEColorConvertKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEColorConvertKernel::name().
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Reimplemented from ICPPKernel.
Definition at line 582 of file NEColorConvertKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, and IKernel::window().
Referenced by NEColorConvertKernel::name().