#include "sed.h" #include "colorimetric_data.h" #include "xyz.h" #include "MISSINGCODE.h" /* Computing the normalization coefficient associated with a light source s */ float xyz_get_k_from_s(float *s) { XYZ_GET_K_FROM_S_MISSINGCODE return k; } /* Computing the CIE-XYZ coordinates of the DSE E. The normalisation coefficient K is calculated by reference to the DSE of a light source S (result of the function xyz_get_k_from_s). The result is stored as a three-number floating-point vector at the address given by the xyz parameter. */ void xyz_from_sed(float *xyz, float *e, float k) { XYZ_FROM_SED_MISSINGCODE } /* sRGB transform (REC-709 with D65) | r | | 3.240479, -1.537150, -0.498535 | | X | | g | = | -0.969256, 1.875992, 0.041556 | * | Y | | b | | 0.055648, -0.204043, 1.057311 | | Z | */ float xyz_srgb_r(float cie_x, float cie_y, float cie_z) { XYZ_SRGB_R_MISSINGCODE } float xyz_srgb_g(float cie_x, float cie_y, float cie_z) { XYZ_SRGB_G_MISSINGCODE } float xyz_srgb_b(float cie_x, float cie_y, float cie_z) { XYZ_SRGB_B_MISSINGCODE }