Home
last modified time | relevance | path

Searched refs:den (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAUtils.h25 inline static const T divRound(const T &num, const T &den) { in divRound() argument
26 if ((num >= 0) ^ (den >= 0)) { in divRound()
27 return (num - den / 2) / den; in divRound()
29 return (num + den / 2) / den; in divRound()
35 inline static const T divUp(const T &num, const T &den) { in divUp() argument
36 if (den < 0) { in divUp()
37 return (num < 0 ? num + den + 1 : num) / den; in divUp()
39 return (num < 0 ? num : num + den - 1) / den; in divUp()
45 inline static const T align(const T &num, const U &den) { in align() argument
46 return (num + (T)(den - 1)) & (T)~(den - 1); in align()
/frameworks/base/media/java/android/media/
DUtils.java158 private static Rational scaleRatio(Rational ratio, int num, int den) {
159 int common = gcd(num, den);
161 den /= common;
164 (int)(ratio.getDenominator() * (double)den)); // saturate to int
167 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) {
168 if (num == den) {
172 scaleRatio(range.getLower(), num, den),
173 scaleRatio(range.getUpper(), num, den));
182 static int divUp(int num, int den) {
183 return (num + den - 1) / den;
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DParamsUtils.java139 int den = RATIONAL_DENOMINATOR; in createRational() local
142 numF = value * den; in createRational()
144 if ((numF > Integer.MIN_VALUE && numF < Integer.MAX_VALUE) || (den == 1)) { in createRational()
148 den /= 10; in createRational()
157 return new Rational(num, den); in createRational()
/frameworks/base/core/java/android/util/
DRational.java343 double den = mDenominator; in doubleValue() local
345 return num / den; in doubleValue()
360 float den = mDenominator; in floatValue() local
362 return num / den; in floatValue()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirGen.h333 double den = Poly4(-0.34598737196e8, 0.23852643181e6,
335 return num / den;
348 double den = Poly3(0.103150763823e2, -0.14181687413e2,
350 return exp(x) * sqrt(y) * num / den;
375 static inline double I0SqrRat(double x2, double num, double den) {
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/m4v_h263/fuzzer/
Dmpeg4_h263_dec_fuzzer.cpp36 inline static const T align(const T &num, const U &den) { in align() argument
37 return (num + (T)(den - 1)) & (T) ~(den - 1); in align()
/frameworks/base/core/java/android/net/
DNetworkUtils.java487 public static long multiplySafeByRational(long value, long num, long den) { in multiplySafeByRational() argument
488 if (den == 0) { in multiplySafeByRational()
505 return (long) (((double) num / den) * value); in multiplySafeByRational()
508 return r / den; in multiplySafeByRational()
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py267 den = 10**-exp
270 den = 1
273 return (num, den)
/frameworks/av/media/codec2/core/include/
DC2Param.h1581 C2FieldSupportedValues(T min, T max, T num, T den) :
1583 range{min, max, (T)0, num, den} { }
1586 C2FieldSupportedValues(T min, T max, T step, T num, T den)
1588 range{min, max, step, num, den} { }
/frameworks/av/media/codec2/vndk/include/util/
DC2InterfaceUtils.h327 constexpr C2_HIDE C2SupportedRange(T min, T max, T step, T num, T den)
328 : _mMin(min), _mMax(max), _mStep(step), _mNum(num), _mDenom(den) { }
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp135 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp166 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
/frameworks/av/services/audioflinger/
DTracks.cpp300 mPeerTimeout.tv_sec = timeout.count() / std::nano::den; in setPeerTimeout()
301 mPeerTimeout.tv_nsec = timeout.count() % std::nano::den; in setPeerTimeout()
/frameworks/base/core/java/android/os/
DBatteryStats.java3173 public final String formatRatioLocked(long num, long den) { in formatRatioLocked() argument
3174 if (den == 0L) { in formatRatioLocked()
3177 float perc = ((float)num) / ((float)den) * 100; in formatRatioLocked()