Dali 3D User Interface Engine
Classes | Namespaces | Typedefs | Functions | Variables
loader-astc.cpp File Reference
#include "loader-astc.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdint.h>
#include <dali/public-api/common/compile-time-assert.h>
#include <dali/integration-api/debug.h>
#include <dali/integration-api/bitmap.h>
#include <dali/public-api/images/pixel.h>
Include dependency graph for loader-astc.cpp:

Go to the source code of this file.

Classes

struct  Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::AstcFileHeader
 This struct defines the ASTC file header values. More...
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::TizenPlatform
 
namespace  Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}
 

Typedefs

typedef uint8_t Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::Byte
 

Functions

struct
Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::AstcFileHeader 
Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::__attribute__ ((__packed__))
 
Pixel::Format Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::GetAstcPixelFormat (AstcFileHeader &header)
 Uses header information to return the respective ASTC pixel format. More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::LoadAstcHeader (FILE *const filePointer, unsigned int &width, unsigned int &height, AstcFileHeader &fileHeader)
 Internal method to load ASTC header info from a file. More...
 
bool Dali::TizenPlatform::LoadAstcHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a ASTC file and fills in the width and height appropriately. More...
 
bool Dali::TizenPlatform::LoadBitmapFromAstc (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads a compressed bitmap image from a ASTC file without decoding it. More...
 

Variables

const unsigned Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::MAX_TEXTURE_DIMENSION = 4096
 
const unsigned Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::MAX_IMAGE_DATA_SIZE = MAX_TEXTURE_DIMENSION * MAX_TEXTURE_DIMENSION
 
const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::MINIMUM_ASTC_BLOCK_SIZE = 4
 
const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::MAXIMUM_ASTC_BLOCK_SIZE = 12
 
const Byte Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::FileIdentifier []
 
unsigned char magic [4]
 
unsigned char blockdim_x
 
unsigned char blockdim_y
 
unsigned char blockdim_z
 
unsigned char xsize [3]
 
unsigned char ysize [3]
 
unsigned char zsize [3]
 
Pixel::Format Dali::TizenPlatform::anonymous_namespace{loader-astc.cpp}::AstcLinearBlockSizeToPixelFormatTable [][(MAXIMUM_ASTC_BLOCK_SIZE-MINIMUM_ASTC_BLOCK_SIZE)+1]
 This table allows fast conversion from an ASTC block size ([height][width]) to a pixel format. More...
 

Variable Documentation

unsigned char blockdim_x

Definition at line 76 of file loader-astc.cpp.

unsigned char blockdim_y

Definition at line 77 of file loader-astc.cpp.

unsigned char blockdim_z

Definition at line 78 of file loader-astc.cpp.

unsigned char magic[4]
unsigned char xsize[3]

Definition at line 79 of file loader-astc.cpp.

unsigned char ysize[3]

Definition at line 80 of file loader-astc.cpp.

unsigned char zsize[3]

Definition at line 81 of file loader-astc.cpp.

Dali Docs Home
Read more about Dali