/frameworks/native/opengl/tests/finish/ |
D | finish.cpp | 105 GLint crop[4] = { 0, 512, 512, -512 }; in main() local 106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 119 GLint crop[4] = { 0, 1, 1, -1 }; in main() local 120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 133 GLint crop[4] = { 0, 512, 512, -512 }; in main() local 134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 148 GLint crop[4] = { 0, 1, 1, -1 }; in main() local 149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 165 GLint crop[4] = { 0, 512, 512, -512 }; in main() local 166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | LayerRejecter.cpp | 83 if (mFront.crop != mFront.requestedCrop) { in reject() 84 mFront.crop = mFront.requestedCrop; in reject() 85 mCurrent.crop = mFront.requestedCrop; in reject() 97 mFront.active_legacy.w, mFront.active_legacy.h, mFront.crop.left, mFront.crop.top, in reject() 98 mFront.crop.right, mFront.crop.bottom, mFront.crop.getWidth(), in reject() 99 mFront.crop.getHeight(), mFront.requested_legacy.w, mFront.requested_legacy.h); in reject()
|
D | LayerRenderArea.cpp | 39 LayerRenderArea::LayerRenderArea(SurfaceFlinger& flinger, sp<Layer> layer, const Rect& crop, in LayerRenderArea() argument 44 mCrop(crop), in LayerRenderArea()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Buffer.h | 1731 inline constexpr _C2PlanarSectionAspect(uint32_t width, uint32_t height, const C2Rect &crop) in _C2PlanarSectionAspect() argument 1733 mCrop(C2Rect(std::min(width - std::min(crop.left, width), crop.width), in _C2PlanarSectionAspect() 1734 std::min(height - std::min(crop.top, height), crop.height)).at( in _C2PlanarSectionAspect() 1735 std::min(crop.left, width), in _C2PlanarSectionAspect() 1736 std::min(crop.height, height))) { in _C2PlanarSectionAspect() 1742 inline constexpr C2Rect crop() const { return mCrop; } in crop() function 1747 inline constexpr _C2PlanarSectionAspect childSection(const C2Rect &crop) const { in childSection() argument 1751 C2Rect(c2_min(mCrop.right() - c2_clamp(mCrop.left, crop.left, mCrop.right()), in childSection() 1752 crop.width), in childSection() 1753 c2_min(mCrop.bottom() - c2_clamp(mCrop.top, crop.top, mCrop.bottom()), in childSection() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ImageCaptureImpl.kt | 45 override fun captureDisplay(displayId: Int, crop: Rect?): Bitmap? { in captureDisplay() 46 val width = crop?.width() ?: 0 in captureDisplay() 47 val height = crop?.height() ?: 0 in captureDisplay() 48 val sourceCrop = crop ?: Rect() in captureDisplay() 80 crop: Rect in captureDisplay() 85 .setSourceCrop(crop) in captureDisplay()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | ScreenshotUtils.java | 37 public static void captureLayer(SurfaceControl sc, Rect crop, in captureLayer() argument 41 .setSourceCrop(crop) in captureLayer() 96 Rect crop, int layer) { in takeScreenshot() argument 97 return takeScreenshot(t, sc, sc /* parentSc */, crop, layer); in takeScreenshot() 112 SurfaceControl parentSc, Rect crop, int layer) { in takeScreenshot() argument 114 captureLayer(sc, crop, consumer); in takeScreenshot()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ImageCaptureImplTest.kt | 53 assertThat(capture.crop!!).isEqualTo(Rect(1, 2, 3, 4)) in captureDisplayWithCrop() 62 assertThat(capture.crop!!).isEqualTo(Rect()) in captureDisplayWithNullCrop() 75 var crop: Rect? = null variable 81 override fun captureDisplay(displayToken: IBinder, width: Int, height: Int, crop: Rect): in captureDisplay() 86 this.crop = crop in captureDisplay()
|
D | FakeImageCapture.kt | 29 override fun captureDisplay(displayId: Int, crop: Rect?): Bitmap? { in captureDisplay() 31 requestedDisplayCrop = crop in captureDisplay()
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 135 .crop = {0.0f, 0.0f, 600.0f, 400.0f}, in TEST_F() 161 ASSERT_EQ(frame.layers[0].crop.left, received_frame.layers[0].crop.left); in TEST_F() 162 ASSERT_EQ(frame.layers[0].crop.top, received_frame.layers[0].crop.top); in TEST_F() 163 ASSERT_EQ(frame.layers[0].crop.right, received_frame.layers[0].crop.right); in TEST_F() 164 ASSERT_EQ(frame.layers[0].crop.bottom, received_frame.layers[0].crop.bottom); in TEST_F()
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.cpp | 126 bool ImageDecoder::setCropRect(const SkIRect* crop) { in setCropRect() argument 127 if (!crop) { in setCropRect() 132 if (crop->left() >= crop->right() || crop->top() >= crop->bottom()) { in setCropRect() 137 if (crop->left() < 0 || crop->top() < 0 in setCropRect() 138 || crop->right() > size.width() || crop->bottom() > size.height()) { in setCropRect() 142 mCropRect.emplace(*crop); in setCropRect()
|
/frameworks/base/media/java/android/media/ |
D | ImageWriter.java | 548 Rect crop = image.getCropRect(); in queueInputImage() local 550 crop.left, crop.top, crop.right, crop.bottom, image.getTransform(), in queueInputImage() 779 Rect crop = image.getCropRect(); in attachAndQueueInputImage() local 782 image.getTimestamp(), image.getDataSpace(), crop.left, crop.top, crop.right, in attachAndQueueInputImage() 783 crop.bottom, image.getTransform(), image.getScalingMode()); in attachAndQueueInputImage() 787 image.getTimestamp(), image.getDataSpace(), crop.left, crop.top, crop.right, in attachAndQueueInputImage() 788 crop.bottom, image.getTransform(), image.getScalingMode()); in attachAndQueueInputImage()
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_composer_layer.cpp | 45 ret = parcel->writeFloat(layer_.crop.left); in writeToParcel() 48 ret = parcel->writeFloat(layer_.crop.top); in writeToParcel() 51 ret = parcel->writeFloat(layer_.crop.right); in writeToParcel() 54 ret = parcel->writeFloat(layer_.crop.bottom); in writeToParcel() 148 ret = parcel->readFloat(&layer_.crop.left); in readFromParcel() 151 ret = parcel->readFloat(&layer_.crop.top); in readFromParcel() 154 ret = parcel->readFloat(&layer_.crop.right); in readFromParcel() 157 ret = parcel->readFloat(&layer_.crop.bottom); in readFromParcel()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSurfaceTransactionHelper.java | 71 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop() method in PipSurfaceTransactionHelper 162 final Rect crop = mTmpDestinationRect; in rotateAndScaleWithCrop() local 163 crop.set(0, 0, Transitions.SHELL_TRANSITIONS_ROTATION ? destH in rotateAndScaleWithCrop() 166 crop.scale(1 / scale); in rotateAndScaleWithCrop() 167 crop.offset(insets.left, insets.top); in rotateAndScaleWithCrop() 185 tx.setMatrix(leash, mTmpTransform, mTmpFloat9).setCrop(leash, crop); in rotateAndScaleWithCrop()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | SoftwareRenderer.cpp | 221 android_native_rect_t crop; in resetFormatIfChanged() local 222 crop.left = mCropLeft; in resetFormatIfChanged() 223 crop.top = mCropTop; in resetFormatIfChanged() 224 crop.right = mCropRight + 1; in resetFormatIfChanged() 225 crop.bottom = mCropBottom + 1; in resetFormatIfChanged() 227 crop.left, crop.top, crop.right, crop.bottom, bufWidth, bufHeight); in resetFormatIfChanged() 229 CHECK_EQ(0, native_window_set_crop(mNativeWindow.get(), &crop)); in resetFormatIfChanged()
|
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/ |
D | trace_creator.py | 118 change.crop.rectangle.left, change.crop.rectangle.top, \ 119 change.crop.rectangle.right, change.crop.rectangle.bottom = crop() 212 def crop(): function
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | SurfaceTexture.cpp | 337 mat4 crop(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1); in computeTransformMatrix() local 338 xform = crop * xform; in computeTransformMatrix() 350 Rect SurfaceTexture::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument 351 Rect outCrop = crop; in scaleDownCrop() 353 uint32_t newWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() 354 uint32_t newHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() 364 uint32_t currentWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() 365 uint32_t currentHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | WallpaperCropActivity.java | 335 RectF crop = getMaxCropRect( in cropImageAndSetWallpaper() local 346 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); in cropImageAndSetWallpaper() 653 Bitmap crop = null; local 660 crop = decoder.decodeRegion(roundedTrueCrop, options); 664 if (crop == null) { 709 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, 715 if (crop == null) { 721 float[] dimsAfter = new float[] { crop.getWidth(), crop.getHeight() }; 739 m1.setTranslate(-crop.getWidth() / 2f, -crop.getHeight() / 2f); 760 c.drawBitmap(crop, m, p); [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | BLASTBufferQueue.h | 204 Rect crop; member 207 uint32_t scalingMode, const Rect& crop) { in update() 213 if (!crop.isEmpty()) { in update() 214 this->crop = crop; in update() 216 this->crop = Rect(width, height); in update()
|
D | CpuConsumer.h | 53 Rect crop; member 78 crop(Rect::EMPTY_RECT), in LockedBuffer()
|
/frameworks/native/libs/gui/ |
D | GLConsumerUtils.cpp | 107 mat4 crop( in computeTransformMatrix() local 113 xform = crop * xform; in computeTransformMatrix()
|
D | BufferHubProducer.cpp | 407 Rect crop(Rect::EMPTY_RECT); in queueBuffer() local 412 input.deflate(×tamp, &is_auto_timestamp, &dataspace, &crop, &scaling_mode, &transform, in queueBuffer() 460 crop.intersect(buffer_rect, &cropped_rect); in queueBuffer() 461 if (cropped_rect != crop) { in queueBuffer() 472 meta_data.crop_left = crop.left; in queueBuffer() 473 meta_data.crop_top = crop.top; in queueBuffer() 474 meta_data.crop_right = crop.right; in queueBuffer() 475 meta_data.crop_bottom = crop.bottom; in queueBuffer()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxUiControllerTest.java | 486 final Rect crop = mController.getCropBoundsIfNeeded(mainWindow); in testGetCropBoundsIfNeeded_appliesCrop() local 487 assertNotEquals(null, crop); in testGetCropBoundsIfNeeded_appliesCrop() 488 assertEquals(0, crop.left); in testGetCropBoundsIfNeeded_appliesCrop() 489 assertEquals(0, crop.top); in testGetCropBoundsIfNeeded_appliesCrop() 490 assertEquals(mLetterboxedPortraitTaskBounds.width(), crop.right); in testGetCropBoundsIfNeeded_appliesCrop() 492 crop.bottom); in testGetCropBoundsIfNeeded_appliesCrop() 514 final Rect crop = mController.getCropBoundsIfNeeded(mainWindow); in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling() local 515 assertNotEquals(null, crop); in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling() 516 assertEquals(0, crop.left); in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling() 517 assertEquals(0, crop.top); in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 866 const C2Rect crop = mImpl->crop(); in Mapped() local 870 crop, in Mapped() 886 if (crop.left % colSampling || crop.right() % colSampling in Mapped() 887 || crop.top % rowSampling || crop.bottom() % rowSampling) { in Mapped() 889 mImpl->getAllocation()->unmap(mData, crop, nullptr); in Mapped() 897 mData[planeIx] + (ssize_t)crop.left * mLayout.planes[planeIx].colInc in Mapped() 898 + (ssize_t)crop.top * mLayout.planes[planeIx].rowInc; in Mapped() 914 mImpl->getAllocation()->unmap(mData, mImpl->crop(), nullptr); in ~Mapped() 1002 : _C2PlanarSectionAspect(impl.get(), section.crop()), mImpl(impl) { in C2Block2D() 1018 : _C2EditablePlanarSectionAspect(impl.get(), section.crop()), mImpl(impl) { in C2GraphicView() [all …]
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 66 GLint crop[4] = { 0, 4, 4, -4 }; in main() local 68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
|
/frameworks/native/services/surfaceflinger/layerproto/ |
D | layers.proto | 57 // The layer's crop in it's own bounds. 58 RectProto crop = 14; field 59 // The layer's crop in it's parent's bounds. 89 // The layer's composer backend source crop
|