otio: began early functionality to export to OTIO

This commit is contained in:
itsmattkc
2020-09-25 16:32:18 +10:00
parent 2ea7b91f5d
commit bb6d5505f5
14 changed files with 288 additions and 10 deletions
+8
View File
@@ -102,6 +102,14 @@ AVRational rational::toAVRational() const
return r;
}
#ifdef USE_OTIO
opentime::RationalTime rational::toRationalTime() const
{
// Is this the best way of doing this?
return opentime::RationalTime::from_seconds(toDouble());
}
#endif
rational rational::flipped() const
{
return rational(denom_, numer_);