/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 1957 // 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 D | SoftwareRenderer.cpp | 76 "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 D | Parameters.cpp | 2310 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 D | BootAnimation.cpp | 156 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 D | UiAutomationConnection.java | 157 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 D | SurfaceControl.java | 925 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 D | SurfaceView.java | 1146 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 D | TransactionCompat.java | 81 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 D | GlobalScreenshot.java | 579 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 D | DisplayContent.java | 3051 // 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 D | TaskSnapshotSurface.java | 319 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 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/native/include/gui/ |
H A D | BufferQueueCore.h | 320 : crop(_crop), 326 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
|
H A D | CpuConsumer.h | 53 Rect crop; member in struct:android::CpuConsumer::LockedBuffer 78 crop(Rect::EMPTY_RECT),
|
H A D | IGraphicBufferProducer.h | 308 // * 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 D | LayerState.h | 73 reserved(0), crop(Rect::INVALID_RECT), 104 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/include/layerproto/ |
H A D | LayerProtoParser.h | 94 LayerProtoParser::Rect crop; member in class:android::surfaceflinger::LayerProtoParser::Layer
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 125 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 D | SurfaceComposerClient.cpp | 348 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 D | BufferQueueCore.h | 320 : crop(_crop), 326 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
|
H A D | CpuConsumer.h | 53 Rect crop; member in struct:android::CpuConsumer::LockedBuffer 78 crop(Rect::EMPTY_RECT),
|
H A D | IGraphicBufferProducer.h | 308 // * 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 D | LayerState.h | 73 reserved(0), crop(Rect::INVALID_RECT), 104 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/tests/ |
H A D | BufferQueue_test.cpp | 79 Rect crop; local 84 input.deflate(×tamp, &isAutoTimestamp, &dataSpace, &crop, 89 ASSERT_EQ(crop, item.mCrop);
|
H A D | IGraphicBufferProducer_test.cpp | 155 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
|