Machine Vision Camera SDK (C) Developer Guide
pUser
User data
pUser
[IN] User data
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
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_RegisterImageCallBackForBGR to set BGR24 format 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_GetImageForBGR
repeatedly in application layer to get frame data with BGR24 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.
See Also
MV_CC_GetImageForBGR
MV_CC_StartGrabbing
4.4.9 MV_CC_RegisterImageCallBackForRGB
Register RGB24 image data callback function, supports getting chunk information.
API Definition
int MV_CC_RegisterImageCallBackForRGB(
void
*handle,
void
*cbOutput,
void
*pUser
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
cbOutput
97
    "