libmsx
C library for MSX
|
Decompressor of the ZX0 data compression format version 2. More...
Functions | |
size_t | ZX0_decompress (const uint8_t *src, uint8_t *dst) |
MSX Decompress a ZX0 data stream. | |
size_t | ZX0_decompress_bmem (bmemptr_t src, uint8_t *dst) |
MSX Decompress a ZX0 data stream in Banked Memory. | |
uint32_t | ZX0_decompress_bmem_to_vmem (bmemptr_t src, vmemptr_t dst) |
MSX Decompress a ZX0 data stream in Banked Memory to VRAM. | |
uint32_t | ZX0_decompress_bmem_to_vmem_buffer (bmemptr_t src, vmemptr_t dst) |
MSX2 Decompress a ZX0 data stream in Banked Memory to VRAM via main RAM page #0 buffer. | |
uint32_t | ZX0_decompress_resource_to_vmem (const char *path, vmemptr_t dst) |
MSX Decompress a ZX0 resource in banked memory to VRAM. | |
uint32_t | ZX0_decompress_resource_to_vmem_buffer (const char *path, vmemptr_t dst) |
MSX2 Decompress a ZX0 resource in banked memory to VRAM via main RAM page #0 buffer. | |
Decompressor of the ZX0 data compression format version 2.
size_t ZX0_decompress | ( | const uint8_t * | src, |
uint8_t * | dst | ||
) |
MSX
Decompress a ZX0 data stream.
src | Pointer to ZX0 data stream. |
dst | Destination base address. |
size_t ZX0_decompress_bmem | ( | bmemptr_t | src, |
uint8_t * | dst | ||
) |
MSX
Decompress a ZX0 data stream in Banked Memory.
src | Pointer to ZX0 data stream in Banked Memory. |
dst | Destination base address. |
MSX
Decompress a ZX0 data stream in Banked Memory to VRAM.
src | Pointer to ZX0 data stream in Banked Memory. |
dst | Destination base address. |
MSX2
Decompress a ZX0 data stream in Banked Memory to VRAM via main RAM page #0 buffer.
High throughput (but low responsiveness) version of ZX0_decompress_bmem_to_vmem().
This function uses main RAM page #0 as 16KiB buffer for faster decompression.
src | Pointer to ZX0 data stream in Banked Memory. |
dst | Destination base address. |
MSX2
or later. uint32_t ZX0_decompress_resource_to_vmem | ( | const char * | path, |
vmemptr_t | dst | ||
) |
MSX
Decompress a ZX0 resource in banked memory to VRAM.
Searches for an embedded resource in banked memory by name and decmompress it into the specified address in VRAM. If the resource is not found, do nothing.
This function is same as the following code:
path | path/file name of the resource. |
dst | destination address of VRAM. |
uint32_t ZX0_decompress_resource_to_vmem_buffer | ( | const char * | path, |
vmemptr_t | dst | ||
) |
MSX2
Decompress a ZX0 resource in banked memory to VRAM via main RAM page #0 buffer.
High throughput (but low responsiveness) version of ZX0_decompress_resource_to_vmem().
This function uses main RAM page #0 as 16KiB buffer for faster decompression.
This function is same as the following code:
path | path/file name of the resource. |
dst | destination address of VRAM. |
MSX2
or later.