Searched refs:crop (Results 1 - 25 of 80) sorted by relevance

1234

/frameworks/native/services/surfaceflinger/
H A DLayerRejecter.cpp80 if (mFront.crop != mFront.requestedCrop) {
81 mFront.crop = mFront.requestedCrop;
82 mCurrent.crop = mFront.requestedCrop;
94 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) "
98 mFront.active.h, mFront.crop.left, mFront.crop.top, mFront.crop.right,
99 mFront.crop.bottom, mFront.crop.getWidth(), mFront.crop
[all...]
H A DLayer.cpp118 mCurrentState.crop.makeInvalid();
121 mCurrentState.requestedCrop = mCurrentState.crop;
263 // this is the crop rectangle that applies to the buffer
265 Rect crop; local
267 // if the buffer crop is defined, we use that
268 crop = mCurrentCrop;
271 crop = getBE().compositionInfo.mBuffer->getBounds();
273 // if we don't have a buffer yet, we use an empty/invalid crop
274 crop.makeInvalid();
276 return crop;
409 FloatRect crop = getContentCrop().toFloatRect(); local
806 boundPoint(vec2* point, const Rect& crop) argument
1275 setCrop(const Rect& crop, bool immediate) argument
1289 setFinalCrop(const Rect& crop, bool immediate) argument
1484 const FloatRect& crop = hwcInfo.sourceCrop; local
1987 const FloatRect& crop = hwcInfo.sourceCrop; local
[all...]
/frameworks/native/opengl/tests/finish/
H A Dfinish.cpp105 GLint crop[4] = { 0, 512, 512, -512 }; local
106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
119 GLint crop[4] = { 0, 1, 1, -1 }; local
120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
133 GLint crop[4] = { 0, 512, 512, -512 }; local
134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
148 GLint crop[4] = { 0, 1, 1, -1 }; local
149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
165 GLint crop[4] = { 0, 512, 512, -512 }; local
166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
185 GLint crop[4] = { 0, 1, 1, -1 }; local
198 GLint crop[4] = { 0, 1, 1, -1 }; local
213 GLint crop[4] = { 0, 1, 1, -1 }; local
[all...]
/frameworks/base/packages/Shell/src/com/android/shell/
H A DScreenshooter.java51 Rect crop = new Rect(0, 0, displayWidth, displayHeight);
55 SurfaceControl.screenshot(crop, displayWidth, displayHeight, rotation);
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DTransactionCompat.java81 public TransactionCompat setWindowCrop(SurfaceControlCompat surfaceControl, Rect crop) { argument
82 mTransaction.setWindowCrop(surfaceControl.mSurfaceControl, crop);
86 public TransactionCompat setFinalCrop(SurfaceControlCompat surfaceControl, Rect crop) { argument
87 mTransaction.setFinalCrop(surfaceControl.mSurfaceControl, crop);
/frameworks/native/services/vr/hardware_composer/tests/
H A Dvr_composer_test.cpp135 .crop = {0.0f, 0.0f, 600.0f, 400.0f},
161 ASSERT_EQ(frame.layers[0].crop.left, received_frame.layers[0].crop.left);
162 ASSERT_EQ(frame.layers[0].crop.top, received_frame.layers[0].crop.top);
163 ASSERT_EQ(frame.layers[0].crop.right, received_frame.layers[0].crop.right);
164 ASSERT_EQ(frame.layers[0].crop.bottom, received_frame.layers[0].crop.bottom);
/frameworks/base/media/java/android/media/
H A DImageWriter.java375 Rect crop = image.getCropRect();
376 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), crop.left, crop.top,
377 crop.right, crop.bottom, image.getTransform(), image.getScalingMode());
561 Rect crop = image.getCropRect();
563 image.getTimestamp(), crop.left, crop.top, crop.right, crop
[all...]
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java925 public void setWindowCrop(Rect crop) { argument
928 sGlobalTransaction.setWindowCrop(this, crop);
932 public void setFinalCrop(Rect crop) { argument
935 sGlobalTransaction.setFinalCrop(this, crop);
1301 private static void rotateCropForSF(Rect crop, int rot) { argument
1303 int tmp = crop.top;
1304 crop.top = crop.left;
1305 crop.left = tmp;
1306 tmp = crop
1448 setWindowCrop(SurfaceControl sc, Rect crop) argument
1460 setFinalCrop(SurfaceControl sc, Rect crop) argument
[all...]
/frameworks/base/core/java/android/app/
H A DIUiAutomationConnection.aidl41 Bitmap takeScreenshot(in Rect crop, int rotation);
H A DUiAutomationConnection.java157 public Bitmap takeScreenshot(Rect crop, int rotation) { argument
165 int width = crop.width();
166 int height = crop.height();
167 return SurfaceControl.screenshot(crop, width, height, rotation);
/frameworks/native/include/gui/
H A DCpuConsumer.h53 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
78 crop(Rect::EMPTY_RECT),
H A DBufferQueueCore.h320 : crop(_crop),
326 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
H A DLayerState.h73 reserved(0), crop(Rect::INVALID_RECT),
104 Rect crop; member in struct:android::layer_state_t
/frameworks/native/libs/gui/include/gui/
H A DCpuConsumer.h53 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
78 crop(Rect::EMPTY_RECT),
H A DBufferQueueCore.h320 : crop(_crop),
326 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
H A DLayerState.h73 reserved(0), crop(Rect::INVALID_RECT),
104 Rect crop; member in struct:android::layer_state_t
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
H A Dparcelable_composer_layer.cpp45 ret = parcel->writeFloat(layer_.crop.left);
48 ret = parcel->writeFloat(layer_.crop.top);
51 ret = parcel->writeFloat(layer_.crop.right);
54 ret = parcel->writeFloat(layer_.crop.bottom);
148 ret = parcel->readFloat(&layer_.crop.left);
151 ret = parcel->readFloat(&layer_.crop.top);
154 ret = parcel->readFloat(&layer_.crop.right);
157 ret = parcel->readFloat(&layer_.crop.bottom);
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A Dtrace_creator.py119 change.crop.rectangle.left, change.crop.rectangle.top, \
120 change.crop.rectangle.right, change.crop.rectangle.bottom = crop()
216 def crop(): function
/frameworks/native/libs/gui/
H A DGLConsumer.cpp125 static bool isEglImageCroppable(const Rect& crop) {
126 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0);
818 // crop rectangle we may need to shrink it by 2 texels in each
821 // are subsampled we may need to shrink the crop region by a whole
857 mat4 crop(
863 xform = crop * xform;
875 Rect GLConsumer::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { argument
876 Rect outCrop = crop;
878 uint32_t newWidth = static_cast<uint32_t>(crop
1121 createImage(EGLDisplay dpy, const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) argument
[all...]
H A DBufferHubProducer.cpp258 Rect crop(Rect::EMPTY_RECT);
263 input.deflate(&timestamp, &is_auto_timestamp, &dataspace, &crop, &scaling_mode, &transform,
308 // Check input crop is not out of boundary of current buffer.
311 crop.intersect(buffer_rect, &cropped_rect);
312 if (cropped_rect != crop) {
313 ALOGE("queueBuffer: slot %d has out-of-boundary crop.", slot);
323 meta_data.crop_left = crop.left;
324 meta_data.crop_top = crop.top;
325 meta_data.crop_right = crop.right;
326 meta_data.crop_bottom = crop
[all...]
H A DLayerState.cpp40 output.write(crop);
75 input.read(crop);
199 crop = other.crop;
/frameworks/native/opengl/tests/textures/
H A Dtextures.cpp66 GLint crop[4] = { 0, 4, 4, -4 };
68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp76 "crop", &cropLeftNew, &cropTopNew, &cropRightNew, &cropBottomNew)) {
213 android_native_rect_t crop; local
214 crop.left = mCropLeft;
215 crop.top = mCropTop;
216 crop.right = mCropRight + 1;
217 crop.bottom = mCropBottom + 1;
218 ALOGV("setting crop: [%d, %d, %d, %d] for size [%zu, %zu]",
219 crop.left, crop.top, crop
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java330 // crop this image and scale it down to the default wallpaper size for
336 RectF crop = getMaxCropRect(
347 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop);
359 // Get the crop
370 // Get the crop
393 // Extend the crop all the way to the right, for parallax
596 // Find crop bounds (scaled to original image size)
629 Log.w(LOGTAG, "crop has bad values for full size image");
656 Bitmap crop = null;
658 // Do region decoding to get crop bitma
[all...]
/frameworks/native/libs/vr/libdvr/
H A Ddvr_hardware_composer_client.cpp188 frame->frame.layers[layer_index].crop.left,
189 frame->frame.layers[layer_index].crop.top,
190 frame->frame.layers[layer_index].crop.right,
191 frame->frame.layers[layer_index].crop.bottom,

Completed in 995 milliseconds

1234