/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 1375 // crop window, and we don't trust that they will be able to. 3496 // TODO: also get input crop 3524 "crop", 3851 notify->findRect("crop", &left, &top, &right, &bottom)) { 3852 // notify renderer of the crop change 3854 reply->setRect("crop", left, top, right + 1, bottom + 1); 4635 android_native_rect_t crop; local 4636 if (msg->findRect("crop", 4637 &crop.left, &crop [all...] |
H A D | OMXCodec.cpp | 4215 android_native_rect_t crop; local 4216 crop.left = left; 4217 crop.top = top; 4218 crop.right = right + 1; 4219 crop.bottom = bottom + 1; 4223 native_window_set_crop(mNativeWindow.get(), &crop);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
H A D | SoftAVC.cpp | 221 const CropParams& crop = decInfo.cropParams; local 222 if (mCropLeft == crop.cropLeftOffset && 223 mCropTop == crop.cropTopOffset && 224 mCropWidth == crop.cropOutWidth && 225 mCropHeight == crop.cropOutHeight) { 229 mCropLeft = crop.cropLeftOffset; 230 mCropTop = crop.cropTopOffset; 231 mCropWidth = crop.cropOutWidth; 232 mCropHeight = crop.cropOutHeight;
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 73 "crop", &cropLeftNew, &cropTopNew, &cropRightNew, &cropBottomNew)) { 156 android_native_rect_t crop; local 157 crop.left = mCropLeft; 158 crop.top = mCropTop; 159 crop.right = mCropRight + 1; 160 crop.bottom = mCropBottom + 1; 161 ALOGV("setting crop: [%d, %d, %d, %d] for size [%zu, %zu]", 162 crop.left, crop.top, crop [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.cpp | 2091 CropRegion crop = calculateCropRegion( (CropRegion::Outputs)( local 2096 static_cast<int32_t>(crop.left), 2097 static_cast<int32_t>(crop.top), 2098 static_cast<int32_t>(crop.width), 2099 static_cast<int32_t>(crop.height) 2849 // Need to convert zoom index into a crop rectangle. The rectangle is 2870 * Assumption: On the HAL side each stream buffer calculates its crop 2903 // skip over outputs we don't want to consider for the crop region 2953 CropRegion crop = { zoomLeft, zoomTop, zoomWidth, zoomHeight }; local 2954 return crop; [all...] |
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 642 android_native_rect_t crop; local 643 crop.left = left; 644 crop.top = top; 645 crop.right = right; 646 crop.bottom = bottom; 647 return native_window_set_crop(a, &crop);
|
/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 1378 android_native_rect_t crop = { left, top, right, bottom }; local 1379 return native_window_set_crop(a, &crop);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 127 GLint crop[4] = { 0, h, w, -h }; local 155 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 191 GLint crop[4] = { 0, h, w, -h }; local 225 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 82 * <p>Input: {@link Intent#getData} is the URI of the image to crop and set as wallpaper. 83 * <p>Output: RESULT_OK if user decided to crop/set the wallpaper, RESULT_CANCEL otherwise 395 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image; 397 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image; 456 Log.w(TAG, "crop has bad values for full size image"); 472 Bitmap crop = null; 474 // Do region decoding to get crop bitmap 479 crop = decoder.decodeRegion(roundedTrueCrop, options); 483 if (crop == null) { 484 // BitmapRegionDecoder has failed, try to crop i [all...] |
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 428 public void setWindowCrop(Rect crop) { argument 430 if (crop != null) { 432 crop.left, crop.top, crop.right, crop.bottom);
|
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 305 Rect crop(l, t, r, b); 306 status_t err = ctrl->setCrop(crop);
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 624 if (!buffer->crop.isEmpty()) { 625 return buffer->crop.getWidth(); 633 if (!buffer->crop.isEmpty()) { 634 return buffer->crop.getHeight(); 809 // Check if the left-top corner of the crop rect is origin, we currently assume this point is 811 Point lt = buffer->crop.leftTop(); 814 "crop left top corner [%d, %d] need to be at origin", lt.x, lt.y);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 331 // crop this image and scale it down to the default wallpaper size for 337 RectF crop = getMaxCropRect( 348 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); 360 // Get the crop 371 // Get the crop 394 // Extend the crop all the way to the right, for parallax 597 // Find crop bounds (scaled to original image size) 630 Log.w(LOGTAG, "crop has bad values for full size image"); 657 Bitmap crop = null; 659 // Do region decoding to get crop bitma [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowManagerService.java | 6031 private static void convertCropForSurfaceFlinger(Rect crop, int rot, int dw, int dh) { argument 6033 final int tmp = crop.top; 6034 crop.top = dw - crop.right; 6035 crop.right = crop.bottom; 6036 crop.bottom = dw - crop.left; 6037 crop.left = tmp; 6039 int tmp = crop [all...] |
H A D | WindowStateAnimator.java | 632 public void setWindowCrop(Rect crop) { argument 633 if (crop != null) { 634 if (!crop.equals(mWindowCrop)) { 636 + crop.toShortString() + "): OLD:" + this + ". Called by " 638 mWindowCrop.set(crop); 641 super.setWindowCrop(crop); 756 + " crop=" + mWindowCrop.toShortString() 1269 // scaling to the crop rect. We aren't using the standard rect 1270 // scale function because we want to round things to make the crop 1271 // always round to a larger rect to ensure we don't crop to [all...] |
/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
H A D | GLConsumer.h | 289 // one yet, or the EGLDisplay or crop-rect has changed). 310 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop); 325 // mCropRect is the crop rectangle passed to EGL when mEglImage 368 // mCurrentCrop is the crop rectangle that applies to the current texture.
|
H A D | IGraphicBufferProducer.h | 263 // * crop rect is out of bounds of the buffer dimensions 270 // crop - a crop rectangle that's used as a hint to the consumer 279 const Rect& crop, int scalingMode, uint32_t transform, bool async, 281 : timestamp(timestamp), isAutoTimestamp(isAutoTimestamp), crop(crop), 290 *outCrop = crop; 309 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput 278 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, const Rect& crop, int scalingMode, uint32_t transform, bool async, const sp<Fence>& fence, uint32_t sticky = 0) argument
|
H A D | SurfaceComposerClient.h | 135 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
|
H A D | SurfaceControl.h | 70 status_t setCrop(const Rect& crop);
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 65 crop.makeInvalid(); 90 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 519 Rect crop; local 525 input.deflate(×tamp, &isAutoTimestamp, &crop, &scalingMode, &transform, 583 " crop=[%d,%d,%d,%d] transform=%#x scale=%s", 585 crop.left, crop.top, crop.right, crop.bottom, 591 crop.intersect(bufferRect, &croppedRect); 592 if (croppedRect != crop) { 593 BQ_LOGE("queueBuffer: crop rec [all...] |
H A D | CpuConsumer.cpp | 199 nativeBuffer->crop = b.mCrop;
|
H A D | GLConsumer.cpp | 115 static bool isEglImageCroppable(const Rect& crop) { 116 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0); 794 // crop rectangle we may need to shrink it by 2 texels in each 797 // are subsampled we may need to shrink the crop region by a whole 831 float crop[16] = { local 838 mtxMul(mtxBeforeFlipV, crop, xform); 886 // The crop is too wide 891 // The crop is too tall 898 ST_LOGV("getCurrentCrop final crop [ 1113 createImage(EGLDisplay dpy, const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) argument [all...] |
H A D | IGraphicBufferProducer.cpp | 435 + sizeof(crop) 455 FlattenableUtils::write(buffer, size, crop); 469 + sizeof(crop) 481 FlattenableUtils::read(buffer, size, crop);
|