Sensoray 2251 Rev.A User Manual

Page 29

Advertising
background image

0 if success, negative if error.

MID2250_API int SN_SetMpegSequence(

MID2250_SEQMODE seqMode,

int board

);

Set alternate MPEG sequence mode. For MPEG 1,2,4 only.

Parameters

seqMode

MID2250_SEQMODE_IFRAMESONLY – only use I-frames;

MID2250_SEQMODE_DEFAULT – default sequence mode (IP, or IPB mode).

board

Board number in system.

Returns

0 if success, negative if error.

MID2250_API int SN_GetFrame(

long inSize,

unsigned char *pFrame,

BITMAPINFOHEADER *pBMI,

int type,

int board

);

SN_GetFrame retrieves current frame. Type Currently supported for MPEG 1,2,4 only. If running in
MOTIONJPEG mode, type is ignored and full JPG image is returned with size pBMI->biSizeImage
(The returned MotionJPG buffer can be saved directly to a JPG file). Please see GetFrame.cpp in
demo app for an example of using SN_GetFrame.

Parameters

inSize

size of pFrame buffer supplied (should be at least 768*576*3)

pFrame

pointer to buffer of size inSize where frame is stored

29

Advertising
This manual is related to the following products: