Home
last modified time | relevance | path

Searched refs:divRound (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libstagefright/foundation/tests/
DUtils_test.cpp131 ASSERT_EQ(divRound(-10, -4), 3); in TEST_F()
132 ASSERT_EQ(divRound(-11, -4), 3); in TEST_F()
133 ASSERT_EQ(divRound(-12, -4), 3); in TEST_F()
134 ASSERT_EQ(divRound(-13, -4), 3); in TEST_F()
135 ASSERT_EQ(divRound(-14, -4), 4); in TEST_F()
137 ASSERT_EQ(divRound(10, -4), -3); in TEST_F()
138 ASSERT_EQ(divRound(11, -4), -3); in TEST_F()
139 ASSERT_EQ(divRound(12, -4), -3); in TEST_F()
140 ASSERT_EQ(divRound(13, -4), -3); in TEST_F()
141 ASSERT_EQ(divRound(14, -4), -4); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/
DVideoFrameSchedulerBase.cpp146 x += divRound(time - lastTime, period); in fit()
152 int64_t y = divRound(time - phase, period >> kPrecision); in fit()
168 *a = divRound(a_nom, div); in fit()
169 *b = divRound(b_nom, div); in fit()
171 *err = sumYY - divRound(a_nom * sumXY + b_nom * sumY, div); in fit()
424 size_t vsyncsForLastFrame = divRound(nextVsyncTime - mLastVsyncTime, mVsyncPeriod); in schedule()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAUtils.h25 inline static const T divRound(const T &num, const T &den) { in divRound() function
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Driver.cpp407 *msec = divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
423 *msec = divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp510 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
526 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()