Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 210) sorted by relevance

123456789

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Ddct.cpp42 Int round; in BlockDCT_AANwSub() local
53 round = 1 << (FDCT_SHIFT - 1); in BlockDCT_AANwSub()
118 k1 = mla724(k12, k5, round); in BlockDCT_AANwSub()
119 k0 = mla724(k12, k2, round); in BlockDCT_AANwSub()
136 k1 = mla392(k0, k14, round); in BlockDCT_AANwSub()
213 k1 = mla724(k12, k5, round); in BlockDCT_AANwSub()
214 k0 = mla724(k12, k2, round); in BlockDCT_AANwSub()
231 k1 = mla392(k0, k14, round); in BlockDCT_AANwSub()
271 Int round; in Block4x4DCT_AANwSub() local
282 round = 1 << (FDCT_SHIFT - 1); in Block4x4DCT_AANwSub()
[all …]
Dfastquant_inline.h30 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) in aan_scale() argument
32 q_value = coeff * q_value + round; in aan_scale()
83 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) in smlabb() argument
85 q_value = coeff * q_value + round; in smlabb()
174 int32 round, int32 QPdiv2) in aan_scale() argument
178 smlabb q_value, coeff, q_value, round in aan_scale()
221 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) in smlabb() argument
225 smlabb q_value, coeff, q_value, round in smlabb()
269 int32 round, int32 QPdiv2) in aan_scale() argument
273 mla q_value, coeff, q_value, round in aan_scale()
[all …]
Ddct_inline.h38 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument
44 k1 = k0 * 392 + round; in mla392()
123 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument
129 smlabt k1, k0, k14, round in mla392()
187 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument
194 mla k1, k0, k1, round in mla392()
285 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument
290 register int32 cc = (int32)round; in mla392()
Dfastquant.cpp159 Int round = 1 << 15; in BlockQuantDequantH263Inter() local
224 coeff = aan_scale(q_value, coeff, round, QPdiv2); in BlockQuantDequantH263Inter()
278 Int round = 1 << 15; in BlockQuantDequantH263Intra() local
326 q_value = round + (coeff << 12); in BlockQuantDequantH263Intra()
383 q_value = smlabb(q_value, coeff, round); in BlockQuantDequantH263Intra()
553 Int round = 1 << 15; in BlockQuantDequantMPEGInter() local
583 q_value = smlabb(q_value, coeff, round); in BlockQuantDequantMPEGInter()
682 Int round = 1 << 15; in BlockQuantDequantMPEGIntra() local
708 q_value = round + (coeff << 12); in BlockQuantDequantMPEGIntra()
755 q_value = smlabb(coeff, q_value, round); in BlockQuantDequantMPEGIntra()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java75 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect()
76 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect()
77 final int srcCroppedSliceH = Math.round(dstSliceH * scale); in calculateCroppedSrcRect()
87 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); in calculateCroppedSrcRect()
90 .round(Math.abs(srcH - srcCroppedSliceH) * vertSliceFrac + srcHalfSliceH); in calculateCroppedSrcRect()
120 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect()
121 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java296 r = Math.round(255 * (c + m)); in HSLToColor()
297 g = Math.round(255 * (x + m)); in HSLToColor()
298 b = Math.round(255 * m); in HSLToColor()
301 r = Math.round(255 * (x + m)); in HSLToColor()
302 g = Math.round(255 * (c + m)); in HSLToColor()
303 b = Math.round(255 * m); in HSLToColor()
306 r = Math.round(255 * m); in HSLToColor()
307 g = Math.round(255 * (c + m)); in HSLToColor()
308 b = Math.round(255 * (x + m)); in HSLToColor()
311 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/base/core/java/android/transition/
DTranslationAnimationCreator.java62 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
63 int startPosY = viewPosY + Math.round(startY - terminalY); in createAnimation()
102 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
103 mStartY = startY - Math.round(mMovingView.getTranslationY()); in TransitionPositionListener()
117 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
118 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY()); in onAnimationCancel()
DChangeBounds.java76 mBounds.offsetTo(Math.round(value.x), Math.round(value.y));
120 int right = Math.round(bottomRight.x);
121 int bottom = Math.round(bottomRight.y);
135 int left = Math.round(topLeft.x);
136 int top = Math.round(topLeft.y);
153 int left = Math.round(topLeft.x);
154 int top = Math.round(topLeft.y);
488 mLeft = Math.round(topLeft.x); in setTopLeft()
489 mTop = Math.round(topLeft.y); in setTopLeft()
497 mRight = Math.round(bottomRight.x); in setBottomRight()
[all …]
DTransitionUtils.java96 int left = Math.round(bounds.left); in copyViewImage()
97 int top = Math.round(bounds.top); in copyViewImage()
98 int right = Math.round(bounds.right); in copyViewImage()
99 int bottom = Math.round(bounds.bottom); in copyViewImage()
174 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap()
175 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap()
DCircularPropagation.java83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay()
85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
97 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
DExplode.java135 + Math.round(sceneRoot.getTranslationX()); in calculateOut()
137 + Math.round(sceneRoot.getTranslationY()); in calculateOut()
160 outVector[0] = (int) Math.round(maxDistance * xVector); in calculateOut()
161 outVector[1] = (int) Math.round(maxDistance * yVector); in calculateOut()
DSidePropagation.java93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
118 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
DVisibilityPropagation.java52 loc[0] += Math.round(view.getTranslationX()); in captureValues()
54 loc[1] += Math.round(view.getTranslationY()); in captureValues()
/frameworks/base/core/java/android/animation/
DArgbEvaluator.java91 return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b); in evaluate()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java899 constrain((int) Math.round(r * 255), 0, 255), in XYZToColor()
900 constrain((int) Math.round(g * 255), 0, 255), in XYZToColor()
901 constrain((int) Math.round(b * 255), 0, 255)); in XYZToColor()
972 r = Math.round(255 * (c + m)); in HSLToColor()
973 g = Math.round(255 * (x + m)); in HSLToColor()
974 b = Math.round(255 * m); in HSLToColor()
977 r = Math.round(255 * (x + m)); in HSLToColor()
978 g = Math.round(255 * (c + m)); in HSLToColor()
979 b = Math.round(255 * m); in HSLToColor()
982 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/native/services/surfaceflinger/
DColorLayer.cpp130 error = hwcLayer->setColor({static_cast<uint8_t>(std::round(255.0f * color.r)), in setPerFrameData()
131 static_cast<uint8_t>(std::round(255.0f * color.g)), in setPerFrameData()
132 static_cast<uint8_t>(std::round(255.0f * color.b)), 255}); in setPerFrameData()
137 layerCompositionState.color = {static_cast<uint8_t>(std::round(255.0f * color.r)), in setPerFrameData()
138 static_cast<uint8_t>(std::round(255.0f * color.g)), in setPerFrameData()
139 static_cast<uint8_t>(std::round(255.0f * color.b)), 255}; in setPerFrameData()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java486 final int deltaX = Math.round(x - mStartDragX); in resizeDrag()
487 final int deltaY = Math.round(y - mStartDragY); in resizeDrag()
526 height1 = Math.min(height, Math.round((float)width1 / MIN_ASPECT)); in resizeDrag()
531 Math.min(mMaxVisibleSize.x, Math.round((float)height1 * MIN_ASPECT))); in resizeDrag()
535 width2 = Math.max(width, Math.round((float)height2 * MIN_ASPECT)); in resizeDrag()
540 Math.min(mMaxVisibleSize.y, Math.round((float)width2 / MIN_ASPECT))); in resizeDrag()
545 height1 = Math.max(height, Math.round((float)width1 * MIN_ASPECT)); in resizeDrag()
550 Math.min(mMaxVisibleSize.x, Math.round((float)height1 / MIN_ASPECT))); in resizeDrag()
554 width2 = Math.min(width, Math.round((float)height2 / MIN_ASPECT)); in resizeDrag()
559 Math.min(mMaxVisibleSize.y, Math.round((float)width2 * MIN_ASPECT))); in resizeDrag()
[all …]
/frameworks/base/core/java/android/widget/
DStackView.java251 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); in transformViewForTransition()
271 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); in transformViewForTransition()
569 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight()); in onLayout()
572 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount); in onLayout()
788 if (mTouchRect.contains(Math.round(x), Math.round(y))) {
859 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
861 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
877 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
879 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
979 viewLp.setVerticalOffset(Math.round(-r * stackDirection * mSlideAmount));
[all …]
DScroller.java317 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset()
318 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset()
336 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset()
341 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset()
470 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
475 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
/frameworks/native/cmds/surfacereplayer/replayer/
DColor.h121 return RGB(round(r * 255), round(g * 255), round(b * 255)); in getRGB()
/frameworks/base/core/java/com/android/internal/widget/
DScrollBarUtils.java27 int length = Math.round((float) size * extent / range); in getThumbLength()
36 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java279 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
286 final int h = Math.round(w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
323 final int h = Math.round((float) w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragLeft()
364 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT)); in testLandscapePreservedWindowResizingDragTop()
390 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT); in testPortraitPreservedWindowResizingDragTopLeft()
401 final int w = Math.max(mMinVisibleWidth, Math.round(mMinVisibleHeight / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
402 final int h = Math.max(mMinVisibleHeight, Math.round(w * MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
424 int h = Math.round(w * MIN_ASPECT); in testPortraitPreservedWindowResizingDragLeft()
436 h = Math.max(Math.round((float) w * MIN_ASPECT), r.height()); in testPortraitPreservedWindowResizingDragLeft()
477 int w = Math.min(r.width(), Math.round(h / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTop()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java64 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
99 return Math.round(MathUtils.lerp(0, GAMMA_SPACE_MAX, ret)); in convertLinearToGamma()
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutBidiCursorPathTest.java69 final int bottom = Math.round(BIDI_TEXT_SIZE + BIDI_TEXT_SIZE / 5f); in testGetCursorPathSegments()
96 int bottom = Math.round(BIDI_TEXT_SIZE + BIDI_TEXT_SIZE / 5f); in testGetCursorPath_whenShiftIsPressed()
136 final int bottom = Math.round(BIDI_TEXT_SIZE + BIDI_TEXT_SIZE / 5f); in testGetCursorPath_whenAltIsPressed()
/frameworks/base/core/java/com/android/internal/view/menu/
DContextMenuBuilder.java117 helper.show(Math.round(x), Math.round(y)); in showPopup()

123456789