Dali 3D User Interface Engine
Functions
Dali::anonymous_namespace{distance-field.cpp} Namespace Reference

Functions

float Interpolate (float a, float b, float factor)
 
float Bilinear (float a, float b, float c, float d, float dx, float dy)
 
void ScaleField (int width, int height, float *in, int targetWidth, int targetHeight, float *out)
 
const float MAX_DISTANCE (1e20)
 
void DistanceTransform (float *source, float *dest, unsigned int length)
 Distance transform of 1D function using squared distance. More...
 
void DistanceTransform (float *data, unsigned int width, unsigned int height, float *sourceBuffer, float *destBuffer)
 Distance transform of 2D function using squared distance. More...
 

Function Documentation

float Dali::anonymous_namespace{distance-field.cpp}::Bilinear ( float  a,
float  b,
float  c,
float  d,
float  dx,
float  dy 
)

Definition at line 44 of file distance-field.cpp.

References Interpolate().

Referenced by ScaleField().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::anonymous_namespace{distance-field.cpp}::DistanceTransform ( float *  source,
float *  dest,
unsigned int  length 
)

Distance transform of 1D function using squared distance.

Definition at line 85 of file distance-field.cpp.

References MAX_DISTANCE(), and SQUARE.

Referenced by DistanceTransform(), and Dali::GenerateDistanceFieldMap().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::anonymous_namespace{distance-field.cpp}::DistanceTransform ( float *  data,
unsigned int  width,
unsigned int  height,
float *  sourceBuffer,
float *  destBuffer 
)

Distance transform of 2D function using squared distance.

Definition at line 126 of file distance-field.cpp.

References DistanceTransform(), height, and width.

Here is the call graph for this function:

float Dali::anonymous_namespace{distance-field.cpp}::Interpolate ( float  a,
float  b,
float  factor 
)

Definition at line 39 of file distance-field.cpp.

Referenced by Bilinear().

Here is the caller graph for this function:

const float Dali::anonymous_namespace{distance-field.cpp}::MAX_DISTANCE ( 1e20  )

Referenced by DistanceTransform(), and Dali::GenerateDistanceFieldMap().

Here is the caller graph for this function:

void Dali::anonymous_namespace{distance-field.cpp}::ScaleField ( int  width,
int  height,
float *  in,
int  targetWidth,
int  targetHeight,
float *  out 
)

Definition at line 49 of file distance-field.cpp.

References Bilinear(), height, Dali::Toolkit::Text::min(), and width.

Referenced by Dali::GenerateDistanceFieldMap().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali