PicoVGA  1.0-cmake
VGA/TV display on Raspberry Pico
vga.h File Reference

File Description

Video/Library Initialization.

Author
Miroslav Nemecek Panda.nosp@m.38@s.nosp@m.eznam.nosp@m..cz
See also
Video/Library Initialization
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LINE_VSYNC   0
 
#define LINE_VVSYNC   1
 
#define LINE_VHSYNC   2
 
#define LINE_HHSYNC   3
 
#define LINE_HVSYNC   4
 
#define LINE_DARK   5
 
#define LINE_IMG   6
 
#define LINE_IMGEVEN1   7
 
#define LINE_IMGEVEN2   8
 
#define LINE_IMGODD1   9
 
#define LINE_IMGODD2   10
 

Functions

u32 * MemSet4 (u32 *buf, u32 data, int num)
 
void BlitKey (u8 *dst, u8 *src, int w, u8 key)
 
void RenderSprite (u8 *dbuf, int y, sLayer *scr)
 
u32 * RenderFastSprite (u32 *cbuf, int y, sLayer *scr, u8 *buf)
 
void RenderPersp (u8 *dbuf, int y, sLayer *scr)
 
void RenderPersp2 (u8 *dbuf, int y, sLayer *scr)
 
u32 * Render (u32 *cbuf, u8 *dbuf, int line, int pixnum)
 
void ScanlineTypeInit (const sVmode *v)
 
void ScanlineTypePrint (const u8 *scan, int lines)
 
void VgaInit (const sVmode *vmode)
 
void StartVgaCore ()
 Start the VGA processing on core1. More...
 
void VgaInitReq (const sVmode *vmode)
 Request to initialize VGA videomode. More...
 
void Core1Exec (void(*fnc)())
 Execute remote function on second core. More...
 
Bool Core1Busy ()
 Check if core 1 is busy executing remote function.
 
void Core1Wait ()
 Wait for core 1 finish executing remote function.
 
void WaitVSync ()
 Wait for VSync scanline.
 

Variables

u8 ScanlineType [MAXLINE]
 
int DispDev
 
sVmode CurVmode
 
volatile int ScanLine
 
volatile u32 Frame
 
volatile int BufInx
 
volatile Bool VSync
 
ALIGNED u8 LineBuf1 [DBUF_MAX]
 
ALIGNED u8 LineBuf2 [DBUF_MAX]
 
int LineBufSize [LAYERS_MAX]
 
u32 LineBufHsBp [4]
 
u32 LineBufFp
 
u32 LineBufDark [2]
 
u32 LineBufSync [10]
 
ALIGNED u8 LineBuf0 [BLACK_MAX]
 
u32 CtrlBuf1 [CBUF_MAX]
 
u32 CtrlBuf2 [CBUF_MAX]
 
int CtrlBufSize [LAYERS_MAX]
 
u32 RenderTextMask [512]