Sensoray 2251 Rev.A User Manual

Page 32

Advertising
background image

Retrieves the motion detection data. See demo application for example.

Parameters

region

the returned region mask. 0x02: region 1, 0x04: region 2, 0x08 region 3. The region mask

should be used to detect if motion detected or not.

buf

a pointer to motion macroblock map (must be size 208).

bufsize

size of bufmap. MUST use 208.

Board

board number in system.

The primary detection is by region. If further information is wanted, the MB map will show if
motion passed threshold in a given region on a macroblock by macroblock level (16 pixels x 16
pixels) on a bit level. For example, (buf[0] & 0x01) represents macroblock 1, (buf[0] & 0x02)
represents macroblock 2, (buf[1] & 0x01) represents macroblock 8.

Returns

0 if success, negative if error.

MID2250_API int SN_SetTimestampOverlay(

int idx,

const POINT *pPos,

const overlay_timestamp_t *pTimestamp,

int board

);

Starts automated timestamp overlay.

Parameters

idx

overlay index position to use

pPos

pointer to position of overlay

pTimestamp

pointer to timestamp structure

32

Advertising
This manual is related to the following products: