Machine Vision Camera SDK (C) Developer Guide
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
fOutputCallBack
[IN] Image data callback function, see the details below:
void(__stdcall* cbOutput)(
unsigned char
*pData,
MV_FRAME_OUT_INFO *pFrameInfo,
void
*pUser
);
pData
[OUT] Address of buffer that saves image data
pFrameInfo
[OUT] Obtained frame information, including width, height and pixel format. See the
structure MV_FRAME_OUT_INFO for details
pUser
[OUT] 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_RegisterImageCallBack 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.
This API is not recommended, suggest to replace it with MV_CC_RegisterImageCallBackEx
See Also
MV_CC_StartGrabbing
158
    "