Dali 3D User Interface Engine
Namespaces | Macros | Functions
distance-field.cpp File Reference
#include <dali/devel-api/images/distance-field.h>
#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <time.h>
#include <dali/public-api/common/constants.h>
#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/math/vector2.h>
#include <dali/public-api/math/math-utils.h>
Include dependency graph for distance-field.cpp:

Go to the source code of this file.


namespace  Dali
 The top level DALi namespace.
namespace  Dali::anonymous_namespace{distance-field.cpp}


#define SQUARE(a)   ((a) * (a))


float Dali::anonymous_namespace{distance-field.cpp}::Interpolate (float a, float b, float factor)
float Dali::anonymous_namespace{distance-field.cpp}::Bilinear (float a, float b, float c, float d, float dx, float dy)
void Dali::anonymous_namespace{distance-field.cpp}::ScaleField (int width, int height, float *in, int targetWidth, int targetHeight, float *out)
const float Dali::anonymous_namespace{distance-field.cpp}::MAX_DISTANCE (1e20)
void Dali::anonymous_namespace{distance-field.cpp}::DistanceTransform (float *source, float *dest, unsigned int length)
 Distance transform of 1D function using squared distance. More...
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. More...
void Dali::GenerateDistanceFieldMap (const unsigned char *const imagePixels, const Size &imageSize, unsigned char *const distanceMap, const Size &distanceMapSize, const float fieldRadius, const unsigned int fieldBorder, bool highQuality)
void Dali::GenerateDistanceFieldMap (const unsigned char *const imagePixels, const Vector2 &imageSize, unsigned char *const distanceMap, const Vector2 &distanceMapSize, const unsigned int fieldBorder, const Vector2 &maxSize, bool highQuality=true)
 Generate a distance field map from a source image. More...

Macro Definition Documentation

#define SQUARE (   a)    ((a) * (a))
Dali Docs Home
Read more about Dali