CVBpy 14.1
PixelFormatConverter Class Reference

Helper class that takes care of pixel format conversion. More...

Inherits object.

Public Member Functions

cvb.PixelFormatConverter create (int source_format, int destination_format)
 Creates a pixel format converter. More...
 
None execute (self, Union[cvb.Image, cvb.PFNCBuffer, cvb.Composite] source_object, cvb.Image destination_object)
 Converts a PFNC compliant object to another pixel format. More...
 

Properties

 destination_format = property
 int: Gets the destination pixel format.
 
 source_format = property
 int: Gets the source pixel format.
 

Detailed Description

Helper class that takes care of pixel format conversion.

Constructor.

Parameters

source_format : int Source pixel format.

destination_format : int Destination pixel format.

Member Function Documentation

◆ create()

cvb.PixelFormatConverter create ( int  source_format,
int  destination_format 
)

Creates a pixel format converter.

Parameters

source_format : int Source pixel format.

destination_format : int Destination pixel format.

Returns

cvb.PixelFormatConverter Requested pixel format conveter.

◆ execute()

None execute (   self,
Union[cvb.Image, cvb.PFNCBuffer, cvb.Composite source_object,
cvb.Image  destination_object 
)

Converts a PFNC compliant object to another pixel format.

If any of the given objects is not PFNC compliant then it throws a runtime exception.

Parameters

source_object : Union[cvb.Image, cvb.PFNCBuffer, cvb.Composite] Data source to be converted.

destination_object : cvb.Image Destination object that stores the converted data.