![]() |
PicoVGA
1.0-cmake
VGA/TV display on Raspberry Pico
|
Utility functions.
Functions | |
void | Attr8Conv (u8 *dst, u8 *attr, const u8 *src, int w, int h, const u8 *pal) |
Convert image from 16-color to 8x8 attribute format. More... | |
void | Plane2Conv (u8 *plane0, u8 *plane1, const u8 *src, int w, int h) |
Convert image from 4-color to 2-plane format (width must be multiply of 8) More... | |
void | ImgInvert (u8 *dst, int num) |
Invert image. More... | |
int | DecUNum (char *buf, u32 num) |
Decode unsigned number into ASCIIZ text buffer. More... | |
int | DecNum (char *buf, s32 num) |
Decode signed number into ASCIIZ text buffer. More... | |
void | CopyWhiteImg (u8 *dst, const u8 *src, int num) |
Prepare image with white key transparency (copy and increment pixels) More... | |
void Attr8Conv | ( | u8 * | dst, |
u8 * | attr, | ||
const u8 * | src, | ||
int | w, | ||
int | h, | ||
const u8 * | pal | ||
) |
Convert image from 16-color to 8x8 attribute format.
dst | Destination image |
attr | Destination attribute data |
src | Source image |
w | Image width |
h | Image height |
pal | Palette |
void Plane2Conv | ( | u8 * | plane0, |
u8 * | plane1, | ||
const u8 * | src, | ||
int | w, | ||
int | h | ||
) |
Convert image from 4-color to 2-plane format (width must be multiply of 8)
plane0 | First plane destination |
plane1 | Second plane destionation |
src | Soure image |
w | Image width |
h | Image height |
void ImgInvert | ( | u8 * | dst, |
int | num | ||
) |
Invert image.
dst | Image data |
num | Length of image in bytes |
int DecUNum | ( | char * | buf, |
u32 | num | ||
) |
Decode unsigned number into ASCIIZ text buffer.
buf | Destination buffer |
num | Number to decode |
int DecNum | ( | char * | buf, |
s32 | num | ||
) |
Decode signed number into ASCIIZ text buffer.
buf | Destination buffer |
num | Number to decode |
void CopyWhiteImg | ( | u8 * | dst, |
const u8 * | src, | ||
int | num | ||
) |
Prepare image with white key transparency (copy and increment pixels)
dst | Destination image |
src | Source image |
num | Number of bytes to copy |