S817_releasebuffer, S817_blockdone, S817_setvideoswitch – Sensoray 817 User Manual

Page 13

Advertising
background image

13

S817_ReleaseBuffer

ECODE S817_ReleaseBuffer (int board, int aChan, int bufId, int capType)

Releases a buffer back to the driver. Capture to this buffer is allowed.


board

Index of the board being addressed (1 ..

SYS_MAXBOARDS

).

aChan

Index of the input video channel being addressed (1 .. 16).

bufId

Buffer index. See

CAP_BUFFER

structure.

capType

Type of buffer to be released: bitmap or JPEG. Must be either

CAP_JPG

or

CAP_BMP.

S817_BlockDone

ECODE S817_BlockDone(int board,

int to,

int *aChan, int *capType)

Waits for the board to capture requested data. It is a blocking function, i.e. it does not
consume CPU time when waiting.

board

Index of the board being addressed (1 ..

SYS_MAXBOARDS

).

to

Timeout value in milliseconds. The function returns after this period of time even if
the selected channel is not ready. The return value of the function in this case is non-
zero. If

timeout

is set to 0, the function checks the capture status and returns

immediately.

aChan

A pointer to a variable receiving the index of the channel having data. The driver
implements a round-robin algorithm, so that all the channels are fairly reperesented.

capType

A pointer to a variable receiving the type of data availble for a given channel. Can be

CAP_JPG

or

CAP_BMP

, or their logical OR.

S817_SetVideoSwitch

ECODE S817_SetVideoSwitch(int board, int *switchOut)

Controls the analog video crosspoint switch.


board

Index of the board being addressed (1 ..

SYS_MAXBOARDS

).

switchOut

Advertising