Home
last modified time | relevance | path

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

/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()
97 cmsFloat64Number mirek; // temp (in microreciprocal kelvin)
98 cmsFloat64Number ut; // u coord of intersection w/ blackbody locus
99 cmsFloat64Number vt; // v coord of intersection w/ blackbody locus
100 cmsFloat64Number tt; // slope of ISOTEMPERATURE. line
143 cmsBool CMSEXPORT cmsTempFromWhitePoint(cmsFloat64Number* TempK, const cmsCIExyY* WhitePoint) in cmsTempFromWhitePoint()
146 cmsFloat64Number us,vs; in cmsTempFromWhitePoint()
147 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.c32 cmsINLINE cmsUInt8Number _cmsQuickSaturateByte(cmsFloat64Number d) in _cmsQuickSaturateByte()
86 *(cmsFloat64Number*)dst = (*(cmsUInt8Number*)src) / 255.0; in from8toDBL()
123 *(cmsFloat64Number*)dst = (*(cmsUInt16Number*)src) / 65535.0f; in from16toDBL()
164 *(cmsFloat64Number*)dst = (cmsFloat64Number)n; in fromFLTtoDBL()
222 *(cmsFloat64Number*)dst = (cmsFloat64Number)_cmsHalf2Float(*(cmsUInt16Number*)src); in fromHLFtoDBL()
233 cmsFloat64Number n = *(cmsFloat64Number*)src; in fromDBLto8()
240 cmsFloat64Number n = *(cmsFloat64Number*)src; in fromDBLto16()
247 cmsFloat64Number n = *(cmsFloat64Number*)src; in fromDBLtoFLT()
255 cmsFloat32Number n = (cmsFloat32Number) *(cmsFloat64Number*)src; in fromDBLtoHLF()
266 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.c58 static cmsFloat64Number DefaultEvalParametricFn(cmsInt32Number Type, const cmsFloat64Number Params[…
313 cmsFloat64Number DefaultEvalParametricFn(cmsInt32Number Type, const cmsFloat64Number Params[], cmsF… in DefaultEvalParametricFn()
315 cmsFloat64Number e, Val, disc; in DefaultEvalParametricFn()
670 cmsFloat64Number EvalSegmentedFn(const cmsToneCurve *g, cmsFloat64Number R) in EvalSegmentedFn()
674 cmsFloat64Number Out; in EvalSegmentedFn()
690 Out = (cmsFloat64Number) Out32; in EvalSegmentedFn()
734 cmsUInt32Number EntriesByGamma(cmsFloat64Number Gamma) in EntriesByGamma()
746 cmsFloat64Number R, Val; in cmsBuildSegmentedToneCurve()
765 R = (cmsFloat64Number) i / (nGridPoints-1); in cmsBuildSegmentedToneCurve()
821 …uildParametricToneCurve(cmsContext ContextID, cmsInt32Number Type, const cmsFloat64Number Params[]) in cmsBuildParametricToneCurve()
[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()
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 …]
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, cmsUInt32Number MaxSamples) in _cmsQuantizeVal()
741 cmsFloat64Number x; in _cmsQuantizeVal()
743 x = ((cmsFloat64Number) i * 65535.) / (cmsFloat64Number) (MaxSamples - 1); in _cmsQuantizeVal()
[all …]
Dlcms2_internal.h146 cmsINLINE int _cmsQuickFloor(cmsFloat64Number val) in _cmsQuickFloor()
151 …const cmsFloat64Number _lcms_double2fixmagic = 68719476736.0 * 1.5; // 2^36 * 1.5, (52-16=36) use… in _cmsQuickFloor()
153 cmsFloat64Number val; in _cmsQuickFloor()
168 cmsINLINE cmsUInt16Number _cmsQuickFloorWord(cmsFloat64Number d) in _cmsQuickFloorWord()
174 cmsINLINE cmsUInt16Number _cmsQuickSaturateWord(cmsFloat64Number d) in _cmsQuickSaturateWord()
550 cmsFloat64Number AdaptationState;
942 cmsFloat64Number AdaptationStates[],
954 cmsUInt16Number _cmsQuantizeVal(cmsFloat64Number i, cmsUInt32Number MaxSamples);
976 cmsFloat64Number AdaptationStates[],
1056 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()
Dcmscgats.c157 cmsFloat64Number dnum; // real value
533 cmsFloat64Number xpow10(int n) in xpow10()
535 return pow(10, (cmsFloat64Number) n); in xpow10()
543 it8->dnum = (cmsFloat64Number)inum; in ReadReal()
547 it8->dnum = (cmsFloat64Number)it8->dnum * 10.0 + (cmsFloat64Number)(it8->ch - '0'); in ReadReal()
553 cmsFloat64Number frac = 0.0; // fraction in ReadReal()
560 frac = frac * 10.0 + (cmsFloat64Number)(it8->ch - '0'); in ReadReal()
592 … if ((cmsFloat64Number)e * 10.0 + (cmsFloat64Number)digit < (cmsFloat64Number)+2147483647.0) in ReadReal()
607 cmsFloat64Number ParseFloatNumber(const char *Buffer) in ParseFloatNumber()
609 cmsFloat64Number dnum = 0.0; in ParseFloatNumber()
[all …]
Dcmsplugin.c219 cmsBool CMSEXPORT _cmsRead15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number* n) in _cmsRead15Fixed16Number()
331 cmsBool CMSEXPORT _cmsWrite15Fixed16Number(cmsIOHANDLER* io, cmsFloat64Number n) in _cmsWrite15Fixed16Number()
359 cmsFloat64Number CMSEXPORT _cms8Fixed8toDouble(cmsUInt16Number fixed8) in _cms8Fixed8toDouble()
366 return (cmsFloat64Number) ((cmsFloat64Number) msb + ((cmsFloat64Number) lsb / 256.0)); in _cms8Fixed8toDouble()
369 cmsUInt16Number CMSEXPORT _cmsDoubleTo8Fixed8(cmsFloat64Number val) in _cmsDoubleTo8Fixed8()
376 cmsFloat64Number CMSEXPORT _cms15Fixed16toDouble(cmsS15Fixed16Number fix32) in _cms15Fixed16toDouble()
378 cmsFloat64Number floater, sign, mid; in _cms15Fixed16toDouble()
387 mid = (cmsFloat64Number) FracPart / 65536.0; in _cms15Fixed16toDouble()
388 floater = (cmsFloat64Number) Whole + mid; in _cms15Fixed16toDouble()
394 cmsS15Fixed16Number CMSEXPORT _cmsDoubleTo15Fixed16(cmsFloat64Number v) in _cmsDoubleTo15Fixed16()
Dcmsopt.c200 cmsBool CloseEnoughFloat(cmsFloat64Number a, cmsFloat64Number b) in CloseEnoughFloat()
263 …msStage* Multmat = cmsStageAllocMatrix(Lut->ContextID, 3, 3, (const cmsFloat64Number*) &res, NULL); in _MultiplyMatrix()
493 cmsFloat64Number px, py, pz, pw; in PatchLUT()
504 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0; in PatchLUT()
505 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0; in PatchLUT()
506 pz = ((cmsFloat64Number) At[2] * (p16->Domain[2])) / 65535.0; in PatchLUT()
507 pw = ((cmsFloat64Number) At[3] * (p16->Domain[3])) / 65535.0; in PatchLUT()
527 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0; in PatchLUT()
528 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0; in PatchLUT()
529 pz = ((cmsFloat64Number) At[2] * (p16->Domain[2])) / 65535.0; in PatchLUT()
[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()
Dcmstypes.c344 cmsTagTypeSignature DecideXYZtype(cmsFloat64Number ICCVersion, const void *Data) in DecideXYZtype()
408 cmsBool SaveOneChromaticity(cmsFloat64Number x, cmsFloat64Number y, cmsIOHANDLER* io) in SaveOneChromaticity()
535 cmsFloat64Number* array_double; in Type_S15Fixed16_Read()
540 array_double = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, n, sizeof(cmsFloat64Number)); in Type_S15Fixed16_Read()
559 cmsFloat64Number* Value = (cmsFloat64Number*) Ptr; in Type_S15Fixed16_Write()
575 return _cmsDupMem(self ->ContextID, Ptr, n * sizeof(cmsFloat64Number)); in Type_S15Fixed16_Dup()
595 cmsFloat64Number* array_double; in Type_U16Fixed16_Read()
601 array_double = (cmsFloat64Number*) _cmsCalloc(self ->ContextID, n, sizeof(cmsFloat64Number)); in Type_U16Fixed16_Read()
612 array_double[i] = (cmsFloat64Number) (v / 65536.0); in Type_U16Fixed16_Read()
622 cmsFloat64Number* Value = (cmsFloat64Number*) Ptr; in Type_U16Fixed16_Write()
[all …]
Dcmsxform.c57 cmsFloat64Number CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d) in cmsSetAdaptationStateTHR()
59 cmsFloat64Number prev; in cmsSetAdaptationStateTHR()
77 cmsFloat64Number CMSEXPORT cmsSetAdaptationState(cmsFloat64Number d) in cmsSetAdaptationState()
1013 cmsFloat64Number AdaptationStates[], in cmsCreateExtendedTransform()
1161 cmsFloat64Number AdaptationStates[256]; in cmsCreateMultiprofileTransformTHR()
1243 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()
975 rc = EmitCIEBasedABC(m, (cmsFloat64Number *)&Mat, in WriteInputMatrixShaper()
Dcmsio0.c1030 void CMSEXPORT cmsSetProfileVersion(cmsHPROFILE hProfile, cmsFloat64Number Version) in cmsSetProfileVersion()
1039 cmsFloat64Number CMSEXPORT cmsGetProfileVersion(cmsHPROFILE hProfile) in cmsGetProfileVersion()
1206 cmsFloat64Number Version = cmsGetProfileVersion((cmsHPROFILE) Icc); in SaveTags()
1671 cmsFloat64Number Version; in cmsWriteTag()
/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.h96 typedef double cmsFloat64Number; typedef
939 cmsFloat64Number X;
940 cmsFloat64Number Y;
941 cmsFloat64Number Z;
946 cmsFloat64Number x;
947 cmsFloat64Number y;
948 cmsFloat64Number Y;
953 cmsFloat64Number L;
954 cmsFloat64Number a;
955 cmsFloat64Number b;
[all …]
/external/pdfium/third_party/lcms/
D0030-const-data.patch19 …static cmsFloat64Number DefaultEvalParametricFn(cmsInt32Number Type, const cmsFloat64Number Params…