diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-19 19:42:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-19 19:42:26 +0100 |
| commit | af9b2212f0d8f8c1f53aaf29e520b812dfdc321c (patch) | |
| tree | 82d12ed02b489d4e0f978a333cc130f4c427ea60 /src/dcp_time.h | |
| parent | 13c6d55d16337abbd8d8969d7062a515c1b26995 (diff) | |
Initial work on subtitle writing.
Diffstat (limited to 'src/dcp_time.h')
| -rw-r--r-- | src/dcp_time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dcp_time.h b/src/dcp_time.h index 0bbf5510..8033348b 100644 --- a/src/dcp_time.h +++ b/src/dcp_time.h @@ -53,9 +53,13 @@ public: int m; ///< minutes int s; ///< seconds int t; ///< `ticks', where 1 tick is 4 milliseconds + + std::string to_string () const; + int64_t to_ticks () const; }; extern bool operator== (Time const & a, Time const & b); +extern bool operator!= (Time const & a, Time const & b); extern bool operator<= (Time const & a, Time const & b); extern bool operator< (Time const & a, Time const & b); extern bool operator> (Time const & a, Time const & b); |
