beautypg.com

Sensoray 711 User Manual

Page 25

background image

26

Sensoray Model 711 Instruction Manual

} else {
return ecode;
}
} else {
return ecode;
}

X11_StopAcquire

__declspec(dllexport) ECODE __stdcall X11_StopAcquire (hfg)

HFG hfg;

/* frame grabber handle */

Parameter Description

hfg

Frame grabber handle. Selects the frame grabber.

The X11_StopAcquire function stops the image acquisition. It has to be used only if
acquisition was started by calling X11_StartAcquire.

Returns
The function returns 0 in case of success, or an error code.

X11_GetStatus

__declspec(dllexport) ECODE __stdcall X11_GetStatus (hfg, pStatus)

HFG hfg;

/* frame grabber handle */

DWORD * pStatus;

/* address of the variable receiving status value */

The X11_GetStatus function retrieves the value of the frame grabber status word.

Parameter Description

hfg

Frame grabber handle. Selects the frame grabber.

pStatus

Address of the variable receiving the status value.

Returns
The function returns 0 in case of success, or an error code. The individual bits of the status
word have the following meanings:
Value Description
STATUS_READY

Frame acquisition complete. Has to be reset by the application.
See X11_ResetStatus.

STATUS_READY_ALL

Image buffer acquisition complete. Reset automatically at the

start of the first frame acquisition.

STATUS_VIDEO

Video status changed at the input (e.g. present to absent).

STATUS_HLOCK

Horizontal lock condition changed at the input.

STATUS_OFLOW

Overflow detected.

STATUS_HSYNC

Start of new line.

STATUS_VSYNC

Start of new field.

STATUS_FMT

Video format change detected (e.g. NTSC to PAL).

STATUS_ERROR

Transfer error occurred. This is a combination of bits.