Hi,
i want to get the frame per second in camera example. In this example, i got every CFbsBitmap& frame in functin ViewFinderFrameReady and then transferred it to container to draw. so how can i get the frame per second?
For get fps, i set two variables in cameracaptureengine.h
and in ViewFinderFrameReadyCode:int TickCounter; TTime iStartTime;
but there is no any infowin, so why?Code:TickCounter++; TTime iNow; // FindMarkerCorners(iFrame); // AR(aFrame); iNow.HomeTime(); TTimeIntervalMicroSeconds microSeconds = iNow.MicroSecondsFrom( iStartTime ); TUint miliSeconds = microSeconds.Int64() / 1000; if(miliSeconds==1000)//demostrate one second { TBuf<100> buf1; buf1.Num(TickCounter); CEikonEnv::InfoWinL(_L("The time of every frame"),buf1); iStartTime=iNow; }
i have got it. These are my codes in viewfinderframeready:
Thank you.Code:TickCounter++; if(TickCounter==100) { TTime iNow; iNow.HomeTime(); TTimeIntervalMicroSeconds microSeconds = iNow.MicroSecondsFrom( iStartTime ); TUint miliSeconds = microSeconds.Int64() / 1000; TBuf<100> buf1; buf1.Num(miliSeconds); CEikonEnv::InfoWinL(_L("the time of 100 frames"),buf1); }
Mia



