Compute Library
 21.02
NEChannelExtract Class Reference

Basic function to run NEChannelExtractKernel to perform channel extraction. More...

#include <NEChannelExtract.h>

Collaboration diagram for NEChannelExtract:
[legend]

Public Member Functions

void configure (const ITensor *input, Channel channel, ITensor *output)
 Initialize the function's source, destination. More...
 
void configure (const IMultiImage *input, Channel channel, IImage *output)
 Initialize the function's source, destination. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 Default destructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to run NEChannelExtractKernel to perform channel extraction.

Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 41 of file NEChannelExtract.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ITensor input,
Channel  channel,
ITensor output 
)

Initialize the function's source, destination.

Parameters
[in]inputThe input tensor to extract the channel from. Formats supported: Formats supported: RGB888/RGBA8888/YUYV422/UYVY422
[in]channelThe channel to extract.
[out]outputThe extracted channel. Format supported: U8

Definition at line 32 of file NEChannelExtract.cpp.

33 {
34  auto k = std::make_unique<NEChannelExtractKernel>();
35  k->configure(input, channel, output);
36  _kernel = std::move(k);
37 }

◆ configure() [2/2]

void configure ( const IMultiImage input,
Channel  channel,
IImage output 
)

Initialize the function's source, destination.

Parameters
[in]inputThe multi-planar input image to extract channel from. Formats supported: NV12/NV21/IYUV/YUV444
[in]channelThe channel to extract.
[out]outputThe extracted channel. Format supported: U8

Definition at line 39 of file NEChannelExtract.cpp.

40 {
41  auto k = std::make_unique<NEChannelExtractKernel>();
42  k->configure(input, channel, output);
43  _kernel = std::move(k);
44 }

The documentation for this class was generated from the following files: