Home
last modified time | relevance | path

Searched refs:dx (Results 1 – 25 of 204) sorted by relevance

123456789

/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp78 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio() local
79 x -= dx / 2.0f; in ExpandToAspectRatio()
80 width += dx; in ExpandToAspectRatio()
96 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength() local
97 x -= dx / 2.0f; in ExpandToMinLength()
98 width += dx; in ExpandToMinLength()
121 const float dx = width * (f - 1.0f); in ScaleWithLengthLimit() local
122 x -= dx / 2.0f; in ScaleWithLengthLimit()
123 width += dx; in ScaleWithLengthLimit()
144 Point dx = dy; in FromCenterAxisAndLengths() local
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
DomxVCM4P2_FindMVpred.c107 CandMV.dx = CandMV.dy = 0; in omxVCM4P2_FindMVpred()
183 pDstMVPred->dx = armMedianOf3 (pCandMV1->dx, pCandMV2->dx, pCandMV3->dx); in omxVCM4P2_FindMVpred()
190 pDstMVPredME[0].dx = pCandMV1->dx; in omxVCM4P2_FindMVpred()
192 pDstMVPredME[1].dx = pCandMV2->dx; in omxVCM4P2_FindMVpred()
194 pDstMVPredME[2].dx = pCandMV3->dx; in omxVCM4P2_FindMVpred()
DomxVCM4P2_MotionEstimationMB.c384 pSrcDstMBCurr->pMV0[0][0].dx = 0; in omxVCM4P2_MotionEstimationMB()
413 pSrcDstMBCurr->pMV0[0][0].dx = dstMV16x16.dx; in omxVCM4P2_MotionEstimationMB()
415 pSrcDstMBCurr->pMV0[0][1].dx = dstMV16x16.dx; in omxVCM4P2_MotionEstimationMB()
417 pSrcDstMBCurr->pMV0[1][0].dx = dstMV16x16.dx; in omxVCM4P2_MotionEstimationMB()
419 pSrcDstMBCurr->pMV0[1][1].dx = dstMV16x16.dx; in omxVCM4P2_MotionEstimationMB()
500 (pSrcDstMBCurr->pMV0[0][0].dx != dstMV16x16.dx) || in omxVCM4P2_MotionEstimationMB()
502 (pSrcDstMBCurr->pMV0[0][1].dx != dstMV16x16.dx) || in omxVCM4P2_MotionEstimationMB()
504 (pSrcDstMBCurr->pMV0[1][0].dx != dstMV16x16.dx) || in omxVCM4P2_MotionEstimationMB()
506 (pSrcDstMBCurr->pMV0[1][1].dx != dstMV16x16.dx) || in omxVCM4P2_MotionEstimationMB()
537 pSrcDstMBCurr->pMV0[0][0].dx = 0; in omxVCM4P2_MotionEstimationMB()
[all …]
DomxVCM4P2_DecodePadMV_PVOP.c131 pDstMVCurMB[i].dx = 0; in omxVCM4P2_DecodePadMV_PVOP()
185 diffMV.dx = mvHorData; in omxVCM4P2_DecodePadMV_PVOP()
189 diffMV.dx = ((armAbs(mvHorData) - 1) * fcodeForward) in omxVCM4P2_DecodePadMV_PVOP()
193 diffMV.dx = -diffMV.dx; in omxVCM4P2_DecodePadMV_PVOP()
222 pDstMVCurMB[iBlk].dx += diffMV.dx; in omxVCM4P2_DecodePadMV_PVOP()
226 if ( pDstMVCurMB[iBlk].dx < low ) in omxVCM4P2_DecodePadMV_PVOP()
228 pDstMVCurMB[iBlk].dx += range; in omxVCM4P2_DecodePadMV_PVOP()
230 if (pDstMVCurMB[iBlk].dx > high) in omxVCM4P2_DecodePadMV_PVOP()
232 pDstMVCurMB[iBlk].dx -= range; in omxVCM4P2_DecodePadMV_PVOP()
DomxVCM4P2_EncodeMV.c124 dstMVPredME[i].dx = 0; in omxVCM4P2_EncodeMV()
157 diffMV.dx = pMVCurMB[iBlk].dx - dstMVPred.dx; in omxVCM4P2_EncodeMV()
161 if (diffMV.dx == 0) in omxVCM4P2_EncodeMV()
168 mvHorResidual = ( armAbs(diffMV.dx) - 1) % scaleFactor; in omxVCM4P2_EncodeMV()
169 mvHorData = (armAbs(diffMV.dx) - mvHorResidual + (scaleFactor - 1)) in omxVCM4P2_EncodeMV()
171 if (diffMV.dx < 0) in omxVCM4P2_EncodeMV()
203 if ((fcodeForward > 1) && (diffMV.dx != 0)) in omxVCM4P2_EncodeMV()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DarmVCM4P10_Interpolate_Luma.c111 OMX_U32 dx, in armVCM4P10_Interpolate_Luma() argument
122 armRetArgErrIf(dx > 3, OMX_Sts_BadArgErr) in armVCM4P10_Interpolate_Luma()
126 if (dx == 3) in armVCM4P10_Interpolate_Luma()
138 if (dx == 0 && dy == 0) in armVCM4P10_Interpolate_Luma()
149 if (dx == 1 || dx == 3) in armVCM4P10_Interpolate_Luma()
155 else if (dx == 0) in armVCM4P10_Interpolate_Luma()
167 else if (dx == 2 || dy == 2) in armVCM4P10_Interpolate_Luma()
173 if (dx == 1 || dx == 3) in armVCM4P10_Interpolate_Luma()
DomxVCM4P10_BlockMatch_Quarter.c141 initialMV.dx = pSrcDstBestMV->dx; in omxVCM4P10_BlockMatch_Quarter()
151 pTempSrcRefY = pSrcRefY + (nSrcRefStep * (initialMV.dy/4)) + (initialMV.dx/4); in omxVCM4P10_BlockMatch_Quarter()
154 pelPosX = (initialMV.dx % 4) + x; in omxVCM4P10_BlockMatch_Quarter()
170 candMV.dx = initialMV.dx + x; in omxVCM4P10_BlockMatch_Quarter()
194 diffMV.dx = candMV.dx - pMVPred->dx; in omxVCM4P10_BlockMatch_Quarter()
199 candMV.dx, in omxVCM4P10_BlockMatch_Quarter()
DomxVCM4P10_BlockMatch_Half.c140 integerMV.dx = pSrcDstBestMV->dx; in omxVCM4P10_BlockMatch_Half()
150 pTempSrcRefY = pSrcRefY + (nSrcRefStep * (integerMV.dy/4)) + (integerMV.dx/4); in omxVCM4P10_BlockMatch_Half()
162 candMV.dx = integerMV.dx + x * 2; in omxVCM4P10_BlockMatch_Half()
186 diffMV.dx = candMV.dx - pMVPred->dx; in omxVCM4P10_BlockMatch_Half()
191 candMV.dx, in omxVCM4P10_BlockMatch_Half()
DomxVCM4P10_MotionEstimationMB.c379 mvx = pSrcMBInfo->pMV0 [2*PartY + SubPartY][2*PartX + SubPartX].dx; in armVCM4P10_CalculateBlockSAD()
397 mvx = pSrcMBInfo->pMV0 [2*PartY][2*PartX].dx; in armVCM4P10_CalculateBlockSAD()
717 pMVPred->dx = pMVArr [BlockY][BlockX - 1].dx; in armVCM4P10_SetMotionVectorPredictor()
722 pMVPred->dx = in armVCM4P10_SetMotionVectorPredictor()
723 ARM_VCM4P10_MEDIAN(pMVArr [BlockY][BlockX - 1].dx, in armVCM4P10_SetMotionVectorPredictor()
724 pMVArr [BlockY - 1][BlockX].dx, in armVCM4P10_SetMotionVectorPredictor()
725 pMVArr [BlockY - 1][BlockXPlusOff].dx); in armVCM4P10_SetMotionVectorPredictor()
734 pMVPred->dx = pMVArr [BlockY][BlockX - 1].dx; in armVCM4P10_SetMotionVectorPredictor()
738 pMVPred->dx = pMVArr [BlockY - 1][BlockX].dx; in armVCM4P10_SetMotionVectorPredictor()
744 pMVPred->dx = pMVArr [BlockY - 1][BlockXPlusOff].dx; in armVCM4P10_SetMotionVectorPredictor()
[all …]
DarmVCM4P10_Interpolate_Chroma.c67 OMX_U32 dx, in armVCM4P10_Interpolate_Chroma() argument
71 OMX_U32 EightMinusdx = 8 - dx; in armVCM4P10_Interpolate_Chroma()
79 armRetArgErrIf(dx > 7, OMX_Sts_BadArgErr) in armVCM4P10_Interpolate_Chroma()
87 if (dx != 0 || dy != 0) in armVCM4P10_Interpolate_Chroma()
90 BCoeff = dx * EightMinusdy; in armVCM4P10_Interpolate_Chroma()
92 DCoeff = dx * dy; in armVCM4P10_Interpolate_Chroma()
DarmVCM4P10_CompareMotionCostToMV.c118 sizeCodeNum = armVCM4P10_ExpGolBitsUsed (diffMV.dx); in armVCM4P10_CompareMotionCostToMV()
128 bestMV->dx = mvX; in armVCM4P10_CompareMotionCostToMV()
137 if ( (mvX * mvX + mvY * mvY) < ((bestMV->dx * bestMV->dx) + (bestMV->dy * bestMV->dy)) ) in armVCM4P10_CompareMotionCostToMV()
140 bestMV->dx = mvX; in armVCM4P10_CompareMotionCostToMV()
DomxVCM4P10_InterpolateChroma.c84 OMX_S32 dx, in omxVCM4P10_InterpolateChroma() argument
94 armRetArgErrIf(dx < 0, OMX_Sts_BadArgErr) in omxVCM4P10_InterpolateChroma()
95 armRetArgErrIf(dx > 7, OMX_Sts_BadArgErr) in omxVCM4P10_InterpolateChroma()
107 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy); in omxVCM4P10_InterpolateChroma()
DomxVCM4P10_InterpolateLuma.c83 OMX_S32 dx, in omxVCM4P10_InterpolateLuma() argument
93 armRetArgErrIf(dx < 0, OMX_Sts_BadArgErr) in omxVCM4P10_InterpolateLuma()
94 armRetArgErrIf(dx > 3, OMX_Sts_BadArgErr) in omxVCM4P10_InterpolateLuma()
106 (pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy); in omxVCM4P10_InterpolateLuma()
/frameworks/native/include/ui/
DRegion.h89 Region& translateSelf(int dx, int dy);
90 Region& orSelf(const Region& rhs, int dx, int dy);
91 Region& xorSelf(const Region& rhs, int dx, int dy);
92 Region& andSelf(const Region& rhs, int dx, int dy);
93 Region& subtractSelf(const Region& rhs, int dx, int dy);
96 const Region translate(int dx, int dy) const;
97 const Region merge(const Region& rhs, int dx, int dy) const;
98 const Region mergeExclusive(const Region& rhs, int dx, int dy) const;
99 const Region intersect(const Region& rhs, int dx, int dy) const;
100 const Region subtract(const Region& rhs, int dx, int dy) const;
[all …]
/frameworks/native/include/private/ui/
DRegionHelper.h52 TYPE dx; member
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } in region()
57 : rects(r), count(c), dx(), dy() { } in region()
58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) in region()
59 : rects(r), count(c), dx(dx), dy(dy) { } in region()
234 SpannerBase::lhs_head = lhs.rects->left + lhs.dx; in prepare()
235 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx; in prepare()
243 SpannerBase::rhs_head = rhs.rects->left + rhs.dx; in prepare()
244 SpannerBase::rhs_tail = rhs.rects->right + rhs.dx; in prepare()
248 SpannerBase::lhs_head = lhs.rects->left + lhs.dx; in prepare()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp79 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio() local
80 x -= dx / 2.0f; in ExpandToAspectRatio()
81 width += dx; in ExpandToAspectRatio()
97 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength() local
98 x -= dx / 2.0f; in ExpandToMinLength()
99 width += dx; in ExpandToMinLength()
122 const float dx = width * (f - 1.0f); in ScaleWithLengthLimit() local
123 x -= dx / 2.0f; in ScaleWithLengthLimit()
124 width += dx; in ScaleWithLengthLimit()
/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java171 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} in onViewPositionChanged() argument
304 public int clampViewPositionHorizontal(View child, int left, int dx) { in clampViewPositionHorizontal() argument
587 final int dx = finalLeft - startLeft; in forceSettleCapturedViewAt() local
590 if (dx == 0 && dy == 0) { in forceSettleCapturedViewAt()
597 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); in forceSettleCapturedViewAt()
598 mScroller.startScroll(startLeft, startTop, dx, dy, duration); in forceSettleCapturedViewAt()
604 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { in computeSettleDuration() argument
607 final int absDx = Math.abs(dx); in computeSettleDuration()
619 int xduration = computeAxisDuration(dx, xvel, mCallback.getViewHorizontalDragRange(child)); in computeSettleDuration()
727 final int dx = x - mCapturedView.getLeft(); in continueSettling() local
[all …]
DScrollerCompat.java45 void startScroll(Object scroller, int startX, int startY, int dx, int dy); in startScroll() argument
46 void startScroll(Object scroller, int startX, int startY, int dx, int dy, int duration); in startScroll() argument
97 public void startScroll(Object scroller, int startX, int startY, int dx, int dy) { in startScroll() argument
98 ((Scroller) scroller).startScroll(startX, startY, dx, dy); in startScroll()
102 public void startScroll(Object scroller, int startX, int startY, int dx, int dy, in startScroll() argument
104 ((Scroller) scroller).startScroll(startX, startY, dx, dy, duration); in startScroll()
190 public void startScroll(Object scroller, int startX, int startY, int dx, int dy) { in startScroll() argument
191 ScrollerCompatGingerbread.startScroll(scroller, startX, startY, dx, dy); in startScroll()
195 public void startScroll(Object scroller, int startX, int startY, int dx, int dy, in startScroll() argument
197 ScrollerCompatGingerbread.startScroll(scroller, startX, startY, dx, dy, duration); in startScroll()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearSmoothScroller.java107 final int dx = calculateDxToMakeVisible(targetView, getHorizontalSnapPreference()); in onTargetFound() local
109 final int distance = (int) Math.sqrt(dx * dx + dy * dy); in onTargetFound()
112 action.update(-dx, -dy, time, mDecelerateInterpolator); in onTargetFound()
120 protected void onSeekTargetStep(int dx, int dy, RecyclerView.State state, Action action) { in onSeekTargetStep() argument
127 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) { in onSeekTargetStep()
131 mInterimTargetDx = clampApplyScroll(mInterimTargetDx, dx); in onSeekTargetStep()
168 protected int calculateTimeForDeceleration(int dx) { in calculateTimeForDeceleration() argument
174 return (int) Math.ceil(calculateTimeForScrolling(dx) / .3356); in calculateTimeForDeceleration()
184 protected int calculateTimeForScrolling(int dx) { in calculateTimeForScrolling() argument
188 return (int) Math.ceil(Math.abs(dx) * MILLISECONDS_PER_PX); in calculateTimeForScrolling()
/frameworks/native/libs/ui/
DRegion.cpp376 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument
377 return operationSelf(rhs, dx, dy, op_or); in orSelf()
379 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { in xorSelf() argument
380 return operationSelf(rhs, dx, dy, op_xor); in xorSelf()
382 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument
383 return operationSelf(rhs, dx, dy, op_and); in andSelf()
385 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument
386 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf()
388 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) { in operationSelf() argument
390 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPath.java343 public void rMoveTo(float dx, float dy) { in rMoveTo() argument
344 native_rMoveTo(mNativePath, dx, dy); in rMoveTo()
370 public void rLineTo(float dx, float dy) { in rLineTo() argument
372 native_rLineTo(mNativePath, dx, dy); in rLineTo()
670 public void addPath(Path src, float dx, float dy) { in addPath() argument
672 native_addPath(mNativePath, src.mNativePath, dx, dy); in addPath()
703 public void offset(float dx, float dy, @Nullable Path dst) { in offset() argument
709 dst.offset(dx, dy); in offset()
718 public void offset(float dx, float dy) { in offset() argument
723 if (isSimplePath && dx == Math.rint(dx) && dy == Math.rint(dy)) { in offset()
[all …]
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java118 float dx = endX - startX; in setPatternPath() local
120 float distance = (float) Math.hypot(dx, dy); in setPatternPath()
123 double angle = Math.atan2(dy, dx); in setPatternPath()
131 double dx = endX - startX; in getPath() local
133 float length = (float) Math.hypot(dx, dy); in getPath()
134 double angle = Math.atan2(dy, dx); in getPath()
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
DViewMatrix.java263 int dx = ((dir >> 4) & 0xF); in look() local
266 if (dx > 1) { in look()
267 dx = -1; in look()
275 mEyePoint = new double[]{mLookPoint[0] + 2 * mScreenWidth * dx, in look()
278 double[] zv = new double[]{-dx, -dy, -dz}; in look()
279 double[] rv = new double[]{(dx == 0) ? 1 : 0, (dx == 0) ? 0 : 1, 0}; in look()
354 double dx = (cx - x) / ballRadius; in ballToVec() local
356 double scale = dx * dx + dy * dy; in ballToVec()
359 dx = dx / scale; in ballToVec()
363 double dz = Math.sqrt(Math.abs(1 - (dx * dx + dy * dy))); in ballToVec()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java233 /*package*/ static void native_rMoveTo(long nPath, float dx, float dy) { in native_rMoveTo() argument
239 pathDelegate.rMoveTo(dx, dy); in native_rMoveTo()
253 /*package*/ static void native_rLineTo(long nPath, float dx, float dy) { in native_rLineTo() argument
259 pathDelegate.rLineTo(dx, dy); in native_rLineTo()
406 /*package*/ static void native_addPath(long nPath, long src, float dx, float dy) { in native_addPath() argument
407 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy)); in native_addPath()
426 /*package*/ static void native_offset(long nPath, float dx, float dy) { in native_offset() argument
432 pathDelegate.offset(dx, dy); in native_offset()
436 /*package*/ static void native_setLastPoint(long nPath, float dx, float dy) { in native_setLastPoint() argument
442 pathDelegate.mLastX = dx; in native_setLastPoint()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dmotion_comp.cpp128 int dx, dy; in eLumaMotionComp() local
132 dx = x_pos & 3; in eLumaMotionComp()
138 if (dx == 0 && dy == 0) in eLumaMotionComp()
151 eHorzInterp1MC(ref, picpitch, pred, pred_pitch, blkwidth, blkheight, dx); in eLumaMotionComp()
153 else if (dx == 0) in eLumaMotionComp()
167 eHorzInterp2MC(&temp2[0][2], 21, pred, pred_pitch, blkwidth, blkheight, dx); in eLumaMotionComp()
169 else if (dx == 2) in eLumaMotionComp()
182 ref += (y_pos * picpitch) + x_pos + (dx / 2); in eLumaMotionComp()
269 int blkwidth, int blkheight, int dx) in eHorzInterp1MC() argument
284 if (dx&1) in eHorzInterp1MC()
[all …]

123456789