beautypg.com

7 x12_vi_getstatus, 8 x12_resetdevice – Sensoray 512 DOS User Manual

Page 23

background image

23

Example:


X12PARAM _far *Param; //Declare a pointer to an X12PARAM object
union REGS regs;
.
.
Param->InputType = SVIDEO;
regs.x.ax = X12_VI_SETINPUTTYPE;
regs.x.si = X12_SENDCOMMAND + CARD0; //Select the driver function
int86(X12INT,®s,®s); //Call the driver

Param->Input = VIN1;
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.7 X12_VI_GETSTATUS

This command updates the X12PARAM members. 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.

Exit:
Parameter Type Value

Status short SUCCESS or FAIL

6.4.8 X12_RESETDEVICE

This command resets the 512 MPEG engine.

Entry:
Parameter Type Value


Exit:
Parameter Type Value

Status short SUCCESS or FAIL


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.