The following variables and functions are available in the modul 'v_access.c':

defines:

MEDIA_PRO_PLUS_MIXER
     use the amplifier on the Media Pro+ for volume control

SB16_MIXER
     use the line in on the Sound Blaster 16 for volume control

MemAccess
     allow to access the memory of the Video Blaster. You must undefine this
     if you have installed 16 MB ram or more and use Linux.

variables:

BYTE *VidMem;
     a pointer to the memory of the video-card. The memory can be accessed
     as one block of 1024 KB memory. Only possible if less then 16 MB ram
     installed.
     
WORD PortNR;
     portaddress of the video-card.
     
functions:

WORD V_Initialize(char *name, INT clear);
     initialisation of the video-card. Try to read the file 'name' as a
     config file. If the file is not found standardparameters are set.
     If running under linux a memory-device is opened to access to memory
     of the video-card. If clear == 1 then the videomemory is cleared. For
     clearing you must have less then 16 MB ram installed and must set the
     correct address in the config file.
     Returns 1 if successfull, otherwise return 0.

void V_Exit();
     switch videosignel and sound (if available) off. Does not save the config
     file. Close also memory if running under linux.
     
void V_EnableVideo();
     enable displaying of the video-window

void V_DisableVideo();
     disable displaying of the video-window

void V_CreateWindow(INT x, INT y, WORD b, WORD h);
     displays then video at position x,y with horizontal size 'b' and vertical
     size 'h'

void V_SetWindowPosition(INT x, INT y);
     sets the window-position then x,y

void V_SetWindowSize(WORD b, WORD h);
     sets the window-size the hirizontal size 'b' and vertical size 'h'

void V_SetColorKey(WORD Wert);
     sets the colorkey to value 'Wert'. The color-key is that index of the
     VGA-colorpalette which is overlayed by the videosignal

WORD V_GetColorKey();
     returns the actual colorkey;

void V_SetVideoSource(WORD Wert);
     sets the number of the video-source.
     for Media Pro+ the following values are used:
     Wert = 0: chinch-input
     Wert = 1: SVGA-input
     Wert = 2: internal (turnercard)
     Wert = 3: normal video connected to SVHS-plug

WORD V_GetVideoSource();
     returns the actual set video-source

void V_SetInputFormat(WORD Wert);
     sets the input-format.
     Wert = 0: PAL
     Wert = 1: NTSC

WORD V_GetInputFormat();
     returns the actual set input-format

void V_EnableInterlace();
     enables the display on an interlaced video-mode

void V_DisableInterlace();
     disables the display on an interlaced video-mode

void V_SetVideoAddress(WORD Wert);
     sets the MB-address to which the memory of the videocard is mapped.
     Only values between 1 and 15 are allowed, e.g.
     Wert = 13 meens that the memory is mapped to the 13th megabyte.

void V_SetCaptureAddress(WORD x, WORD y);
     sets the position in the memory to which the videosignel is digitized.

void V_HorizontalZoom(WORD Wert);
     zoom the videosignal 'Wert' times horizontal, 0 <= 'Wert' <= 3

void V_VerticalZoom(WORD Wert);
     zoom the videosignal 'Wert' times vertical, 0 <= 'Wert' <= 3

void V_EnableFieldReplication();
     duplicate every second line and leave one line away to avoid the
     stripes by motion if displayed in fullscreen

void V_DisableFieldReplication();
     show each line of the videosignal

void V_SetWriteProtectMask(WORD Wert);
     set the writeprotectmask to value 'Wert' where the value means:
     Bit  0    : unused
     Bit  1- 7 : raw data mask
     Bit  8-11 : unused
     Bit 12-13 : mask U
     Bit 14-15 : mask V

WORD V_GetWriteProtectMask();
     return the actual set writeprotectmask

void V_SetColor(WORD x, WORD Wert);
     set the colorvalue for 'x' to value 'Wert' where 'x' stands for:
     0: brightness
     1: saturation
     2: contrast
     3: hue
     4: red
     5: green
     6: blue

void V_SetSkewFactor(WORD x, WORD Wert);
     set the SkewFactor 'x' to value 'Wert' where 'x' stands for:
      0: display window x
      1: display window y
      2: display address x
      3: display address y
      4: shift clock start
      5: palette skew
      6: nothing (Media Pro+)
      7: H-sync (0 -> '-', 1 -> '+')
      8: V-sync (0 -> '-', 1 -> '+')
      9: hicolor
     10: turecolor
     11: display with half horizontal resolution
     12: display with 4/5 horizontal resolution

WORD V_GetSkewFactor(WORD x);
     return the actual set skewfactor. For 'x' see V_SetSkewFactor

void V_FreezeVideo();
     freeze the livevideo

void V_UnfreezeVideo();
     unfreeze the livevideo

BOOL V_Freeze();
     return TRUE if the video is frozen else return FALSE

void V_SetVolume(WORD Wert);
     only for Media Pro+ or SB16:
     sets the volume of the internal amplifier

WORD V_GetVolume();
     only for Media Pro+ or SB16:
     returns the actual set volume

void V_SetRegister(WORD Nr, WORD Wert);
     set the internal register 'Nr' to valus 'Wert'

WORD V_GetRegister(WORD Nr);
     return the contents of the register 'Nr'

WORD V_wr_i2c(WORD Nr, WORD Index, WORD Wert);
     set the internal i2c number 'Nr', index 'Index' to value 'Wert'

void port_out(int value, int port);
     set 'port' to value
     
void port_outw(unsigned short value, int port);
     set 'port' to (value & 255), 'port+1' to (value >> 8)
     
int port_in(int port);
     return the contents of 'port'