| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#ifndef _FORMATSIZE_H_ |
| 20 |
#define _FORMATSIZE_H_ |
| 21 |
|
| 22 |
#include "ktx.h" |
| 23 |
|
| 24 |
typedef enum ktxFormatSizeFlagBits { |
| 25 |
KTX_FORMAT_SIZE_PACKED_BIT = 0x00000001, |
| 26 |
KTX_FORMAT_SIZE_COMPRESSED_BIT = 0x00000002, |
| 27 |
KTX_FORMAT_SIZE_PALETTIZED_BIT = 0x00000004, |
| 28 |
KTX_FORMAT_SIZE_DEPTH_BIT = 0x00000008, |
| 29 |
KTX_FORMAT_SIZE_STENCIL_BIT = 0x00000010, |
| 30 |
KTX_FORMAT_SIZE_YUVSDA_BIT = 0x00000020, |
| 31 |
} ktxFormatSizeFlagBits; |
| 32 |
|
| 33 |
typedef ktx_uint32_t ktxFormatSizeFlags; |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
typedef struct ktxFormatSize { |
| 39 |
ktxFormatSizeFlags flags; |
| 40 |
unsigned int paletteSizeInBits; |
| 41 |
unsigned int blockSizeInBits; |
| 42 |
unsigned int blockWidth; |
| 43 |
unsigned int blockHeight; |
| 44 |
unsigned int blockDepth; |
| 45 |
unsigned int minBlocksX; |
| 46 |
unsigned int minBlocksY; |
| 47 |
} ktxFormatSize; |
| 48 |
|
| 49 |
#ifdef __cplusplus |
| 50 |
extern "C" { |
| 51 |
#endif |
| 52 |
|
| 53 |
bool ktxFormatSize_initFromDfd(ktxFormatSize* This, ktx_uint32_t* pDfd); |
| 54 |
|
| 55 |
#ifdef __cplusplus |
| 56 |
} |
| 57 |
#endif |
| 58 |
|
| 59 |
#endif |