Home
last modified time | relevance | path

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

12

/external/dng_sdk/source/
Ddng_reference.cpp602 real32 *dPtr, in RefCopyArea8_R32()
615 real32 scale = 1.0f / (real32) pixelRange; in RefCopyArea8_R32()
621 real32 *dPtr1 = dPtr; in RefCopyArea8_R32()
627 real32 *dPtr2 = dPtr1; in RefCopyArea8_R32()
632 *dPtr2 = scale * (real32) *sPtr2; in RefCopyArea8_R32()
654 real32 *dPtr, in RefCopyArea16_R32()
667 real32 scale = 1.0f / (real32) pixelRange; in RefCopyArea16_R32()
673 real32 *dPtr1 = dPtr; in RefCopyArea16_R32()
679 real32 *dPtr2 = dPtr1; in RefCopyArea16_R32()
684 *dPtr2 = scale * (real32) *sPtr2; in RefCopyArea16_R32()
[all …]
Ddng_reference.h168 real32 *dPtr,
181 real32 *dPtr,
194 real32 *dPtr,
206 void RefCopyAreaR32_8 (const real32 *sPtr,
219 void RefCopyAreaR32_16 (const real32 *sPtr,
232 void RefCopyAreaR32_S16 (const real32 *sPtr,
309 void RefBilinearRow32 (const real32 *sPtr,
310 real32 *dPtr,
316 const real32 * const * kernWeights,
321 void RefBaselineABCtoRGB (const real32 *sPtrA,
[all …]
Ddng_bottlenecks.h190 real32 *dPtr,
204 real32 *dPtr,
218 real32 *dPtr,
231 (const real32 *sPtr,
245 (const real32 *sPtr,
259 (const real32 *sPtr,
342 (const real32 *sPtr,
343 real32 *dPtr,
349 const real32 * const * kernWeights,
355 (const real32 *sPtrA,
[all …]
Ddng_utils.h312 inline real32 Abs_real32 (real32 x) in Abs_real32()
319 inline real32 Min_real32 (real32 x, real32 y) in Min_real32()
326 inline real32 Max_real32 (real32 x, real32 y) in Max_real32()
333 inline real32 Pin_real32 (real32 min, real32 x, real32 max) in Pin_real32()
340 inline real32 Pin_real32 (real32 x) in Pin_real32()
347 inline real32 Pin_real32_Overrange (real32 min, in Pin_real32_Overrange()
348 real32 x, in Pin_real32_Overrange()
349 real32 max) in Pin_real32_Overrange()
372 inline real32 Pin_Overrange (real32 x) in Pin_Overrange()
395 inline real32 Lerp_real32 (real32 a, real32 b, real32 t) in Lerp_real32()
[all …]
Ddng_1d_table.h51 real32 *fTable;
73 real32 Interpolate (real32 x) const in Interpolate()
76 real32 y = x * (real32) kTableSize; in Interpolate()
90 real32 z = (real32) index; in Interpolate()
92 real32 fract = y - z; in Interpolate()
101 const real32 * Table () const in Table()
115 real32 maxDelta);
Ddng_render.cpp139 static const real32 kTable [] = in Evaluate()
403 real32 y = (real32) x * (real32) (kTableSize - 1); in Evaluate()
407 real32 fract = y - (real32) index; in Evaluate()
419 static const real32 kTable [] = in EvaluateInverse()
683 real32 y = (real32) x * (real32) (kTableSize - 1); in EvaluateInverse()
687 real32 fract = y - (real32) index; in EvaluateInverse()
970 if (!SafeUint32Mult (tileSize.h, (uint32) sizeof (real32), &tempBufferSize) || in Start()
999 real32 *tPtrR = fTempBuffer [threadIndex]->Buffer_real32 (); in ProcessArea()
1001 real32 *tPtrG = tPtrR + srcCols; in ProcessArea()
1002 real32 *tPtrB = tPtrG + srcCols; in ProcessArea()
[all …]
Ddng_misc_opcodes.cpp643 real32 *dPtr = buffer.DirtyPixel_real32 (row, overlap.l, plane); in ProcessArea()
651 real32 y = Pin_real32 (0.0f, in ProcessArea()
669 real32 c0 = fCoefficient32 [0]; in ProcessArea()
670 real32 c1 = fCoefficient32 [1]; in ProcessArea()
681 real32 x = dPtr [col]; in ProcessArea()
683 real32 y = c1 * x; in ProcessArea()
711 real32 x = dPtr [col]; in ProcessArea()
713 real32 y = c0 + in ProcessArea()
732 real32 x = dPtr [col]; in ProcessArea()
734 real32 y = fCoefficient32 [0] + x * in ProcessArea()
[all …]
Ddng_1d_table.cpp45 real32 maxDelta) in SubDivide()
55 real32 delta = Abs_real32 (fTable [upper] - in SubDivide()
72 fTable [middle] = (real32) function.Evaluate (middle * (1.0 / (real64) kTableSize)); in SubDivide()
98 fTable [j] = (real32) y0; in SubDivide()
113 fBuffer.Reset (allocator.Allocate ((kTableSize + 2) * sizeof (real32))); in Initialize()
120 fTable [0 ] = (real32) function.Evaluate (0.0); in Initialize()
121 fTable [kTableSize] = (real32) function.Evaluate (1.0); in Initialize()
123 real32 maxDelta = Max_real32 (Abs_real32 (fTable [kTableSize] - in Initialize()
144 fTable [j] = (real32) y; in Initialize()
Ddng_linearization_info.cpp49 real32 fScale;
156 fScale = (real32) scale; in dng_linearize_plane()
206 fBlack_2D_buffer->Buffer_real32 () [index] = (real32) x; in dng_linearize_plane()
280 fBlack_1D_buffer->Buffer_real32 () [j] = (real32) x; in dng_linearize_plane()
381 fScale_buffer->Buffer_real32 () [j] = (real32) y; in dng_linearize_plane()
421 fScale_buffer->Buffer_real32 () [j] = (real32) y; in dng_linearize_plane()
488 real32 scale = fScale; in Process()
490 const real32 *srcPtr = (const real32 *) sPtr; in Process()
492 real32 *dstPtr = (real32 *) dPtr; in Process()
515 real32 b1 = 0.0f; in Process()
[all …]
Ddng_gain_map.cpp43 real32 fRowFract;
47 real32 fValueBase;
48 real32 fValueStep;
49 real32 fValueIndex;
59 real32 Interpolate () const in Interpolate()
87 real32 InterpolateEntry (uint32 colIndex);
165 fRowFract = (real32) (rowIndexF - (real64) fRowIndex1); in dng_gain_map_interpolator()
177 real32 dng_gain_map_interpolator::InterpolateEntry (uint32 colIndex) in InterpolateEntry()
235 fValueBase = (real32) (base + delta * (colIndexF - (real64) colIndex)); in ResetColumn()
237 fValueStep = (real32) ((delta * fScale.h) / fMap.Spacing ().h); in ResetColumn()
[all …]
Ddng_resample.cpp191 !SafeUint32Mult (bufferSize, (uint32) sizeof (real32), &bufferSize)) in Initialize()
223 real32 *w32 = fWeights32->Buffer_real32 () + fWeightStep * sample; in Initialize()
238 w32 [j] = (real32) kernel.Evaluate (x); in Initialize()
246 real32 s32 = (real32) (1.0 / t32); in Initialize()
343 !SafeUint32Mult (bufferSize, (uint32) sizeof (real32), &bufferSize)) in Initialize()
382 real32 *w32 = (real32 *) Weights32 (dng_point ((int32) y, in Initialize()
414 w32 [index] = (real32) kernel.Evaluate (r); in Initialize()
420 w32 [index] = (real32) kernel.Evaluate (xPos) * in Initialize()
421 (real32) kernel.Evaluate (yPos); in Initialize()
435 const real32 s32 = (real32) (1.0 / t32); in Initialize()
[all …]
Ddng_utils.cpp519 real32 fScale;
526 real32 scale);
549 real32 scale) in dng_limit_float_depth_task()
604 const real32 *sPtr0 = (const real32 *) sPtr; in Process()
605 real32 *dPtr0 = ( real32 *) dPtr; in Process()
607 real32 scale = fScale; in Process()
615 const real32 *sPtr1 = sPtr0; in Process()
616 real32 *dPtr1 = dPtr0; in Process()
630 memcpy (dPtr1, sPtr1, count2 * (uint32) sizeof (real32)); in Process()
639 const real32 *sPtr2 = sPtr1; in Process()
[all …]
Ddng_memory.h240 real32 * Buffer_real32 () in Buffer_real32()
242 return (real32 *) Buffer (); in Buffer_real32()
248 const real32 * Buffer_real32 () const in Buffer_real32()
250 return (const real32 *) Buffer (); in Buffer_real32()
470 real32 * Buffer_real32 () in Buffer_real32()
472 return (real32 *) Buffer (); in Buffer_real32()
478 const real32 * Buffer_real32 () const in Buffer_real32()
480 return (const real32 *) Buffer (); in Buffer_real32()
Ddng_ref_counted_block.h256 real32 * Buffer_real32 () in Buffer_real32()
258 return (real32 *) Buffer (); in Buffer_real32()
264 const real32 * Buffer_real32 () const in Buffer_real32()
266 return (const real32 *) Buffer (); in Buffer_real32()
Ddng_hue_sat_map.h54 real32 fHueShift;
55 real32 fSatScale;
56 real32 fValScale;
Ddng_gain_map.h93 real32 & Entry (uint32 rowIndex, in Entry()
108 const real32 & Entry (uint32 rowIndex, in Entry()
123 real32 Interpolate (int32 row,
Ddng_pixel_buffer.h469 const real32 * ConstPixel_real32 (int32 row,
476 return (const real32 *) ConstPixel (row, col, plane);
486 real32 * DirtyPixel_real32 (int32 row,
493 return (real32 *) DirtyPixel (row, col, plane);
589 real32 value) in SetConstant_real32()
597 real32 f; in SetConstant_real32()
Ddng_mosaic_info.cpp52 real32 fWeight32 [kMaxCount];
65 real32 weight);
78 real32 weight) in Add()
175 real32 tempWeight = fWeight32 [j - 1]; in Finalize()
273 real32 *fWeights32 [kMaxPattern]
313 real32 LinearWeight1 (int32 d1, int32 d2) in LinearWeight1()
318 return d2 / (real32) (d2 - d1); in LinearWeight1()
321 real32 LinearWeight2 (int32 d1, int32 d2) in LinearWeight2()
326 return -d1 / (real32) (d2 - d1); in LinearWeight2()
792 real32 w1 = LinearWeight1 (dv1, dv2) * 0.5f; in Calculate()
[all …]
Ddng_hue_sat_map.cpp331 real32 w1 = (real32) weight1; in Interpolate()
332 real32 w2 = 1.0f - w1; in Interpolate()
Ddng_image.h380 void SetConstant_real32 (real32 value, in SetConstant_real32()
389 real32 f; in SetConstant_real32()
398 void SetConstant_real32 (real32 value) in SetConstant_real32()
Ddng_misc_opcodes.h220 real32 fCoefficient32 [kMaxDegree + 1];
267 real32 fScale;
308 real32 fScale;
Ddng_pixel_buffer.cpp900 (real32 *) dPtr, in CopyArea()
994 (real32 *) dPtr, in CopyArea()
1073 (real32 *) dPtr, in CopyArea()
1164 DoCopyAreaR32_8 ((const real32 *) sPtr, in CopyArea()
1184 DoCopyAreaR32_16 ((const real32 *) sPtr, in CopyArea()
1204 DoCopyAreaR32_S16 ((const real32 *) sPtr, in CopyArea()
1861 return MaxDiff ((const real32 *)s1Ptr, in MaximumDifference()
1865 (const real32 *)s2Ptr, in MaximumDifference()
Ddng_resample.h149 const real32 *Weights32 (uint32 fract) const in Weights32()
238 const real32 *Weights32 (dng_point fract) const in Weights32()
Ddng_stream.cpp581 real32 dng_stream::Get_real32 () in Get_real32()
587 real32 r; in Get_real32()
598 void dng_stream::Put_real32 (real32 x) in Put_real32()
607 real32 r; in Put_real32()
Ddng_stream.h441 real32 Get_real32 ();
447 void Put_real32 (real32 x);

12