add: add 2 functions.

This commit is contained in:
2025-09-14 20:52:25 +08:00
parent c71b20bb95
commit 9ae018341c
2 changed files with 29 additions and 1 deletions
+11
View File
@@ -115,6 +115,17 @@ void OliveInstance::getProjectExtent(double &xSize, double &ySize) const
ySize = Current::getInstance().currentVideoParams().height();
// TODO: Ensure this project does not support this.
}
double OliveInstance::getProjectPixelAspectRatio() const
{
return Current::getInstance()
.currentVideoParams()
.pixel_aspect_ratio()
.toDouble();
}
double OliveInstance::getFrameRate() const
{
return Current::getInstance().currentVideoParams().frame_rate().toDouble();
}
}
}