Sensoray 2251 Rev.A User Manual

Page 46

Advertising
background image

Figure 8

When the event is captured by the waiting user program( see demo source code), it calls
SN_GetMDData( &region, pBuf, BUFSIZE, board_number). The region(s) where motion was
detected is given in a bitmask in the region variable. BUFSIZE should be set to 208, the size of
the motion map. pBuf will contain the macroblock map on a bit by bit basis.

For example, assume the following is returned by SN_GetMDData where pBuf is an array of
unsigned 8 bit characters.

pBuf[0] = 0x7c;

pBuf[1] = 0x00;

pBuf[2] = 0x89;

46

Advertising
This manual is related to the following products: