Lines Matching refs:Rational
202 class Rational { class
204 Rational(void) : _n(0), _d(1) {} in Rational() function in Rational
205 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {} in Rational() function in Rational
210 bool operator==(const Rational& other) const;
211 bool operator!=(const Rational& other) const { return !(*this == other); } in operator !=()
212 bool operator<(const Rational& other) const;
213 bool operator>(const Rational& other) const { in operator >()
217 Rational& lower, Rational& upper);
261 Rational hScale;
264 Rational vScale;
291 Rational scHScale(uint32_t format,
295 Rational scVScale(uint32_t format,
533 >= Rational(searchLimits.sourceCrop.width(), in main()
548 >= Rational(searchLimits.sourceCrop.height(), in main()
1096 Rational scHScale(uint32_t format, in scHScale()
1102 Rational best(0, 1), minBad; // Current bounds for a binary search in scHScale()
1119 Rational lower, upper, selected; in scHScale()
1127 Rational::double2Rational(mid, in scHScale()
1152 num, (float) Rational(scDim.width(), dfDim.width()), in scHScale()
1164 if (firstPass) { return Rational(scDim.width(), dfDim.width()); } in scHScale()
1167 best = Rational(scDim.width(), dfDim.width()); in scHScale()
1171 minBad = Rational(scDim.width(), dfDim.width()); in scHScale()
1195 Rational scVScale(uint32_t format, in scVScale()
1201 Rational best(0, 1), minBad; // Current bounds for a binary search in scVScale()
1218 Rational lower, upper, selected; in scVScale()
1226 Rational::double2Rational(mid, in scVScale()
1251 num, (float) Rational(scDim.height(), dfDim.height()), in scVScale()
1263 if (firstPass) { return Rational(scDim.height(), dfDim.height()); } in scVScale()
1266 best = Rational(scDim.height(), dfDim.height()); in scVScale()
1270 minBad = Rational(scDim.height(), dfDim.height()); in scVScale()
1337 bool Rational::operator==(const Rational& other) const in operator ==()
1345 bool Rational::operator<(const Rational& other) const in operator <()
1353 Rational::operator string() const in operator string()
1362 void Rational::double2Rational(double f, Range nRange, Range dRange, in double2Rational()
1363 Rational& lower, Rational& upper) in double2Rational()
1365 Rational bestLower(nRange.lower(), dRange.upper()); in double2Rational()
1366 Rational bestUpper(nRange.upper(), dRange.lower()); in double2Rational()
1370 Rational val(d * f, d); // Lower, because double to int cast truncates in double2Rational()