Use frame rate information for sequence playing.

This commit is contained in:
Luis Lucas committed 2014-02-02 17:37:39 +00:00
1 parent 58d60a2d73
commit 2354bfdfea
2 files changed
+11 -1

No files matched your search

+5
View File
@@ -64,6 +64,11 @@ public:
bool playEvent();
InputStream* getInputStream()
{
return &m_currStream;
}
/**
* Show the image at its original size
*/
+6 -1
View File
@@ -132,8 +132,13 @@ void plaYUVerApp::save()
void plaYUVerApp::play()
{
UInt frameRate;
UInt timeInterval;
playingTimer->start( 200 );
frameRate = activeImageInterface()->getInputStream()->getFrameRate();
timeInterval = (UInt)( 1000.0/frameRate + 0.5 );
playingTimer->start( timeInterval );
}