libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
colorspaceconverter.h File Reference
Include dependency graph for colorspaceconverter.h:

Go to the source code of this file.

Classes

struct  CSC
 Color Space Conversion matrix and offset. More...
 

Variables

const CSC RGB_to_YCbCr_Rec709
 Conversion matrix from RGB to YCbCr using ITU-R BT.709 coefficients.
 
const CSC YCbCr_Rec709_to_RGB
 Conversion matrix from YCbCr (BT.709) to RGB.
 

Detailed Description

See LICENSE file in the project root folder for license information.

Variable Documentation

◆ RGB_to_YCbCr_Rec709

const CSC RGB_to_YCbCr_Rec709
Initial value:
= {
{
{0.2126f, 0.7152f, 0.0722f},
{-0.1146f, -0.3854f, 0.5f},
{0.5f, -0.4542f, -0.0458f}
},
{16.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f}
}

Conversion matrix from RGB to YCbCr using ITU-R BT.709 coefficients.

◆ YCbCr_Rec709_to_RGB

const CSC YCbCr_Rec709_to_RGB
Initial value:
= {
{
{1.0f, 0.0f, 1.5748f},
{1.0f, -0.1873f, -0.4681f},
{1.0f, 1.8556f, 0.0f}
},
{-16.0f / 255.0f, -128.0f / 255.0f, -128.0f / 255.0f}
}

Conversion matrix from YCbCr (BT.709) to RGB.