Sensoray 512 DOS User Manual
Page 22

22
6.4.5 X12_VI_SETINPUT
This command selects the video input.
Entry:
Parameter Type Value
Input short VIN1 for Video input 1
VIN2 for Video input 2
VIN3 for Video input 3 (composite video only)
VIN4 for Video input 4 (composite video only)
Exit:
Parameter Type Value
Status short SUCCESS or FAIL
Example:
X12PARAM _far *Param; //Declare a pointer to an X12PARAM object
union REGS regs;
.
.
Param->Input = VIN2;
regs.x.ax = X12_VI_SETINPUT;
regs.x.si = X12_SENDCOMMAND + CARD0; //Select the driver function
int86(X12INT,®s,®s); //Call the driver
Note: In addition to the above mentioned parameters, any changes to the X12PARAM members DO0,
DO1, DO2 or DDIR0, DDIR1, DDIR2 take effect when this command is called. Upon return VQSize, DI0,
DI1, DI2, DroppedFrames, and FrameCount are updated.
6.4.6 X12_VI_SETINPUTTYPE
This command selects the video input type.
Entry:
Parameter Type Value
InputType short CVIDEO for composite video
SVIDEO for svideo
Exit:
Parameter Type Value
Status short SUCCESS or FAIL
Note: This command should be executed before the input number is selected, if an input other that input
1 is to be used.