Home
last modified time | relevance | path

Searched refs:divUp (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/libstagefright/foundation/tests/
DUtils_test.cpp155 ASSERT_EQ(divUp(-11, -4), 3); in TEST_F()
156 ASSERT_EQ(divUp(-12, -4), 3); in TEST_F()
157 ASSERT_EQ(divUp(-13, -4), 4); in TEST_F()
159 ASSERT_EQ(divUp(11, -4), -2); in TEST_F()
160 ASSERT_EQ(divUp(12, -4), -3); in TEST_F()
161 ASSERT_EQ(divUp(13, -4), -3); in TEST_F()
163 ASSERT_EQ(divUp(-11, 4), -2); in TEST_F()
164 ASSERT_EQ(divUp(-12, 4), -3); in TEST_F()
165 ASSERT_EQ(divUp(-13, 4), -3); in TEST_F()
167 ASSERT_EQ(divUp(11, 4), 3); in TEST_F()
[all …]
/frameworks/base/media/java/android/media/
DUtils.java144 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
155 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
178 divUp(range.getLower(), align) * align,
182 static int divUp(int num, int den) {
186 static long divUp(long num, long den) {
DMediaCodecInfo.java1327 final int heightInBlocks = Utils.divUp(height, mBlockHeight); in getSupportedWidthsFor()
1331 Utils.divUp(mBlockCountRange.getLower(), heightInBlocks), in getSupportedWidthsFor()
1371 final int widthInBlocks = Utils.divUp(width, mBlockWidth); in getSupportedHeightsFor()
1375 Utils.divUp(mBlockCountRange.getLower(), widthInBlocks), in getSupportedHeightsFor()
1421 Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getSupportedFrameRatesFor()
1431 return Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getBlockCount()
1550 final int widthInBlocks = Utils.divUp(width, mBlockWidth); in supports()
1551 final int heightInBlocks = Utils.divUp(height, mBlockHeight); in supports()
1713 int BR = bitRates == null ? 0 : Utils.divUp(bitRates.getUpper(), 1000); in equivalentVP9Level()
2040 Utils.divUp(minHorizontalBlocks, (mBlockWidth / blockWidth)), in applyMacroBlockLimits()
[all …]
DMediaCodec.java3722 buffer.limit(buffer.position() + Utils.divUp(bitDepth, 8) in MediaImage()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAUtils.h35 inline static const T divUp(const T &num, const T &den) { in divUp() function
/frameworks/av/media/libstagefright/
DDataConverter.cpp75 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); in targetSize()
DACodec.cpp2430 *intraRefreshPeriod = divUp((divUp(width, 16u) * divUp(height, 16u)), refreshParams.nCirMBs); in getIntraRefreshPeriod()
2476 refreshParams.nCirMBs = divUp((divUp(width, 16u) * divUp(height, 16u)), intraRefreshPeriod); in setIntraRefreshPeriod()
4212 bitrate = divUp(bitrate, 3000); break; in getAVCLevelFor()
4215 bitrate = divUp(bitrate, 1250); break; in getAVCLevelFor()
4217 bitrate = divUp(bitrate, 1000); break; in getAVCLevelFor()
4221 width = divUp(width, 16); in getAVCLevelFor()
4222 height = divUp(height, 16); in getAVCLevelFor()
DMPEG4Writer.cpp3116 std::max(100, divUp(1000000, mTimeScale)), decodingTimeUs); in threadEntry()
/frameworks/base/config/
Dboot-image-profile.txt25349 HSPLandroid/media/Utils;->divUp(II)I
25350 HSPLandroid/media/Utils;->divUp(JJ)J