21.02
|
Interface for the channel combine kernel. More...
#include <NEChannelCombineKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEChannelCombineKernel () | |
Default constructor. More... | |
NEChannelCombineKernel (const NEChannelCombineKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEChannelCombineKernel & | operator= (const NEChannelCombineKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEChannelCombineKernel (NEChannelCombineKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEChannelCombineKernel & | operator= (NEChannelCombineKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEChannelCombineKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *plane0, const ITensor *plane1, const ITensor *plane2, const ITensor *plane3, ITensor *output) |
Configure function's inputs and outputs. More... | |
void | configure (const IImage *plane0, const IImage *plane1, const IImage *plane2, IMultiImage *output) |
Configure function's inputs and outputs. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
bool | is_parallelisable () const override |
Indicates whether or not the kernel is parallelisable. 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 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 channel combine kernel.
Definition at line 39 of file NEChannelCombineKernel.h.
Default constructor.
Definition at line 48 of file NEChannelCombineKernel.cpp.
Referenced by NEChannelCombineKernel::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 NEChannelCombineKernel::name().
void configure | ( | const ITensor * | plane0, |
const ITensor * | plane1, | ||
const ITensor * | plane2, | ||
const ITensor * | plane3, | ||
ITensor * | output | ||
) |
Configure function's inputs and outputs.
[in] | plane0 | The 2D plane that forms channel 0. Data type supported: U8 |
[in] | plane1 | The 2D plane that forms channel 1. Data type supported: U8 |
[in] | plane2 | The 2D plane that forms channel 2. Data type supported: U8 |
[in] | plane3 | The 2D plane that forms channel 3. Data type supported: U8 |
[out] | output | The single planar output tensor. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422 |
Definition at line 54 of file NEChannelCombineKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN, ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED, ITensorInfo::format(), ITensor::info(), arm_compute::RGB888, arm_compute::RGBA8888, ITensorInfo::tensor_shape(), arm_compute::U8, arm_compute::UYVY422, and arm_compute::YUYV422.
Referenced by NEChannelCombineKernel::name().
void configure | ( | const IImage * | plane0, |
const IImage * | plane1, | ||
const IImage * | plane2, | ||
IMultiImage * | output | ||
) |
Configure function's inputs and outputs.
[in] | plane0 | The 2D plane that forms channel 0. Data type supported: U8 |
[in] | plane1 | The 2D plane that forms channel 1. Data type supported: U8 |
[in] | plane2 | The 2D plane that forms channel 2. Data type supported: U8 |
[out] | output | The multi planar output tensor. Formats supported: NV12/NV21/IYUV/YUV444 |
Definition at line 164 of file NEChannelCombineKernel.cpp.
References ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN, ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED, MultiImageInfo::format(), IMultiImage::info(), ITensor::info(), arm_compute::IYUV, arm_compute::NV12, arm_compute::NV21, IMultiImage::plane(), ITensorInfo::tensor_shape(), arm_compute::U8, and arm_compute::YUV444.
|
overridevirtual |
Indicates whether or not the kernel is parallelisable.
If the kernel is parallelisable then the window returned by window() can be split into sub-windows which can then be run in parallel.
If the kernel is not parallelisable then only the window returned by window() can be passed to run()
Reimplemented from IKernel.
Definition at line 269 of file NEChannelCombineKernel.cpp.
Referenced by NEChannelCombineKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 42 of file NEChannelCombineKernel.h.
References NEChannelCombineKernel::configure(), arm_compute::test::validation::info, NEChannelCombineKernel::is_parallelisable(), NEChannelCombineKernel::NEChannelCombineKernel(), NEChannelCombineKernel::operator=(), NEChannelCombineKernel::run(), IKernel::window(), and NEChannelCombineKernel::~NEChannelCombineKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEChannelCombineKernel::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 274 of file NEChannelCombineKernel.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 NEChannelCombineKernel::name().