You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Removed Framerate class, since its functionality is already represented in the Fraction class. Also, corrected a few unittests, and updated some documentation.
This commit is contained in:
@@ -47,6 +47,12 @@ double Fraction::ToDouble() {
|
||||
return double(num) / double(den);
|
||||
}
|
||||
|
||||
// Return a rounded integer of the frame rate (for example 30000/1001 returns 30 fps)
|
||||
int Fraction::ToInt() {
|
||||
return round((float) num / den);
|
||||
}
|
||||
|
||||
// Calculate the greatest common denominator
|
||||
int Fraction::GreatestCommonDenominator() {
|
||||
int first = num;
|
||||
int second = den;
|
||||
|
||||
Reference in New Issue
Block a user