Machine Vision Camera SDK (C) Developer Guide
MV_CC_SetGrabStrategy
Set the streaming strategy.
API Definition
int MV_CC_SetGrabStrategy(
void
*handle
MV_GRAB_STRATEGY enGrabStrategy
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
enGrabStrategy
[IN] Streaming strategy, see the enumeration MV_GRAB_STRATEGY for details.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
There are four defined streaming strategies, from which you can choose the suitable one according
to the actual requirement. See the detailed streaming strategies below.
Macro Definition
OneByOne
LatestImagesOnly
LatestImages
Description
Get image frames one by one in the chronological order, it is the default
strategy.
Only get the latest one frame from the output buffer list, and clear the rest
images in the list.
Get the latest image from the output buffer list, and the quantity of
frames depends on the parameter OutputQueueSize, value range:
[1,ImageNodeNum]. If the OutputQueueSize values "1", the strategy is
same to "LatestImagesOnly", and if the OutputQueueSize values
"ImageNodeNum", the strategy is same to "OneByOne".
48
    "