Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CConvertMatrix Class Reference

Helper class used for YUV to RGB conversions. This class can take into account different source/destination primaries and various other parameters. More...

#include <ConversionMatrix.h>

Public Member Functions

 CConvertMatrix ()=default
 
 ~CConvertMatrix ()=default
 
CConvertMatrixSetSourceColorSpace (AVColorSpace colorSpace)
 Set the source color space.
 
CConvertMatrixSetSourceBitDepth (int bits)
 Set the source bit depth.
 
CConvertMatrixSetSourceLimitedRange (bool limited)
 Set the source limited range boolean.
 
CConvertMatrixSetSourceTextureBitDepth (int textureBits)
 Set the source texture bit depth. This is need to normalize values when using > 8 bit texture formats in OpenGL/DirectX. For example GL_R16 is a 16 bit texture which needs to normalize the 10 bit format.
 
CConvertMatrixSetSourceColorPrimaries (AVColorPrimaries src)
 Set the source color primaries.
 
CConvertMatrixSetDestinationColorPrimaries (AVColorPrimaries dst)
 Set the destination color primaries.
 
CConvertMatrixSetDestinationContrast (float contrast)
 Set the destination contrast.
 
CConvertMatrixSetDestinationBlack (float black)
 Set the destination black level.
 
CConvertMatrixSetDestinationLimitedRange (bool limited)
 Set the destination limited range boolean.
 
Matrix4 GetYuvMat ()
 Get the YUV Matrix for the YUV to RGB conversion.
 
Matrix3 GetPrimMat ()
 Get the Primaries Matrix for the primaries conversion.
 
float GetGammaSrc ()
 Get the gamma source value. Used for color primary conversion..
 
float GetGammaDst ()
 Get the gamma destination value. Used for color primary conversion.
 

Static Public Member Functions

static Matrix3x1 GetRGBYuvCoefs (AVColorSpace colspace)
 Get the YUV coeffecients used for tonemapping.
 

Detailed Description

Helper class used for YUV to RGB conversions. This class can take into account different source/destination primaries and various other parameters.

Constructor & Destructor Documentation

◆ CConvertMatrix()

CConvertMatrix::CConvertMatrix ( )
default

◆ ~CConvertMatrix()

CConvertMatrix::~CConvertMatrix ( )
default

Member Function Documentation

◆ GetGammaDst()

float CConvertMatrix::GetGammaDst ( )

Get the gamma destination value. Used for color primary conversion.

◆ GetGammaSrc()

float CConvertMatrix::GetGammaSrc ( )

Get the gamma source value. Used for color primary conversion..

◆ GetPrimMat()

Matrix3 CConvertMatrix::GetPrimMat ( )

Get the Primaries Matrix for the primaries conversion.

◆ GetRGBYuvCoefs()

Matrix3x1 CConvertMatrix::GetRGBYuvCoefs ( AVColorSpace colspace)
static

Get the YUV coeffecients used for tonemapping.

◆ GetYuvMat()

Matrix4 CConvertMatrix::GetYuvMat ( )

Get the YUV Matrix for the YUV to RGB conversion.

◆ SetDestinationBlack()

CConvertMatrix & CConvertMatrix::SetDestinationBlack ( float black)

Set the destination black level.

◆ SetDestinationColorPrimaries()

CConvertMatrix & CConvertMatrix::SetDestinationColorPrimaries ( AVColorPrimaries dst)

Set the destination color primaries.

◆ SetDestinationContrast()

CConvertMatrix & CConvertMatrix::SetDestinationContrast ( float contrast)

Set the destination contrast.

◆ SetDestinationLimitedRange()

CConvertMatrix & CConvertMatrix::SetDestinationLimitedRange ( bool limited)

Set the destination limited range boolean.

◆ SetSourceBitDepth()

CConvertMatrix & CConvertMatrix::SetSourceBitDepth ( int bits)

Set the source bit depth.

◆ SetSourceColorPrimaries()

CConvertMatrix & CConvertMatrix::SetSourceColorPrimaries ( AVColorPrimaries src)

Set the source color primaries.

◆ SetSourceColorSpace()

CConvertMatrix & CConvertMatrix::SetSourceColorSpace ( AVColorSpace colorSpace)

Set the source color space.

◆ SetSourceLimitedRange()

CConvertMatrix & CConvertMatrix::SetSourceLimitedRange ( bool limited)

Set the source limited range boolean.

◆ SetSourceTextureBitDepth()

CConvertMatrix & CConvertMatrix::SetSourceTextureBitDepth ( int textureBits)

Set the source texture bit depth. This is need to normalize values when using > 8 bit texture formats in OpenGL/DirectX. For example GL_R16 is a 16 bit texture which needs to normalize the 10 bit format.


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