Home
last modified time | relevance | path

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

/frameworks/av/media/module/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.java160 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
171 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
194 divUp(range.getLower(), align) * align,
198 static int divUp(int num, int den) {
202 static long divUp(long num, long den) {
DMediaCodecInfo.java1980 final int heightInBlocks = Utils.divUp(height, mBlockHeight); in getSupportedWidthsFor()
1984 Utils.divUp(mBlockCountRange.getLower(), heightInBlocks), in getSupportedWidthsFor()
2024 final int widthInBlocks = Utils.divUp(width, mBlockWidth); in getSupportedHeightsFor()
2028 Utils.divUp(mBlockCountRange.getLower(), widthInBlocks), in getSupportedHeightsFor()
2074 Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getSupportedFrameRatesFor()
2084 return Utils.divUp(width, mBlockWidth) * Utils.divUp(height, mBlockHeight); in getBlockCount()
2220 int origRate = (int)Utils.divUp(mMaxMacroBlockRate, getMaxMacroBlocks()); in toString()
2259 mBlockSize = new Size(Utils.divUp(blockSize.getWidth(), 16), in PerformancePoint()
2260 Utils.divUp(blockSize.getHeight(), 16)); in PerformancePoint()
2262 mWidth = (int)(Utils.divUp(Math.max(1L, width), in PerformancePoint()
[all …]
DMediaCodec.java5942 buffer.limit(buffer.position() + Utils.divUp(bitDepth, 8) in MediaImage()
/frameworks/av/media/module/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.cpp79 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); in targetSize()
DACodec.cpp2679 *intraRefreshPeriod = divUp((divUp(width, 16u) * divUp(height, 16u)), refreshParams.nCirMBs); in getIntraRefreshPeriod()
2725 refreshParams.nCirMBs = divUp((divUp(width, 16u) * divUp(height, 16u)), intraRefreshPeriod); in setIntraRefreshPeriod()
4554 bitrate = divUp(bitrate, 3000); break; in getAVCLevelFor()
4557 bitrate = divUp(bitrate, 1250); break; in getAVCLevelFor()
4559 bitrate = divUp(bitrate, 1000); break; in getAVCLevelFor()
4563 width = divUp(width, 16); in getAVCLevelFor()
4564 height = divUp(height, 16); in getAVCLevelFor()
DMPEG4Writer.cpp3827 std::max(100, divUp(1000000, mTimeScale)), decodingTimeUs); in threadEntry()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp264 uint32_t stride = align(view.crop().width, 2) * divUp(layout.planes[0].allocatedDepth, 8u); in GraphicView2MediaImageConverter()
450 int32_t colInc = divUp(mAllocatedDepth, 8u); in GraphicView2MediaImageConverter()
575 planeSize += planeStride * divUp(mAllocatedDepth, 8u) in GraphicView2MediaImageConverter()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp72 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy()
/frameworks/base/boot/
Dboot-image-profile.txt11114 HSPLandroid/media/Utils;->divUp(II)I
11115 HSPLandroid/media/Utils;->divUp(JJ)J
/frameworks/base/config/
Dboot-image-profile.txt11117 HSPLandroid/media/Utils;->divUp(II)I
11118 HSPLandroid/media/Utils;->divUp(JJ)J