PicoVGA  1.0-cmake
VGA/TV display on Raspberry Pico
vga_util.h
Go to the documentation of this file.
1 
8 #ifndef _VGA_UTIL_H
9 #define _VGA_UTIL_H
10 
26 void Attr8Conv(u8* dst, u8* attr, const u8* src, int w, int h, const u8* pal);
27 
36 void Plane2Conv(u8* plane0, u8* plane1, const u8* src, int w, int h);
37 
43 void ImgInvert(u8* dst, int num);
44 
51 int DecUNum(char* buf, u32 num);
52 
59 int DecNum(char* buf, s32 num);
60 
67 void CopyWhiteImg(u8* dst, const u8* src, int num);
68 
70 
71 #endif // _VGA_UTIL_H
ImgInvert
void ImgInvert(u8 *dst, int num)
Invert image.
Definition: vga_util.cpp:144
Attr8Conv
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.
Definition: vga_util.cpp:14
DecNum
int DecNum(char *buf, s32 num)
Decode signed number into ASCIIZ text buffer.
Definition: vga_util.cpp:179
DecUNum
int DecUNum(char *buf, u32 num)
Decode unsigned number into ASCIIZ text buffer.
Definition: vga_util.cpp:154
CopyWhiteImg
void CopyWhiteImg(u8 *dst, const u8 *src, int num)
Prepare image with white key transparency (copy and increment pixels)
Definition: vga_util.cpp:189
Plane2Conv
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)
Definition: vga_util.cpp:128