Compute Library
 21.02
CLColorConvert Class Reference

Basic function to run CLColorConvertKernel. More...

#include <CLColorConvert.h>

Collaboration diagram for CLColorConvert:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output)
 Initialize the function's source, destination. More...
 
void configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 Initialize the function's source, destination. More...
 
void configure (const ICLMultiImage *input, ICLImage *output)
 Initialize the function's source, destination. More...
 
void configure (const CLCompileContext &compile_context, const ICLMultiImage *input, ICLImage *output)
 Initialize the function's source, destination. More...
 
void configure (const ICLImage *input, ICLMultiImage *output)
 Initialize the function's source, destination. More...
 
void configure (const CLCompileContext &compile_context, const ICLImage *input, ICLMultiImage *output)
 Initialize the function's source, destination. More...
 
void configure (const ICLMultiImage *input, ICLMultiImage *output)
 Initialize the function's source, destination. More...
 
void configure (const CLCompileContext &compile_context, const ICLMultiImage *input, ICLMultiImage *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...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (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...
 

Detailed Description

Basic function to run CLColorConvertKernel.

Note
The function performs color convert between images.
Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 43 of file CLColorConvert.h.

Member Function Documentation

◆ configure() [1/8]

void configure ( const ICLTensor input,
ICLTensor output 
)

Initialize the function's source, destination.

Parameters
[in]inputSource tensor. Formats supported: RGBA8888/UYVY422/YUYV422/RGB888
[out]outputDestination 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 32 of file CLColorConvert.cpp.

References CLKernelLibrary::get().

Referenced by CLColorConvert::configure().

33 {
34  configure(CLKernelLibrary::get().get_compile_context(), input, output);
35 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output)
Initialize the function&#39;s source, destination.

◆ configure() [2/8]

void configure ( const CLCompileContext compile_context,
const ICLTensor input,
ICLTensor output 
)

Initialize the function's source, destination.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputSource tensor. Formats supported: RGBA8888/UYVY422/YUYV422/RGB888
[out]outputDestination 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 37 of file CLColorConvert.cpp.

38 {
39  auto k = std::make_unique<CLColorConvertKernel>();
40  k->configure(compile_context, input, output);
41  _kernel = std::move(k);
42 }

◆ configure() [3/8]

void configure ( const ICLMultiImage input,
ICLImage output 
)

Initialize the function's source, destination.

Parameters
[in]inputMulti-planar source image. Formats supported: NV12/NV21/IYUV
[out]outputSingle-planar destination image. Formats supported: RGB888/RGBA8888

Definition at line 56 of file CLColorConvert.cpp.

References CLColorConvert::configure(), and CLKernelLibrary::get().

57 {
58  configure(CLKernelLibrary::get().get_compile_context(), input, output);
59 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output)
Initialize the function&#39;s source, destination.

◆ configure() [4/8]

void configure ( const CLCompileContext compile_context,
const ICLMultiImage input,
ICLImage output 
)

Initialize the function's source, destination.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputMulti-planar source image. Formats supported: NV12/NV21/IYUV
[out]outputSingle-planar destination image. Formats supported: RGB888/RGBA8888

Definition at line 61 of file CLColorConvert.cpp.

62 {
63  auto k = std::make_unique<CLColorConvertKernel>();
64  k->configure(compile_context, input, output);
65  _kernel = std::move(k);
66 }

◆ configure() [5/8]

void configure ( const ICLImage input,
ICLMultiImage output 
)

Initialize the function's source, destination.

Parameters
[in]inputSingle-planar source image. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422
[out]outputMulti-planar destination image. Formats supported: NV12/IYUV/YUV444 (if the formats of input are RGB888/RGB8888)

Definition at line 44 of file CLColorConvert.cpp.

References CLColorConvert::configure(), and CLKernelLibrary::get().

45 {
46  configure(CLKernelLibrary::get().get_compile_context(), input, output);
47 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output)
Initialize the function&#39;s source, destination.

◆ configure() [6/8]

void configure ( const CLCompileContext compile_context,
const ICLImage input,
ICLMultiImage output 
)

Initialize the function's source, destination.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputSingle-planar source image. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422
[out]outputMulti-planar destination image. Formats supported: NV12/IYUV/YUV444 (if the formats of input are RGB888/RGB8888)

Definition at line 49 of file CLColorConvert.cpp.

50 {
51  auto k = std::make_unique<CLColorConvertKernel>();
52  k->configure(compile_context, input, output);
53  _kernel = std::move(k);
54 }

◆ configure() [7/8]

void configure ( const ICLMultiImage input,
ICLMultiImage output 
)

Initialize the function's source, destination.

Parameters
[in]inputMulti-planar source image. Formats supported: NV12/NV21/IYUV
[out]outputMulti-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 68 of file CLColorConvert.cpp.

References CLColorConvert::configure(), and CLKernelLibrary::get().

69 {
70  configure(CLKernelLibrary::get().get_compile_context(), input, output);
71 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output)
Initialize the function&#39;s source, destination.

◆ configure() [8/8]

void configure ( const CLCompileContext compile_context,
const ICLMultiImage input,
ICLMultiImage output 
)

Initialize the function's source, destination.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputMulti-planar source image. Formats supported: NV12/NV21/IYUV
[out]outputMulti-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 73 of file CLColorConvert.cpp.

74 {
75  auto k = std::make_unique<CLColorConvertKernel>();
76  k->configure(compile_context, input, output);
77  _kernel = std::move(k);
78 }

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