/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/av/media/codec2/core/include/ |
D | C2Buffer.h | 1594 inline constexpr _C2PlanarSectionAspect(uint32_t width, uint32_t height, const C2Rect &crop) in _C2PlanarSectionAspect() argument 1596 mCrop(C2Rect(std::min(width - std::min(crop.left, width), crop.width), in _C2PlanarSectionAspect() 1597 std::min(height - std::min(crop.top, height), crop.height)).at( in _C2PlanarSectionAspect() 1598 std::min(crop.left, width), in _C2PlanarSectionAspect() 1599 std::min(crop.height, height))) { in _C2PlanarSectionAspect() 1605 inline constexpr C2Rect crop() const { return mCrop; } in crop() function 1610 inline constexpr _C2PlanarSectionAspect childSection(const C2Rect &crop) const { in childSection() argument 1614 C2Rect(c2_min(mCrop.right() - c2_clamp(mCrop.left, crop.left, mCrop.right()), in childSection() 1615 crop.width), in childSection() 1616 c2_min(mCrop.bottom() - c2_clamp(mCrop.top, crop.top, mCrop.bottom()), in childSection() [all …]
|
/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/native/services/surfaceflinger/ |
D | BufferStateLayer.cpp | 159 bool BufferStateLayer::setCrop(const Rect& crop) { in setCrop() argument 160 Rect c = crop; in setCrop() 173 if (mCurrentState.crop == c) return false; in setCrop() 174 mCurrentState.crop = c; in setCrop() 410 if (s.crop.isEmpty() && s.buffer) { in getDrawingCrop() 413 Rect crop = s.crop; in getDrawingCrop() local 414 crop.left = std::max(crop.left, 0); in getDrawingCrop() 415 crop.top = std::max(crop.top, 0); in getDrawingCrop() 420 crop.right = std::min(crop.right, static_cast<int32_t>(bufferWidth)); in getDrawingCrop() 421 crop.bottom = std::min(crop.bottom, static_cast<int32_t>(bufferHeight)); in getDrawingCrop() [all …]
|
D | Layer.cpp | 104 mCurrentState.crop.makeInvalid(); in Layer() 262 Rect crop; in getContentCrop() local 265 crop = mCurrentCrop; in getContentCrop() 268 crop = mActiveBuffer->getBounds(); in getContentCrop() 271 crop.makeInvalid(); in getContentCrop() 273 return crop; in getContentCrop() 398 Rect crop = getCrop(s); in getCroppedBufferSize() local 399 if (!crop.isEmpty() && size.isValid()) { in getCroppedBufferSize() 400 size.intersect(crop, &size); in getCroppedBufferSize() 401 } else if (!crop.isEmpty()) { in getCroppedBufferSize() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ImageWriter.java | 379 Rect crop = image.getCropRect(); in queueInputImage() local 380 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), crop.left, crop.top, in queueInputImage() 381 crop.right, crop.bottom, image.getTransform(), image.getScalingMode()); in queueInputImage() 565 Rect crop = image.getCropRect(); in attachAndQueueInputImage() local 567 image.getTimestamp(), crop.left, crop.top, crop.right, crop.bottom, in attachAndQueueInputImage()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 138 FloatRect crop = layerState.geomContentCrop.toFloatRect(); in calculateOutputSourceCrop() local 150 return crop; in calculateOutputSourceCrop() 189 float xScale = crop.getWidth() / float(winWidth); in calculateOutputSourceCrop() 190 float yScale = crop.getHeight() / float(winHeight); in calculateOutputSourceCrop() 197 crop.left += insetL; in calculateOutputSourceCrop() 198 crop.top += insetT; in calculateOutputSourceCrop() 199 crop.right -= insetR; in calculateOutputSourceCrop() 200 crop.bottom -= insetB; in calculateOutputSourceCrop() 202 return crop; in calculateOutputSourceCrop()
|
/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/av/media/libstagefright/colorconversion/ |
D | SoftwareRenderer.cpp | 216 android_native_rect_t crop; in resetFormatIfChanged() local 217 crop.left = mCropLeft; in resetFormatIfChanged() 218 crop.top = mCropTop; in resetFormatIfChanged() 219 crop.right = mCropRight + 1; in resetFormatIfChanged() 220 crop.bottom = mCropBottom + 1; in resetFormatIfChanged() 222 crop.left, crop.top, crop.right, crop.bottom, bufWidth, bufHeight); in resetFormatIfChanged() 224 CHECK_EQ(0, native_window_set_crop(mNativeWindow.get(), &crop)); in resetFormatIfChanged()
|
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/ |
D | trace_creator.py | 119 change.crop.rectangle.left, change.crop.rectangle.top, \ 120 change.crop.rectangle.right, change.crop.rectangle.bottom = crop() 216 def crop(): function
|
/frameworks/base/libs/hwui/surfacetexture/ |
D | SurfaceTexture.cpp | 349 mat4 crop(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1); in computeTransformMatrix() local 350 xform = crop * xform; in computeTransformMatrix() 362 Rect SurfaceTexture::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument 363 Rect outCrop = crop; in scaleDownCrop() 365 uint32_t newWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() 366 uint32_t newHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop() 376 uint32_t currentWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() 377 uint32_t currentHeight = static_cast<uint32_t>(crop.height()); in scaleDownCrop()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | WallpaperCropActivity.java | 336 RectF crop = getMaxCropRect( in cropImageAndSetWallpaper() local 347 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); in cropImageAndSetWallpaper() 656 Bitmap crop = null; local 663 crop = decoder.decodeRegion(roundedTrueCrop, options); 667 if (crop == null) { 712 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, 718 if (crop == null) { 724 float[] dimsAfter = new float[] { crop.getWidth(), crop.getHeight() }; 742 m1.setTranslate(-crop.getWidth() / 2f, -crop.getHeight() / 2f); 763 c.drawBitmap(crop, m, p); [all …]
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | Screenshooter.java | 51 Rect crop = new Rect(0, 0, displayWidth, displayHeight); in takeScreenshot() local 55 SurfaceControl.screenshot(crop, displayWidth, displayHeight, rotation); in takeScreenshot()
|
/frameworks/native/libs/gui/ |
D | GLConsumerUtils.cpp | 107 mat4 crop( in computeTransformMatrix() local 113 xform = crop * xform; in computeTransformMatrix()
|
D | BufferHubProducer.cpp | 408 Rect crop(Rect::EMPTY_RECT); in queueBuffer() local 413 input.deflate(×tamp, &is_auto_timestamp, &dataspace, &crop, &scaling_mode, &transform, in queueBuffer() 461 crop.intersect(buffer_rect, &cropped_rect); in queueBuffer() 462 if (cropped_rect != crop) { in queueBuffer() 473 meta_data.crop_left = crop.left; in queueBuffer() 474 meta_data.crop_top = crop.top; in queueBuffer() 475 meta_data.crop_right = crop.right; in queueBuffer() 476 meta_data.crop_bottom = crop.bottom; in queueBuffer()
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 849 const C2Rect crop = mImpl->crop(); in Mapped() local 853 crop, in Mapped() 869 if (crop.left % colSampling || crop.right() % colSampling in Mapped() 870 || crop.top % rowSampling || crop.bottom() % rowSampling) { in Mapped() 872 mImpl->getAllocation()->unmap(mData, crop, nullptr); in Mapped() 880 mData[planeIx] + (ssize_t)crop.left * mLayout.planes[planeIx].colInc in Mapped() 881 + (ssize_t)crop.top * mLayout.planes[planeIx].rowInc; in Mapped() 897 mImpl->getAllocation()->unmap(mData, mImpl->crop(), nullptr); in ~Mapped() 985 : _C2PlanarSectionAspect(impl.get(), section.crop()), mImpl(impl) { in C2Block2D() 1001 : _C2EditablePlanarSectionAspect(impl.get(), section.crop()), mImpl(impl) { in C2GraphicView() [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | CpuConsumer.h | 53 Rect crop; member 78 crop(Rect::EMPTY_RECT), in LockedBuffer()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 1288 public void setWindowCrop(Rect crop) { in setWindowCrop() argument 1291 sGlobalTransaction.setWindowCrop(this, crop); in setWindowCrop() 1976 private static void rotateCropForSF(Rect crop, int rot) { in rotateCropForSF() argument 1978 int tmp = crop.top; in rotateCropForSF() 1979 crop.top = crop.left; in rotateCropForSF() 1980 crop.left = tmp; in rotateCropForSF() 1981 tmp = crop.right; in rotateCropForSF() 1982 crop.right = crop.bottom; in rotateCropForSF() 1983 crop.bottom = tmp; in rotateCropForSF() 2363 public Transaction setWindowCrop(SurfaceControl sc, Rect crop) { in setWindowCrop() argument [all …]
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 121 if (view.crop().width != img->mWidth || view.crop().height != img->mHeight) { in ImageCopy() 140 dst_u, dst_stride_u, dst_v, dst_stride_v, view.crop().width, in ImageCopy() 141 view.crop().height)) { in ImageCopy() 146 dst_y, dst_stride_y, dst_u, dst_stride_u, view.crop().width, in ImageCopy() 147 view.crop().height)) { in ImageCopy() 156 if (view.crop().width != img->mWidth || view.crop().height != img->mHeight) { in ImageCopy()
|
/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 | 41 // The layer's crop in it's own bounds. 42 RectProto crop = 14; field 43 // The layer's crop in it's parent's bounds. 73 // The layer's composer backend source crop
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | TransactionCompat.java | 80 public TransactionCompat setWindowCrop(SurfaceControlCompat surfaceControl, Rect crop) { in setWindowCrop() argument 81 mTransaction.setWindowCrop(surfaceControl.mSurfaceControl, crop); in setWindowCrop()
|
/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureGL_test.cpp | 149 const android_native_rect_t& crop(crops[i]); in TEST_F() local 151 crop.left, crop.top, crop.right, crop.bottom).string()); in TEST_F() 153 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); in TEST_F() 164 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotSurface.java | 344 final Rect crop = calculateSnapshotCrop(); in drawSizeMismatchSnapshot() local 345 frame = calculateSnapshotFrame(crop); in drawSizeMismatchSnapshot() 346 mChildSurfaceControl.setWindowCrop(crop); in drawSizeMismatchSnapshot() 396 Rect calculateSnapshotFrame(Rect crop) { in calculateSnapshotFrame() argument 397 final Rect frame = new Rect(crop); in calculateSnapshotFrame() 404 frame.offsetTo((int) (-crop.left / scale), (int) (-crop.top / scale)); in calculateSnapshotFrame()
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_hardware_composer_client.cpp | 188 frame->frame.layers[layer_index].crop.left, in dvrHwcFrameGetLayerCrop() 189 frame->frame.layers[layer_index].crop.top, in dvrHwcFrameGetLayerCrop() 190 frame->frame.layers[layer_index].crop.right, in dvrHwcFrameGetLayerCrop() 191 frame->frame.layers[layer_index].crop.bottom, in dvrHwcFrameGetLayerCrop()
|