summaryrefslogtreecommitdiff
path: root/src/frame_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-05 16:35:34 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-05 16:35:34 +0000
commit6c5e5435d105685a537561ca0e6a223d34af85e1 (patch)
treeb2415a607f5fdaadc4a37edb7e7a68a5ef0bc7cc /src/frame_time.h
parent095dcf9a0fb075ca84537beff2fe6a41c837e8da (diff)
Support for conversions of things that have multiple representations.
Diffstat (limited to 'src/frame_time.h')
-rw-r--r--src/frame_time.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/frame_time.h b/src/frame_time.h
index 045b833..9443676 100644
--- a/src/frame_time.h
+++ b/src/frame_time.h
@@ -41,6 +41,22 @@ public:
, _frames (f)
{}
+ int hours () const {
+ return _hours;
+ }
+
+ int minutes () const {
+ return _minutes;
+ }
+
+ int seconds () const {
+ return _seconds;
+ }
+
+ int frames () const {
+ return _frames;
+ }
+
std::string timecode () const;
private: