Commit 451abb3e authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Getting FPS from MetaDataManager

parent aa92fc31
......@@ -156,6 +156,16 @@ void Media::setHeight( int height )
m_height = height;
}
unsigned int Media::getFps() const
{
return m_fps;
}
void Media::setFps( unsigned int fps )
{
m_fps = fps;
}
Media::FileType Media::getFileType() const
{
return m_fileType;
......
......@@ -109,6 +109,9 @@ public:
int getHeight() const;
void setHeight( int height );
unsigned int getFps() const;
void setFps( unsigned int fps );
const QUuid& getUuid() const;
FileType getFileType() const;
......@@ -138,6 +141,7 @@ protected:
qint64 m_length;
unsigned int m_width;
unsigned int m_height;
unsigned int m_fps;
int* m_audioSpectrum;
audioData m_audioData;
FileType m_fileType;
......
......@@ -113,6 +113,7 @@ void MetaDataManager::getMetaData()
m_currentClip->setLength( m_mediaPlayer->getLength() );
m_currentClip->setWidth( m_mediaPlayer->getWidth() );
m_currentClip->setHeight( m_mediaPlayer->getHeight() );
m_currentClip->setFps( m_mediaPlayer->getFps() );
//Setting time for snapshot :
if ( m_currentClip->getFileType() == Media::Video )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment