Home
last modified time | relevance | path

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

12

/external/pdfium/third_party/lcms/src/
Dcmspcs.c93 cmsFloat64Number ISum; in cmsXYZ2xyY()
119 cmsFloat64Number f(cmsFloat64Number t) in f()
121 const cmsFloat64Number Limit = (24.0/116.0) * (24.0/116.0) * (24.0/116.0); in f()
130 cmsFloat64Number f_1(cmsFloat64Number t) in f_1()
132 const cmsFloat64Number Limit = (24.0/116.0); in f_1()
145 cmsFloat64Number fx, fy, fz; in cmsXYZ2Lab()
163 cmsFloat64Number x, y, z; in cmsLab2XYZ()
179 cmsFloat64Number L2float2(cmsUInt16Number v) in L2float2()
181 return (cmsFloat64Number) v / 652.800; in L2float2()
186 cmsFloat64Number ab2float2(cmsUInt16Number v) in ab2float2()
[all …]
Dcmscam02.c35 cmsFloat64Number XYZ[3];
36 cmsFloat64Number RGB[3];
37 cmsFloat64Number RGBc[3];
38 cmsFloat64Number RGBp[3];
39 cmsFloat64Number RGBpa[3];
40 cmsFloat64Number a, b, h, e, H, A, J, Q, s, t, C, M;
41 cmsFloat64Number abC[2];
42 cmsFloat64Number abs[2];
43 cmsFloat64Number abM[2];
50 cmsFloat64Number LA, Yb;
[all …]
Dcmswtpnt.c48 cmsBool CMSEXPORT cmsWhitePointFromTemp(cmsCIExyY* WhitePoint, cmsFloat64Number TempK) in cmsWhitePointFromTemp()
50 cmsFloat64Number x, y; in cmsWhitePointFromTemp()
51 cmsFloat64Number T, T2, T3; in cmsWhitePointFromTemp()
98 cmsFloat64Number mirek; // temp (in microreciprocal kelvin)
99 cmsFloat64Number ut; // u coord of intersection w/ blackbody locus
100 cmsFloat64Number vt; // v coord of intersection w/ blackbody locus
101 cmsFloat64Number tt; // slope of ISOTEMPERATURE. line
144 cmsBool CMSEXPORT cmsTempFromWhitePoint(cmsFloat64Number* TempK, const cmsCIExyY* WhitePoint) in cmsTempFromWhitePoint()
147 cmsFloat64Number us,vs; in cmsTempFromWhitePoint()
148 cmsFloat64Number uj,vj,tj,di,dj,mi,mj; in cmsTempFromWhitePoint()
[all …]
Dcmsmtrx.c30 #define DSWAP(x, y) {cmsFloat64Number tmp = (x); (x)=(y); (y)=tmp;}
34 void CMSEXPORT _cmsVEC3init(cmsVEC3* r, cmsFloat64Number x, cmsFloat64Number y, cmsFloat64Number z) in _cmsVEC3init()
58 cmsFloat64Number CMSEXPORT _cmsVEC3dot(const cmsVEC3* u, const cmsVEC3* v) in _cmsVEC3dot()
64 cmsFloat64Number CMSEXPORT _cmsVEC3length(const cmsVEC3* a) in _cmsVEC3length()
72 cmsFloat64Number CMSEXPORT _cmsVEC3distance(const cmsVEC3* a, const cmsVEC3* b) in _cmsVEC3distance()
74 cmsFloat64Number d1 = a ->n[VX] - b ->n[VX]; in _cmsVEC3distance()
75 cmsFloat64Number d2 = a ->n[VY] - b ->n[VY]; in _cmsVEC3distance()
76 cmsFloat64Number d3 = a ->n[VZ] - b ->n[VZ]; in _cmsVEC3distance()
92 cmsBool CloseEnough(cmsFloat64Number a, cmsFloat64Number b) in CloseEnough()
131 cmsFloat64Number det, c0, c1, c2; in _cmsMAT3inverse()
Dcmsalpha.c33 cmsINLINE cmsUInt8Number _cmsQuickSaturateByte(cmsFloat64Number d) in _cmsQuickSaturateByte()
87 *(cmsFloat64Number*)dst = (*(cmsUInt8Number*)src) / 255.0; in from8toDBL()
119 *(cmsFloat64Number*)dst = (*(cmsUInt16Number*)src) / 65535.0f; in from16toDBL()
155 *(cmsFloat64Number*)dst = (cmsFloat64Number)n; in fromFLTtoDBL()
191 *(cmsFloat64Number*)dst = (cmsFloat64Number)_cmsHalf2Float(*(cmsUInt16Number*)src); in fromHLFtoDBL()
198 cmsFloat64Number n = *(cmsFloat64Number*)src; in fromDBLto8()
205 cmsFloat64Number n = *(cmsFloat64Number*)src; in fromDBLto16()
212 cmsFloat64Number n = *(cmsFloat64Number*)src; in fromDBLtoFLT()
219 cmsFloat32Number n = (cmsFloat32Number) *(cmsFloat64Number*)src; in fromDBLtoHLF()
226 memmove(dst, src, sizeof(cmsFloat64Number)); in copy64()
Dcmspack.c775 cmsFloat64Number* Pt = (cmsFloat64Number*) accum; in UnrollLabDoubleTo16()
784 return accum + sizeof(cmsFloat64Number); in UnrollLabDoubleTo16()
789 accum += sizeof(cmsCIELab) + T_EXTRA(info ->InputFormat) * sizeof(cmsFloat64Number); in UnrollLabDoubleTo16()
837 cmsFloat64Number* Pt = (cmsFloat64Number*) accum; in UnrollXYZDoubleTo16()
845 return accum + sizeof(cmsFloat64Number); in UnrollXYZDoubleTo16()
851 accum += sizeof(cmsCIEXYZ) + T_EXTRA(info ->InputFormat) * sizeof(cmsFloat64Number); in UnrollXYZDoubleTo16()
931 cmsFloat64Number v; in UnrollDoubleTo16()
934 cmsFloat64Number maximum = IsInkSpace(info ->InputFormat) ? 655.35 : 65535.0; in UnrollDoubleTo16()
945 v = (cmsFloat32Number) ((cmsFloat64Number*) accum)[(i + start) * Stride]; in UnrollDoubleTo16()
947 v = (cmsFloat32Number) ((cmsFloat64Number*) accum)[i + start]; in UnrollDoubleTo16()
[all …]
Dcmssm.c44 cmsFloat64Number r;
45 cmsFloat64Number alpha;
46 cmsFloat64Number theta;
101 cmsFloat64Number _cmsAtan2(cmsFloat64Number y, cmsFloat64Number x) in _cmsAtan2()
103 cmsFloat64Number a; in _cmsAtan2()
122 cmsFloat64Number L, a, b; in ToSpherical()
144 cmsFloat64Number sin_alpha; in ToCartesian()
145 cmsFloat64Number cos_alpha; in ToCartesian()
146 cmsFloat64Number sin_theta; in ToCartesian()
147 cmsFloat64Number cos_theta; in ToCartesian()
[all …]
Dcmscnvrt.c38 cmsFloat64Number AdaptationStates[],
51 cmsFloat64Number AdaptationStates[],
64 cmsFloat64Number AdaptationStates[],
77 cmsFloat64Number AdaptationStates[],
186 cmsFloat64Number ax, ay, az, bx, by, bz, tx, ty, tz; in ComputeBlackPointCompensation()
218 cmsFloat64Number CHAD2Temp(const cmsMAT3* Chad) in CHAD2Temp()
224 cmsFloat64Number TempK; in CHAD2Temp()
250 void Temp2CHAD(cmsMAT3* Chad, cmsFloat64Number Temp) in Temp2CHAD()
263 cmsBool ComputeAbsoluteIntent(cmsFloat64Number AdaptationState, in ComputeAbsoluteIntent()
309 cmsFloat64Number TempSrc, TempDest, Temp; in ComputeAbsoluteIntent()
[all …]
Dcmsgamma.c57 static cmsFloat64Number DefaultEvalParametricFn(cmsInt32Number Type, const cmsFloat64Number Params[…
312 cmsFloat64Number DefaultEvalParametricFn(cmsInt32Number Type, const cmsFloat64Number Params[], cmsF… in DefaultEvalParametricFn()
314 cmsFloat64Number e, Val, disc; in DefaultEvalParametricFn()
573 cmsFloat64Number EvalSegmentedFn(const cmsToneCurve *g, cmsFloat64Number R) in EvalSegmentedFn()
625 int EntriesByGamma(cmsFloat64Number Gamma) in EntriesByGamma()
637 cmsFloat64Number R, Val; in cmsBuildSegmentedToneCurve()
656 R = (cmsFloat64Number) i / (nGridPoints-1); in cmsBuildSegmentedToneCurve()
712 …uildParametricToneCurve(cmsContext ContextID, cmsInt32Number Type, const cmsFloat64Number Params[]) in cmsBuildParametricToneCurve()
732 size = c->ParameterCount[Pos] * sizeof(cmsFloat64Number); in cmsBuildParametricToneCurve()
741 cmsToneCurve* CMSEXPORT cmsBuildGamma(cmsContext ContextID, cmsFloat64Number Gamma) in cmsBuildGamma()
[all …]
Dcmssamp.c47 cmsFloat64Number States[4] = { 1.0, 1.0, 1.0, 1.0 }; in CreateRoundtripXForm()
284 cmsFloat64Number RootOfLeastSquaresFitQuadraticCurve(int n, cmsFloat64Number x[], cmsFloat64Number in RootOfLeastSquaresFitQuadraticCurve()
352 cmsFloat64Number inRamp[256], outRamp[256]; in cmsDetectDestinationBlackPoint()
353 cmsFloat64Number MinL, MaxL; in cmsDetectDestinationBlackPoint()
355 cmsFloat64Number yRamp[256]; in cmsDetectDestinationBlackPoint()
356 cmsFloat64Number x[256], y[256]; in cmsDetectDestinationBlackPoint()
357 cmsFloat64Number lo, hi; in cmsDetectDestinationBlackPoint()
443 Lab.L = (cmsFloat64Number) (l * 100.0) / 255.0; in cmsDetectDestinationBlackPoint()
515 cmsFloat64Number ff = yRamp[l]; in cmsDetectDestinationBlackPoint()
Dcmslut.c318 cmsFloat64Number Tmp; in EvaluateMatrix()
352 …NewElem ->Double = (cmsFloat64Number*) _cmsDupMem(mpe ->ContextID, Data ->Double, sz * sizeof(cmsF… in MatrixElemDup()
355 NewElem ->Offset = (cmsFloat64Number*) _cmsDupMem(mpe ->ContextID, in MatrixElemDup()
356 … Data ->Offset, mpe -> OutputChannels * sizeof(cmsFloat64Number)) ; in MatrixElemDup()
380 const cmsFloat64Number* Matrix, const cmsFloat64Number* Offset) in cmsStageAllocMatrix()
403 NewElem ->Double = (cmsFloat64Number*) _cmsCalloc(ContextID, n, sizeof(cmsFloat64Number)); in cmsStageAllocMatrix()
417 … NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Rows, sizeof(cmsFloat64Number)); in cmsStageAllocMatrix()
739 cmsUInt16Number _cmsQuantizeVal(cmsFloat64Number i, int MaxSamples) in _cmsQuantizeVal()
741 cmsFloat64Number x; in _cmsQuantizeVal()
743 x = ((cmsFloat64Number) i * 65535.) / (cmsFloat64Number) (MaxSamples - 1); in _cmsQuantizeVal()
[all …]
Dcmsvirt.c366 cmsFloat64Number InkLimit = *(cmsFloat64Number *) Cargo; in InkLimitingSampler()
367 cmsFloat64Number SumCMY, SumCMYK, Ratio; in InkLimitingSampler()
395 cmsFloat64Number Limit) in cmsCreateInkLimitingDeviceLinkTHR()
467 …CMSEXPORT cmsCreateInkLimitingDeviceLink(cmsColorSpaceSignature ColorSpace, cmsFloat64Number Limit) in cmsCreateInkLimitingDeviceLink()
631 cmsFloat64Number Parameters[5]; in Build_sRGBGamma()
678 cmsFloat64Number Brightness;
679 cmsFloat64Number Contrast;
680 cmsFloat64Number Hue;
681 cmsFloat64Number Saturation;
730 cmsFloat64Number Bright, in cmsCreateBCHSWabstractProfileTHR()
[all …]
Dlcms2_internal.h138 cmsINLINE int _cmsQuickFloor(cmsFloat64Number val) in _cmsQuickFloor()
143 …const cmsFloat64Number _lcms_double2fixmagic = 68719476736.0 * 1.5; // 2^36 * 1.5, (52-16=36) use… in _cmsQuickFloor()
145 cmsFloat64Number val; in _cmsQuickFloor()
160 cmsINLINE cmsUInt16Number _cmsQuickFloorWord(cmsFloat64Number d) in _cmsQuickFloorWord()
166 cmsINLINE cmsUInt16Number _cmsQuickSaturateWord(cmsFloat64Number d) in _cmsQuickSaturateWord()
498 cmsFloat64Number AdaptationState;
890 cmsFloat64Number AdaptationStates[],
902 cmsUInt16Number _cmsQuantizeVal(cmsFloat64Number i, int MaxSamples);
924 cmsFloat64Number AdaptationStates[],
1004 cmsFloat64Number AdaptationState;
[all …]
Dcmsgmt.c39 const cmsFloat64Number AdaptationStates[], in _cmsChain2Lab()
46 cmsFloat64Number AdaptationList[256]; in _cmsChain2Lab()
98 const cmsFloat64Number AdaptationStates[], in ComputeKToLstar()
145 const cmsFloat64Number AdaptationStates[], in _cmsBuildKToneCurve()
202 cmsFloat64Number Thereshold; // The thereshold after which is considered out of gamut
220 cmsFloat64Number dE1, dE2, ErrorRatio; in GamutSampler()
291 cmsFloat64Number AdaptationStates[], in _cmsCreateGamutCheckPipeline()
305 cmsFloat64Number AdaptationList[256]; in _cmsCreateGamutCheckPipeline()
459 cmsFloat64Number CMSEXPORT cmsDetectTAC(cmsHPROFILE hProfile) in cmsDetectTAC()
Dcmsplugin.c205 cmsBool CMSEXPORT _cmsRead15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number* n) in _cmsRead15Fixed16Number()
317 cmsBool CMSEXPORT _cmsWrite15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number n) in _cmsWrite15Fixed16Number()
345 cmsFloat64Number CMSEXPORT _cms8Fixed8toDouble(cmsUInt16Number fixed8) in _cms8Fixed8toDouble()
352 return (cmsFloat64Number) ((cmsFloat64Number) msb + ((cmsFloat64Number) lsb / 256.0)); in _cms8Fixed8toDouble()
355 cmsUInt16Number CMSEXPORT _cmsDoubleTo8Fixed8(cmsFloat64Number val) in _cmsDoubleTo8Fixed8()
362 cmsFloat64Number CMSEXPORT _cms15Fixed16toDouble(cmsS15Fixed16Number fix32) in _cms15Fixed16toDouble()
364 cmsFloat64Number floater, sign, mid; in _cms15Fixed16toDouble()
373 mid = (cmsFloat64Number) FracPart / 65536.0; in _cms15Fixed16toDouble()
374 floater = (cmsFloat64Number) Whole + mid; in _cms15Fixed16toDouble()
380 cmsS15Fixed16Number CMSEXPORT _cmsDoubleTo15Fixed16(cmsFloat64Number v) in _cmsDoubleTo15Fixed16()
Dcmsopt.c167 cmsBool CloseEnoughFloat(cmsFloat64Number a, cmsFloat64Number b) in CloseEnoughFloat()
230 …msStage* Multmat = cmsStageAllocMatrix(Lut->ContextID, 3, 3, (const cmsFloat64Number*) &res, NULL); in _MultiplyMatrix()
460 cmsFloat64Number px, py, pz, pw; in PatchLUT()
471 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0; in PatchLUT()
472 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0; in PatchLUT()
473 pz = ((cmsFloat64Number) At[2] * (p16->Domain[2])) / 65535.0; in PatchLUT()
474 pw = ((cmsFloat64Number) At[3] * (p16->Domain[3])) / 65535.0; in PatchLUT()
494 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0; in PatchLUT()
495 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0; in PatchLUT()
496 pz = ((cmsFloat64Number) At[2] * (p16->Domain[2])) / 65535.0; in PatchLUT()
[all …]
Dcmscgats.c157 cmsFloat64Number dnum; // real value
534 cmsFloat64Number xpow10(int n) in xpow10()
536 return pow(10, (cmsFloat64Number) n); in xpow10()
544 it8->dnum = (cmsFloat64Number) inum; in ReadReal()
554 cmsFloat64Number frac = 0.0; // fraction in ReadReal()
591 if ((cmsFloat64Number) e * 10L < (cmsFloat64Number) +2147483647.0) in ReadReal()
606 cmsFloat64Number ParseFloatNumber(const char *Buffer) in ParseFloatNumber()
608 cmsFloat64Number dnum = 0.0; in ParseFloatNumber()
629 cmsFloat64Number frac = 0.0; // fraction in ParseFloatNumber()
668 if ((cmsFloat64Number) e * 10L < INT_MAX) in ParseFloatNumber()
[all …]
Dcmstypes.c338 cmsTagTypeSignature DecideXYZtype(cmsFloat64Number ICCVersion, const void *Data) in DecideXYZtype()
402 cmsBool SaveOneChromaticity(cmsFloat64Number x, cmsFloat64Number y, cmsIOHANDLER* io) in SaveOneChromaticity()
529 cmsFloat64Number* array_double; in Type_S15Fixed16_Read()
534 array_double = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, n, sizeof(cmsFloat64Number)); in Type_S15Fixed16_Read()
553 cmsFloat64Number* Value = (cmsFloat64Number*) Ptr; in Type_S15Fixed16_Write()
569 return _cmsDupMem(self ->ContextID, Ptr, n * sizeof(cmsFloat64Number)); in Type_S15Fixed16_Dup()
589 cmsFloat64Number* array_double; in Type_U16Fixed16_Read()
595 array_double = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, n, sizeof(cmsFloat64Number)); in Type_U16Fixed16_Read()
606 array_double[i] = (cmsFloat64Number) (v / 65536.0); in Type_U16Fixed16_Read()
616 cmsFloat64Number* Value = (cmsFloat64Number*) Ptr; in Type_U16Fixed16_Write()
[all …]
Dcmsio1.c58 static const cmsFloat64Number GrayInputMatrix[] = { (InpAdj*cmsD50X), (InpAdj*cmsD50Y), (InpAdj*c…
59 static const cmsFloat64Number OneToThreeInputMatrix[] = { 1, 1, 1 };
60 static const cmsFloat64Number PickYMatrix[] = { 0, (OutpAdj*cmsD50Y), 0 };
61 static const cmsFloat64Number PickLstarMatrix[] = { 1, 0, 0 };
245 …neInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 3, (cmsFloat64Number*) &Mat, NULL)… in BuildRGBInputMatrixShaper()
509 …neInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 3, (cmsFloat64Number*) &Inv, NULL)… in BuildRGBOutputMatrixShaper()
Dcmsxform.c57 cmsFloat64Number CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d) in cmsSetAdaptationStateTHR()
59 cmsFloat64Number prev; in cmsSetAdaptationStateTHR()
77 cmsFloat64Number CMSEXPORT cmsSetAdaptationState(cmsFloat64Number d) in cmsSetAdaptationState()
1005 cmsFloat64Number AdaptationStates[], in cmsCreateExtendedTransform()
1153 cmsFloat64Number AdaptationStates[256]; in cmsCreateMultiprofileTransformTHR()
1235 cmsFloat64Number Adaptation[4]; in cmsCreateProofingTransformTHR()
Dcmsps2.c294 return (cmsUInt8Number) floor((cmsFloat64Number) w / 257.0 + 0.5); in Word2Byte()
470 cmsFloat64Number gamma; in Emit1Gamma()
733 int EmitCIEBasedABC(cmsIOHANDLER* m, cmsFloat64Number* Matrix, cmsToneCurve** CurveSet, cmsCIEXYZ* … in EmitCIEBasedABC()
937 cmsFloat64Number* GetPtrToMatrix(const cmsStage* mpe) in GetPtrToMatrix()
976 rc = EmitCIEBasedABC(m, (cmsFloat64Number *) &Mat, in WriteInputMatrixShaper()
/external/pdfium/third_party/lcms/include/
Dlcms2_plugin.h72 cmsFloat64Number n[3];
82 … CMSEXPORT _cmsVEC3init(cmsVEC3* r, cmsFloat64Number x, cmsFloat64Number y, cmsFloat64…
85 CMSAPI cmsFloat64Number CMSEXPORT _cmsVEC3dot(const cmsVEC3* u, const cmsVEC3* v);
86 CMSAPI cmsFloat64Number CMSEXPORT _cmsVEC3length(const cmsVEC3* a);
87 CMSAPI cmsFloat64Number CMSEXPORT _cmsVEC3distance(const cmsVEC3* a, const cmsVEC3* b);
142 CMSAPI cmsBool CMSEXPORT _cmsRead15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number* n);
151 CMSAPI cmsBool CMSEXPORT _cmsWrite15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number n);
174 CMSAPI cmsFloat64Number CMSEXPORT _cms8Fixed8toDouble(cmsUInt16Number fixed8);
175 CMSAPI cmsUInt16Number CMSEXPORT _cmsDoubleTo8Fixed8(cmsFloat64Number val);
177 CMSAPI cmsFloat64Number CMSEXPORT _cms15Fixed16toDouble(cmsS15Fixed16Number fix32);
[all …]
Dlcms2.h93 typedef double cmsFloat64Number; typedef
931 cmsFloat64Number X;
932 cmsFloat64Number Y;
933 cmsFloat64Number Z;
938 cmsFloat64Number x;
939 cmsFloat64Number y;
940 cmsFloat64Number Y;
945 cmsFloat64Number L;
946 cmsFloat64Number a;
947 cmsFloat64Number b;
[all …]
/external/pdfium/third_party/lcms/
D0023-upstream-integer-overflow-MPEmatrix_Read.patch15 + cmsFloat64Number dnum; // real value
18 - cmsFloat64Number dnum; // real value
53 - if ((cmsFloat64Number) e * 10L < INT_MAX)
54 + if ((cmsFloat64Number) e * 10L < (cmsFloat64Number) +2147483647.0)
63 + if ((cmsFloat64Number) it8->inum * 10L > (cmsFloat64Number) +2147483647.0) {
83 Matrix = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, nElems, sizeof(cmsFloat64Number));
D0015-cmsStageAllocMatrix-param-swap.patch9 - NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Cols, sizeof(cmsFloat64Number
10 + NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Rows, sizeof(cmsFloat64Number

12