kodi
Public Member Functions | Static Public Member Functions | List of all members
CConvertMatrix Class Reference

Helper class used for YUV to RGB conversions. More...

#include <ConversionMatrix.h>

Public Member Functions

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. More...
 
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. More...
 
float GetGammaDst ()
 Get the gamma destination value. More...
 

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.

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..

◆ 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: