Machine Vision Camera SDK (C) Developer Guide
This API is not supported by CameraLink device.
This API is supported by both USB3 vision camera and GigE camera.
4.4.4 MV_CC_GetImageForBGR
Get a frame of BGR24 data, search the frame data in the memory and transform it to BGR24
format for return. Setting timeout is supported.
API Definition
int MV_CC_GetImageForBGR(
void
*handle,
unsigned char
*pData,
unsigned int
nDataSize,
MV_FRAME_OUT_INFO_EX *pFrameInfo,
int
nMsec
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pData
[IN] Buffer address used to save image data
nDataSize
[IN] Buffer size
pFrameInfo
[OUT] Obtained frame information, BGR24 format, see the structure
MV_FRAME_OUT_INFO_EX for details.
nMsec
[IN] Waiting timeout, unit: millisecond
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Each time the API is called, the internal buffer is checked for data. If there is data, it will be
transformed as BGR24 format for return, if there is no data, return error code. As time-
92
    "