Machine Vision Camera SDK (C) Developer Guide
API Definition
int MV_CC_SetOutputQueueSize(
void
*handle
unsigned int
nOutputQueueSize
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
nOutputQueueSize
[IN] Output queue size, range: [1,10].
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
This API is valid only when the streaming strategy is "LatestImages". You can set the maximum
number of frames that can be stored in the buffer.
Example
The following sample code is for reference only.
#include "stdio.h"
#include "Windows.h"
#include "process.h"
#include "conio.h"
#include "MvCameraControl.h"
//Wait for key press
void WaitForKeyPress(void)
{
while(!_kbhit())
{
Sleep(10);
}
_getch();
}
bool PrintDeviceInfo(MV_CC_DEVICE_INFO* pstMVDevInfo)
{
if (NULL == pstMVDevInfo)
{
printf("The Pointer of pstMVDevInfo is NULL!\n");
return false;
}
57
    "