Searched refs:divUp (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/media/libstagefright/foundation/tests/ |
D | Utils_test.cpp | 155 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/ |
D | Utils.java | 144 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) {
|
D | MediaCodecInfo.java | 1317 final int heightInBlocks = Utils.divUp(height, mBlockHeight); in getSupportedWidthsFor() 1321 Utils.divUp(mBlockCountRange.getLower(), heightInBlocks), in getSupportedWidthsFor() 1361 final int widthInBlocks = Utils.divUp(width, mBlockWidth); in getSupportedHeightsFor() 1365 Utils.divUp(mBlockCountRange.getLower(), widthInBlocks), in getSupportedHeightsFor() 1411 Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getSupportedFrameRatesFor() 1421 return Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getBlockCount() 1540 final int widthInBlocks = Utils.divUp(width, mBlockWidth); in supports() 1541 final int heightInBlocks = Utils.divUp(height, mBlockHeight); in supports() 1704 int BR = bitRates == null ? 0 : Utils.divUp(bitRates.getUpper(), 1000); in equivalentVP9Level() 2031 Utils.divUp(minHorizontalBlocks, (mBlockWidth / blockWidth)), in applyMacroBlockLimits() [all …]
|
D | MediaCodec.java | 3615 buffer.limit(buffer.position() + Utils.divUp(bitDepth, 8) in MediaImage()
|
/frameworks/av/media/libstagefright/include/foundation/ |
D | AUtils.h | 35 inline static const T divUp(const T &nom, const T &den) { in divUp() function
|
/frameworks/av/media/libstagefright/ |
D | DataConverter.cpp | 75 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); in targetSize()
|
D | ACodec.cpp | 2422 *intraRefreshPeriod = divUp((divUp(width, 16u) * divUp(height, 16u)), refreshParams.nCirMBs); in getIntraRefreshPeriod() 2468 refreshParams.nCirMBs = divUp((divUp(width, 16u) * divUp(height, 16u)), intraRefreshPeriod); in setIntraRefreshPeriod() 4176 bitrate = divUp(bitrate, 3000); break; in getAVCLevelFor() 4178 bitrate = divUp(bitrate, 1250); break; in getAVCLevelFor() 4180 bitrate = divUp(bitrate, 1000); break; in getAVCLevelFor() 4184 width = divUp(width, 16); in getAVCLevelFor() 4185 height = divUp(height, 16); in getAVCLevelFor()
|
D | MPEG4Writer.cpp | 2765 std::max(100, divUp(1000000, mTimeScale)), decodingTimeUs); in threadEntry()
|