2026-01-06 21:51:51 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <ctrff/types.hpp>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 3ds GPU Stuff
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace ctrff {
|
|
|
|
|
namespace Pica {
|
|
|
|
|
enum Color : u32 {
|
2026-01-08 18:59:47 +01:00
|
|
|
L8, // tested
|
|
|
|
|
A8, // tested
|
|
|
|
|
LA4, // tested
|
|
|
|
|
LA8, // tested
|
2026-01-06 21:51:51 +01:00
|
|
|
HILO8,
|
|
|
|
|
RGB565, // tested
|
|
|
|
|
RGB888, // tested
|
|
|
|
|
RGBA5551,
|
2026-01-08 18:59:47 +01:00
|
|
|
RGBA4444, // tested
|
2026-01-06 21:51:51 +01:00
|
|
|
RGBA8888, // tested
|
|
|
|
|
ETC1,
|
|
|
|
|
ETC1A4,
|
|
|
|
|
L4, // tested
|
|
|
|
|
A4, // tested
|
|
|
|
|
};
|
|
|
|
|
CTRFF_API void EncodeImage(std::vector<ctrff::u8>& ret,
|
2026-01-09 21:29:10 +01:00
|
|
|
const std::vector<ctrff::u8>& rgba, int w, int h,
|
2026-01-06 21:51:51 +01:00
|
|
|
Color dst);
|
|
|
|
|
CTRFF_API void DecodeImage(std::vector<ctrff::u8>& ret,
|
2026-01-09 21:29:10 +01:00
|
|
|
const std::vector<ctrff::u8>& pixels, int w, int h,
|
2026-01-06 21:51:51 +01:00
|
|
|
Color src);
|
|
|
|
|
} // namespace Pica
|
|
|
|
|
} // namespace ctrff
|