Add Pica Texture Encoding Decoding

Supported Formats: A4, A8, L4, L8, RGB565, RGB888 RGBA8888 (for now)
Add a .clang-format
Move ctrff into a subdirectory
Replace the BCLIM creation part with Pica encoder
Fix non const RGB565ToRGBA issue
This commit is contained in:
2026-01-06 21:51:51 +01:00
parent e4fa2202d2
commit 022d69dc8e
13 changed files with 626 additions and 66 deletions

View File

@@ -9,24 +9,24 @@
namespace ctrff {
class CTRFF_API BCLIM : public BinFile {
public:
BCLIM() {}
BCLIM() : pCurrent(Header::Default()), pImag(ImagHeader::Default()) {}
~BCLIM() {}
enum Format : u32 {
L8,
L8, // tested
A8, // tested
LA4,
LA8,
HILO8,
RGB565, // tested
RGB888,
RGB888, // tested
RGBA5551,
RGBA4444,
RGBA8888, // tested
ETC1,
ETC1A4,
L4,
A4,
L4, // tested
A4, // tested
};
struct Header {