Return a rounded integer of the frame rate (for example 30000/1001 returns 30 fps)
| 43 | |
| 44 | // Return a rounded integer of the frame rate (for example 30000/1001 returns 30 fps) |
| 45 | int Fraction::ToInt() { |
| 46 | return round((double) num / den); |
| 47 | } |
| 48 | |
| 49 | // Calculate the greatest common denominator |
| 50 | int Fraction::GreatestCommonDenominator() { |
no outgoing calls
no test coverage detected