gctex 0.3.12

gctex is a Rust crate designed for encoding and decoding texture formats used in the Nintendo GameCube and Wii games. The library provides C bindings, making it useful in both Rust and C/C++ based projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "util.h"

namespace librii { namespace image {
void decode(u8* dst, const u8* src, u32 width, u32 height, u32 texformat,
            const u8* tlut, u32 tlutformat);
void encodeI4(u8* dst, const u32* src, u32 width, u32 height);
void encodeI8(u8* dst, const u32* src, u32 width, u32 height);
void encodeIA4(u8* dst, const u32* src, u32 width, u32 height);
void encodeIA8(u8* dst, const u32* src, u32 width, u32 height);
void encodeRGB565(u8* dst, const u32* src, u32 width, u32 height);
void encodeRGB5A3(u8* dst, const u32* src, u32 width, u32 height);
void encodeRGBA8(u8* dst, const u32* src4, u32 width, u32 height);
} } // namespace librii::images