Lines Matching defs:xyz
238 cmsBool CMSEXPORT _cmsReadXYZNumber(cmsIOHANDLER* io, cmsCIEXYZ* XYZ)
240 cmsEncodedXYZNumber xyz;
244 if (io ->Read(io, &xyz, sizeof(cmsEncodedXYZNumber), 1) != 1) return FALSE;
246 if (XYZ != NULL) {
248 XYZ->X = _cms15Fixed16toDouble(_cmsAdjustEndianess32(xyz.X));
249 XYZ->Y = _cms15Fixed16toDouble(_cmsAdjustEndianess32(xyz.Y));
250 XYZ->Z = _cms15Fixed16toDouble(_cmsAdjustEndianess32(xyz.Z));
252 NormalizeXYZ(XYZ);
348 cmsBool CMSEXPORT _cmsWriteXYZNumber(cmsIOHANDLER* io, const cmsCIEXYZ* XYZ)
350 cmsEncodedXYZNumber xyz;
353 _cmsAssert(XYZ != NULL);
355 xyz.X = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(XYZ->X));
356 xyz.Y = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(XYZ->Y));
357 xyz.Z = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(XYZ->Z));
359 return io -> Write(io, sizeof(cmsEncodedXYZNumber), &xyz);