Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/
DFrameCaptureLayer.cpp78 const Rect &sourceCrop, uint32_t textureName,
84 const Rect &sourceCrop, uint32_t textureName, in getLayerSettings() argument
86 layerSettings->geometry.boundaries = sourceCrop.toFloatRect(); in getLayerSettings()
160 const Rect &sourceCrop, sp<GraphicBuffer> *outBuffer) { in capture() argument
162 sourceCrop.left, sourceCrop.top, sourceCrop.right, sourceCrop.bottom); in capture()
175 sourceCrop.getWidth(), sourceCrop.getHeight(), in capture()
180 new BufferLayer(bi), sourceCrop, buffer); in capture()
DFrameCaptureProcessor.cpp110 const sp<Layer> &layer, const Rect &sourceCrop, const sp<GraphicBuffer> &buffer) { in capture() argument
113 msg->setRect("crop", sourceCrop.left, sourceCrop.top, sourceCrop.right, sourceCrop.bottom); in capture()
137 const Rect &sourceCrop, const sp<GraphicBuffer> &buffer) { in onCapture() argument
141 clientCompositionDisplay.physicalDisplay = sourceCrop; in onCapture()
142 clientCompositionDisplay.clip = sourceCrop; in onCapture()
151 layer->getLayerSettings(sourceCrop, mTextureName, &layerSettings); in onCapture()
/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/av/media/libstagefright/include/media/stagefright/
DFrameCaptureProcessor.h48 const Rect &sourceCrop, uint32_t textureName,
56 const Rect &sourceCrop, const sp<GraphicBuffer> &outBuffer);
91 const Rect &sourceCrop, const sp<GraphicBuffer> &outBuffer);
/frameworks/native/libs/gui/include/gui/
DISurfaceComposer.h271 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
297 const Rect& sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
302 ui::PixelFormat::RGBA_8888, sourceCrop, reqWidth, reqHeight,
323 ui::Dataspace reqDataspace, ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
332 const Rect& sourceCrop, float frameScale = 1.0,
335 ui::PixelFormat::RGBA_8888, sourceCrop, {}, frameScale, childrenOnly);
DSurfaceComposerClient.h598 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
603 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
609 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
613 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp289 state.sourceCrop = calculateOutputSourceCrop(); in updateCompositionState()
363 if (auto error = hwcLayer->setSourceCrop(outputDependentState.sourceCrop); in writeOutputDependentGeometryStateToHWC()
367 getLayerFE().getDebugName(), outputDependentState.sourceCrop.left, in writeOutputDependentGeometryStateToHWC()
368 outputDependentState.sourceCrop.top, outputDependentState.sourceCrop.right, in writeOutputDependentGeometryStateToHWC()
369 outputDependentState.sourceCrop.bottom, to_string(error).c_str(), in writeOutputDependentGeometryStateToHWC()
656 const auto& sourceCrop = state.sourceCrop; in needsFiltering() local
657 return sourceCrop.getHeight() != displayFrame.getHeight() || in needsFiltering()
658 sourceCrop.getWidth() != displayFrame.getWidth(); in needsFiltering()
DOutputLayerCompositionState.cpp67 dumpVal(out, "sourceCrop", sourceCrop); in dump()
/frameworks/base/core/java/android/view/
DSurfaceControl.java95 Rect sourceCrop, int width, int height, boolean useIdentityTransform, int rotation, in nativeScreenshot() argument
98 long layerObject, Rect sourceCrop, float frameScale, long[] excludeLayerObjects, in nativeCaptureLayers() argument
128 Rect sourceCrop, Rect dest, long orientation); in nativeSetGeometry() argument
1977 public static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, in screenshot() argument
1983 final ScreenshotGraphicBuffer buffer = screenshotToBuffer(display, sourceCrop, width, in screenshot()
1998 public static Bitmap screenshot(Rect sourceCrop, int width, int height, int rotation) { in screenshot() argument
1999 return screenshot(sourceCrop, width, height, false, rotation); in screenshot()
2016 public static Bitmap screenshot(Rect sourceCrop, int width, int height, in screenshot() argument
2029 SurfaceControl.rotateCropForSF(sourceCrop, rotation); in screenshot()
2030 final ScreenshotGraphicBuffer buffer = screenshotToBuffer(displayToken, sourceCrop, width, in screenshot()
[all …]
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h249 DisplayRenderArea(sp<const DisplayDevice> display, const Rect& sourceCrop, uint32_t reqWidth,
255 mSourceCrop(sourceCrop),
268 const Rect& sourceCrop = getSourceCrop(); in needsFiltering() local
269 int width = sourceCrop.width(); in needsFiltering()
270 int height = sourceCrop.height(); in needsFiltering()
DBufferLayer.cpp615 const auto sourceCrop = compositionState.sourceCrop; in needsFiltering() local
616 return sourceCrop.getHeight() != displayFrame.getHeight() || in needsFiltering()
617 sourceCrop.getWidth() != displayFrame.getWidth(); in needsFiltering()
635 const FloatRect sourceCrop = compositionState.sourceCrop; in needsFilteringForScreenshots() local
644 return sourceCrop.getHeight() != frameHeight || sourceCrop.getWidth() != frameWidth; in needsFilteringForScreenshots()
DSurfaceFlinger.cpp5418 const Rect& sourceCrop, uint32_t reqWidth, in captureScreen() argument
5446 DisplayRenderArea renderArea(display, sourceCrop, reqWidth, reqHeight, reqDataspace, in captureScreen()
5558 const Dataspace reqDataspace, const ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, in captureLayers() argument
5609 const Rect sourceCrop = getSourceCrop(); in captureLayers() local
5611 mNeedsFiltering = sourceCrop.width() != getReqWidth() || in captureLayers()
5612 sourceCrop.height() != getReqHeight(); in captureLayers()
5627 ReparentForDrawing reparent(mLayer, screenshotParentLayer, sourceCrop); in captureLayers()
5646 Rect crop(sourceCrop); in captureLayers()
5666 if (sourceCrop.width() <= 0) { in captureLayers()
5671 if (sourceCrop.height() <= 0) { in captureLayers()
[all …]
DSurfaceFlinger.h433 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop,
441 const Rect& sourceCrop,
/frameworks/av/media/libstagefright/include/
DFrameCaptureLayer.h53 const Rect &sourceCrop, sp<GraphicBuffer> *outBuffer);
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h75 FloatRect sourceCrop; member
/frameworks/native/services/surfaceflinger/tests/
DLayerUpdate_test.cpp1457 Rect sourceCrop(0, 0, 10, 10); in TEST_F() local
1458 ASSERT_EQ(NO_ERROR, sf->captureLayers(child->getHandle(), &outBuffer, sourceCrop)); in TEST_F()
1471 Rect sourceCrop = Rect(); in TEST_F() local
1472 ASSERT_EQ(NO_ERROR, sf->captureLayers(child->getHandle(), &outBuffer, sourceCrop)); in TEST_F()
1484 Rect sourceCrop = Rect(); in TEST_F() local
1486 ASSERT_EQ(BAD_VALUE, sf->captureLayers(child->getHandle(), &outBuffer, sourceCrop)); in TEST_F()
1496 Rect sourceCrop = Rect(); in TEST_F() local
1497 ASSERT_EQ(BAD_VALUE, sf->captureLayers(child->getHandle(), &outBuffer, sourceCrop)); in TEST_F()
1501 ASSERT_EQ(NO_ERROR, sf->captureLayers(child->getHandle(), &outBuffer, sourceCrop)); in TEST_F()
/frameworks/native/libs/gui/
DISurfaceComposer.cpp116 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, in captureScreen() argument
124 data.write(sourceCrop); in captureScreen()
173 const Rect& sourceCrop, in captureLayers() argument
181 data.write(sourceCrop); in captureLayers()
1304 Rect sourceCrop(Rect::EMPTY_RECT); in onTransact() local
1305 data.read(sourceCrop); in onTransact()
1314 reqPixelFormat, sourceCrop, reqWidth, reqHeight, in onTransact()
1344 Rect sourceCrop(Rect::EMPTY_RECT); in onTransact() local
1345 data.read(sourceCrop); in onTransact()
1362 sourceCrop, excludeHandles, frameScale, childrenOnly); in onTransact()
DSurfaceComposerClient.cpp1911 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, in capture() argument
1918 reqPixelFormat, sourceCrop, reqWidth, reqHeight, in capture()
1927 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, in capture() argument
1931 return capture(display, reqDataSpace, reqPixelFormat, sourceCrop, reqWidth, reqHeight, in capture()
1943 ui::PixelFormat reqPixelFormat, const Rect& sourceCrop, in captureLayers() argument
1948 sourceCrop, {}, frameScale, false /* childrenOnly */); in captureLayers()
1954 const Rect& sourceCrop, in captureChildLayers() argument
1960 s->captureLayers(layerHandle, outBuffer, reqDataSpace, reqPixelFormat, sourceCrop, in captureChildLayers()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DStubTransaction.java101 public SurfaceControl.Transaction setGeometry(SurfaceControl sc, Rect sourceCrop, in setGeometry() argument
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp529 EXPECT_EQ(kSourceCrop, state.sourceCrop); in validateComputedGeometryState()
706 outputLayerState.sourceCrop = kSourceCrop; in OutputLayerWriteStateToHWCTest()
1159 mOutputLayer.editState().sourceCrop = FloatRect{0.f, 0.f, 100.f, 100.f}; in TEST_F()
1166 mOutputLayer.editState().sourceCrop = FloatRect{0.f, 0.f, 100.1f, 100.1f}; in TEST_F()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp293 Rect sourceCrop = rectFromObj(env, sourceCropObj); in nativeScreenshot() local
298 sourceCrop, width, height, in nativeScreenshot()
326 Rect sourceCrop; in nativeCaptureLayers() local
328 sourceCrop = rectFromObj(env, sourceCropObj); in nativeCaptureLayers()
357 sourceCrop, excludeHandles, frameScale, in nativeCaptureLayers()

12