Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
451abb3e
Commit
451abb3e
authored
Jul 14, 2009
by
Hugo Beauzee-Luyssen
Browse files
Getting FPS from MetaDataManager
parent
aa92fc31
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Media.cpp
View file @
451abb3e
...
...
@@ -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
;
...
...
src/Media.h
View file @
451abb3e
...
...
@@ -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
;
...
...
src/MetaDataManager.cpp
View file @
451abb3e
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment