Home
last modified time | relevance | path

Searched refs:cmsFloat32Number (Results 1 – 25 of 25) sorted by relevance

/external/pdfium/third_party/lcms/src/
Dcmsintrp.c216 cmsINLINE cmsFloat32Number fclamp(cmsFloat32Number v) in fclamp()
223 void LinLerp1Dfloat(const cmsFloat32Number Value[], in LinLerp1Dfloat()
224 cmsFloat32Number Output[], in LinLerp1Dfloat()
227 cmsFloat32Number y1, y0; in LinLerp1Dfloat()
228 cmsFloat32Number val2, rest; in LinLerp1Dfloat()
230 const cmsFloat32Number* LutTable = (cmsFloat32Number*) p ->Table; in LinLerp1Dfloat()
289 void Eval1InputFloat(const cmsFloat32Number Value[], in Eval1InputFloat()
290 cmsFloat32Number Output[], in Eval1InputFloat()
293 cmsFloat32Number y1, y0; in Eval1InputFloat()
294 cmsFloat32Number val2, rest; in Eval1InputFloat()
[all …]
Dcmspack.c806 cmsFloat32Number* Pt = (cmsFloat32Number*) accum; in UnrollLabFloatTo16()
814 return accum + sizeof(cmsFloat32Number); in UnrollLabFloatTo16()
818 Lab.L = ((cmsFloat32Number*) accum)[0]; in UnrollLabFloatTo16()
819 Lab.a = ((cmsFloat32Number*) accum)[1]; in UnrollLabFloatTo16()
820 Lab.b = ((cmsFloat32Number*) accum)[2]; in UnrollLabFloatTo16()
823 accum += (3 + T_EXTRA(info ->InputFormat)) * sizeof(cmsFloat32Number); in UnrollLabFloatTo16()
866 cmsFloat32Number* Pt = (cmsFloat32Number*) accum; in UnrollXYZFloatTo16()
874 return accum + sizeof(cmsFloat32Number); in UnrollXYZFloatTo16()
879 cmsFloat32Number* Pt = (cmsFloat32Number*) accum; in UnrollXYZFloatTo16()
887 … accum += 3 * sizeof(cmsFloat32Number) + T_EXTRA(info ->InputFormat) * sizeof(cmsFloat32Number); in UnrollXYZFloatTo16()
[all …]
Dcmsalpha.c81 *(cmsFloat32Number*)dst = (*(cmsUInt8Number*)src) / 255.0f; in from8toFLT()
93 cmsFloat32Number n = (*(cmsUInt8Number*)src) / 255.0f; in from8toHLF()
114 *(cmsFloat32Number*)dst = (*(cmsUInt16Number*)src) / 65535.0f; in from16toFLT()
125 cmsFloat32Number n = (*(cmsUInt16Number*)src) / 65535.0f; in from16toHLF()
134 cmsFloat32Number n = *(cmsFloat32Number*)src; in fromFLTto8()
141 cmsFloat32Number n = *(cmsFloat32Number*)src; in fromFLTto16()
148 memmove(dst, src, sizeof(cmsFloat32Number)); in copy32()
154 cmsFloat32Number n = *(cmsFloat32Number*)src; in fromFLTtoDBL()
161 cmsFloat32Number n = *(cmsFloat32Number*)src; in fromFLTtoHLF()
171 cmsFloat32Number n = _cmsHalf2Float(*(cmsUInt16Number*)src); in fromHLFto8()
[all …]
Dcmslut.c62 void EvaluateIdentity(const cmsFloat32Number In[], in EvaluateIdentity()
63 cmsFloat32Number Out[], in EvaluateIdentity()
66 memmove(Out, In, mpe ->InputChannels * sizeof(cmsFloat32Number)); in EvaluateIdentity()
83 void FromFloatTo16(const cmsFloat32Number In[], cmsUInt16Number Out[], cmsUInt32Number n) in FromFloatTo16()
94 void From16ToFloat(const cmsUInt16Number In[], cmsFloat32Number Out[], cmsUInt32Number n) in From16ToFloat()
99 Out[i] = (cmsFloat32Number) In[i] / 65535.0F; in From16ToFloat()
167 void EvaluateCurves(const cmsFloat32Number In[], in EvaluateCurves()
168 cmsFloat32Number Out[], in EvaluateCurves()
312 void EvaluateMatrix(const cmsFloat32Number In[], in EvaluateMatrix()
313 cmsFloat32Number Out[], in EvaluateMatrix()
[all …]
Dcmsgamma.c286 …->Segments[i].SampledPoints = (cmsFloat32Number*) _cmsDupMem(ContextID, Segments[i].SampledPoints,… in AllocateToneCurveStruct()
585cmsFloat32Number R1 = (cmsFloat32Number) (R - g ->Segments[i].x0) / (g ->Segments[i].x1 - g ->Segm… in EvalSegmentedFn()
586 cmsFloat32Number Out; in EvalSegmentedFn()
668 …atedToneCurveFloat(cmsContext ContextID, cmsUInt32Number nEntries, const cmsFloat32Number values[]) in cmsBuildTabulatedToneCurveFloat()
690 Seg[1].SampledPoints = (cmsFloat32Number*) values; in cmsBuildTabulatedToneCurveFloat()
836 cmsFloat32Number t, x; in cmsJoinToneCurve()
837 cmsFloat32Number* Res = NULL; in cmsJoinToneCurve()
847 Res = (cmsFloat32Number*) _cmsCalloc(ContextID, nResultingPoints, sizeof(cmsFloat32Number)); in cmsJoinToneCurve()
853 t = (cmsFloat32Number) i / (nResultingPoints-1); in cmsJoinToneCurve()
1004 …Bool smooth2(cmsContext ContextID, cmsFloat32Number w[], cmsFloat32Number y[], cmsFloat32Number z[… in smooth2()
[all …]
Dcmshalf.c506 cmsFloat32Number _cmsHalf2Float(cmsUInt16Number h) in _cmsHalf2Float()
509 cmsFloat32Number flt; in _cmsHalf2Float()
519 cmsUInt16Number _cmsFloat2Half(cmsFloat32Number flt) in _cmsFloat2Half()
522 cmsFloat32Number flt; in _cmsFloat2Half()
Dcmsgmt.c105 cmsFloat32Number cmyk[4]; in ComputeKToLstar()
106 cmsFloat32Number* SampledPoints; in ComputeKToLstar()
111 SampledPoints = (cmsFloat32Number*) _cmsCalloc(ContextID, nPoints, sizeof(cmsFloat32Number)); in ComputeKToLstar()
119 cmyk[3] = (cmsFloat32Number) ((i * 100.0) / (nPoints-1)); in ComputeKToLstar()
122 SampledPoints[i]= (cmsFloat32Number) (1.0 - Lab.L / 100.0); // Negate K for easier operation in ComputeKToLstar()
418 cmsFloat32Number MaxTAC;
419 cmsFloat32Number MaxInput[cmsMAXCHANNELS];
430 cmsFloat32Number RoundTrip[cmsMAXCHANNELS]; in EstimateTAC()
432 cmsFloat32Number Sum; in EstimateTAC()
Dcmsnamed.c690 void EvalNamedColorPCS(const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsStage *mpe) in EvalNamedColorPCS()
701 Out[0] = (cmsFloat32Number) (NamedColorList->List[index].PCS[0] / 65535.0); in EvalNamedColorPCS()
702 Out[1] = (cmsFloat32Number) (NamedColorList->List[index].PCS[1] / 65535.0); in EvalNamedColorPCS()
703 Out[2] = (cmsFloat32Number) (NamedColorList->List[index].PCS[2] / 65535.0); in EvalNamedColorPCS()
708 void EvalNamedColor(const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsStage *mpe) in EvalNamedColor()
719 Out[j] = (cmsFloat32Number) (NamedColorList->List[index].DeviceColorant[j] / 65535.0); in EvalNamedColor()
Dlcms2_internal.h848 typedef void (* _cmsPipelineEvalFloatFn)(const cmsFloat32Number In[],
849 cmsFloat32Number Out[],
945 cmsFloat32Number _cmsHalf2Float(cmsUInt16Number h);
946 cmsUInt16Number _cmsFloat2Half(cmsFloat32Number flt);
Dcmsopt.c412 cmsFloat32Number InFloat[cmsMAXCHANNELS], OutFloat[cmsMAXCHANNELS]; in XFormSampler16()
420 InFloat[i] = (cmsFloat32Number) (In[i] / 65535.0); in XFormSampler16()
1029 cmsFloat32Number v, In[cmsMAXCHANNELS], Out[cmsMAXCHANNELS]; in OptimizeByComputingLinearization()
1096 v = (cmsFloat32Number) ((cmsFloat64Number) i / (PRELINEARIZATION_POINTS - 1)); in OptimizeByComputingLinearization()
1370 cmsFloat32Number InFloat[cmsMAXCHANNELS], OutFloat[cmsMAXCHANNELS]; in OptimizeByJoiningCurves()
1405 InFloat[j] = (cmsFloat32Number) ((cmsFloat64Number) i / (PRELINEARIZATION_POINTS - 1)); in OptimizeByJoiningCurves()
1552 cmsFloat32Number R, y; in FillFirstShaper()
1556 R = (cmsFloat32Number) (i / 255.0); in FillFirstShaper()
1571 cmsFloat32Number R, Val; in FillSecondShaper()
1575 R = (cmsFloat32Number) (i / 16384.0); in FillSecondShaper()
Dcmsplugin.c169 cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n) in _cmsReadFloat32Number()
181 *n = *(cmsFloat32Number*) (void*) &tmp; in _cmsReadFloat32Number()
290 cmsBool CMSEXPORT _cmsWriteFloat32Number(cmsIOHANDLER* io, cmsFloat32Number n) in _cmsWriteFloat32Number()
Dcmscnvrt.c842 cmsFloat32Number Inf[4], Outf[4]; in BlackPreservingSampler()
843 cmsFloat32Number LabK[4]; in BlackPreservingSampler()
850 Inf[i] = (cmsFloat32Number) (In[i] / 65535.0); in BlackPreservingSampler()
Dcmsxform.c250 cmsFloat32Number fIn[cmsMAXCHANNELS], fOut[cmsMAXCHANNELS]; in FloatXFORM()
251 cmsFloat32Number OutOfGamut; in FloatXFORM()
315 cmsFloat32Number fIn[cmsMAXCHANNELS]; in NullFloatXFORM()
Dcmstypes.c3930 cmsFloat32Number PrevBreak = -1E22F; // - infinite in ReadSegmentedCurve()
3978 cmsFloat32Number f; in ReadSegmentedCurve()
3992 …Segments[i].SampledPoints = (cmsFloat32Number*) _cmsCalloc(self ->ContextID, Count, sizeof(cmsFloa… in ReadSegmentedCurve()
4139 … if (!_cmsWriteFloat32Number(io, (cmsFloat32Number) ActualSeg ->Params[j])) goto Error; in WriteSegmentedCurve()
4231 cmsFloat32Number v; in Type_MPEmatrix_Read()
4244 cmsFloat32Number v; in Type_MPEmatrix_Read()
4279 if (!_cmsWriteFloat32Number(io, (cmsFloat32Number) Matrix->Double[i])) return FALSE; in Type_MPEmatrix_Write()
4290 if (!_cmsWriteFloat32Number(io, (cmsFloat32Number) Matrix->Offset[i])) return FALSE; in Type_MPEmatrix_Write()
4796cmsFloat32Number v = cmsEvalToneCurveFloat(Curves[i], (cmsFloat32Number) (j / 255.0)); in Type_vcgt_Write()
/external/pdfium/third_party/lcms/
D0003-old-uninitialized-in-LUTevalFloat.patch5 @@ -1321,7 +1321,7 @@ void _LUTevalFloat(register const cmsFloat32Number In[], register cmsFloat32N…
9 - cmsFloat32Number Storage[2][MAX_STAGE_CHANNELS];
10 + cmsFloat32Number Storage[2][MAX_STAGE_CHANNELS] = {0.0f};
13 memmove(&Storage[Phase][0], In, lut ->InputChannels * sizeof(cmsFloat32Number));
D0029-drop-register-keyword.patch16 -typedef cmsInt32Number (* cmsSAMPLERFLOAT)(register const cmsFloat32Number In[],
17 - register cmsFloat32Number Out[],
19 +typedef cmsInt32Number (*cmsSAMPLERFLOAT)(const cmsFloat32Number In[],
20 + cmsFloat32Number Out[],
D0020-avoid-fixed-inf.patch13 cmsFloat32Number R, y;
16 R = (cmsFloat32Number) (i / 255.0);
32 cmsFloat32Number R, Val;
35 R = (cmsFloat32Number) (i / 16384.0);
D0016-reject-nan.patch5 @@ -179,6 +179,8 @@ cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n)
8 *n = *(cmsFloat32Number*) (void*) &tmp;
D0004-old-uninitialized-in-LUTeval16.patch9 - cmsFloat32Number Storage[2][MAX_STAGE_CHANNELS];
10 + cmsFloat32Number Storage[2][MAX_STAGE_CHANNELS] = {0.0f};
D0014-memory-leak-Type_MPEmatrix_Read.patch7 cmsFloat32Number v;
20 cmsFloat32Number v;
D0017-memory-leak-ReadSegmentedCurve.patch13 …Segments[i].SampledPoints = (cmsFloat32Number*) _cmsCalloc(self ->ContextID, Count, sizeof(cmsFloa…
D0018-backport-c0a98d86.patch7 cmsINLINE cmsFloat32Number fclamp(cmsFloat32Number v)
D0021-sanitize-float-read.patch5 @@ -182,7 +182,9 @@ cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n)
/external/pdfium/third_party/lcms/include/
Dlcms2_plugin.h140 CMSAPI cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n);
149 CMSAPI cmsBool CMSEXPORT _cmsWriteFloat32Number(cmsIOHANDLER* io, cmsFloat32Number n);
265 typedef void (* _cmsInterpFnFloat)(cmsFloat32Number const Input[],
266 cmsFloat32Number Output[],
349 cmsFloat32Number Values[],
485 typedef void (* _cmsStageEvalFn) (const cmsFloat32Number In[], cmsFloat32Number Out[], const cm…
527 cmsFloat32Number* TFloat; // Points to the cmsFloat32Number table
Dlcms2.h92 typedef float cmsFloat32Number; typedef
1145 cmsFloat32Number x0, x1; // Domain; for x0 < x <= x1
1149 cmsFloat32Number* SampledPoints; // Points to an array of floats if Type == 0
1160 …tedToneCurveFloat(cmsContext ContextID, cmsUInt32Number nEntries, const cmsFloat32Number values[]);
1168 CMSAPI cmsFloat32Number CMSEXPORT cmsEvalToneCurveFloat(const cmsToneCurve* Curve, cmsFloat32Numbe…
1202 …I void CMSEXPORT cmsPipelineEvalFloat(const cmsFloat32Number In[], cmsFloat32Number O…
1203 … CMSEXPORT cmsPipelineEvalReverseFloat(cmsFloat32Number Target[], cmsFloat32Number Result[], cms…
1227 …nGridPoints, cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table);
1230 …lutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table);
1246 typedef cmsInt32Number (*cmsSAMPLERFLOAT)(const cmsFloat32Number In[],
[all …]