libwsx libwsx
WSwan extra library for the Wonderful toolchain
Loading...
Searching...
No Matches
planar_unpack.h
Go to the documentation of this file.
1
23#ifndef __WF_LIBWSX_PLANAR_UNPACK_H__
24#define __WF_LIBWSX_PLANAR_UNPACK_H__
25
26#include <stdint.h>
27
35#define WSX_PLANAR_UNPACK_1BPP_TO_2BPP_ZERO(fg) (fg)
36
40#define WSX_PLANAR_UNPACK_1BPP_TO_4BPP_ZERO(fg) ((fg) | (1 << 8))
41
45#define WSX_PLANAR_UNPACK_1BPP_TO_2BPP(bg, fg) ((fg) | ((bg) << 2) | (2 << 8))
46
55void wsx_planar_unpack(void __far* dest, uint16_t src_length, const void __far* src, uint16_t mode);
56
57#endif /* __WF_LIBWSX_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.