113 for (
LegoU32 dup = aspect; dup; dup--) {
132 for (
LegoU32 dup = aspect; dup; dup--) {
[AI] Class representing an 8-bit palettized image with up to 256 palette entries and indexed pixel da...
LegoPaletteEntry m_palette[256]
[AI] Full palette array (256 possible 8-bit RGB entries).
LegoResult Read(LegoStorage *p_storage, LegoU32 p_square)
[AI] Reads the full image from the storage source, including width, height, count,...
LegoU8 * m_bits
[AI] Pointer to the image bits. Each byte is a palette index; size = width*height.
LegoImage()
[AI] Constructs an empty image object. Palette is not initialized; bits is nullptr.
LegoU32 m_count
[AI] Number of palette entries in use (<= 256).
~LegoImage()
[AI] Destructor; releases any allocated pixel buffer memory.
LegoU32 m_width
[AI] Image width, in pixels.
LegoResult Write(LegoStorage *p_storage)
[AI] Writes the full image to the given storage: width, height, count, palette, pixel indices.
LegoU32 m_height
[AI] Image height, in pixels.
[AI] Represents a single entry in an 8-bit RGB palette with red, green, and blue components.
LegoResult Read(LegoStorage *p_storage)
[AI] Reads the palette entry data from a storage object.
LegoResult Write(LegoStorage *p_storage)
[AI] Writes the palette entry data to a storage object.
LegoU8 m_blue
[AI] Blue channel (0-255). Offset 0x02.
LegoPaletteEntry()
[AI] Constructs an empty palette entry with all components initialized to 0. [Existing comment: Defau...
LegoU8 m_red
[AI] Red channel (0-255). Offset 0x00.
LegoU8 m_green
[AI] Green channel (0-255). Offset 0x01.
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
virtual LegoResult Write(const void *p_buffer, LegoU32 p_size)=0
Write bytes from buffer into storage.
virtual LegoResult Read(void *p_buffer, LegoU32 p_size)=0
Read bytes from storage into buffer.
#define DECOMP_SIZE_ASSERT(T, S)
#define NULL
[AI] Null pointer value (C/C++ semantics).
unsigned long LegoU32
[AI] Unsigned 32-bit integer type for cross-platform compatibility.
unsigned char LegoU8
[AI] Unsigned 8-bit integer type used throughout LEGO Island.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.