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-Filevsp_state()vqp_state() VDISyntaxVOID vqp_state( handle, port, film, lightness, interlace, planes, indices
)
WORD handle;
WORD *port, *film, *lightness, *interlace, *planes, *indices;
Function vqp_state() returns information regarding the current state
of the palette driver.
Opcode 5
Sub-Opcode 92
Availability Supported by all camera drivers.
Parameters handle specifies a valid workstation handle. The rest of the
parameters are all WORDs which are filled in as follows:
Parameter Meaning
port Communication port number.
film Film type (0 - 4).
lightness Lightness (-3 - 3). A value of 0 specifies the
current f-stop setting. A value of three
results in an exposure half as long as normal
while a value of 3 results in an exposure twice
as long as normal.
interlace Interlace mode. A value of 0 is non-interlaced,
1 is interlaced.
planes Number of planes (1 - 4)
indices This is actually a WORD array with at least 16
members. (2 ^ planes) members will be filled in
with color codes for the driver. indices[0] and
indices[1] will specify the first color,
indices[2] and indices[2] the second, and so on.
Binding WORD i;
contrl[0] = 5;
contrl[1] = contrl[3] = 0;
contrl[5] = 92;
contrl[6] = handle;
vdi();
*port = intout[0];
*film = intout[1];
*lightness = intout[2];
*interlace = intout[3];
*planes = intout[4];
for(i = 0;i < 21;i++)
indices[i] = intout[5 + i];
See Also vsp_state()Group VDI Polaroid Escapes