- double seconds () const {
- return double (_t) / HZ;
- }
-
- template <typename T>
- int64_t frames (T r) const {
- return rint (_t * r / HZ);
- }
-
-protected:
- friend class dcptime_round_up_test;
-
- int64_t _t;
- static const int HZ = 96000;
-};
-
-class DCPTime;
-
-class ContentTime : public Time
-{
-public:
- ContentTime () : Time () {}
- explicit ContentTime (int64_t t) : Time (t) {}
- ContentTime (int64_t n, int64_t d) : Time (n * HZ / d) {}
- ContentTime (DCPTime d, FrameRateChange f);
-
- bool operator< (ContentTime const & o) const {