Dali 3D User Interface Engine
Functions | Variables
utc-Dali-Pixel.cpp File Reference
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <dali/public-api/dali-core.h>
#include <dali-test-suite-utils.h>
Include dependency graph for utc-Dali-Pixel.cpp:

Go to the source code of this file.

Functions

void utc_dali_pixel_startup (void)
 
void utc_dali_pixel_cleanup (void)
 
static void TestPixelEnumSize (const int size)
 
int UtcDaliPixelHasAlpha (void)
 
int UtcDaliPixelHasAlphaN (void)
 
int UtcDaliPixelGetBytesPerPixel (void)
 
int UtcDaliPixelGetBytesPerPixelN (void)
 
int UtcDaliPixelGetAlphaOffsetAndMaskP (void)
 
int UtcDaliPixelGetAlphaOffsetAndMaskN (void)
 

Variables

static const float ROTATION_EPSILON = 0.0001f
 

Function Documentation

static void TestPixelEnumSize ( const int  size)
static

Definition at line 41 of file utc-Dali-Pixel.cpp.

References DALI_TEST_CHECK, Dali::Pixel::FIRST_VALID_PIXEL_FORMAT, and Dali::Pixel::LAST_VALID_PIXEL_FORMAT.

Referenced by UtcDaliPixelGetAlphaOffsetAndMaskP(), and UtcDaliPixelHasAlpha().

Here is the caller graph for this function:

void utc_dali_pixel_cleanup ( void  )

Definition at line 36 of file utc-Dali-Pixel.cpp.

References test_return_value, and TET_PASS.

void utc_dali_pixel_startup ( void  )

Definition at line 31 of file utc-Dali-Pixel.cpp.

References test_return_value, and TET_UNDEF.

int UtcDaliPixelGetAlphaOffsetAndMaskN ( void  )

Definition at line 331 of file utc-Dali-Pixel.cpp.

References DALI_TEST_CHECK, END_TEST, and Dali::Pixel::GetAlphaOffsetAndMask().

Here is the call graph for this function:

int UtcDaliPixelGetAlphaOffsetAndMaskP ( void  )

Definition at line 202 of file utc-Dali-Pixel.cpp.

References Dali::Pixel::A8, Dali::Pixel::BGR565, Dali::Pixel::BGR8888, Dali::Pixel::BGRA4444, Dali::Pixel::BGRA5551, Dali::Pixel::BGRA8888, Dali::Pixel::COMPRESSED_R11_EAC, Dali::Pixel::COMPRESSED_RG11_EAC, Dali::Pixel::COMPRESSED_RGB8_ETC1, Dali::Pixel::COMPRESSED_RGB8_ETC2, Dali::Pixel::COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, Dali::Pixel::COMPRESSED_RGB_PVRTC_4BPPV1, Dali::Pixel::COMPRESSED_RGBA8_ETC2_EAC, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x10_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x8_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_12x10_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_12x12_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_4x4_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_5x4_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_5x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_6x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_6x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x8_KHR, Dali::Pixel::COMPRESSED_SIGNED_R11_EAC, Dali::Pixel::COMPRESSED_SIGNED_RG11_EAC, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, Dali::Pixel::COMPRESSED_SRGB8_ETC2, Dali::Pixel::COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, DALI_TEST_CHECK, END_TEST, Dali::Pixel::GetAlphaOffsetAndMask(), Dali::Pixel::INVALID, Dali::Pixel::L8, Dali::Pixel::LA88, Dali::Pixel::RGB565, Dali::Pixel::RGB888, Dali::Pixel::RGB8888, Dali::Pixel::RGBA4444, Dali::Pixel::RGBA5551, Dali::Pixel::RGBA8888, TestPixelEnumSize(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliPixelGetBytesPerPixel ( void  )

Definition at line 123 of file utc-Dali-Pixel.cpp.

References Dali::Pixel::A8, Dali::Pixel::BGR565, Dali::Pixel::BGR8888, Dali::Pixel::BGRA4444, Dali::Pixel::BGRA5551, Dali::Pixel::BGRA8888, Dali::Pixel::COMPRESSED_R11_EAC, Dali::Pixel::COMPRESSED_RG11_EAC, Dali::Pixel::COMPRESSED_RGB8_ETC1, Dali::Pixel::COMPRESSED_RGB8_ETC2, Dali::Pixel::COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, Dali::Pixel::COMPRESSED_RGB_PVRTC_4BPPV1, Dali::Pixel::COMPRESSED_RGBA8_ETC2_EAC, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x10_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x8_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_12x10_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_12x12_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_4x4_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_5x4_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_5x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_6x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_6x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x8_KHR, Dali::Pixel::COMPRESSED_SIGNED_R11_EAC, Dali::Pixel::COMPRESSED_SIGNED_RG11_EAC, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, Dali::Pixel::COMPRESSED_SRGB8_ETC2, Dali::Pixel::COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, DALI_TEST_CHECK, END_TEST, Dali::Pixel::GetBytesPerPixel(), Dali::Pixel::INVALID, Dali::Pixel::L8, Dali::Pixel::LA88, Dali::Pixel::RGB565, Dali::Pixel::RGB888, Dali::Pixel::RGB8888, Dali::Pixel::RGBA4444, Dali::Pixel::RGBA5551, Dali::Pixel::RGBA8888, and tet_infoline().

Here is the call graph for this function:

int UtcDaliPixelGetBytesPerPixelN ( void  )

Definition at line 196 of file utc-Dali-Pixel.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Pixel::GetBytesPerPixel(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliPixelHasAlpha ( void  )

Definition at line 47 of file utc-Dali-Pixel.cpp.

References Dali::Pixel::A8, Dali::Pixel::BGR565, Dali::Pixel::BGR8888, Dali::Pixel::BGRA4444, Dali::Pixel::BGRA5551, Dali::Pixel::BGRA8888, Dali::Pixel::COMPRESSED_R11_EAC, Dali::Pixel::COMPRESSED_RG11_EAC, Dali::Pixel::COMPRESSED_RGB8_ETC1, Dali::Pixel::COMPRESSED_RGB8_ETC2, Dali::Pixel::COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, Dali::Pixel::COMPRESSED_RGB_PVRTC_4BPPV1, Dali::Pixel::COMPRESSED_RGBA8_ETC2_EAC, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x10_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_10x8_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_12x10_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_12x12_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_4x4_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_5x4_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_5x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_6x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_6x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x5_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x6_KHR, Dali::Pixel::COMPRESSED_RGBA_ASTC_8x8_KHR, Dali::Pixel::COMPRESSED_SIGNED_R11_EAC, Dali::Pixel::COMPRESSED_SIGNED_RG11_EAC, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR, Dali::Pixel::COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, Dali::Pixel::COMPRESSED_SRGB8_ETC2, Dali::Pixel::COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, DALI_TEST_CHECK, END_TEST, Dali::Pixel::HasAlpha(), Dali::Pixel::INVALID, Dali::Pixel::L8, Dali::Pixel::LA88, Dali::Pixel::RGB565, Dali::Pixel::RGB888, Dali::Pixel::RGB8888, Dali::Pixel::RGBA4444, Dali::Pixel::RGBA5551, Dali::Pixel::RGBA8888, TestPixelEnumSize(), and tet_infoline().

Here is the call graph for this function:

int UtcDaliPixelHasAlphaN ( void  )

Definition at line 117 of file utc-Dali-Pixel.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Pixel::HasAlpha(), and TEST_LOCATION.

Here is the call graph for this function:

Variable Documentation

const float ROTATION_EPSILON = 0.0001f
static
Dali Docs Home
Read more about Dali