if(verbose)printf("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,min,max,SteppingDelta,defaultValue,flags);
DebugPrintOut("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,min,max,SteppingDelta,defaultValue,flags);
if(verbose)printf("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,Min,Max,SteppingDelta,Default,AvailableCapsFlags);
DebugPrintOut("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,Min,Max,SteppingDelta,Default,AvailableCapsFlags);
if(verbose)printf("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,Min,Max,SteppingDelta,Default,AvailableCapsFlags);
DebugPrintOut("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,Min,Max,SteppingDelta,Default,AvailableCapsFlags);
if(verbose)printf("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,min,max,SteppingDelta,defaultValue,flags);
DebugPrintOut("Range for video setting %s: Min:%ld Max:%ld SteppingDelta:%ld Default:%ld Flags:%ld\n",propStr,min,max,SteppingDelta,defaultValue,flags);
if(verbose)printf("SETUP: device[%i] not found - you have %i devices available\n",deviceNumber,devicesFound);
if(devicesFound>=0)if(verbose)printf("SETUP: this means that the last device you can use is device[%i] \n",devicesFound-1);
DebugPrintOut("SETUP: device[%i] not found - you have %i devices available\n",deviceNumber,devicesFound);
if(devicesFound>=0)DebugPrintOut("SETUP: this means that the last device you can use is device[%i]\n",devicesFound-1);
returnfalse;
}
if(VDList[deviceNumber]->readyToCapture)
{
if(verbose)printf("SETUP: can't setup, device %i is currently being used\n",VDList[deviceNumber]->myID);
DebugPrintOut("SETUP: can't setup, device %i is currently being used\n",VDList[deviceNumber]->myID);
returnfalse;
}
...
...
@@ -2329,8 +2358,8 @@ static void findClosestSizeAndSubtype(videoDevice * VD, int widthIn, int heightI
//Don't want to get stuck in a loop
if(stepX<1||stepY<1)continue;
//if(verbose)printf("min is %i %i max is %i %i - res is %i %i \n", scc.MinOutputSize.cx, scc.MinOutputSize.cy, scc.MaxOutputSize.cx, scc.MaxOutputSize.cy, stepX, stepY);
//if(verbose)printf("min frame duration is %i max duration is %i\n", scc.MinFrameInterval, scc.MaxFrameInterval);
//DebugPrintOut("min is %i %i max is %i %i - res is %i %i\n", scc.MinOutputSize.cx, scc.MinOutputSize.cy, scc.MaxOutputSize.cx, scc.MaxOutputSize.cy, stepX, stepY);
//DebugPrintOut("min frame duration is %i max duration is %i\n", scc.MinFrameInterval, scc.MaxFrameInterval);
boolexactMatch=false;
boolexactMatchX=false;
...
...
@@ -2416,7 +2445,15 @@ static bool setSizeAndSubtype(videoDevice * VD, int attemptWidth, int attemptHei