cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
etc1.h File Reference

Macros

#define ETC1_ENCODED_BLOCK_SIZE   8
#define ETC1_DECODED_BLOCK_SIZE   48
#define ETC1_RGB8_OES   0x8D64
#define ETC_PKM_HEADER_SIZE   16

Typedefs

typedef unsigned char etc1_byte
typedef int etc1_bool
typedef unsigned int etc1_uint32

Functions

void  (const etc1_byte *pIn, etc1_uint32 validPixelMask, etc1_byte *pOut)
void  (const etc1_byte *pIn, etc1_byte *pOut)
var  ( var pIn, var pOut)
local  ( local pIn, local pOut)
etc1_uint32  (etc1_uint32 width, etc1_uint32 height)
var  ( var width, var height)
local  ( local width, local height)
int  (const etc1_byte *pIn, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte *pOut)
var  ( var pIn, var width, var height, var pixelSize, var stride, var pOut)
local  ( local pIn, local width, local height, local pixelSize, local stride, local pOut)
int  (const etc1_byte *pIn, etc1_byte *pOut, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride)
var  ( var pIn, var pOut, var width, var height, var pixelSize, var stride)
local  ( local pIn, local pOut, local width, local height, local pixelSize, local stride)
void  (etc1_byte *pHeader, etc1_uint32 width, etc1_uint32 height)
etc1_bool  (const etc1_byte *pHeader)
var  ( var pHeader)
local  ( local pHeader)
etc1_uint32  (const etc1_byte *pHeader)
var  ( var pHeader)
local  ( local pHeader)
etc1_uint32  (const etc1_byte *pHeader)
var  ( var pHeader)
local  ( local pHeader)

Macro Definition Documentation

#define ETC1_DECODED_BLOCK_SIZE   48
var ETC1_DECODED_BLOCK_SIZE   48
local ETC1_DECODED_BLOCK_SIZE   48
#define ETC1_ENCODED_BLOCK_SIZE   8
var ETC1_ENCODED_BLOCK_SIZE   8
local ETC1_ENCODED_BLOCK_SIZE   8
#define ETC1_RGB8_OES   0x8D64
var ETC1_RGB8_OES   0x8D64
local ETC1_RGB8_OES   0x8D64
#define ETC_PKM_HEADER_SIZE   16
var ETC_PKM_HEADER_SIZE   16
local ETC_PKM_HEADER_SIZE   16

Typedef Documentation

typedef int etc1_bool
var etc1_bool
local etc1_bool
typedef unsigned char etc1_byte
var etc1_byte
local etc1_byte
typedef unsigned int etc1_uint32
local etc1_uint32

Function Documentation

void etc1_encode_block ( const etc1_byte pIn,
etc1_uint32  validPixelMask,
etc1_byte pOut 
)
var etc1_encode_block ( var  pIn,
var  validPixelMask,
var  pOut 
)
local etc1_encode_block ( local  pIn,
local  validPixelMask,
local  pOut 
)
void etc1_decode_block ( const etc1_byte pIn,
etc1_byte pOut 
)
var etc1_decode_block ( var  pIn,
var  pOut 
)
local etc1_decode_block ( local  pIn,
local  pOut 
)
etc1_uint32
etc1_get_encoded_data_size
( etc1_uint32  width,
etc1_uint32  height 
)
var etc1_get_encoded_data_size ( var  width,
var  height 
)
local etc1_get_encoded_data_size ( local  width,
local  height 
)
int etc1_encode_image ( const etc1_byte pIn,
etc1_uint32  width,
etc1_uint32  height,
etc1_uint32  pixelSize,
etc1_uint32  stride,
etc1_byte pOut 
)
var etc1_encode_image ( var  pIn,
var  width,
var  height,
var  pixelSize,
var  stride,
var  pOut 
)
local etc1_encode_image ( local  pIn,
local  width,
local  height,
local  pixelSize,
local  stride,
local  pOut 
)
int etc1_decode_image ( const etc1_byte pIn,
etc1_byte pOut,
etc1_uint32  width,
etc1_uint32  height,
etc1_uint32  pixelSize,
etc1_uint32  stride 
)
var etc1_decode_image ( var  pIn,
var  pOut,
var  width,
var  height,
var  pixelSize,
var  stride 
)
local etc1_decode_image ( local  pIn,
local  pOut,
local  width,
local  height,
local  pixelSize,
local  stride 
)
void etc1_pkm_format_header ( etc1_byte pHeader,
etc1_uint32  width,
etc1_uint32  height 
)
var etc1_pkm_format_header ( var  pHeader,
var  width,
var  height 
)
local etc1_pkm_format_header ( local  pHeader,
local  width,
local  height 
)
etc1_bool etc1_pkm_is_valid ( const etc1_byte pHeader)
var etc1_pkm_is_valid ( var  pHeader)
local etc1_pkm_is_valid ( local  pHeader)
etc1_uint32 etc1_pkm_get_width ( const etc1_byte pHeader)
var etc1_pkm_get_width ( var  pHeader)
local etc1_pkm_get_width ( local  pHeader)
etc1_uint32 etc1_pkm_get_height ( const etc1_byte pHeader)
var etc1_pkm_get_height ( var  pHeader)
local etc1_pkm_get_height ( local  pHeader)