cocos2d-x 3.0 |
)
- 文件列表 - 文件成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
etc1.h 文件参考
## 宏定义 | |
#define | ETC1_ENCODED_BLOCK_SIZE 8 |
#define | ETC1_DECODED_BLOCK_SIZE 48 |
#define | ETC1_RGB8_OES 0x8D64 |
#define | ETC_PKM_HEADER_SIZE 16 |
## 类型定义 | |
typedef unsigned char | etc1_byte |
typedef int | etc1_bool |
typedef unsigned int | etc1_uint32 |
## 函数 | |
void | etc1_encode_block (const etc1_byte pIn, etc1_uint32 validPixelMask, etc1_byte pOut) |
void | etc1_decode_block (const etc1_byte pIn, etc1_byte pOut) |
etc1_uint32 | etc1_get_encoded_data_size (etc1_uint32 width, etc1_uint32 height) |
int | etc1_encode_image (const etc1_byte pIn, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte pOut) |
int | etc1_decode_image (const etc1_byte pIn, etc1_byte pOut, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride) |
void | etc1_pkm_format_header (etc1_byte pHeader, etc1_uint32 width, etc1_uint32 height) |
etc1_bool | etc1_pkm_is_valid (const etc1_byte pHeader) |
etc1_uint32 | etc1_pkm_get_width (const etc1_byte pHeader) |
etc1_uint32 | etc1_pkm_get_height (const etc1_byte pHeader) |
宏定义说明
#define ETC1_DECODED_BLOCK_SIZE 48 |
#define ETC1_ENCODED_BLOCK_SIZE 8 |
#define ETC1_RGB8_OES 0x8D64 |
#define ETC_PKM_HEADER_SIZE 16 |
类型定义说明
typedef int etc1_bool |
typedef unsigned char etc1_byte |
typedef unsigned int etc1_uint32 |
函数说明
void etc1_decode_block | ( | const etc1_byte | pIn, |
etc1_byte | pOut | ||
) |
int etc1_decode_image | ( | const etc1_byte | pIn, |
etc1_byte | pOut, | ||
etc1_uint32 | width, | ||
etc1_uint32 | height, | ||
etc1_uint32 | pixelSize, | ||
etc1_uint32 | stride | ||
) |
void etc1_encode_block | ( | const etc1_byte | pIn, |
etc1_uint32 | validPixelMask, | ||
etc1_byte | pOut | ||
) |
int etc1_encode_image | ( | const etc1_byte | pIn, |
etc1_uint32 | width, | ||
etc1_uint32 | height, | ||
etc1_uint32 | pixelSize, | ||
etc1_uint32 | stride, | ||
etc1_byte | pOut | ||
) |
etc1_uint32 etc1_get_encoded_data_size | ( | etc1_uint32 | width, |
etc1_uint32 | height | ||
) |
void etc1_pkm_format_header | ( | etc1_byte * | pHeader, |
etc1_uint32 | width, | ||
etc1_uint32 | height | ||
) |
etc1_uint32 etc1_pkm_get_height | ( | const etc1_byte * | pHeader | ) |
etc1_uint32 etc1_pkm_get_width | ( | const etc1_byte * | pHeader | ) |
etc1_bool etc1_pkm_is_valid | ( | const etc1_byte * | pHeader | ) |