return *this;
}
+ Time<S, O> operator/ (int o) const {
+ return Time<S, O> (_t / o);
+ }
+
/** Round up to the nearest sampling interval
* at some sampling rate.
* @param r Sampling rate.
return Time<S, O> (llrint (HZ * frames_floor(r) / r));
}
+ Time<S, O> round (double r) const {
+ return Time<S, O> (llrint (HZ * frames_round(r) / r));
+ }
+
double seconds () const {
return double (_t) / HZ;
}
return Time<S, O> (INT64_MAX);
}
+ static const int HZ = 96000;
+
private:
friend struct dcpomatic_time_ceil_test;
friend struct dcpomatic_time_floor_test;
Type _t;
- static const int HZ = 96000;
};
class ContentTimeDifferentiator {};