Dali 3D User Interface Engine
Functions
Inline functions exposed in header to allow unit testing.

Functions

unsigned int Dali::Internal::Platform::AverageComponent (unsigned int a, unsigned int b)
 Average two integer arguments. More...
 
uint32_t Dali::Internal::Platform::AveragePixelRGBA8888 (uint32_t a, uint32_t b)
 Average a pair of RGBA8888 pixels. More...
 
uint32_t Dali::Internal::Platform::AveragePixelRGB565 (uint32_t a, uint32_t b)
 Average a pair of RGB565 pixels. More...
 
unsigned int Dali::Internal::Platform::WeightedBlendIntToFixed1616 (unsigned int a, unsigned int b, unsigned int fractBlend)
 
uint64_t Dali::Internal::Platform::WeightedBlendFixed1616ToFixed1632 (unsigned int a, unsigned int b, unsigned int fractBlend)
 Blend two 16.16 inputs to give a 16.32 output. More...
 
unsigned int Dali::Internal::Platform::BilinearFilter1Component (unsigned int tl, unsigned int tr, unsigned int bl, unsigned int br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical)
 Blend 4 taps into one value using horizontal and vertical weights. More...
 

Detailed Description

Function Documentation

unsigned int Dali::Internal::Platform::AverageComponent ( unsigned int  a,
unsigned int  b 
)
inline
uint32_t Dali::Internal::Platform::AveragePixelRGB565 ( uint32_t  a,
uint32_t  b 
)
inline

Average a pair of RGB565 pixels.

Parameters
a[in]Low 16 bits hold a color value as RGB565 to average with parameter b.
b[in]Low 16 bits hold a color value as RGB565 to average with parameter a.
Returns
The average color of the two RGB565 pixels passed in, in the low 16 bits of the returned value.

Definition at line 453 of file image-operations.h.

References Dali::Internal::Platform::AverageComponent().

Referenced by Dali::Internal::Platform::AverageScanlinesRGB565(), Dali::Internal::Platform::HalveScanlineInPlaceRGB565(), and UtcDaliImageOperationsAveragePixelRGB565().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t Dali::Internal::Platform::AveragePixelRGBA8888 ( uint32_t  a,
uint32_t  b 
)
inline

Average a pair of RGBA8888 pixels.

Returns
The average of two RGBA8888 pixels.
Parameters
[in]aFirst pixel to average.
[in]bSecond pixel to average

: Optimise by trying return (((a ^ b) & 0xfefefefeUL) >> 1) + (a & b); : Optimise for ARM using the single ARMV6 instruction: UHADD8 R4, R0, R5. This is not Neon. It runs in the normal integer pipeline so there is no downside like a stall moving between integer and copro.

Definition at line 435 of file image-operations.h.

References Dali::Internal::Platform::AverageComponent().

Referenced by Dali::Internal::Platform::AverageScanlinesRGBA8888(), Dali::Internal::Platform::HalveScanlineInPlaceRGBA8888(), and UtcDaliImageOperationsAveragePixelRGBA8888().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int Dali::Internal::Platform::BilinearFilter1Component ( unsigned int  tl,
unsigned int  tr,
unsigned int  bl,
unsigned int  br,
unsigned int  fractBlendHorizontal,
unsigned int  fractBlendVertical 
)
inline
uint64_t Dali::Internal::Platform::WeightedBlendFixed1616ToFixed1632 ( unsigned int  a,
unsigned int  b,
unsigned int  fractBlend 
)
inline

Blend two 16.16 inputs to give a 16.32 output.

Definition at line 473 of file image-operations.h.

References DALI_ASSERT_DEBUG.

Referenced by Dali::Internal::Platform::BilinearFilter1Component().

Here is the caller graph for this function:

unsigned int Dali::Internal::Platform::WeightedBlendIntToFixed1616 ( unsigned int  a,
unsigned int  b,
unsigned int  fractBlend 
)
inline
Returns
The weighted blend of two integers as a 16.16 fixed-point number, given a 0.16 fixed-point blending factor.

Definition at line 463 of file image-operations.h.

References DALI_ASSERT_DEBUG.

Referenced by Dali::Internal::Platform::BilinearFilter1Component().

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali