Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/yuv/
DYUVCanvas.cpp52 const Rect& srcRect, in CopyImageRect() argument
58 srcRect, in CopyImageRect()
64 int32_t srcStartX = srcRect.left; in CopyImageRect()
65 int32_t srcStartY = srcRect.top; in CopyImageRect()
66 for (int32_t offsetY = 0; offsetY < srcRect.height(); ++offsetY) { in CopyImageRect()
67 for (int32_t offsetX = 0; offsetX < srcRect.width(); ++offsetX) { in CopyImageRect()
DYUVImage.cpp196 const Rect& srcRect, in fastCopyRectangle420Planar() argument
202 int32_t srcStartX = srcRect.left; in fastCopyRectangle420Planar()
203 int32_t srcStartY = srcRect.top; in fastCopyRectangle420Planar()
204 int32_t width = srcRect.width(); in fastCopyRectangle420Planar()
205 int32_t height = srcRect.height(); in fastCopyRectangle420Planar()
278 const Rect& srcRect, in fastCopyRectangle420SemiPlanar() argument
284 int32_t srcStartX = srcRect.left; in fastCopyRectangle420SemiPlanar()
285 int32_t srcStartY = srcRect.top; in fastCopyRectangle420SemiPlanar()
286 int32_t width = srcRect.width(); in fastCopyRectangle420SemiPlanar()
287 int32_t height = srcRect.height(); in fastCopyRectangle420SemiPlanar()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameImage2D.java145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { in gpuImageCopy() argument
149 idShader.setSourceRect(srcRect); in gpuImageCopy()
158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { in cpuImageCopy() argument
160 Rect srcIRect = new Rect((int) srcRect.left * srcImage.getWidth(), in cpuImageCopy()
161 (int) srcRect.top * srcImage.getHeight(), in cpuImageCopy()
162 (int) srcRect.right * srcImage.getWidth(), in cpuImageCopy()
163 (int) srcRect.bottom * srcImage.getHeight()); in cpuImageCopy()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java303 final Rect srcRect = new Rect(); // Not orientation corrected. True coordinates. in decode() local
329 1f, srcRect); in decode()
331 System.out.println("rect for this decode is: " + srcRect in decode()
340 srcRect); in decode()
342 bitmap = brd.decodeRegion(srcRect, mOpts); in decode()
407 if (!srcRect.isEmpty()) { in decode()
408 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize); in decode()
410 (srcRect.bottom - srcRect.top) / mOpts.inSampleSize); in decode()
/frameworks/base/core/java/android/view/
DFocusFinder.java368 boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
371 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate()
372 && srcRect.left > destRect.left; in isCandidate()
374 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate()
375 && srcRect.right < destRect.right; in isCandidate()
377 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
378 && srcRect.top > destRect.top; in isCandidate()
380 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
381 && srcRect.bottom < destRect.bottom; in isCandidate()
DFocusFinderHelper.java44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate()
/frameworks/av/include/media/stagefright/
DYUVImage.h91 const Rect& srcRect,
97 const Rect& srcRect,
104 const Rect& srcRect,
DYUVCanvas.h54 const Rect& srcRect,
/frameworks/base/core/tests/coretests/src/android/view/
DFocusFinderTest.java497 private void assertBetterCandidate(int direction, Rect srcRect, in assertBetterCandidate() argument
505 expectedBetter, expectedWorse, srcRect, directionStr); in assertBetterCandidate()
508 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate()
515 expectedWorse, expectedBetter, srcRect, directionStr); in assertBetterCandidate()
518 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate()
532 private void assertBeamBeats(int direction, Rect srcRect, in assertBeamBeats() argument
538 rect1, rect2, srcRect, directionStr); in assertBeamBeats()
539 assertTrue(assertMsg, mFocusFinder.beamBeats(direction, srcRect, rect1, rect2)); in assertBeamBeats()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBitmapHelper.java46 final RectF srcRect = new RectF(0, 0, inWidth, inHeight); in createCircularClip() local
49 m.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.CENTER); in createCircularClip()
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java196 Rect srcRect = getVisibleBounds(); in dragTo() local
198 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), in dragTo()
216 Rect srcRect = getVisibleBounds(); in dragTo() local
217 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY, in dragTo()
/frameworks/base/core/jni/android/graphics/
DSkiaCanvas.cpp571 SkRect srcRect = SkRect::MakeLTRB(srcLeft, srcTop, srcRight, srcBottom); in drawBitmap() local
573 mCanvas->drawBitmapRectToRect(bitmap, &srcRect, dstRect, paint); in drawBitmap()