59 if (std::holds_alternative<NamedPrimaries>(cs.
primaries)) {
62 }
else if (std::holds_alternative<Colorimetry>(cs.
primaries)) {
63 auto colorimetry = std::get<Colorimetry>(cs.
primaries);
64 request.whitePoint = colorimetry.white().toxy();
65 request.rgbColorants << colorimetry.red().toxy() << colorimetry.green().toxy() << colorimetry.blue().toxy();
75 }
else if (gamma == 18000) {
77 }
else if (gamma == 22000) {
79 }
else if (gamma == 24000) {
81 }
else if (gamma == 28000) {
92 request.rgbColorants.clear();
ColorPrimaries
The colorPrimaries enum Enum of colorants, follows ITU H.273 for values 0 to 255, and has extra known...
@ PRIMARIES_ITU_R_BT_2020_2_AND_2100_0
@ PRIMARIES_SMPTE_RP_431_2
@ PRIMARIES_ADOBE_RGB_1998
@ PRIMARIES_SMPTE_EG_432_1
@ PRIMARIES_ITU_R_BT_709_5
TransferCharacteristics
The transferCharacteristics enum Enum of transfer characteristics, follows ITU H.273 for values 0 to ...
@ TRC_ITU_R_BT_470_6_SYSTEM_M
@ TRC_ITU_R_BT_470_6_SYSTEM_B_G
ColorPrimaries namedPrimariesToPigmentPrimaries(NamedPrimaries primaries)
KoColorProfileQuery colorSpaceToRequest(ColorSpace cs)
@ transfer_function_st428
@ transfer_function_bt1886
@ transfer_function_st2084_pq
@ transfer_function_gamma22
@ transfer_function_ext_linear
@ transfer_function_gamma28
@ transfer_function_ext_srgb
TransferCharacteristics namedTransferFunctionToPigmentTransferFunction(NamedTransferFunction transfer)
std::variant< NamedPrimaries, Colorimetry > primaries
std::variant< NamedTransferFunction, uint32_t > transferFunction
The KoColorProfileQuery struct.
ColorPrimaries primaries
Rgb Primaries of the profile. When empty, this is a query for a greyscale profile.