Compute Library
 21.02
NEColorConvert Class Reference

Basic function to run NEColorConvertKernel to perform color conversion. More...

#include <NEColorConvert.h>

Collaboration diagram for NEColorConvert:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output)
 Initialize the function's source, destination. More...
 
void configure (const IMultiImage *input, IImage *output)
 Initialize the function's source, destination. More...
 
void configure (const IImage *input, IMultiImage *output)
 Initialize the function's source, destination. More...
 
void configure (const IMultiImage *input, IMultiImage *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 NEColorConvertKernel to perform color conversion.

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

Definition at line 40 of file NEColorConvert.h.

Member Function Documentation

◆ configure() [1/4]

void configure ( const ITensor input,
ITensor 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 NEColorConvert.cpp.

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

◆ configure() [2/4]

void configure ( const IMultiImage input,
IImage 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 39 of file NEColorConvert.cpp.

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

◆ configure() [3/4]

void configure ( const IImage input,
IMultiImage 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 46 of file NEColorConvert.cpp.

47 {
48  auto k = std::make_unique<NEColorConvertKernel>();
49  k->configure(input, output);
50  _kernel = std::move(k);
51 }

◆ configure() [4/4]

void configure ( const IMultiImage input,
IMultiImage 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 53 of file NEColorConvert.cpp.

54 {
55  auto k = std::make_unique<NEColorConvertKernel>();
56  k->configure(input, output);
57  _kernel = std::move(k);
58 }

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