beautypg.com

Sensoray 614 Windows User Manual

Page 29

background image

BITMAPINFOHEADER *pBMI,

int type,

int board

);

SN_GetFrame retrieves current frame. Type Currently supported for MPEG 1,2,4 only. Please see
GetFrame.cpp in demo app for an example of using SN_GetFrame. The function is not available
for the callback filter graphs (SN_StartCompressedCaptureOnly and SN_StartCaptureOnly_CB)

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

pBMI

pointer to bitmap info. Currently only the following parameters are updated: pBMI-

>biHeight, biWidth, biSizeImage.

type

type of buffer to retrieve.

type = 0 for YcbCr buffer formatted as follows. Y plane first 768*576 bytes. Cb plane next

768*576/4 bytes. Cr plane next 768*576/4 bytes.

type = 1 for RGB8 buffer.

board

Board number in system.

Returns

0 if success, negative if error.

MID314_API int SN_StartCaptureOnly(

int colorspace,

int board

);

This function builds a DirectShow Capture graph with the Raw Capture pin connected to the
DirectShow SampleGrabber. The Sample Grabber runs in buffered mode. This mode is useful
for occasional snapshots. If all snapshots are required, the user should use

29

This manual is related to the following products: