
Machine Vision Camera SDK (C) Developer Guide
Remarks
● After calling MV_CC_CreateHandle , call this API to set image data callback function.
● There are two available image data acquisition modes, and cannot be used together:
1. Call MV_CC_RegisterImageCallBackEx to set image data callback function, and then call
MV_CC_StartGrabbing to start acquiring. The acquired image data is returned in the configured
callback function.
2. Call MV_CC_StartGrabbing to start acquiring, and then call MV_CC_GetOneFrameTimeout
repeatedly in application layer to get frame data of specified pixel format. When getting frame
data, the frequency of calling this API should be controlled by upper layer application according
to frame rate.
● This API is not supported by CameraLink device.
4.4.8 MV_CC_RegisterImageCallBackForBGR
Register BGR24 image data callback function, supports getting chunk information.
API Definition
int MV_CC_RegisterImageCallBackForBGR(
void
*handle,
void
*cbOutput,
void
*pUser
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
cbOutput
[IN] BGR24 image data callback function, see the details below:
void(__stdcall* cbOutput)(
unsigned char
*pData,
MV_FRAME_OUT_INFO_EX *pFrameInfo,
void
*pUser
);
pData
Address of buffer that saves image data
pFrameInfo
Obtained information of frame with BGR24 format, including width, height, pixel format,
chunk information, and so on. See the structure MV_FRAME_OUT_INFO_EX for details.
96



































































































































































































































































































































































































