Searched refs:den (Results 1 - 7 of 7) sorted by relevance

/frameworks/av/include/media/stagefright/foundation/
H A DAUtils.h23 /* T must be integer type, den must not be 0 */
25 inline static const T divRound(const T &nom, const T &den) { argument
26 if ((nom >= 0) ^ (den >= 0)) {
27 return (nom - den / 2) / den;
29 return (nom + den / 2) / den;
33 /* == ceil(nom / den). T must be integer type, den must not be 0 */
35 inline static const T divUp(const T &nom, const T &den) { argument
45 align(const T &nom, const U &den) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java139 int den = RATIONAL_DENOMINATOR;
142 numF = value * den;
144 if ((numF > Integer.MIN_VALUE && numF < Integer.MAX_VALUE) || (den == 1)) {
148 den /= 10;
157 return new Rational(num, den);
/frameworks/base/media/java/android/media/
H A DUtils.java149 private static Rational scaleRatio(Rational ratio, int num, int den) { argument
150 int common = gcd(num, den);
152 den /= common;
155 (int)(ratio.getDenominator() * (double)den)); // saturate to int
158 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) { argument
159 if (num == den) {
163 scaleRatio(range.getLower(), num, den),
164 scaleRatio(range.getUpper(), num, den));
173 static int divUp(int num, int den) { argument
174 return (num + den
177 divUp(long num, long den) argument
[all...]
/frameworks/base/core/java/android/util/
H A DRational.java339 double den = mDenominator;
341 return num / den;
356 float den = mDenominator;
358 return num / den;
558 * "<i>num</i>{@code /}<i>den</i>" or
559 * "<i>num</i>{@code :}<i>den</i>" {@code => new Rational(num, den);},
560 * where <i>num</i> and <i>den</i> are string integers potentially
/frameworks/av/services/audioflinger/
H A DAudioResamplerFirGen.h333 double den = Poly4(-0.34598737196e8, 0.23852643181e6, local
335 return num / den;
348 double den = Poly3(0.103150763823e2, -0.14181687413e2, local
350 return exp(x) * sqrt(y) * num / den;
375 static inline double I0SqrRat(double x2, double num, double den) { argument
380 I0Term<6>::value, x2) * num / den; // e < 1.6e-7
388 den *= Poly4(-0.34598737196e8, 0.23852643181e6,
390 return num / den;
/frameworks/av/media/libstagefright/codecs/on2/enc/
H A DSoftVPXEncoder.cpp158 mCodecConfiguration->g_timebase.den = 1000000;
/frameworks/base/core/java/android/os/
H A DBatteryStats.java2474 public final String formatRatioLocked(long num, long den) { argument
2475 if (den == 0L) {
2478 float perc = ((float)num) / ((float)den) * 100;

Completed in 256 milliseconds