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

Method Reduce

src/Fraction.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void Fraction::Reduce() {
66 // Get the greatest common denominator
67 int GCD = GreatestCommonDenominator();
68 if (GCD == 0) {
69 return;
70 }
71
72 // Reduce this fraction to the smallest possible whole numbers
73 num = num / GCD;
74 den = den / GCD;
75}
76
77// Return the reciprocal as a new Fraction
78Fraction Fraction::Reciprocal() const

Callers 12

SetVideoOptionsMethod · 0.80
SetJsonValueMethod · 0.80
OpenMethod · 0.80
UpdateVideoInfoMethod · 0.80
SetVideoOptionsMethod · 0.80
OpenMethod · 0.80
OpenMethod · 0.80
TimelineMethod · 0.80
OpenMethod · 0.80
OpenMethod · 0.80
initMethod · 0.80
Fraction.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected