Use frame rate information for sequence playing.
This commit is contained in:
1 parent
58d60a2d73
commit
2354bfdfea
2 files changed
+11
-1
No files matched your search
@@ -64,6 +64,11 @@ public:
|
||||
|
||||
bool playEvent();
|
||||
|
||||
InputStream* getInputStream()
|
||||
{
|
||||
return &m_currStream;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the image at its original size
|
||||
*/
|
||||
|
||||
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user