diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Graphics/S3Decompression.h |
Diffstat (limited to 'Runtime/Graphics/S3Decompression.h')
-rw-r--r-- | Runtime/Graphics/S3Decompression.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Runtime/Graphics/S3Decompression.h b/Runtime/Graphics/S3Decompression.h new file mode 100644 index 0000000..d29a4bc --- /dev/null +++ b/Runtime/Graphics/S3Decompression.h @@ -0,0 +1,18 @@ +#ifndef S3DECOMPRESSION_H +#define S3DECOMPRESSION_H + +#include "TextureFormat.h" + +// Decompresses into RGBA32 +bool DecompressNativeTextureFormat ( + TextureFormat srcFormat, int srcWidth, int srcHeight, const UInt32* srcData, + int destWidth, int destHeight, UInt32* destData ); + +// Some texture formats also need to know the mipLevel +bool DecompressNativeTextureFormatWithMipLevel( TextureFormat srcFormat, int srcWidth, int srcHeight, int mipLevel, const UInt32* sourceData, + int destWidth, int destHeight, UInt32* destData ); + + +void DecompressDXT1 (int xblocks, int yblocks, int destWidth, const UInt32* m_pCompBytes, UInt32* m_pDecompBytes); + +#endif |