Home
last modified time | relevance | path

Searched refs:divUp (Results 1 – 11 of 11) 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.java1434 final int heightInBlocks = Utils.divUp(height, mBlockHeight); in getSupportedWidthsFor()
1438 Utils.divUp(mBlockCountRange.getLower(), heightInBlocks), in getSupportedWidthsFor()
1478 final int widthInBlocks = Utils.divUp(width, mBlockWidth); in getSupportedHeightsFor()
1482 Utils.divUp(mBlockCountRange.getLower(), widthInBlocks), in getSupportedHeightsFor()
1528 Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getSupportedFrameRatesFor()
1538 return Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getBlockCount()
1674 int origRate = (int)Utils.divUp(mMaxMacroBlockRate, getMaxMacroBlocks()); in toString()
1713 mBlockSize = new Size(Utils.divUp(blockSize.getWidth(), 16), in PerformancePoint()
1714 Utils.divUp(blockSize.getHeight(), 16)); in PerformancePoint()
1716 mWidth = (int)(Utils.divUp(Math.max(1L, width), in PerformancePoint()
[all …]
DMediaCodec.java3954 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.cpp2461 *intraRefreshPeriod = divUp((divUp(width, 16u) * divUp(height, 16u)), refreshParams.nCirMBs); in getIntraRefreshPeriod()
2507 refreshParams.nCirMBs = divUp((divUp(width, 16u) * divUp(height, 16u)), intraRefreshPeriod); in setIntraRefreshPeriod()
4288 bitrate = divUp(bitrate, 3000); break; in getAVCLevelFor()
4291 bitrate = divUp(bitrate, 1250); break; in getAVCLevelFor()
4293 bitrate = divUp(bitrate, 1000); break; in getAVCLevelFor()
4297 width = divUp(width, 16); in getAVCLevelFor()
4298 height = divUp(height, 16); in getAVCLevelFor()
DMPEG4Writer.cpp3187 std::max(100, divUp(1000000, mTimeScale)), decodingTimeUs); in threadEntry()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp234 uint32_t stride = align(view.crop().width, 2) * divUp(layout.planes[0].allocatedDepth, 8u); in GraphicView2MediaImageConverter()
277 * divUp(mAllocatedDepth, 8u); in GraphicView2MediaImageConverter()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp69 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy()
/frameworks/base/config/
Dboot-image-profile.txt9784 HSPLandroid/media/Utils;->divUp(II)I
9785 HSPLandroid/media/Utils;->divUp(JJ)J