Searched defs:sourceCrop (Results 1 - 14 of 14) sorted by relevance

/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp45 * sourceCrop: [left, top, right, bottom]
55 * sourceDim: [50, 60] sourceCrop: [5, 8, 12, 15]
148 sourceCrop(defaultSourceCrop),
157 struct hwc_rect sourceCrop; member in class:Rectangle
321 layer->sourceCrop = it->sourceCrop;
390 // Set default sourceDim and sourceCrop based on size of display frame.
397 rect.sourceCrop.left = 0;
398 rect.sourceCrop.top = 0;
399 rect.sourceCrop
[all...]
H A DhwcCommit.cpp129 HwcTestDim sourceCrop; member in struct:searchLimits
175 struct hwc_rect sourceCrop; member in class:Rectangle
254 struct sourceCrop { struct in struct:meas
508 == searchLimits.sourceCrop.width()) ? ">= " : "",
513 == searchLimits.sourceCrop.height()) ? ">= " : "",
521 >= searchLimits.sourceCrop.width())
523 searchLimits.sourceCrop.height())) ? ">= " : "",
533 >= Rational(searchLimits.sourceCrop.width(),
548 >= Rational(searchLimits.sourceCrop.height(),
952 for (w = searchLimits.sourceCrop
[all...]
/frameworks/native/libs/gui/
H A DISurfaceComposer.cpp105 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
114 data.write(sourceCrop);
545 Rect sourceCrop(Rect::EMPTY_RECT);
546 data.read(sourceCrop);
555 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ,
103 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument
H A DSurfaceComposerClient.cpp946 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
950 return s->captureScreen(display, producer, sourceCrop,
955 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
969 status_t ret = s->captureScreen(display, producer, sourceCrop, reqWidth, reqHeight,
1001 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
1014 status_t err = s->captureScreen(display, mProducer, sourceCrop,
1028 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
1032 return ScreenshotClient::update(display, sourceCrop, reqWidth, reqHeight,
1036 status_t ScreenshotClient::update(const sp<IBinder>& display, Rect sourceCrop, argument
1038 return ScreenshotClient::update(display, sourceCrop,
943 capture( const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform) argument
954 captureToBuffer(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, uint32_t rotation, sp<GraphicBuffer>* outBuffer) argument
1000 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, uint32_t rotation) argument
1027 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform) argument
1043 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, bool useIdentityTransform) argument
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES20RenderEngine.cpp166 size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap,
169 size_t l = sourceCrop.left;
170 size_t r = sourceCrop.right;
173 size_t t = hwh - sourceCrop.top;
174 size_t b = hwh - sourceCrop.bottom;
165 setViewportAndProjection( size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) argument
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestProperties.cpp58 void Hwc2TestBufferArea::setDependent(Hwc2TestSourceCrop* sourceCrop) argument
60 mSourceCrop = sourceCrop;
479 const hwc_frect_t& sourceCrop = get(); local
480 dmp << "\tsource crop: left " << sourceCrop.left << ", top "
481 << sourceCrop.top << ", right " << sourceCrop.right << ", bottom "
482 << sourceCrop.bottom << "\n";
H A DHwc2Test.cpp490 const hwc_frect_t& sourceCrop, hwc2_error_t* outErr = nullptr)
497 sourceCrop));
489 setLayerSourceCrop(hwc2_display_t display, hwc2_layer_t layer, const hwc_frect_t& sourceCrop, hwc2_error_t* outErr = nullptr) argument
/frameworks/native/services/surfaceflinger/
H A DLayer.h765 FloatRect sourceCrop; member in struct:android::Layer::HWCInfo
H A DLayer.cpp748 FloatRect sourceCrop = computeCrop(displayDevice); local
749 error = hwcLayer->setSourceCrop(sourceCrop);
752 "%s (%d)", mName.string(), sourceCrop.left, sourceCrop.top,
753 sourceCrop.right, sourceCrop.bottom, to_string(error).c_str(),
756 hwcInfo.sourceCrop = sourceCrop;
2527 const FloatRect& crop = hwcInfo.sourceCrop;
H A DSurfaceFlinger.cpp4230 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
4324 result = captureScreenImplLocked(device, buffer, sourceCrop, reqWidth, reqHeight,
4362 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
4375 // if a default or invalid sourceCrop is passed in, set reasonable values
4376 if (sourceCrop.width() == 0 || sourceCrop.height() == 0 ||
4377 !sourceCrop.isValid()) {
4378 sourceCrop.setLeftTop(Point(0, 0));
4379 sourceCrop.setRightBottom(Point(hw_w, hw_h));
4382 // ensure that sourceCrop i
4228 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument
4360 renderScreenImplLocked( const sp<const DisplayDevice>& hw, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool yswap, bool useIdentityTransform, Transform::orientation_flags rotation) argument
4455 captureScreenImplLocked(const sp<const DisplayDevice>& hw, ANativeWindowBuffer* buffer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, Transform::orientation_flags rotation, bool isLocalScreenshot, int* outSyncFd) argument
[all...]
H A DSurfaceFlinger_hwc1.cpp3703 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3743 Rect sourceCrop; member in class:MessageCaptureScreen
3754 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3760 sourceCrop(sourceCrop), reqWidth(reqWidth), reqHeight(reqHeight),
3774 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ,
3790 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ,
3803 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3816 // if a default or invalid sourceCrop is passed in, set reasonable values
3817 if (sourceCrop
3701 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument
3751 MessageCaptureScreen(SurfaceFlinger* flinger, const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, Transform::orientation_flags rotation, bool isLocalScreenshot) argument
3801 renderScreenImplLocked( const sp<const DisplayDevice>& hw, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool yswap, bool useIdentityTransform, Transform::orientation_flags rotation) argument
3874 captureScreenImplLocked( const sp<const DisplayDevice>& hw, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, Transform::orientation_flags rotation, bool isLocalScreenshot) argument
[all...]
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java47 Rect sourceCrop, int width, int height, int minLayer, int maxLayer,
50 Rect sourceCrop, int width, int height, int minLayer, int maxLayer,
53 Rect sourceCrop, int width, int height, int minLayer, int maxLayer,
854 * @param sourceCrop The portion of the screen to capture into the Bitmap;
876 public static Bitmap screenshot(Rect sourceCrop, int width, int height, argument
882 return nativeScreenshot(displayToken, sourceCrop, width, height,
890 public static GraphicBuffer screenshotToBuffer(Rect sourceCrop, int width, int height, argument
895 return nativeScreenshotToBuffer(displayToken, sourceCrop, width, height,
919 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, argument
928 nativeScreenshot(display, consumer, sourceCrop, widt
46 nativeScreenshot(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument
49 nativeScreenshotToBuffer(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument
52 nativeScreenshot(IBinder displayToken, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_SurfaceControl.cpp152 Rect sourceCrop = rectFromObj(env, sourceCropObj); local
159 sourceCrop, width, height, minLayer, maxLayer, useIdentityTransform,
183 Rect sourceCrop = rectFromObj(env, sourceCropObj); local
192 res = screenshot->update(displayToken, sourceCrop, width, height,
267 Rect sourceCrop(left, top, right, bottom);
274 consumer->getIGraphicBufferProducer(), sourceCrop,
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayContent.java3591 E screenshot(Rect sourceCrop, int width, int height, int minLayer, int maxLayer, argument

Completed in 5887 milliseconds