Home
last modified time | relevance | path

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

123

/external/dng_sdk/source/
Ddng_matrix.h42 real64 fData [kMaxColorPlanes] [kMaxColorPlanes];
71 real64 * operator [] (uint32 row)
76 const real64 * operator [] (uint32 row) const
100 real64 MaxEntry () const;
102 real64 MinEntry () const;
104 void Scale (real64 factor);
106 void Round (real64 factor);
108 void SafeRound (real64 factor);
125 dng_matrix_3by3 (real64 a00, real64 a01, real64 a02,
126 real64 a10, real64 a11, real64 a12,
[all …]
Ddng_render.h41 real64 fSlope; // Slope of straight segment.
43 real64 fBlack; // Intercept of straight segment.
45 real64 fRadius; // Rounding radius.
47 real64 fQScale; // Quadradic scale.
51 dng_function_exposure_ramp (real64 white,
52 real64 black,
53 real64 minBlack);
55 virtual real64 Evaluate (real64 x) const;
71 real64 fSlope; // Slope for lower part of curve.
73 real64 a; // Quadradic parameters for upper two f-stops.
[all …]
Ddng_temperature.cpp23 static const real64 kTintScale = -3000.0;
31 real64 r;
32 real64 u;
33 real64 v;
34 real64 t;
79 real64 u = 2.0 * xy.x / (1.5 - xy.x + 6.0 * xy.y); in Set_xy_coord()
80 real64 v = 3.0 * xy.y / (1.5 - xy.x + 6.0 * xy.y); in Set_xy_coord()
84 real64 last_dt = 0.0; in Set_xy_coord()
86 real64 last_dv = 0.0; in Set_xy_coord()
87 real64 last_du = 0.0; in Set_xy_coord()
[all …]
Ddng_1d_function.cpp38 real64 dng_1d_function::EvaluateInverse (real64 y) const in EvaluateInverse()
42 const real64 kNearZero = 1.0e-10; in EvaluateInverse()
44 real64 x0 = 0.0; in EvaluateInverse()
45 real64 y0 = Evaluate (x0); in EvaluateInverse()
47 real64 x1 = 1.0; in EvaluateInverse()
48 real64 y1 = Evaluate (x1); in EvaluateInverse()
58 real64 x2 = Pin_real64 (0.0, in EvaluateInverse()
62 real64 y2 = Evaluate (x2); in EvaluateInverse()
87 real64 dng_1d_identity::Evaluate (real64 x) const in Evaluate()
96 real64 dng_1d_identity::EvaluateInverse (real64 x) const in EvaluateInverse()
[all …]
Ddng_matrix.cpp175 real64 dng_matrix::MaxEntry () const in MaxEntry()
185 real64 m = fData [0] [0]; in MaxEntry()
201 real64 dng_matrix::MinEntry () const in MinEntry()
211 real64 m = fData [0] [0]; in MinEntry()
227 void dng_matrix::Scale (real64 factor) in Scale()
242 void dng_matrix::Round (real64 factor) in Round()
245 real64 invFactor = 1.0 / factor; in Round()
259 void dng_matrix::SafeRound (real64 factor) in SafeRound()
262 real64 invFactor = 1.0 / factor; in SafeRound()
271 real64 error = 0.0; in SafeRound()
[all …]
Ddng_spline.h28 inline real64 EvaluateSplineSegment (real64 x, in EvaluateSplineSegment()
29 real64 x0, in EvaluateSplineSegment()
30 real64 y0, in EvaluateSplineSegment()
31 real64 s0, in EvaluateSplineSegment()
32 real64 x1, in EvaluateSplineSegment()
33 real64 y1, in EvaluateSplineSegment()
34 real64 s1) in EvaluateSplineSegment()
37 real64 A = x1 - x0; in EvaluateSplineSegment()
39 real64 B = (x - x0) / A; in EvaluateSplineSegment()
41 real64 C = (x1 - x) / A; in EvaluateSplineSegment()
[all …]
Ddng_1d_function.h51 virtual real64 Evaluate (real64 x) const = 0;
59 virtual real64 EvaluateInverse (real64 y) const;
77 virtual real64 Evaluate (real64 x) const;
81 virtual real64 EvaluateInverse (real64 y) const;
121 virtual real64 Evaluate (real64 x) const;
128 virtual real64 EvaluateInverse (real64 y) const;
149 virtual real64 Evaluate (real64 x) const;
151 virtual real64 EvaluateInverse (real64 y) const;
Ddng_lens_correction.cpp197 real64 dng_warp_params::EvaluateInverse (uint32 plane, in EvaluateInverse()
198 real64 y) const in EvaluateInverse()
202 const real64 kNearZero = 1.0e-10; in EvaluateInverse()
204 real64 x0 = 0.0; in EvaluateInverse()
205 real64 y0 = Evaluate (plane, in EvaluateInverse()
208 real64 x1 = 1.0; in EvaluateInverse()
209 real64 y1 = Evaluate (plane, in EvaluateInverse()
220 const real64 x2 = Pin_real64 (0.0, in EvaluateInverse()
224 const real64 y2 = Evaluate (plane, in EvaluateInverse()
245 const real64 dvdv = diff.v * diff.v; in EvaluateTangential2()
[all …]
Ddng_color_space.cpp26 real64 dng_function_GammaEncode_sRGB::Evaluate (real64 x) const in Evaluate()
39 real64 dng_function_GammaEncode_sRGB::EvaluateInverse (real64 y) const in EvaluateInverse()
63 real64 dng_function_GammaEncode_1_8::Evaluate (real64 x) const in Evaluate()
66 const real64 gamma = 1.0 / 1.8; in Evaluate()
68 const real64 slope0 = 32.0; in Evaluate()
70 const real64 x1 = 8.2118790552e-4; // pow (slope0, 1.0 / (gamma - 1.0)) * 2.0 in Evaluate()
72 const real64 y1 = 0.019310851; // pow (x1, gamma) in Evaluate()
74 const real64 slope1 = 13.064306598; // gamma * pow (x1, gamma - 1.0) in Evaluate()
92 real64 dng_function_GammaEncode_1_8::EvaluateInverse (real64 y) const in EvaluateInverse()
119 real64 dng_function_GammaEncode_2_2::Evaluate (real64 x) const in Evaluate()
[all …]
Ddng_lens_correction.h126 virtual real64 Evaluate (uint32 plane,
127 real64 r) const = 0;
136 virtual real64 EvaluateInverse (uint32 plane,
137 real64 r) const;
149 virtual real64 EvaluateRatio (uint32 plane,
150 real64 r2) const = 0;
164 real64 r2,
187 real64 r2,
200 virtual real64 MaxSrcRadiusGap (real64 maxDstGap) const = 0;
324 virtual real64 Evaluate (uint32 plane,
[all …]
Ddng_1d_table.cpp72 fTable [middle] = (real32) function.Evaluate (middle * (1.0 / (real64) kTableSize)); in SubDivide()
88 real64 y0 = fTable [lower]; in SubDivide()
89 real64 y1 = fTable [upper]; in SubDivide()
91 real64 delta = (y1 - y0) / (real64) range; in SubDivide()
140 real64 x = j * (1.0 / (real64) kTableSize); in Initialize()
142 real64 y = function.Evaluate (x); in Initialize()
159 real64 step = (real64) kTableSize / 65535.0; in Expand16()
161 real64 y0 = fTable [0]; in Expand16()
162 real64 y1 = fTable [1]; in Expand16()
164 real64 base = y0 * 65535.0 + 0.5; in Expand16()
[all …]
Ddng_color_space.h37 virtual real64 Evaluate (real64 x) const;
39 virtual real64 EvaluateInverse (real64 y) const;
54 virtual real64 Evaluate (real64 x) const;
56 virtual real64 EvaluateInverse (real64 y) const;
71 virtual real64 Evaluate (real64 x) const;
73 virtual real64 EvaluateInverse (real64 y) const;
133 real64 GammaEncode (real64 x) const in GammaEncode()
141 real64 GammaDecode (real64 y) const in GammaDecode()
Ddng_utils.h404 inline real64 Abs_real64 (real64 x) in Abs_real64()
411 inline real64 Min_real64 (real64 x, real64 y) in Min_real64()
418 inline real64 Max_real64 (real64 x, real64 y) in Max_real64()
425 inline real64 Pin_real64 (real64 min, real64 x, real64 max) in Pin_real64()
432 inline real64 Pin_real64 (real64 x) in Pin_real64()
439 inline real64 Pin_real64_Overrange (real64 min, in Pin_real64_Overrange()
440 real64 x, in Pin_real64_Overrange()
441 real64 max) in Pin_real64_Overrange()
464 inline real64 Lerp_real64 (real64 a, real64 b, real64 t) in Lerp_real64()
480 inline int32 Round_int32 (real64 x) in Round_int32()
[all …]
Ddng_rational.cpp22 real64 dng_srational::As_real64 () const in As_real64()
26 return (real64) n / (real64) d; in As_real64()
35 void dng_srational::Set_real64 (real64 x, int32 dd) in Set_real64()
48 real64 y = Abs_real64 (x); in Set_real64()
88 real64 dng_urational::As_real64 () const in As_real64()
92 return (real64) n / (real64) d; in As_real64()
101 void dng_urational::Set_real64 (real64 x, uint32 dd) in Set_real64()
Ddng_temperature.h34 real64 fTemperature;
36 real64 fTint;
48 dng_temperature (real64 temperature, in dng_temperature()
49 real64 tint) in dng_temperature()
67 void SetTemperature (real64 temperature) in SetTemperature()
72 real64 Temperature () const in Temperature()
77 void SetTint (real64 tint) in SetTint()
82 real64 Tint () const in Tint()
Ddng_resample.cpp31 real64 dng_resample_bicubic::Extent () const in Extent()
40 real64 dng_resample_bicubic::Evaluate (real64 x) const in Evaluate()
43 const real64 A = -0.75; in Evaluate()
109 real64 invScale = (real64) srcCount / in Initialize()
110 (real64) dstCount; in Initialize()
115 real64 x = (real64) j + 0.5; in Initialize()
117 real64 y = x * invScale - 0.5 + (real64) srcOrigin; in Initialize()
119 coords [j] = Round_int32 (y * (real64) kResampleSubsampleCount); in Initialize()
158 void dng_resample_weights::Initialize (real64 scale, in Initialize()
221 real64 fract = sample * (1.0 / (real64) kResampleSubsampleCount); in Initialize()
[all …]
Ddng_rect.h188 real64 Diagonal () const in Diagonal()
190 return hypot ((real64) W (), in Diagonal()
191 (real64) H ()); in Diagonal()
203 real64 t;
204 real64 l;
205 real64 b;
206 real64 r;
218 dng_rect_real64 (real64 tt, real64 ll, real64 bb, real64 rr) in dng_rect_real64()
226 dng_rect_real64 (real64 h, real64 w) in dng_rect_real64()
252 : t ((real64) rect.t) in dng_rect_real64()
[all …]
Ddng_negative.h84 real64 fScale;
85 real64 fOffset;
102 dng_noise_function (real64 scale, in dng_noise_function()
103 real64 offset) in dng_noise_function()
115 virtual real64 Evaluate (real64 x) const in Evaluate()
122 real64 Scale () const in Scale()
129 real64 Offset () const in Offset()
136 void SetScale (real64 scale) in SetScale()
143 void SetOffset (real64 offset) in SetOffset()
613 real64 fRawToFullScaleH;
[all …]
Ddng_exif.h231 static real64 SnapExposureTime (real64 et);
239 void SetExposureTime (real64 et,
245 void SetShutterSpeedValue (real64 ss);
250 static dng_urational EncodeFNumber (real64 fs);
255 void SetFNumber (real64 fs);
260 void SetApertureValue (real64 av);
265 static real64 ApertureValueToFNumber (real64 av);
270 static real64 ApertureValueToFNumber (const dng_urational &av);
275 static real64 FNumberToApertureValue (real64 fNumber);
280 static real64 FNumberToApertureValue (const dng_urational &fNumber);
Ddng_spline.cpp54 void dng_spline_solver::Add (real64 x, real64 y) in Add()
78 real64 A = X [start+1] - X [start]; in Solve()
79 real64 B = (Y [start+1] - Y [start]) / A; in Solve()
93 real64 C = X [j] - X [j-1]; in Solve()
94 real64 D = (Y [j] - Y [j-1]) / C; in Solve()
109 dng_std_vector<real64> E; in Solve()
110 dng_std_vector<real64> F; in Solve()
111 dng_std_vector<real64> G; in Solve()
174 real64 dng_spline_solver::Evaluate (real64 x) const in Evaluate()
Ddng_stream.cpp627 real64 dng_stream::Get_real64 () in Get_real64()
636 real64 r; in Get_real64()
646 real64 x; in Get_real64()
656 void dng_stream::Put_real64 (real64 x) in Put_real64()
665 real64 r; in Put_real64()
814 real64 x = TagValue_real64 (tagType); in TagValue_uint32()
819 if (x > (real64) 0xFFFFFFFF) in TagValue_uint32()
820 x = (real64) 0xFFFFFFFF; in TagValue_uint32()
845 real64 x = TagValue_real64 (tagType); in TagValue_int32()
949 real64 x = TagValue_real64 (tagType); in TagValue_urational()
[all …]
Ddng_render.cpp33 dng_function_exposure_ramp::dng_function_exposure_ramp (real64 white, in dng_function_exposure_ramp()
34 real64 black, in dng_function_exposure_ramp()
35 real64 minBlack) in dng_function_exposure_ramp()
49 const real64 kMaxCurveX = 0.5; // Fraction of minBlack. in dng_function_exposure_ramp()
51 const real64 kMaxCurveY = 1.0 / 16.0; // Fraction of white. in dng_function_exposure_ramp()
65 real64 dng_function_exposure_ramp::Evaluate (real64 x) const in Evaluate()
74 real64 y = x - (fBlack - fRadius); in Evaluate()
82 dng_function_exposure_tone::dng_function_exposure_tone (real64 exposure) in dng_function_exposure_tone()
116 real64 dng_function_exposure_tone::Evaluate (real64 x) const in Evaluate()
136 real64 dng_tone_curve_acr3_default::Evaluate (real64 x) const in Evaluate()
[all …]
Ddng_utils.cpp209 real64 TickTimeInSeconds () in TickTimeInSeconds()
229 static real64 freqMultiplier = 0.0; in TickTimeInSeconds()
238 freqMultiplier = 1.0 / (real64) freq.QuadPart; in TickTimeInSeconds()
248 real64 freqMultiplier = 1.0 / (real64) freq.QuadPart; in TickTimeInSeconds()
256 return (real64) cycles.QuadPart * freqMultiplier; in TickTimeInSeconds()
266 static real64 freqMultiplier = 0.0; in TickTimeInSeconds()
274 freqMultiplier = ((real64)freq.numer / (real64)freq.denom) * 1.0e-9; in TickTimeInSeconds()
284 return now.tv_sec + (real64)now.tv_nsec * 1.0e-9; in TickTimeInSeconds()
294 return tv.tv_sec + (real64)tv.tv_usec * 1.0e-6; in TickTimeInSeconds()
302 real64 TickCountInSeconds () in TickCountInSeconds()
[all …]
Ddng_abort_sniffer.h141 real64 fract);
151 virtual void UpdateProgress (real64 fract);
179 real64 fract = 0.0)
206 void UpdateProgress (real64 fract) in UpdateProgress()
219 UpdateProgress ((real64) done / in UpdateProgress()
220 (real64) total); in UpdateProgress()
Ddng_ifd.h54 real64 fRawToPreviewGain;
103 real64 fXResolution;
104 real64 fYResolution;
143 real64 fYCbCrCoefficientR;
144 real64 fYCbCrCoefficientG;
145 real64 fYCbCrCoefficientB;
152 real64 fReferenceBlackWhite [6];
170 real64 fBlackLevel [kMaxBlackPattern] [kMaxBlackPattern] [kMaxSamplesPerPixel];
180 real64 fWhiteLevel [kMaxSamplesPerPixel];

123