xn::ImageGenerator &imageGenerator;
private:
+ ApproximateSyncGrabber(const ApproximateSyncGrabber&);
+ ApproximateSyncGrabber& operator=(const ApproximateSyncGrabber&);
+
int maxBufferSize;
bool isCircleBuffer;
int maxTimeDuration;
virtual bool grab( xn::DepthMetaData& depthMetaData,
xn::ImageMetaData& imageMetaData )
{
- while(1)
+ for(;;)
{
if( !isDepthFilled )
isDepthFilled = popDepthMetaData(depth);
propValue = depthGenerator.GetAlternativeViewPointCap().IsViewPointAs(imageGenerator) ? 1.0 : 0.0;
break;
case CV_CAP_PROP_POS_MSEC :
- propValue = depthGenerator.GetTimestamp();
+ propValue = (double)depthGenerator.GetTimestamp();
break;
case CV_CAP_PROP_POS_FRAMES :
propValue = depthGenerator.GetFrameID();
propValue = mode.nFPS;
break;
case CV_CAP_PROP_POS_MSEC :
- propValue = imageGenerator.GetTimestamp();
+ propValue = (double)imageGenerator.GetTimestamp();
break;
case CV_CAP_PROP_POS_FRAMES :
propValue = imageGenerator.GetFrameID();