libwsx libwsx
WSwan extra library for the Wonderful toolchain
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | WSX_PLANAR_UNPACK_1BPP_TO_2BPP_ZERO(fg) |
Unpack 1BPP tiles to 2BPP tiles, using color zero and a specified foreground color. | |
#define | WSX_PLANAR_UNPACK_1BPP_TO_4BPP_ZERO(fg) |
Unpack 1BPP tiles to 4BPP tiles, using color zero and a specified foreground color. | |
#define | WSX_PLANAR_UNPACK_1BPP_TO_2BPP(bg, fg) |
Unpack 1BPP tiles to 2BPP tiles, using a specified background and foreground color. | |
Functions | |
void | wsx_planar_unpack (void __far *dest, uint16_t src_length, const void __far *src, uint16_t mode) |
Unpack a lower-bitdepth planar image to a higher bitdepth. | |
Copyright (c) 2023 Adrian "asie" Siekierka
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
Planar image unpacking routines.
Definition in file planar_unpack.h.
#define WSX_PLANAR_UNPACK_1BPP_TO_2BPP | ( | bg, | |
fg ) |
Unpack 1BPP tiles to 2BPP tiles, using a specified background and foreground color.
Definition at line 45 of file planar_unpack.h.
#define WSX_PLANAR_UNPACK_1BPP_TO_2BPP_ZERO | ( | fg | ) |
Unpack 1BPP tiles to 2BPP tiles, using color zero and a specified foreground color.
Definition at line 35 of file planar_unpack.h.
#define WSX_PLANAR_UNPACK_1BPP_TO_4BPP_ZERO | ( | fg | ) |
Unpack 1BPP tiles to 4BPP tiles, using color zero and a specified foreground color.
Definition at line 40 of file planar_unpack.h.
void wsx_planar_unpack | ( | void __far * | dest, |
uint16_t | src_length, | ||
const void __far * | src, | ||
uint16_t | mode ) |
Unpack a lower-bitdepth planar image to a higher bitdepth.
dest | Destination memory pointer. |
src_length | Source data length. |
src | Source memory pointer. |
mode | Unpacking mode, see WSX_PLANAR_UNPACK_MODE defines. |