21.02
|
Interface for the channel extract kernel. More...
#include <NEChannelExtractKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEChannelExtractKernel () | |
Default constructor. More... | |
NEChannelExtractKernel (const NEChannelExtractKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEChannelExtractKernel & | operator= (const NEChannelExtractKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEChannelExtractKernel (NEChannelExtractKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEChannelExtractKernel & | operator= (NEChannelExtractKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEChannelExtractKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, Channel channel, ITensor *output) |
Set the input and output of the kernel. More... | |
void | configure (const IMultiImage *input, Channel channel, IImage *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 ICPPSimpleKernel | |
ICPPSimpleKernel () | |
Constructor. More... | |
ICPPSimpleKernel (const ICPPSimpleKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICPPSimpleKernel & | operator= (const ICPPSimpleKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICPPSimpleKernel (ICPPSimpleKernel &&)=default | |
Allow instances of this class to be moved. More... | |
ICPPSimpleKernel & | operator= (ICPPSimpleKernel &&)=default |
Allow instances of this class to be moved. More... | |
~ICPPSimpleKernel ()=default | |
Default destructor. 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 channel extract kernel.
Definition at line 37 of file NEChannelExtractKernel.h.
Default constructor.
Definition at line 49 of file NEChannelExtractKernel.cpp.
Referenced by NEChannelExtractKernel::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 NEChannelExtractKernel::name().
Set the input and output of the kernel.
[in] | input | Source tensor. Formats supported: RGB888/RGBA8888/YUYV422/UYVY422 |
[in] | channel | Channel to extract. |
[out] | output | Destination tensor. Format supported: U8 |
Definition at line 54 of file NEChannelExtractKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT, ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN, ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN, arm_compute::calculate_subsampled_shape(), ITensorInfo::format(), ITensor::info(), arm_compute::test::validation::input, arm_compute::test::validation::output_shape, arm_compute::RGB888, arm_compute::RGBA8888, arm_compute::set_format_if_unknown(), arm_compute::set_shape_if_empty(), ITensorInfo::tensor_shape(), arm_compute::U8, arm_compute::UYVY422, arm_compute::Y, and arm_compute::YUYV422.
Referenced by NEChannelExtractKernel::name().
void configure | ( | const IMultiImage * | input, |
Channel | channel, | ||
IImage * | output | ||
) |
Set the input and output of the kernel.
[in] | input | Multi-planar source image. Formats supported: NV12/NV21/IYUV/YUV444 |
[in] | channel | Channel to extract. |
[out] | output | Single-planar destination image. Format supported: U8 |
Definition at line 128 of file NEChannelExtractKernel.cpp.
References ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT, ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN, ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN, arm_compute::calculate_subsampled_shape(), MultiImageInfo::format(), ITensor::info(), IMultiImage::info(), arm_compute::IYUV, arm_compute::NV12, arm_compute::NV21, arm_compute::test::validation::output_shape, IMultiImage::plane(), arm_compute::plane_idx_from_channel(), arm_compute::set_format_if_unknown(), arm_compute::set_shape_if_empty(), ITensorInfo::tensor_shape(), arm_compute::U8, arm_compute::Y, and arm_compute::YUV444.
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 40 of file NEChannelExtractKernel.h.
References NEChannelExtractKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NEChannelExtractKernel::NEChannelExtractKernel(), NEChannelExtractKernel::operator=(), NEChannelExtractKernel::run(), IKernel::window(), and NEChannelExtractKernel::~NEChannelExtractKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEChannelExtractKernel::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 182 of file NEChannelExtractKernel.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 NEChannelExtractKernel::name().