•  Back 
  •  VDI Polaroid Escapes 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filevqp_state()
vsp_state()                                                             VDI

Syntax

VOID vsp_state( handle, port, film, lightness, interlace, planes, indexes )
WORD handle, port, film, lightness, interlace, planes;
WORD *indexes;

Function      vsp_state() sets the palette driver state.

Opcode        5

Sub-Opcode    93

Availability  Supported by all camera drivers.

Parameters    handle specifies a valid workstation handle. port specifies
              the communication port number of the camera device.
              film specifies the index of the desired type of film (0-4).
              lightness specifies the modification to apply to the
              camera's default f-stop setting (-3-3). A value of 0 uses
              the default setting. A value of -3 results in an exposure of
              half of the default length whereas a value of 3 doubles the
              exposure time. interlace is set to 0 for non-interlaced or 1
              for interlaced output. planes specifies the number of planes
              to output (1-4). indexes points to an array of 16 WORDs
              which define the color codes for the palette.

Binding       WORD i;

              contrl[0] = 5;
              contrl[1] = 0;
              contrl[3] = 20;
              contrl[5] = 93;
              contrl[6] = handle;

              intin[0] = port;
              intin[1] = film;
              intin[2] = lightness;
              intin[3] = interlace;
              intin[4] = planes;
              for(i = 0;i < 16;i++)
               intin[i + 5] = indexes[i];

              vdi();

See Also      vqp_state()

Group         VDI Polaroid Escapes