MythTV
master
|
#include <mythcolourspace.h>
Public Member Functions | |
MythColourSpace ()=default | |
MythColourSpace (const MythPrimariesFloat &Primaries, MythPrimaryFloat WhitePoint) | |
Static Public Member Functions | |
static bool | Alike (const MythColourSpace &First, const MythColourSpace &Second, float Fuzz) |
static QMatrix4x4 | RGBtoXYZ (const MythColourSpace &Primaries) |
Create a conversion matrix for RGB to XYZ with the given primaries. More... | |
Public Attributes | |
MythPrimariesFloat | m_primaries {{{0.0F}}} |
MythPrimaryFloat | m_whitePoint {0.0F} |
Static Public Attributes | |
static MythColourSpace | s_sRGB = {{{{0.640F, 0.330F}, {0.300F, 0.600F}, {0.150F, 0.060F}}}, D65} |
static MythColourSpace | s_BT709 = {{{{0.640F, 0.330F}, {0.300F, 0.600F}, {0.150F, 0.060F}}}, D65} |
static MythColourSpace | s_BT470M = {{{{0.670F, 0.330F}, {0.210F, 0.710F}, {0.140F, 0.080F}}}, Cwp} |
static MythColourSpace | s_BT610_525 = {{{{0.630F, 0.340F}, {0.310F, 0.595F}, {0.155F, 0.070F}}}, D65} |
static MythColourSpace | s_BT610_625 = {{{{0.640F, 0.330F}, {0.290F, 0.600F}, {0.150F, 0.060F}}}, D65} |
static MythColourSpace | s_BT2020 = {{{{0.708F, 0.292F}, {0.170F, 0.797F}, {0.131F, 0.046F}}}, D65} |
Definition at line 18 of file mythcolourspace.h.
|
default |
MythColourSpace::MythColourSpace | ( | const MythPrimariesFloat & | Primaries, |
MythPrimaryFloat | WhitePoint | ||
) |
Definition at line 21 of file mythcolourspace.cpp.
|
static |
Definition at line 27 of file mythcolourspace.cpp.
Referenced by MythVideoColourSpace::GetPrimaryConversion(), and MythEDID::ParseBaseBlock().
|
static |
Create a conversion matrix for RGB to XYZ with the given primaries.
This is a joyous mindbender. There are various explanations on the interweb but this is based on the Kodi implementation - with due credit to Team Kodi.
Invert the result for the XYZ->RGB conversion matrix.
Definition at line 65 of file mythcolourspace.cpp.
Referenced by MythVideoColourSpace::GetPrimaryConversion().
|
static |
Definition at line 21 of file mythcolourspace.h.
Referenced by MythEDID::ParseBaseBlock().
|
static |
Definition at line 22 of file mythcolourspace.h.
Referenced by MythVideoColourSpace::GetPrimaries().
|
static |
Definition at line 23 of file mythcolourspace.h.
|
static |
Definition at line 24 of file mythcolourspace.h.
Referenced by MythVideoColourSpace::GetPrimaries().
|
static |
Definition at line 25 of file mythcolourspace.h.
Referenced by MythVideoColourSpace::GetPrimaries().
|
static |
Definition at line 26 of file mythcolourspace.h.
Referenced by MythVideoColourSpace::GetPrimaries().
MythPrimariesFloat MythColourSpace::m_primaries {{{0.0F}}} |
Definition at line 34 of file mythcolourspace.h.
Referenced by Alike(), MythEDID::Debug(), MythEDID::ParseBaseBlock(), and RGBtoXYZ().
MythPrimaryFloat MythColourSpace::m_whitePoint {0.0F} |
Definition at line 35 of file mythcolourspace.h.
Referenced by Alike(), MythEDID::Debug(), MythEDID::ParseBaseBlock(), and RGBtoXYZ().