Home
last modified time | relevance | path

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

1234567

/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()
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_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 …]
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.h87 Region& translateSelf(int dx, int dy);
88 Region& orSelf(const Region& rhs, int dx, int dy);
89 Region& xorSelf(const Region& rhs, int dx, int dy);
90 Region& andSelf(const Region& rhs, int dx, int dy);
91 Region& subtractSelf(const Region& rhs, int dx, int dy);
94 const Region translate(int dx, int dy) const;
95 const Region merge(const Region& rhs, int dx, int dy) const;
96 const Region mergeExclusive(const Region& rhs, int dx, int dy) const;
97 const Region intersect(const Region& rhs, int dx, int dy) const;
98 const Region subtract(const Region& rhs, int dx, int dy) const;
[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/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/support/v4/java/android/support/v4/widget/
DViewDragHelper.java170 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} in onViewPositionChanged() argument
303 public int clampViewPositionHorizontal(View child, int left, int dx) { in clampViewPositionHorizontal() argument
586 final int dx = finalLeft - startLeft; in forceSettleCapturedViewAt() local
589 if (dx == 0 && dy == 0) { in forceSettleCapturedViewAt()
596 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); in forceSettleCapturedViewAt()
597 mScroller.startScroll(startLeft, startTop, dx, dy, duration); in forceSettleCapturedViewAt()
603 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { in computeSettleDuration() argument
606 final int absDx = Math.abs(dx); in computeSettleDuration()
618 int xduration = computeAxisDuration(dx, xvel, mCallback.getViewHorizontalDragRange(child)); in computeSettleDuration()
726 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
95 public void startScroll(Object scroller, int startX, int startY, int dx, int dy) { in startScroll() argument
96 ((Scroller) scroller).startScroll(startX, startY, dx, dy); in startScroll()
100 public void startScroll(Object scroller, int startX, int startY, int dx, int dy, in startScroll() argument
102 ((Scroller) scroller).startScroll(startX, startY, dx, dy, duration); in startScroll()
182 public void startScroll(Object scroller, int startX, int startY, int dx, int dy) { in startScroll() argument
183 ScrollerCompatGingerbread.startScroll(scroller, startX, startY, dx, dy); in startScroll()
187 public void startScroll(Object scroller, int startX, int startY, int dx, int dy, in startScroll() argument
189 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
126 && ((mTargetVector.x * dx < 0 || mTargetVector.y * dy < 0))) { in onSeekTargetStep()
130 mInterimTargetDx = clampApplyScroll(mInterimTargetDx, dx); in onSeekTargetStep()
167 protected int calculateTimeForDeceleration(int dx) { in calculateTimeForDeceleration() argument
173 return (int) Math.ceil(calculateTimeForScrolling(dx) / .3356); in calculateTimeForDeceleration()
183 protected int calculateTimeForScrolling(int dx) { in calculateTimeForScrolling() argument
187 return (int) Math.ceil(Math.abs(dx) * MILLISECONDS_PER_PX); in calculateTimeForScrolling()
/frameworks/native/libs/ui/
DRegion.cpp365 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument
366 return operationSelf(rhs, dx, dy, op_or); in orSelf()
368 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { in xorSelf() argument
369 return operationSelf(rhs, dx, dy, op_xor); in xorSelf()
371 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument
372 return operationSelf(rhs, dx, dy, op_and); in andSelf()
374 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument
375 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf()
377 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) { in operationSelf() argument
379 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPath.java328 public void rMoveTo(float dx, float dy) { in rMoveTo() argument
329 native_rMoveTo(mNativePath, dx, dy); in rMoveTo()
355 public void rLineTo(float dx, float dy) { in rLineTo() argument
357 native_rLineTo(mNativePath, dx, dy); in rLineTo()
655 public void addPath(Path src, float dx, float dy) { in addPath() argument
657 native_addPath(mNativePath, src.mNativePath, dx, dy); in addPath()
688 public void offset(float dx, float dy, Path dst) { in offset() argument
694 native_offset(mNativePath, dx, dy, dstNative); in offset()
703 public void offset(float dx, float dy) { in offset() argument
705 native_offset(mNativePath, dx, dy); in offset()
[all …]
DLayerRasterizer.java30 public void addLayer(Paint paint, float dx, float dy) { in addLayer() argument
31 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy); in addLayer()
39 …private static native void nativeAddLayer(long native_layer, long native_paint, float dx, float dy… in nativeAddLayer() argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java228 /*package*/ static void native_rMoveTo(long nPath, float dx, float dy) { in native_rMoveTo() argument
234 pathDelegate.rMoveTo(dx, dy); in native_rMoveTo()
248 /*package*/ static void native_rLineTo(long nPath, float dx, float dy) { in native_rLineTo() argument
254 pathDelegate.rLineTo(dx, dy); in native_rLineTo()
404 /*package*/ static void native_addPath(long nPath, long src, float dx, float dy) { in native_addPath() argument
405 addPath(nPath, src, AffineTransform.getTranslateInstance(dx, dy)); in native_addPath()
424 /*package*/ static void native_offset(long nPath, float dx, float dy, long dst_path) { in native_offset() argument
433 pathDelegate.offset(dx, dy, dstDelegate); in native_offset()
437 /*package*/ static void native_offset(long nPath, float dx, float dy) { in native_offset() argument
438 native_offset(nPath, dx, dy, 0); in native_offset()
[all …]
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java120 float dx = endX - startX; in setPatternPath() local
122 float distance = distance(dx, dy); in setPatternPath()
125 double angle = Math.atan2(dy, dx); in setPatternPath()
133 float dx = endX - startX; in getPath() local
135 float length = distance(dx, dy); in getPath()
136 double angle = Math.atan2(dy, dx); in getPath()
/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 …]

1234567