beautypg.com

Sensoray 819 Windows SDK User Manual

Page 6

background image

int reserved[32];
} S819_CHAN;

cMode

channel capture mode. Applies to all streams captured from a channel.

psMode

primary H.264 stream mode.

ssMode

secondary H.264 stream mode.

JsMode

JPEG stream mode.

UsMode Uncompressed preview stream
reserved Reserved fields

Capture buffer

typedef struct {
int chan;
S819_STREAM_TYPE stream;
char *buf;
int length;
unsigned int frm;
unsigned int pts;
void *rsv;
unsigned int ftype;
int reserved[8];
} BUFFER;

chan

channel number, 1 through maximum available channels based on the number of
boards detected, but no more than 64.

stream

type of stream captured into buffer.

buf

pointer to buffer data.

length

length of valid data currently in buffer, bytes.

frm

Future use.

pts

Future use.

rsv

Reserved. Do not modified

ftype

Frame type (For H.264 streams only. FTYPE_SPS, FTYPE_PPS, FTYPE_IFRAME,
FTYPE_PFRAME, FTYPE_BFRAME)

reserved

Additional reserved fields.

Motion detection data

Motion data is organized in 192 cells consisting of 16 columns and 12
rows. The first 24 bytes of odddata and evendata is a bitmask where
a '1' indicates that motion was detected in the corresponding cell.
typedef struct {
unsigned long

lTimeStamp;

unsigned char odddata[32*4];

6