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>
Helper class used for YUV to RGB conversions. This class can take into account different source/destination primaries and various other parameters.
◆ CConvertMatrix()
CConvertMatrix::CConvertMatrix |
( |
| ) |
|
|
default |
◆ ~CConvertMatrix()
CConvertMatrix::~CConvertMatrix |
( |
| ) |
|
|
default |
◆ 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()
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()
Set the destination limited range boolean.
◆ SetSourceBitDepth()
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()
Set the source limited range boolean.
◆ SetSourceTextureBitDepth()
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: