src/system/system_decompress.c
Resource decoding and pixel buffer shading, through RAM copies of ARM code. More…
Included by system.c.
Macros
| Name | Description | |
|---|---|---|
#define | RESOURCE_DEFINE_DECODE (name, code, bytes) | Each decoder copies its ARM function code to RAM, runs it and frees the copy, and returns the number of bytes it decoded. |
#define | CANVAS_DEFINE_FADE_BY (name, code, size) | The canvas fades of battle effects, the element glow and the Lucky Wheels. |
#define | CANVAS_DEFINE_FADE (name, code, size) |
Functions
| Name | Description | |
|---|---|---|
void | syDecompressHalfwords (const void *src, void *dest) | Decompresses the halfword LZ stream at src to dest, with a copy of the ARM decoder on the stack. |
Description
Resource decoding and pixel buffer shading, through RAM copies of ARM code.
Part of system.c.
Macros in detail
RESOURCE_DEFINE_DECODE
#define RESOURCE_DEFINE_DECODE(name, code, bytes)
Each decoder copies its ARM function code to RAM, runs it and frees the
copy, and returns the number of bytes it decoded.
Definition at line 17 of file system_decompress.c.
CANVAS_DEFINE_FADE_BY
#define CANVAS_DEFINE_FADE_BY(name, code, size)
The canvas fades of battle effects, the element glow and the Lucky Wheels. A
canvas is a buffer of 8-bit pixels, each a step 0 to 63 of a colour ramp.
Each function copies the canvas to dest, the tiles on screen, 16 bytes at a
time, and shades each group in the canvas as it goes, so what is drawn next
lands on a dimmer copy of this tick. amount holds the step in each of its
four bytes (CANVAS_FILL_WORD).
Definition at line 49 of file system_decompress.c.
CANVAS_DEFINE_FADE
#define CANVAS_DEFINE_FADE(name, code, size)
Definition at line 58 of file system_decompress.c.
Functions in detail
syDecompressHalfwords
void syDecompressHalfwords(const void *src, void *dest)
Decompresses the halfword LZ stream at src to dest, with a copy of the
ARM decoder on the stack.
References syDecompressHalfwordLZ, syDecompressHalfwordsCodeSize and syDMAXCopy().
Referenced by fdPaletteEditorRun().
Definition at line 6 of file system_decompress.c.