MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / ToInt

Method ToInt

src/Fraction.cpp:45–47  ·  view source on GitHub ↗

Return a rounded integer of the frame rate (for example 30000/1001 returns 30 fps)

Source from the content-addressed store, hash-verified

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

Callers 3

InitMethod · 0.80
Fraction.cppFile · 0.80
FrameMapper.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected