Sensoray 819 Linuxs SDK User Manual
Page 7

H264_PSLICE
= 1,
H264_ISLICE
= 5,
H264_IDRSLICE
= 6,
H264_SPS = 7,
H264_PPS = 8
} SLICE_TYPE;
typedef enum {
ALARM_VIDEO_LOST = 0x01,
ALARM_NIGHT = 0x02,
ALARM_BLIND = 0x04,
ALARM_STDCHG = 0x08,
ALARM_MV = 0x10
} ALARM_TYPE;
typedef union {
SLICE_TYPE
slice;
ALARM_TYPE
atype;
} S819_SUBTYPE;
typedef struct {
int chan;
S819_STREAM_TYPE stream;
S819_SUBTYPE subtype;
char *buf;
int length;
unsigned int frm;
unsigned int pts;
void *rsv;
} 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.
subtype
stream subtype
buf
pointer to buffer data.
length
length of valid data currently in buffer, bytes.
frm
frame number (H.264, JPEG streams).
pts
time stamp (H.264, JPEG streams).
rsv
Reserved.
S819_SUBTYPE
provides additional information about the streams depending on stream's type.
For H.264 streams it is current slice type, for alarm stream it is alarm type. Application should first
determine the stream type using
.stream
, then use .
subtype
based on context.
7