Searched defs:crop (Results 1 - 25 of 41) sorted by path

12

/frameworks/av/media/libstagefright/
H A DACodec.cpp1957 // crop window, and we don't trust that they will be able to.
4961 "crop",
6230 android_native_rect_t crop; local
6231 if (buffer->format()->findRect("crop", &crop.left, &crop.top, &crop.right, &crop.bottom)) {
6233 ++crop.right;
6234 ++crop
[all...]
/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/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2310 CropRegion crop = calculateCropRegion(/*previewOnly*/ false); local
2312 static_cast<int32_t>(crop.left),
2313 static_cast<int32_t>(crop.top),
2314 static_cast<int32_t>(crop.width),
2315 static_cast<int32_t>(crop.height)
3090 // Need to convert zoom index into a crop rectangle. The rectangle is
3111 // Calculate a tight crop region for the preview stream only
3136 // Calculate the global crop region with a shape matching the active
3149 CropRegion crop = { zoomLeft, zoomTop, zoomWidth, zoomHeight }; local
3150 return crop;
[all...]
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp156 GLint crop[4] = { 0, h, w, -h }; local
184 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
210 GLint crop[4] = { 0, h, w, -h }; local
244 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
/frameworks/base/core/java/android/app/
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/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...]
H A DSurfaceView.java1146 public void setWindowCrop(Rect crop) { argument
1147 super.setWindowCrop(crop);
1148 mBackgroundControl.setWindowCrop(crop);
1152 public void setFinalCrop(Rect crop) { argument
1153 super.setFinalCrop(crop);
1154 mBackgroundControl.setFinalCrop(crop);
/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/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java579 Rect crop) {
581 int width = crop.width();
582 int height = crop.height();
585 mScreenBitmap = SurfaceControl.screenshot(crop, width, height, rot);
578 takeScreenshot(Runnable finisher, boolean statusBarVisible, boolean navBarVisible, Rect crop) argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayContent.java3051 // crop to SurfaceFlinger's portrait orientation.
3077 private static void convertCropForSurfaceFlinger(Rect crop, int rot, int dw, int dh) { argument
3079 final int tmp = crop.top;
3080 crop.top = dw - crop.right;
3081 crop.right = crop.bottom;
3082 crop.bottom = dw - crop.left;
3083 crop
[all...]
H A DTaskSnapshotSurface.java319 final Rect crop = calculateSnapshotCrop();
320 final Rect frame = calculateSnapshotFrame(crop);
326 mChildSurfaceControl.setWindowCrop(crop);
345 * Calculates the snapshot crop in snapshot coordinate space.
347 * @return crop rect in snapshot coordinate space.
366 * Calculates the snapshot frame in window coordinate space from crop.
368 * @param crop rect that is in snapshot coordinate space.
371 Rect calculateSnapshotFrame(Rect crop) { argument
372 final Rect frame = new Rect(crop);
379 frame.offsetTo((int) (-crop
[all...]
/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/include/gui/
H A DBufferQueueCore.h320 : crop(_crop),
326 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
H A DCpuConsumer.h53 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
78 crop(Rect::EMPTY_RECT),
H A DIGraphicBufferProducer.h308 // * crop rect is out of bounds of the buffer dimensions
317 // crop - a crop rectangle that's used as a hint to the consumer
331 dataSpace(_dataSpace), crop(_crop), scalingMode(_scalingMode),
344 *outCrop = crop;
373 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
H A DLayerState.h73 reserved(0), crop(Rect::INVALID_RECT),
104 Rect crop; member in struct:android::layer_state_t
/frameworks/native/include/layerproto/
H A DLayerProtoParser.h94 LayerProtoParser::Rect crop; member in class:android::surfaceflinger::LayerProtoParser::Layer
/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 DSurfaceComposerClient.cpp348 const sp<SurfaceControl>& sc, const Rect& crop) {
355 s->crop = crop;
359 SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setFinalCrop(const sp<SurfaceControl>& sc, const Rect& crop) { argument
366 s->finalCrop = crop;
347 setCrop( const sp<SurfaceControl>& sc, const Rect& crop) argument
/frameworks/native/libs/gui/include/gui/
H A DBufferQueueCore.h320 : crop(_crop),
326 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
H A DCpuConsumer.h53 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
78 crop(Rect::EMPTY_RECT),
H A DIGraphicBufferProducer.h308 // * crop rect is out of bounds of the buffer dimensions
317 // crop - a crop rectangle that's used as a hint to the consumer
331 dataSpace(_dataSpace), crop(_crop), scalingMode(_scalingMode),
344 *outCrop = crop;
373 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
H A DLayerState.h73 reserved(0), crop(Rect::INVALID_RECT),
104 Rect crop; member in struct:android::layer_state_t
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp79 Rect crop; local
84 input.deflate(&timestamp, &isAutoTimestamp, &dataSpace, &crop,
89 ASSERT_EQ(crop, item.mCrop);
H A DIGraphicBufferProducer_test.cpp155 crop = QUEUE_BUFFER_INPUT_RECT;
166 crop,
187 QueueBufferInputBuilder& setCrop(Rect crop) { argument
188 this->crop = crop;
211 Rect crop; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder

Completed in 484 milliseconds

12