mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-18 03:24:15 -04:00
refactor Texture2D convert
This commit is contained in:
30
Texture2DDecoder/Texture2DDecoder.h
Normal file
30
Texture2DDecoder/Texture2DDecoder.h
Normal file
@ -0,0 +1,30 @@
|
||||
#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);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user