AssetStudio/Texture2DDecoder/Texture2DDecoder.h

30 lines
1.7 KiB
C++

#pragma once
using namespace System;
namespace Texture2DDecoder {
public ref class TextureDecoder
{
public:
static bool DecodeDXT1(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeDXT5(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodePVRTC(array<Byte>^ data, long w, long h, array<Byte>^ image, bool is2bpp);
static bool DecodeETC1(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeETC2(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeETC2A1(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeETC2A8(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeEACR(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeEACRSigned(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeEACRG(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeEACRGSigned(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeBC4(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeBC5(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeBC6(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeBC7(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeATCRGB4(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeATCRGBA8(array<Byte>^ data, long w, long h, array<Byte>^ image);
static bool DecodeASTC(array<Byte>^ data, long w, long h, int bw, int bh, array<Byte>^ image);
static array<Byte>^ UnpackCrunch(array<Byte>^ data);
static array<Byte>^ UnpackUnityCrunch(array<Byte>^ data);
};
}