Home | History | Annotate | Download | only in src

Lines Matching refs:Header

40 // header. Then, whole profile is serialized across NULL IOhandler and a second pass
694 // Read profile header and validate it
698 cmsICCHeader Header;
705 // Read the header
706 if (io -> Read(io, &Header, sizeof(cmsICCHeader), 1) != 1) {
711 if (_cmsAdjustEndianess32(Header.magic) != cmsMagicNumber) {
717 Icc -> DeviceClass = (cmsProfileClassSignature) _cmsAdjustEndianess32(Header.deviceClass);
718 Icc -> ColorSpace = (cmsColorSpaceSignature) _cmsAdjustEndianess32(Header.colorSpace);
719 Icc -> PCS = (cmsColorSpaceSignature) _cmsAdjustEndianess32(Header.pcs);
721 Icc -> RenderingIntent = _cmsAdjustEndianess32(Header.renderingIntent);
722 Icc -> flags = _cmsAdjustEndianess32(Header.flags);
723 Icc -> manufacturer = _cmsAdjustEndianess32(Header.manufacturer);
724 Icc -> model = _cmsAdjustEndianess32(Header.model);
725 Icc -> creator = _cmsAdjustEndianess32(Header.creator);
727 _cmsAdjustEndianess64(&Icc -> attributes, &Header.attributes);
728 Icc -> Version = _cmsAdjustEndianess32(_validatedVersion(Header.version));
730 // Get size as reported in header
731 HeaderSize = _cmsAdjustEndianess32(Header.size);
739 _cmsDecodeDateTimeNumber(&Header.date, &Icc ->Created);
742 memmove(Icc ->ProfileID.ID32, Header.profileID.ID32, 16);
789 // Saves profile header
792 cmsICCHeader Header;
797 Header.size = _cmsAdjustEndianess32(UsedSpace);
798 Header.cmmId = _cmsAdjustEndianess32(lcmsSignature);
799 Header.version = _cmsAdjustEndianess32(Icc ->Version);
801 Header.deviceClass = (cmsProfileClassSignature) _cmsAdjustEndianess32(Icc -> DeviceClass);
802 Header.colorSpace = (cmsColorSpaceSignature) _cmsAdjustEndianess32(Icc -> ColorSpace);
803 Header.pcs = (cmsColorSpaceSignature) _cmsAdjustEndianess32(Icc -> PCS);
806 _cmsEncodeDateTimeNumber(&Header.date, &Icc ->Created);
808 Header.magic = _cmsAdjustEndianess32(cmsMagicNumber);
811 Header.platform = (cmsPlatformSignature) _cmsAdjustEndianess32(cmsSigMicrosoft);
813 Header.platform = (cmsPlatformSignature) _cmsAdjustEndianess32(cmsSigMacintosh);
816 Header.flags = _cmsAdjustEndianess32(Icc -> flags);
817 Header.manufacturer = _cmsAdjustEndianess32(Icc -> manufacturer);
818 Header.model = _cmsAdjustEndianess32(Icc -> model);
820 _cmsAdjustEndianess64(&Header.attributes, &Icc -> attributes);
822 // Rendering intent in the header (for embedded profiles)
823 Header.renderingIntent = _cmsAdjustEndianess32(Icc -> RenderingIntent);
826 Header.illuminant.X = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(cmsD50_XYZ()->X));
827 Header.illuminant.Y = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(cmsD50_XYZ()->Y));
828 Header.illuminant.Z = _cmsAdjustEndianess32(_cmsDoubleTo15Fixed16(cmsD50_XYZ()->Z));
831 Header.creator = _cmsAdjustEndianess32(lcmsSignature);
833 memset(&Header.reserved, 0, sizeof(Header.reserved));
836 memmove(&Header.profileID, &Icc ->ProfileID, 16);
838 // Dump the header
839 if (!Icc -> IOhandler->Write(Icc->IOhandler, sizeof(cmsICCHeader), &Header)) return FALSE;