Home | History | Annotate | Download | only in libtiff

Lines Matching defs: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
808 XYZtoRGB24(float xyz[3], uint8 rgb[3])
812 r = 2.690*xyz[0] + -1.276*xyz[1] + -0.414*xyz[2];
813 g = -1.022*xyz[0] + 1.978*xyz[1] + 0.044*xyz[2];
814 b = 0.061*xyz[0] + -0.224*xyz[1] + 1.163*xyz[2];
962 LogLuv24toXYZ(uint32 p, float XYZ[3])
969 XYZ[0] = XYZ[1] = XYZ[2] = 0.;
980 /* convert to XYZ */
981 XYZ[0] = (float)(x/y * L);
982 XYZ[1] = (float)L;
983 XYZ[2] = (float)((1.-x-y)/y * L);
990 LogLuv24fromXYZ(float XYZ[3], int em)
995 Le = LogL10fromY(XYZ[1], em);
997 s = XYZ[0] + 15.*XYZ[1] + 3.*XYZ[2];
1002 u = 4.*XYZ[0] / s;
1003 v = 9.*XYZ[1] / s;
1016 float* xyz = (float*) op;
1019 LogLuv24toXYZ(*luv, xyz);
1020 xyz += 3;
1052 float xyz[3];
1054 LogLuv24toXYZ(*luv++, xyz);
1055 XYZtoRGB24(xyz, rgb);
1064 float* xyz = (float*) op;
1067 *luv++ = LogLuv24fromXYZ(xyz, sp->encode_meth);
1068 xyz += 3;
1103 LogLuv32toXYZ(uint32 p, float XYZ[3])
1109 XYZ[0] = XYZ[1] = XYZ[2] = 0.;
1118 /* convert to XYZ */
1119 XYZ[0] = (float)(x/y * L);
1120 XYZ[1] = (float)L;
1121 XYZ[2] = (float)((1.-x-y)/y * L);
1128 LogLuv32fromXYZ(float XYZ[3], int em)
1133 Le = (unsigned int)LogL16fromY(XYZ[1], em);
1135 s = XYZ[0] + 15.*XYZ[1] + 3.*XYZ[2];
1140 u = 4.*XYZ[0] / s;
1141 v = 9.*XYZ[1] / s;
1157 float* xyz = (float*) op;
1160 LogLuv32toXYZ(*luv++, xyz);
1161 xyz += 3;
1190 float xyz[3];
1192 LogLuv32toXYZ(*luv++, xyz);
1193 XYZtoRGB24(xyz, rgb);
1202 float* xyz = (float*) op;
1205 *luv++ = LogLuv32fromXYZ(xyz, sp->encode_meth);
1206 xyz += 3;
1543 td->td_photometric == PHOTOMETRIC_LOGL ? "Y, L" : "XYZ, Luv");