Searched refs:mCropRect (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/media/java/android/media/ |
D | Image.java | 126 private Rect mCropRect; field in Image 135 if (mCropRect == null) { in getCropRect() 138 return new Rect(mCropRect); // return a copy in getCropRect() 153 mCropRect = cropRect; in setCropRect()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | CropFilter.java | 37 private Quad mCropRect = Quad.fromRect(0f, 0f, 1f, 1f); field in CropFilter 93 int[] croppedDims = { (int)FloatMath.ceil(mCropRect.xEdge().length() * inDims[0]), in onProcess() 94 (int)FloatMath.ceil(mCropRect.yEdge().length() * inDims[1]) }; in onProcess() 109 mShader.setSourceQuad(mCropRect); in onProcess() 117 sourceQuad = mCropRect; in onProcess() 125 Quad sourceQuad = mCropRect.scale2(inDims[0], inDims[1]); in onProcess()
|
D | StatsFilter.java | 49 private Quad mCropRect = Quad.fromRect(0f, 0f, 1f, 1f); field in StatsFilter 100 calcMeanAndStd(pixelBuffer, inputFrame.getWidth(), inputFrame.getHeight(), mCropRect); in onProcess()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 121 private Rect mCropRect = new Rect(); field in PhotoView 659 final int cropWidth = mCropRect.right - mCropRect.left; in getCroppedPhoto() 665 matrix.postTranslate(-mCropRect.left, -mCropRect.top); in getCroppedPhoto() 737 canvas.clipRect(mCropRect); in onDraw() 745 canvas.drawRect(mCropRect, sCropPaint); in onDraw() 766 mCropRect.set(cropLeft, cropTop, cropRight, cropBottom); in onLayout() 880 mTempDst.set(mCropRect); in generateMatrix() 976 final float maxLeft = mAllowCrop ? mCropRect.left : 0.0f; in translate() 977 final float maxRight = mAllowCrop ? mCropRect.right : getWidth(); in translate() 995 float maxTop = mAllowCrop ? mCropRect.top: 0.0f; in translate() [all …]
|
/frameworks/native/include/gui/ |
D | GLConsumer.h | 327 Rect mCropRect; variable
|
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 1078 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect; in createIfNeeded() 1091 mCropRect = cropRect; in createIfNeeded() 1092 mEglImage = createImage(mEglDisplay, mGraphicBuffer, mCropRect); in createIfNeeded() 1098 mCropRect.makeInvalid(); in createIfNeeded()
|