2020-02-11 23:54:17 +08:00
|
|
|
/******************************************************************************
|
|
|
|
|
|
|
|
ASTC Texture Decompression.
|
2020-09-03 18:01:40 +08:00
|
|
|
astc compression tool: https://github.com/ARM-software/astc-encoder/releases
|
|
|
|
version required: v1.7+
|
|
|
|
command:
|
|
|
|
astcenc-sse4.2 -cl xxx.png xxx.astc 6x6 -medium
|
|
|
|
|
2020-02-11 23:54:17 +08:00
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __ASTC_H__
|
|
|
|
#define __ASTC_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
// ASTC parameters
|
|
|
|
#define ASTC_HEAD_SIZE 16
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
uint8_t decompress_astc(const uint8_t* in, uint8_t* out, uint32_t width, uint32_t height, uint32_t xdim, uint32_t ydim, uint32_t datalen);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //__ASTC_H__
|