21.02
|
Basic function to run CLChannelExtractKernel to perform channel extraction. More...
#include <CLChannelExtract.h>
Public Member Functions | |
void | configure (const ICLTensor *input, Channel channel, ICLTensor *output) |
Initialize the function's source, destination. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, Channel channel, ICLTensor *output) |
Initialize the function's source, destination. More... | |
void | configure (const ICLMultiImage *input, Channel channel, ICLImage *output) |
Initialize the function's source, destination. More... | |
void | configure (const CLCompileContext &compile_context, const ICLMultiImage *input, Channel channel, ICLImage *output) |
Initialize the function's source, destination. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
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... | |
Basic function to run CLChannelExtractKernel to perform channel extraction.
Definition at line 42 of file CLChannelExtract.h.
Initialize the function's source, destination.
[in] | input | The input tensor to extract the channel from. Formats supported: RGB888/RGBA8888/YUYV422/UYVY422 |
[in] | channel | The channel to extract. |
[out] | output | The extracted channel. Must be of U8 format. |
Definition at line 32 of file CLChannelExtract.cpp.
References CLKernelLibrary::get().
Referenced by CLChannelExtract::configure().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
Channel | channel, | ||
ICLTensor * | output | ||
) |
Initialize the function's source, destination.
[in] | compile_context | The compile context to be used. |
[in] | input | The input tensor to extract the channel from. Formats supported: RGB888/RGBA8888/YUYV422/UYVY422 |
[in] | channel | The channel to extract. |
[out] | output | The extracted channel. Must be of U8 format. |
Definition at line 37 of file CLChannelExtract.cpp.
void configure | ( | const ICLMultiImage * | input, |
Channel | channel, | ||
ICLImage * | output | ||
) |
Initialize the function's source, destination.
[in] | input | The multi-planar input image to extract channel from. Formats supported: NV12/NV21/IYUV/YUV444 |
[in] | channel | The channel to extract. |
[out] | output | The extracted 2D channel. Must be of U8 format. |
Definition at line 44 of file CLChannelExtract.cpp.
References CLChannelExtract::configure(), and CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLMultiImage * | input, | ||
Channel | channel, | ||
ICLImage * | output | ||
) |
Initialize the function's source, destination.
[in] | compile_context | The compile context to be used. |
[in] | input | The multi-planar input image to extract channel from. Formats supported: NV12/NV21/IYUV/YUV444 |
[in] | channel | The channel to extract. |
[out] | output | The extracted 2D channel. Must be of U8 format. |
Definition at line 49 of file CLChannelExtract.cpp.