Machine Vision Camera SDK (C) Developer Guide
API Definition
int MV_USB_GetTransferSize(
void
*handle,
unsigned int
*pTransferSize
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pTransferSize
[IN] Packet size, it is 1 MB by default.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
MV_USB_SetTransferSize
Set the packet size of USB3 vision device.
API Definition
int MV_USB_SetTransferSize(
void
*handle,
unsigned int nTransferSize
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
nTransferSize
[IN] Packet size. The value is larger than or equal to 0x0800 (2 KB), the default value is 1 MB.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Increasing the packet size can reduce the CPU usage properly, but for different computer and USB
expansion cards the compatibility are different, if the packet size is too large, the image may
cannot be acquired.
119
    "