Home
last modified time | relevance | path

Searched refs:sourceCrop (Results 1 – 22 of 22) sorted by relevance

/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp148 sourceCrop(defaultSourceCrop), in Rectangle()
157 struct hwc_rect sourceCrop; member in Rectangle
321 layer->sourceCrop = it->sourceCrop; in main()
397 rect.sourceCrop.left = 0; in parseRect()
398 rect.sourceCrop.top = 0; in parseRect()
399 rect.sourceCrop.right = rect.sourceDim.width(); in parseRect()
400 rect.sourceCrop.bottom = rect.sourceDim.height(); in parseRect()
473 rect.sourceCrop = hwcTestParseHwcRect(in, error); in parseRect()
487 if (((uint32_t) rect.sourceCrop.left >= rect.sourceDim.width()) in parseRect()
488 || ((uint32_t) rect.sourceCrop.right > rect.sourceDim.width()) in parseRect()
[all …]
DhwcStress.cpp441 layer->sourceCrop.left = testRandMod(gBuf->getWidth()); in main()
442 layer->sourceCrop.top = testRandMod(gBuf->getHeight()); in main()
443 layer->sourceCrop.right = layer->sourceCrop.left in main()
444 + testRandMod(gBuf->getWidth() - layer->sourceCrop.left) + 1; in main()
445 layer->sourceCrop.bottom = layer->sourceCrop.top in main()
446 + testRandMod(gBuf->getHeight() - layer->sourceCrop.top) + 1; in main()
462 int sourceWidth = layer->sourceCrop.right in main()
463 - layer->sourceCrop.left; in main()
464 int sourceHeight = layer->sourceCrop.bottom in main()
465 - layer->sourceCrop.top; in main()
DhwcColorEquiv.cpp356 layer->sourceCrop.left = 0; in main()
357 layer->sourceCrop.top = 0; in main()
358 layer->sourceCrop.right = width; in main()
359 layer->sourceCrop.bottom = refHeight; in main()
370 layer->sourceCrop.left = 0; in main()
371 layer->sourceCrop.top = 0; in main()
372 layer->sourceCrop.right = width; in main()
373 layer->sourceCrop.bottom = equivHeight; in main()
DhwcCommit.cpp129 HwcTestDim sourceCrop; member
175 struct hwc_rect sourceCrop; member in Rectangle
254 struct sourceCrop { struct
508 == searchLimits.sourceCrop.width()) ? ">= " : "", in main()
513 == searchLimits.sourceCrop.height()) ? ">= " : "", in main()
521 >= searchLimits.sourceCrop.width()) in main()
523 searchLimits.sourceCrop.height())) ? ">= " : "", in main()
533 >= Rational(searchLimits.sourceCrop.width(), in main()
548 >= Rational(searchLimits.sourceCrop.height(), in main()
952 for (w = searchLimits.sourceCrop.width(); w >= dfDim.width(); w--) { in scMaxWidth()
[all …]
DhwcTestLib.cpp478 hwcTestRect2str(list->hwLayers[layer].sourceCrop).c_str()); in hwcTestDisplayList()
482 (float) (list->hwLayers[layer].sourceCrop.right in hwcTestDisplayList()
483 - list->hwLayers[layer].sourceCrop.left) in hwcTestDisplayList()
486 (float) (list->hwLayers[layer].sourceCrop.bottom in hwcTestDisplayList()
487 - list->hwLayers[layer].sourceCrop.top) in hwcTestDisplayList()
/frameworks/native/include/gui/
DSurfaceComposerClient.h197 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
215 Rect sourceCrop, bool useIdentityTransform);
217 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
220 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
224 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
DISurfaceComposer.h145 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp79 size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, in setViewportAndProjection() argument
82 size_t l = sourceCrop.left; in setViewportAndProjection()
83 size_t r = sourceCrop.right; in setViewportAndProjection()
86 size_t t = hwh - sourceCrop.top; in setViewportAndProjection()
87 size_t b = hwh - sourceCrop.bottom; in setViewportAndProjection()
DGLES11RenderEngine.cpp72 size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, in setViewportAndProjection() argument
78 size_t l = sourceCrop.left; in setViewportAndProjection()
79 size_t r = sourceCrop.right; in setViewportAndProjection()
82 size_t t = hwh - sourceCrop.top; in setViewportAndProjection()
83 size_t b = hwh - sourceCrop.bottom; in setViewportAndProjection()
DGLES11RenderEngine.h54 Rect sourceCrop, size_t hwh, bool yswap,
DGLES20RenderEngine.h69 Rect sourceCrop, size_t hwh, bool yswap,
DRenderEngine.h95 Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;
/frameworks/base/core/java/android/view/
DSurfaceControl.java42 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, in nativeScreenshot() argument
45 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, in nativeScreenshot() argument
779 public static Bitmap screenshot(Rect sourceCrop, int width, int height, in screenshot() argument
785 return nativeScreenshot(displayToken, sourceCrop, width, height, in screenshot()
809 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, in screenshot() argument
818 nativeScreenshot(display, consumer, sourceCrop, width, height, in screenshot()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp790 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in capture() argument
794 return s->captureScreen(display, producer, sourceCrop, in capture()
818 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in update() argument
831 status_t err = s->captureScreen(display, mProducer, sourceCrop, in update()
845 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in update() argument
849 return ScreenshotClient::update(display, sourceCrop, reqWidth, reqHeight, in update()
853 status_t ScreenshotClient::update(const sp<IBinder>& display, Rect sourceCrop, in update() argument
855 return ScreenshotClient::update(display, sourceCrop, 0, 0, 0, -1U, in update()
859 status_t ScreenshotClient::update(const sp<IBinder>& display, Rect sourceCrop, in update() argument
861 return ScreenshotClient::update(display, sourceCrop, reqWidth, reqHeight, in update()
DISurfaceComposer.cpp104 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in captureScreen() argument
113 data.write(sourceCrop); in captureScreen()
379 Rect sourceCrop(Rect::EMPTY_RECT); in onTransact() local
380 data.read(sourceCrop); in onTransact()
389 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, in onTransact()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger_hwc1.cpp3228 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in captureScreen() argument
3268 Rect sourceCrop; in captureScreen() member in android::SurfaceFlinger::captureScreen::MessageCaptureScreen
3279 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in captureScreen() argument
3285 sourceCrop(sourceCrop), reqWidth(reqWidth), reqHeight(reqHeight), in captureScreen()
3299 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, in captureScreen()
3315 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, in captureScreen()
3328 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in renderScreenImplLocked() argument
3342 if (sourceCrop.width() == 0 || sourceCrop.height() == 0 || in renderScreenImplLocked()
3343 !sourceCrop.isValid()) { in renderScreenImplLocked()
3344 sourceCrop.setLeftTop(Point(0, 0)); in renderScreenImplLocked()
[all …]
DSurfaceFlinger.cpp3214 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in captureScreen() argument
3254 Rect sourceCrop; in captureScreen() member in android::SurfaceFlinger::captureScreen::MessageCaptureScreen
3265 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in captureScreen() argument
3271 sourceCrop(sourceCrop), reqWidth(reqWidth), reqHeight(reqHeight), in captureScreen()
3285 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, in captureScreen()
3301 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, in captureScreen()
3314 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, in renderScreenImplLocked() argument
3328 if (sourceCrop.width() == 0 || sourceCrop.height() == 0 || in renderScreenImplLocked()
3329 !sourceCrop.isValid()) { in renderScreenImplLocked()
3330 sourceCrop.setLeftTop(Point(0, 0)); in renderScreenImplLocked()
[all …]
DSurfaceFlinger.h213 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
330 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
337 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
DDisplayDevice.cpp364 Rect sourceCrop(0, 0, w, h); local
365 mFlinger->getRenderEngine().setViewportAndProjection(w, h, sourceCrop, h,
DLayer.cpp597 FloatRect sourceCrop = computeCrop(displayDevice); local
598 error = hwcLayer->setSourceCrop(sourceCrop);
601 sourceCrop.left, sourceCrop.top, sourceCrop.right,
602 sourceCrop.bottom, to_string(error).c_str(),
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer_hwc1.cpp613 disp.framebufferTarget->sourceCrop = r; in createWorkList()
1038 hwc_rect_t& r = getLayer()->sourceCrop; in setCrop()
1246 … l.sourceCrop.left, l.sourceCrop.top, l.sourceCrop.right, l.sourceCrop.bottom, in dump()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp139 Rect sourceCrop(left, top, right, bottom); in nativeScreenshotBitmap() local
148 res = screenshot->update(displayToken, sourceCrop, width, height, in nativeScreenshotBitmap()
208 Rect sourceCrop(left, top, right, bottom); in nativeScreenshot() local
215 consumer->getIGraphicBufferProducer(), sourceCrop, in nativeScreenshot()