|
|
|
|
@ -124,18 +124,19 @@ Edid::Edid(const void *data, uint32_t size) |
|
|
|
|
const auto chromaticity = di_edid_get_chromaticity_coords(edid); |
|
|
|
|
if (chromaticity) { |
|
|
|
|
m_colorimetry = { |
|
|
|
|
.redPrimary = {chromaticity->red_x, chromaticity->red_y}, |
|
|
|
|
.greenPrimary = {chromaticity->green_x, chromaticity->green_y}, |
|
|
|
|
.bluePrimary = {chromaticity->blue_x, chromaticity->blue_y}, |
|
|
|
|
.whitePoint = {chromaticity->white_x, chromaticity->white_y}, |
|
|
|
|
.red = {chromaticity->red_x, chromaticity->red_y}, |
|
|
|
|
.green = {chromaticity->green_x, chromaticity->green_y}, |
|
|
|
|
.blue = {chromaticity->blue_x, chromaticity->blue_y}, |
|
|
|
|
.white = {chromaticity->white_x, chromaticity->white_y}, |
|
|
|
|
}; |
|
|
|
|
} else { |
|
|
|
|
// assume sRGB
|
|
|
|
|
m_colorimetry = { |
|
|
|
|
.redPrimary = {0.64, 0.33}, |
|
|
|
|
.greenPrimary = {0.30, 0.60}, |
|
|
|
|
.bluePrimary = {0.15, 0.06}, |
|
|
|
|
.whitePoint = {0.3127, 0.3290}, |
|
|
|
|
.red = {0.64, 0.33}, |
|
|
|
|
.green = {0.30, 0.60}, |
|
|
|
|
.blue = {0.15, 0.06}, |
|
|
|
|
.white = {0.3127, 0.3290}, |
|
|
|
|
.name = NamedColorimetry::BT709, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -240,7 +241,7 @@ QString Edid::hash() const |
|
|
|
|
return m_hash; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Edid::Colorimetry Edid::colorimetry() const |
|
|
|
|
Colorimetry Edid::colorimetry() const |
|
|
|
|
{ |
|
|
|
|
return m_colorimetry; |
|
|
|
|
} |
|
|
|
|
|