Lines Matching refs:xyz
68 * for each of three CIE XYZ coordinates. The codec then takes care
72 * By definition, a CIE XYZ vector of [1 1 1] corresponds to a neutral white
74 * white point, such as D65, and an absolute color conversion to XYZ then
78 * in XYZ, then record the original white point using the TIFFTAG_WHITEPOINT
121 * SGILOGDATAFMT_FLOAT = IEEE 32-bit float XYZ values
761 XYZtoRGB24(float xyz[3], uint8 rgb[3])
765 r = 2.690*xyz[0] + -1.276*xyz[1] + -0.414*xyz[2];
766 g = -1.022*xyz[0] + 1.978*xyz[1] + 0.044*xyz[2];
767 b = 0.061*xyz[0] + -0.224*xyz[1] + 1.163*xyz[2];
915 LogLuv24toXYZ(uint32 p, float XYZ[3])
922 XYZ[0] = XYZ[1] = XYZ[2] = 0.;
933 /* convert to XYZ */
934 XYZ[0] = (float)(x/y * L);
935 XYZ[1] = (float)L;
936 XYZ[2] = (float)((1.-x-y)/y * L);
943 LogLuv24fromXYZ(float XYZ[3], int em)
948 Le = LogL10fromY(XYZ[1], em);
950 s = XYZ[0] + 15.*XYZ[1] + 3.*XYZ[2];
955 u = 4.*XYZ[0] / s;
956 v = 9.*XYZ[1] / s;
969 float* xyz = (float*) op;
972 LogLuv24toXYZ(*luv, xyz);
973 xyz += 3;
1005 float xyz[3];
1007 LogLuv24toXYZ(*luv++, xyz);
1008 XYZtoRGB24(xyz, rgb);
1017 float* xyz = (float*) op;
1020 *luv++ = LogLuv24fromXYZ(xyz, sp->encode_meth);
1021 xyz += 3;
1056 LogLuv32toXYZ(uint32 p, float XYZ[3])
1062 XYZ[0] = XYZ[1] = XYZ[2] = 0.;
1071 /* convert to XYZ */
1072 XYZ[0] = (float)(x/y * L);
1073 XYZ[1] = (float)L;
1074 XYZ[2] = (float)((1.-x-y)/y * L);
1081 LogLuv32fromXYZ(float XYZ[3], int em)
1086 Le = (unsigned int)LogL16fromY(XYZ[1], em);
1088 s = XYZ[0] + 15.*XYZ[1] + 3.*XYZ[2];
1093 u = 4.*XYZ[0] / s;
1094 v = 9.*XYZ[1] / s;
1110 float* xyz = (float*) op;
1113 LogLuv32toXYZ(*luv++, xyz);
1114 xyz += 3;
1143 float xyz[3];
1145 LogLuv32toXYZ(*luv++, xyz);
1146 XYZtoRGB24(xyz, rgb);
1155 float* xyz = (float*) op;
1158 *luv++ = LogLuv32fromXYZ(xyz, sp->encode_meth);
1159 xyz += 3;
1496 td->td_photometric == PHOTOMETRIC_LOGL ? "Y, L" : "XYZ, Luv");