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

File Description

VGA videomodes.

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

Go to the source code of this file.

Data Structures

struct  sVideo
 Video timings structure. More...
 
struct  sVgaCfg
 Required configuration to initialize VGA output. More...
 
struct  sVmode
 Videomode table - used to setup video driver. More...
 

Macros

#define VIDEO_NAME_LEN   5
 length of video timing name
 

Enumerations

enum  { DEV_PAL = 0, DEV_NTSC, DEV_VGA, DEV_MAX }
 Output device. More...
 
enum  {
  RES_ZX = 0, RES_CGA, RES_QVGA, RES_EGA,
  RES_VGA, RES_SVGA, RES_XGA, RES_HD,
  RES_MAX
}
 Preset videomode resolution. More...
 
enum  {
  FORM_8BIT = 0, FORM_4BIT, FORM_MONO, FORM_TILE8,
  FORM_TILE12, FORM_TILE16, FORM_TILE24, FORM_TILE32,
  FORM_TILE48, FORM_TILE64, FORM_MTEXT8, FORM_MTEXT16,
  FORM_TEXT8, FORM_TEXT16, FORM_RLE, FORM_MAX
}
 Graphics formats. More...
 

Functions

void VgaCfgDef (sVgaCfg *cfg)
 Initialize configuration structure to VGA defaults. More...
 
void VgaPrintCfg (const sVmode *vmode)
 Debug print videomode setup. More...
 
void VgaCfg (const sVgaCfg *cfg, sVmode *vmode)
 Calculate the structure for setting up the video mode. More...
 
void Video (u8 dev, u8 res, u8 form, u8 *buf, const void *buf2=FontBoldB8x16)
 Simplified initialization of the video mode. More...
 

Variables

const sVideo VideoPAL
 TV PAL interlaced 5:4 720x576 (4:3 768x576, 16:9 1024x576)
 
const sVideo VideoPALp
 TV PAL progressive 5:4 360x288 (4:3 384x288, 16:9 512x288)
 
const sVideo VideoNTSC
 TV NTSC interlaced 4:3 640x480 (5:4 600x480, 16:9 848x480)
 
const sVideo VideoNTSCp
 TV NTSC progressive 4:3 320x240 (5:4 300x240, 16:9 424x240)
 
const sVideo VideoEGA
 EGA 8:5 640x400 (5:4 500x400, 4:3 528x400, 16:9 704x400), vert. 70 Hz, hor. 31.4685 kHz, pixel clock 25.175 MHz.
 
const sVideo VideoVGA
 VGA 4:3 640x480 (16:9 848x480), vert. 60 Hz, hor. 31.4685 kHz, pixel clock 25.175 MHz.
 
const sVideo VideoSVGA
 SVGA 4:3 800x600 (16:9 1064x600), vert. 60 Hz, hor. 37.897 kHz, pixel clock 40 MHz.
 
const sVideo VideoXGA
 XGA 4:3 1024x768 (16:9 1360x768), vert. 60 Hz, hor. 48.36310 kHz, pixel clock 65 MHz.
 
const sVideo VideoVESA
 VESA 4:3 1152x864, vert. 60 Hz, hor. 53.697 kHz, pixel clock 81.62 MHz.
 
const sVideo VideoHD
 HD 4:3 1280x960, vert. 53 Hz, hor. 51.858 kHz, pixel clock 102.1 MHz.
 
sVmode Vmode
 Videomode setup.
 
sVgaCfg Cfg
 Required configuration.
 
sCanvas Canvas
 Canvas of draw box.
 
u16 Pal16Trans [256]
 16-color palette translation table