Machine Vision Camera SDK (C) Developer Guide
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pSaveParam
[IN] [OUT] Input and output parameters of picture data, see the structure
MV_SAVE_IMAGE_PARAM_EX for details.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Once there is image data, you can call this API to convert the data.
You can also call MV_CC_GetOneFrameTimeout or MV_CC_RegisterImageCallBackEx or
MV_CC_GetImageBuffer to get one image frame and set the callback function, and then call this
API to convert the format.
Comparing with the previous API MV_CC_SaveImageEx, this API added the parameter handle to
ensure the unity with other API.
4.5.3 MV_CC_ConvertPixelType
Convert pixel format.
API Definition
int MV_CC_ConvertPixelType(
void
MV_CC_PIXEL_CONVERT_PARAM
);
*handle,
*pstCvtParam
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pstCvtParam
[IN] [OUT] Transform input and output parameter to pixel format, see the structure
MV_CC_PIXEL_CONVERT_PARAM for details.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
101
    "