Home
last modified time | relevance | path

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

12

/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
256 struct sourceCrop { struct
510 == searchLimits.sourceCrop.width()) ? ">= " : "", in main()
515 == searchLimits.sourceCrop.height()) ? ">= " : "", in main()
523 >= searchLimits.sourceCrop.width()) in main()
525 searchLimits.sourceCrop.height())) ? ">= " : "", in main()
535 >= Rational(searchLimits.sourceCrop.width(), in main()
550 >= Rational(searchLimits.sourceCrop.height(), in main()
954 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/libs/gui/include/gui/
DISurfaceComposer.h219 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
245 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
249 ui::PixelFormat::RGBA_8888, sourceCrop, reqWidth, reqHeight,
271 const Rect& sourceCrop,
280 const Rect& sourceCrop, float frameScale = 1.0,
283 ui::PixelFormat::RGBA_8888, sourceCrop, {}, frameScale, childrenOnly);
DSurfaceComposerClient.h519 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
524 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
530 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
534 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
/frameworks/base/core/java/android/view/
DSurfaceControl.java90 Rect sourceCrop, int width, int height, boolean useIdentityTransform, int rotation, in nativeScreenshot() argument
93 IBinder layerHandleToken, Rect sourceCrop, float frameScale, IBinder[] excludeLayers); in nativeCaptureLayers() argument
122 Rect sourceCrop, Rect dest, long orientation); in nativeSetGeometry() argument
1845 public static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, in screenshot() argument
1851 final ScreenshotGraphicBuffer buffer = screenshotToBuffer(display, sourceCrop, width, in screenshot()
1866 public static Bitmap screenshot(Rect sourceCrop, int width, int height, int rotation) { in screenshot() argument
1867 return screenshot(sourceCrop, width, height, false, rotation); in screenshot()
1884 public static Bitmap screenshot(Rect sourceCrop, int width, int height, in screenshot() argument
1897 SurfaceControl.rotateCropForSF(sourceCrop, rotation); in screenshot()
1898 final ScreenshotGraphicBuffer buffer = screenshotToBuffer(displayToken, sourceCrop, width, in screenshot()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp295 mState.sourceCrop = calculateOutputSourceCrop(); in updateCompositionState()
330 if (auto error = hwcLayer->setSourceCrop(mState.sourceCrop); error != HWC2::Error::None) { in writeStateToHWC()
333 mLayerFE->getDebugName(), mState.sourceCrop.left, mState.sourceCrop.top, in writeStateToHWC()
334 mState.sourceCrop.right, mState.sourceCrop.bottom, to_string(error).c_str(), in writeStateToHWC()
DOutputLayerCompositionState.cpp48 dumpVal(out, "sourceCrop", sourceCrop); in dump()
DRenderSurface.cpp220 Rect sourceCrop = Rect(mSize); in setViewportAndProjection() local
221 renderEngine.setViewportAndProjection(mSize.width, mSize.height, sourceCrop, in setViewportAndProjection()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h256 DisplayRenderArea(const sp<const DisplayDevice> device, Rect sourceCrop, uint32_t reqWidth,
262 mSourceCrop(sourceCrop),
281 const Rect sourceCrop = getSourceCrop(); in needsFiltering() local
282 int width = sourceCrop.width(); in needsFiltering()
283 int height = sourceCrop.height(); in needsFiltering()
DBufferLayer.cpp663 const auto sourceCrop = compositionState.sourceCrop; in needsFiltering() local
664 return mNeedsFiltering || sourceCrop.getHeight() != displayFrame.getHeight() || in needsFiltering()
665 sourceCrop.getWidth() != displayFrame.getWidth(); in needsFiltering()
DSurfaceFlinger.cpp5655 const ui::PixelFormat reqPixelFormat, Rect sourceCrop, in captureScreen() argument
5681 DisplayRenderArea renderArea(display, sourceCrop, reqWidth, reqHeight, reqDataspace, in captureScreen()
5757 const Dataspace reqDataspace, const ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, in captureLayers() argument
5810 const Rect sourceCrop = getSourceCrop(); in captureLayers() local
5812 mNeedsFiltering = sourceCrop.width() != getReqWidth() || in captureLayers()
5813 sourceCrop.height() != getReqHeight(); in captureLayers()
5825 ReparentForDrawing reparent(mLayer, screenshotParentLayer, sourceCrop); in captureLayers()
5847 Rect crop(sourceCrop); in captureLayers()
5866 if (sourceCrop.width() <= 0) { in captureLayers()
5871 if (sourceCrop.height() <= 0) { in captureLayers()
[all …]
DSurfaceFlinger.h420 const ui::PixelFormat reqPixelFormat, Rect sourceCrop,
428 const Rect& sourceCrop,
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestProperties.cpp58 void Hwc2TestBufferArea::setDependent(Hwc2TestSourceCrop* sourceCrop) in setDependent() argument
60 mSourceCrop = sourceCrop; in setDependent()
479 const hwc_frect_t& sourceCrop = get(); in dump() local
480 dmp << "\tsource crop: left " << sourceCrop.left << ", top " in dump()
481 << sourceCrop.top << ", right " << sourceCrop.right << ", bottom " in dump()
482 << sourceCrop.bottom << "\n"; in dump()
DHwc2TestProperties.h146 void setDependent(Hwc2TestSourceCrop* sourceCrop);
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h55 FloatRect sourceCrop; member
/frameworks/native/libs/gui/
DISurfaceComposer.cpp113 const ui::PixelFormat reqPixelFormat, Rect sourceCrop, in captureScreen() argument
121 data.write(sourceCrop); in captureScreen()
170 const Rect& sourceCrop, in captureLayers() argument
178 data.write(sourceCrop); in captureLayers()
1067 Rect sourceCrop(Rect::EMPTY_RECT); in onTransact() local
1068 data.read(sourceCrop); in onTransact()
1077 reqPixelFormat, sourceCrop, reqWidth, reqHeight, in onTransact()
1108 Rect sourceCrop(Rect::EMPTY_RECT); in onTransact() local
1109 data.read(sourceCrop); in onTransact()
1123 sourceCrop, excludeHandles, frameScale, childrenOnly); in onTransact()
DSurfaceComposerClient.cpp1559 const ui::PixelFormat reqPixelFormat, Rect sourceCrop, in capture() argument
1567 reqPixelFormat, sourceCrop, reqWidth, reqHeight, useIdentityTransform, in capture()
1577 const ui::PixelFormat reqPixelFormat, Rect sourceCrop, in capture() argument
1581 return capture(display, reqDataSpace, reqPixelFormat, sourceCrop, reqWidth, reqHeight, in capture()
1594 const ui::PixelFormat reqPixelFormat, Rect sourceCrop, in captureLayers() argument
1599 sourceCrop, {}, frameScale, false /* childrenOnly */); in captureLayers()
1605 const ui::PixelFormat reqPixelFormat, Rect sourceCrop, in captureChildLayers() argument
1611 s->captureLayers(layerHandle, outBuffer, reqDataSpace, reqPixelFormat, sourceCrop, in captureChildLayers()
/frameworks/native/libs/renderengine/include/renderengine/
DRenderEngine.h141 virtual void setViewportAndProjection(size_t vpw, size_t vph, Rect sourceCrop,
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DStubTransaction.java100 public SurfaceControl.Transaction setGeometry(SurfaceControl sc, Rect sourceCrop, in setGeometry() argument
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.h115 void setViewportAndProjection(size_t vpw, size_t vph, Rect sourceCrop,
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp245 Rect sourceCrop = rectFromObj(env, sourceCropObj); in nativeScreenshot() local
250 sourceCrop, width, height, in nativeScreenshot()
277 Rect sourceCrop; in nativeCaptureLayers() local
279 sourceCrop = rectFromObj(env, sourceCropObj); in nativeCaptureLayers()
306 ui::PixelFormat::RGBA_8888, sourceCrop, in nativeCaptureLayers()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp268 outputLayerState.sourceCrop = kSourceCrop; in OutputLayerWriteStateToHWCTest()

12