4 the 512 commands – Sensoray 512 DOS User Manual

Page 19

Advertising
background image

19

6.4 The 512 commands

The command described in this section are used with the X12_SENDCOMMAND function call (see
section 6.2). These commands use the X12PARAM structure to pass parameters and return results.

6.4.1 X12_VI_START


This command starts video only compression or decompression.

Entry:
Parameter Type Value

Mode unsigned short ENCODE or DECODE

Exit:
Parameter Type Value

Status short SUCCESS or FAIL


Example:


Param->Mode = ENCODE; //Compression
regs.x.ax = X12_VI_START;
regs.x.si = X12_SENDCOMMAND + CARD0; //Select the driver function
int86(X12INT,&regs,&regs); //Call the driver

Param->Mode = DECODE; //Decompression
regs.x.ax = X12_VI_START;
regs.x.si = X12_SENDCOMMAND + CARD0; //Select the driver function
int86(X12INT,&regs,&regs); //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.2 X12_VI_STOP


This command stops video compression or decompression only.

Entry:
Parameter Type Value

None

Exit:
Parameter Type Value

Status short SUCCESS or FAIL

Advertising