Lines Matching refs:cmsUInt32Number
118 cmsBool _cmsWriteWCharArray(cmsIOHANDLER* io, cmsUInt32Number n, const wchar_t* Array)
120 cmsUInt32Number i;
134 cmsBool _cmsReadWCharArray(cmsIOHANDLER* io, cmsUInt32Number n, wchar_t* Array)
136 cmsUInt32Number i;
160 cmsUInt32Number n,
161 cmsUInt32Number SizeOfTag);
169 cmsUInt32Number Count,
170 cmsUInt32Number BaseOffset,
174 cmsUInt32Number i;
175 cmsUInt32Number *ElementOffsets = NULL, *ElementSizes = NULL;
176 cmsUInt32Number currentPosition;
179 // Verify there is enough space left to read two cmsUInt32Number items for Count items.
180 if (((io->ReportedSize - currentPosition) / (2 * sizeof(cmsUInt32Number))) < Count)
184 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number));
187 ElementSizes = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number));
222 cmsUInt32Number SizeOfTag,
223 cmsUInt32Number Count,
224 cmsUInt32Number BaseOffset,
228 cmsUInt32Number i;
229 cmsUInt32Number DirectoryPos, CurrentPos, Before;
230 cmsUInt32Number *ElementOffsets = NULL, *ElementSizes = NULL;
233 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number));
236 ElementSizes = (cmsUInt32Number *) _cmsCalloc(io ->ContextID, Count, sizeof(cmsUInt32Number));
294 void *Type_XYZ_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
314 cmsBool Type_XYZ_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
323 void* Type_XYZ_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
354 void *Type_Chromaticity_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
411 cmsBool Type_Chromaticity_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
429 void* Type_Chromaticity_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
456 void *Type_ColorantOrderType_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
459 cmsUInt32Number Count;
484 cmsBool Type_ColorantOrderType_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
487 cmsUInt32Number i, sz, Count;
506 void* Type_ColorantOrderType_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
527 void *Type_S15Fixed16_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
530 cmsUInt32Number i, n;
533 n = SizeOfTag / sizeof(cmsUInt32Number);
551 cmsBool Type_S15Fixed16_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
554 cmsUInt32Number i;
567 void* Type_S15Fixed16_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
587 void *Type_U16Fixed16_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
590 cmsUInt32Number v;
591 cmsUInt32Number i, n;
594 n = SizeOfTag / sizeof(cmsUInt32Number);
614 cmsBool Type_U16Fixed16_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
617 cmsUInt32Number i;
621 cmsUInt32Number v = (cmsUInt32Number) floor(Value[i]*65536.0 + 0.5);
633 void* Type_U16Fixed16_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
654 void *Type_Signature_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
668 cmsBool Type_Signature_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
679 void* Type_Signature_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
700 void *Type_Text_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
740 cmsBool Type_Text_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
743 cmsUInt32Number size;
767 void* Type_Text_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
804 void *Type_Data_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
807 cmsUInt32Number LenOfData;
811 if (SizeOfTag < sizeof(cmsUInt32Number)) return NULL;
813 LenOfData = SizeOfTag - sizeof(cmsUInt32Number);
838 cmsBool Type_Data_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
852 void* Type_Data_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
872 void *Type_Text_Description_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
876 cmsUInt32Number AsciiCount;
877 cmsUInt32Number i, UnicodeCode, UnicodeCount;
884 if (SizeOfTag < sizeof(cmsUInt32Number)) return NULL;
888 SizeOfTag -= sizeof(cmsUInt32Number);
914 if (SizeOfTag < 2* sizeof(cmsUInt32Number)) goto Done;
917 SizeOfTag -= 2* sizeof(cmsUInt32Number);
955 cmsBool Type_Text_Description_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
960 cmsUInt32Number len, len_text, len_tag_requirement, len_aligned;
1003 len_text = (cmsUInt32Number) strlen(Text) + 1;
1008 // * cmsUInt32Number count; * Description length
1010 // * cmsUInt32Number ucLangCode; * UniCode language code
1011 // * cmsUInt32Number ucCount; * UniCode description length
1049 void* Type_Text_Description_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
1086 void *Type_Curve_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
1088 cmsUInt32Number Count;
1140 cmsBool Type_Curve_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
1164 void* Type_Curve_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
1204 void *Type_ParametricCurve_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
1239 cmsBool Type_ParametricCurve_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
1274 void* Type_ParametricCurve_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
1309 void *Type_DateTime_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
1330 cmsBool Type_DateTime_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
1345 void* Type_DateTime_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
1371 void *Type_Measurement_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
1392 cmsBool Type_Measurement_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
1409 void* Type_Measurement_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
1433 void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
1436 cmsUInt32Number Count, RecLen, NumOfWchar;
1437 cmsUInt32Number SizeOfHeader;
1438 cmsUInt32Number Len, Offset;
1439 cmsUInt32Number i;
1441 cmsUInt32Number BeginOfThisString, EndOfThisString, LargestPosition;
1515 cmsBool Type_MLU_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
1518 cmsUInt32Number HeaderSize;
1519 cmsUInt32Number Len, Offset;
1520 cmsUInt32Number i;
1559 void* Type_MLU_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
1679 cmsBool Write8bitTables(cmsContext ContextID, cmsIOHANDLER* io, cmsUInt32Number n, _cmsStageToneCurvesData* Tables)
1682 cmsUInt32Number i;
1718 cmsUInt32Number uipow(cmsUInt32Number n, cmsUInt32Number a, cmsUInt32Number b)
1720 cmsUInt32Number rv = 1, rc;
1730 if (rv > UINT_MAX / a) return (cmsUInt32Number) -1;
1736 if (rv != rc / n) return (cmsUInt32Number) -1;
1746 void *Type_LUT8_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
1751 cmsUInt32Number nTabSize, i;
1797 if (nTabSize == (cmsUInt32Number) -1) goto Error;
1845 cmsBool Type_LUT8_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
1847 cmsUInt32Number j, nTabSize;
1927 if (nTabSize == (cmsUInt32Number) -1) return FALSE;
1951 void* Type_LUT8_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
2019 cmsUInt32Number i;
2041 void *Type_LUT16_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
2045 cmsUInt32Number nTabSize;
2096 if (nTabSize == (cmsUInt32Number) -1) goto Error;
2134 cmsBool Type_LUT16_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
2136 cmsUInt32Number nTabSize;
2241 if (nTabSize == (cmsUInt32Number) -1) return FALSE;
2267 void* Type_LUT16_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
2293 cmsStage* ReadMatrix(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number Offset)
2328 cmsStage* ReadCLUT(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number Offset, int InputChannels, int OutputChannels)
2331 cmsUInt32Number GridPoints[cmsMAXCHANNELS], i;
2393 cmsUInt32Number nItems;
2418 cmsStage* ReadSetOfCurves(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number Offset, cmsUInt32Number nCurves)
2421 cmsUInt32Number i;
2471 void* Type_LUTA2B_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
2473 cmsUInt32Number BaseOffset;
2476 cmsUInt32Number offsetB; // Offset to first "B" curve
2477 cmsUInt32Number offsetMat; // Offset to matrix
2478 cmsUInt32Number offsetM; // Offset to first "M" curve
2479 cmsUInt32Number offsetC; // Offset to CLUT
2480 cmsUInt32Number offsetA; // Offset to first "A" curve
2579 cmsUInt32Number i, n;
2633 cmsUInt32Number i;
2642 for (i=0; i < (cmsUInt32Number) CLUT ->Params ->nInputs; i++)
2679 cmsBool Type_LUTA2B_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
2686 cmsUInt32Number offsetB = 0, offsetMat = 0, offsetM = 0, offsetC = 0, offsetA = 0;
2687 cmsUInt32Number BaseOffset, DirectoryPos, CurrentPos;
2769 void* Type_LUTA2B_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
2790 void* Type_LUTB2A_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
2794 cmsUInt32Number BaseOffset; // Actual position in file
2795 cmsUInt32Number offsetB; // Offset to first "B" curve
2796 cmsUInt32Number offsetMat; // Offset to matrix
2797 cmsUInt32Number offsetM; // Offset to first "M" curve
2798 cmsUInt32Number offsetC; // Offset to CLUT
2799 cmsUInt32Number offsetA; // Offset to first "A" curve
2867 cmsBool Type_LUTB2A_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
2874 cmsUInt32Number offsetB = 0, offsetMat = 0, offsetM = 0, offsetC = 0, offsetA = 0;
2875 cmsUInt32Number BaseOffset, DirectoryPos, CurrentPos;
2952 void* Type_LUTB2A_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
2983 void *Type_ColorantTable_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
2985 cmsUInt32Number i, Count;
3025 cmsBool Type_ColorantTable_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3054 void* Type_ColorantTable_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n)
3090 void *Type_NamedColor_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3093 cmsUInt32Number vendorFlag; // Bottom 16 bits for ICC use
3094 cmsUInt32Number count; // Count of named colors
3095 cmsUInt32Number nDeviceCoords; // Num of device coordinates
3099 cmsUInt32Number i;
3151 cmsBool Type_NamedColor_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3192 void* Type_NamedColor_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n)
3225 cmsBool ReadEmbeddedText(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsMLU** mlu, cmsUInt32Number SizeOfTag)
3228 cmsUInt32Number nItems;
3259 void *Type_ProfileSequenceDesc_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3262 cmsUInt32Number i, Count;
3268 if (SizeOfTag < sizeof(cmsUInt32Number)) return NULL;
3269 SizeOfTag -= sizeof(cmsUInt32Number);
3284 if (SizeOfTag < sizeof(cmsUInt32Number)) goto Error;
3285 SizeOfTag -= sizeof(cmsUInt32Number);
3288 if (SizeOfTag < sizeof(cmsUInt32Number)) goto Error;
3289 SizeOfTag -= sizeof(cmsUInt32Number);
3295 if (!_cmsReadUInt32Number(io, (cmsUInt32Number *)&sec ->technology)) goto Error;
3296 if (SizeOfTag < sizeof(cmsUInt32Number)) goto Error;
3297 SizeOfTag -= sizeof(cmsUInt32Number);
3330 cmsBool Type_ProfileSequenceDesc_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3333 cmsUInt32Number i;
3357 void* Type_ProfileSequenceDesc_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n)
3390 cmsUInt32Number n,
3391 cmsUInt32Number SizeOfTag)
3405 void *Type_ProfileSequenceId_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3408 cmsUInt32Number Count;
3409 cmsUInt32Number BaseOffset;
3418 SizeOfTag -= sizeof(cmsUInt32Number);
3443 cmsUInt32Number n,
3444 cmsUInt32Number SizeOfTag)
3459 cmsBool Type_ProfileSequenceId_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3462 cmsUInt32Number BaseOffset;
3479 void* Type_ProfileSequenceId_Dup(struct _cms_typehandler_struct* self, const void* Ptr, cmsUInt32Number n)
3507 void *Type_UcrBg_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3510 cmsUInt32Number CountUcr, CountBg;
3518 if (SizeOfTag < sizeof(cmsUInt32Number)) return NULL;
3519 SizeOfTag -= sizeof(cmsUInt32Number);
3525 if (SizeOfTag < sizeof(cmsUInt32Number)) return NULL;
3530 if (SizeOfTag < sizeof(cmsUInt32Number)) return NULL;
3531 SizeOfTag -= sizeof(cmsUInt32Number);
3555 cmsBool Type_UcrBg_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3558 cmsUInt32Number TextSize;
3583 void* Type_UcrBg_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
3632 cmsBool ReadCountAndSting(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsMLU* mlu, cmsUInt32Number* SizeOfTag, const char* Section)
3634 cmsUInt32Number Count;
3637 if (*SizeOfTag < sizeof(cmsUInt32Number)) return FALSE;
3641 if (Count > UINT_MAX - sizeof(cmsUInt32Number)) return FALSE;
3642 if (*SizeOfTag < Count + sizeof(cmsUInt32Number)) return FALSE;
3657 *SizeOfTag -= (Count + sizeof(cmsUInt32Number));
3664 cmsUInt32Number TextSize;
3681 void *Type_CrdInfo_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3702 cmsBool Type_CrdInfo_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3723 void* Type_CrdInfo_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
3748 void *Type_Screening_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3751 cmsUInt32Number i;
3787 cmsBool Type_Screening_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3790 cmsUInt32Number i;
3810 void* Type_Screening_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
3833 void *Type_ViewingConditions_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
3861 cmsBool Type_ViewingConditions_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
3877 void* Type_ViewingConditions_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
3898 void* GenericMPEdup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
3926 cmsUInt32Number i, j;
3933 if (!_cmsReadUInt32Number(io, (cmsUInt32Number*) &ElementSig)) return NULL;
3947 for (i=0; i < (cmsUInt32Number) nSegments - 1; i++) {
3960 if (!_cmsReadUInt32Number(io, (cmsUInt32Number*) &ElementSig)) goto Error;
3968 cmsUInt32Number ParamsByType[] = {4, 5, 5 };
3987 cmsUInt32Number Count;
4036 cmsUInt32Number n,
4037 cmsUInt32Number SizeOfTag)
4048 void *Type_MPEcurve_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
4052 cmsUInt32Number i, BaseOffset;
4092 cmsUInt32Number i, j;
4094 cmsUInt32Number nSegments = g ->nSegments;
4114 if (!_cmsWriteUInt32Number(io, (cmsUInt32Number) cmsSigSampledCurveSeg)) goto Error;
4125 cmsUInt32Number ParamsByType[] = { 4, 5, 5 };
4128 if (!_cmsWriteUInt32Number(io, (cmsUInt32Number) cmsSigFormulaCurveSeg)) goto Error;
4158 cmsUInt32Number n,
4159 cmsUInt32Number SizeOfTag)
4171 cmsBool Type_MPEcurve_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
4173 cmsUInt32Number BaseOffset;
4200 void *Type_MPEmatrix_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
4204 cmsUInt32Number nElems, i;
4267 cmsBool Type_MPEmatrix_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
4269 cmsUInt32Number i, nElems;
4303 void *Type_MPEclut_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
4308 cmsUInt32Number i, nMaxGrids, GridPoints[MAX_INPUT_DIMENSIONS];
4320 // Copy MAX_INPUT_DIMENSIONS at most. Expand to cmsUInt32Number
4325 GridPoints[i] = (cmsUInt32Number)Dimensions8[i];
4352 cmsBool Type_MPEclut_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
4355 cmsUInt32Number i;
4405 cmsUInt32Number n,
4406 cmsUInt32Number SizeOfTag)
4410 cmsUInt32Number nItems;
4416 if (!_cmsReadUInt32Number(io, (cmsUInt32Number*) &ElementSig)) return FALSE;
4452 void *Type_MPE_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
4455 cmsUInt32Number ElementCount;
4457 cmsUInt32Number BaseOffset;
4493 cmsBool Type_MPE_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
4495 cmsUInt32Number i, BaseOffset, DirectoryPos, CurrentPos;
4497 cmsUInt32Number ElemCount;
4498 cmsUInt32Number *ElementOffsets = NULL, *ElementSizes = NULL, Before;
4511 ElementOffsets = (cmsUInt32Number *) _cmsCalloc(self ->ContextID, ElemCount, sizeof(cmsUInt32Number));
4514 ElementSizes = (cmsUInt32Number *) _cmsCalloc(self ->ContextID, ElemCount, sizeof(cmsUInt32Number));
4586 void* Type_MPE_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
4623 cmsUInt32Number* nItems,
4624 cmsUInt32Number SizeOfTag)
4626 cmsUInt32Number TagType, n, i;
4759 cmsBool Type_vcgt_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
4762 cmsUInt32Number i, j;
4811 void* Type_vcgt_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)
4844 cmsUInt32Number *Offsets;
4845 cmsUInt32Number *Sizes;
4855 cmsBool AllocElem(cmsContext ContextID, _cmsDICelem* e, cmsUInt32Number Count)
4857 e->Offsets = (cmsUInt32Number *) _cmsCalloc(ContextID, Count, sizeof(cmsUInt32Number));
4860 e->Sizes = (cmsUInt32Number *) _cmsCalloc(ContextID, Count, sizeof(cmsUInt32Number));
4893 cmsBool AllocArray(cmsContext ContextID, _cmsDICarray* a, cmsUInt32Number Count, cmsUInt32Number Length)
4918 cmsBool ReadOneElem(cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, cmsUInt32Number BaseOffset)
4931 cmsBool ReadOffsetArray(cmsIOHANDLER* io, _cmsDICarray* a, cmsUInt32Number Count, cmsUInt32Number Length, cmsUInt32Number BaseOffset)
4933 cmsUInt32Number i;
4958 cmsBool WriteOneElem(cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i)
4967 cmsBool WriteOffsetArray(cmsIOHANDLER* io, _cmsDICarray* a, cmsUInt32Number Count, cmsUInt32Number Length)
4969 cmsUInt32Number i;
4991 cmsBool ReadOneWChar(cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, wchar_t ** wcstr)
4994 cmsUInt32Number nChars;
5023 cmsUInt32Number mywcslen(const wchar_t *s)
5031 return (cmsUInt32Number)(p - s);
5035 cmsBool WriteOneWChar(cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, const wchar_t * wcstr, cmsUInt32Number BaseOffset)
5037 cmsUInt32Number Before = io ->Tell(io);
5038 cmsUInt32Number n;
5056 cmsBool ReadOneMLUC(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, cmsMLU** mlu)
5058 cmsUInt32Number nItems = 0;
5074 cmsBool WriteOneMLUC(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, const cmsMLU* mlu, cmsUInt32Number BaseOffset)
5076 cmsUInt32Number Before;
5097 void *Type_Dictionary_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag)
5100 cmsUInt32Number i, Count, Length;
5101 cmsUInt32Number BaseOffset;
5114 SizeOfTag -= sizeof(cmsUInt32Number);
5118 SizeOfTag -= sizeof(cmsUInt32Number);
5180 cmsBool Type_Dictionary_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems)
5185 cmsUInt32Number i, Count, Length;
5186 cmsUInt32Number DirectoryPos, CurrentPos, BaseOffset;
5256 void* Type_Dictionary_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n)