/frameworks/native/opengl/tests/finish/ |
H A D | finish.cpp | 106 GLint crop[4] = { 0, 512, 512, -512 }; 107 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 120 GLint crop[4] = { 0, 1, 1, -1 }; 121 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 134 GLint crop[4] = { 0, 512, 512, -512 }; 135 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 149 GLint crop[4] = { 0, 1, 1, -1 }; 150 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 166 GLint crop[4] = { 0, 512, 512, -512 }; 167 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ImageWriter.java | 333 Rect crop = image.getCropRect(); 334 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), crop.left, crop.top, 335 crop.right, crop.bottom); 519 Rect crop = image.getCropRect(); 521 image.getTimestamp(), crop.left, crop.top, crop.right, crop [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 127 mCurrentState.crop.makeInvalid(); 353 // this is the crop rectangle that applies to the buffer 355 Rect crop; local 357 // if the buffer crop is defined, we use that 358 crop = mCurrentCrop; 361 crop = mActiveBuffer->getBounds(); 363 // if we don't have a buffer yet, we use an empty/invalid crop 364 crop.makeInvalid(); 366 return crop; 388 if (!s.crop 1217 boundPoint(vec2* point, const Rect& crop) argument 1650 setCrop(const Rect& crop, bool immediate) argument 1662 setFinalCrop(const Rect& crop) argument 2284 const FloatRect& crop = hwcInfo.sourceCrop; local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
H A D | SoftAVC.cpp | 226 const CropParams& crop = decInfo.cropParams; local 227 if (mCropLeft == crop.cropLeftOffset && 228 mCropTop == crop.cropTopOffset && 229 mCropWidth == crop.cropOutWidth && 230 mCropHeight == crop.cropOutHeight) { 234 mCropLeft = crop.cropLeftOffset; 235 mCropTop = crop.cropTopOffset; 236 mCropWidth = crop.cropOutWidth; 237 mCropHeight = crop.cropOutHeight;
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 422 * If the buffer size changes in this transaction, position and crop updates specified 485 public void setWindowCrop(Rect crop) { argument 487 if (crop != null) { 489 crop.left, crop.top, crop.right, crop.bottom); 495 public void setFinalCrop(Rect crop) { argument 497 if (crop != null) { 499 crop [all...] |
/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer 77 crop(Rect::EMPTY_RECT),
|
H A D | IGraphicBufferProducer.h | 293 // * crop rect is out of bounds of the buffer dimensions 301 // crop - a crop rectangle that's used as a hint to the consumer 309 android_dataspace dataSpace, const Rect& crop, int scalingMode, 312 dataSpace(dataSpace), crop(crop), scalingMode(scalingMode), 323 *outCrop = crop; 345 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput 308 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, android_dataspace dataSpace, const Rect& crop, int scalingMode, uint32_t transform, const sp<Fence>& fence, uint32_t sticky = 0) argument
|
H A D | SurfaceControl.h | 73 status_t setCrop(const Rect& crop); 74 status_t setFinalCrop(const Rect& crop);
|
H A D | BufferQueueCore.h | 322 : crop(_crop), 328 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
|
H A D | SurfaceComposerClient.h | 146 status_t setCrop(const sp<IBinder>& id, const Rect& crop); 147 status_t setFinalCrop(const sp<IBinder>& id, const Rect& crop);
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 75 "crop", &cropLeftNew, &cropTopNew, &cropRightNew, &cropBottomNew)) { 174 android_native_rect_t crop; local 175 crop.left = mCropLeft; 176 crop.top = mCropTop; 177 crop.right = mCropRight + 1; 178 crop.bottom = mCropBottom + 1; 179 ALOGV("setting crop: [%d, %d, %d, %d] for size [%zu, %zu]", 180 crop.left, crop.top, crop [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowSurfaceController.java | 70 // Surface flinger doesn't support crop rectangles where width or height is non-positive. 205 Slog.w(TAG, "Error setting crop surface of " + this 206 + " crop=" + clipRect.toShortString(), e); 208 mAnimator.reclaimSomeSurfaceMemory("crop", true); 220 Slog.w(TAG, "Error setting clearing crop of " + this, e); 222 mAnimator.reclaimSomeSurfaceMemory("crop", true); 626 public void setWindowCrop(Rect crop) { argument 627 if (crop != null) { 628 if (!crop.equals(mWindowCrop)) { 630 + crop 639 setFinalCrop(Rect crop) argument 832 setWindowCrop(Rect crop) argument 838 setFinalCrop(Rect crop) argument [all...] |
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 65 reserved(0), crop(Rect::INVALID_RECT), 95 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/ |
H A D | SurfaceControl.cpp | 155 status_t SurfaceControl::setCrop(const Rect& crop) { argument 158 return mClient->setCrop(mHandle, crop); 160 status_t SurfaceControl::setFinalCrop(const Rect& crop) { argument 163 return mClient->setFinalCrop(mHandle, crop);
|
H A D | LayerState.cpp | 40 output.write(crop); 68 input.read(crop);
|
H A D | GLConsumer.cpp | 148 static bool isEglImageCroppable(const Rect& crop) { 149 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0); 851 // crop rectangle we may need to shrink it by 2 texels in each 854 // are subsampled we may need to shrink the crop region by a whole 887 float crop[16] = { local 894 mtxMul(mtxBeforeFlipV, crop, xform); 945 // The crop is too wide 952 // The crop is too tall 961 GLC_LOGV("getCurrentCrop final crop [ 1213 createImage(EGLDisplay dpy, const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) argument [all...] |
H A D | SurfaceComposerClient.cpp | 160 const Rect& crop); 162 const sp<IBinder>& id, const Rect& crop); 387 const sp<IBinder>& id, const Rect& crop) { 393 s->crop = crop; 398 const sp<IBinder>& id, const Rect& crop) { 405 s->finalCrop = crop; 657 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { argument 658 return getComposer().setCrop(this, id, crop); 662 const Rect& crop) { 386 setCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument 397 setFinalCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument 661 setFinalCrop(const sp<IBinder>& id, const Rect& crop) argument [all...] |
H A D | BufferQueueProducer.cpp | 738 Rect crop(Rect::EMPTY_RECT); 743 input.deflate(×tamp, &isAutoTimestamp, &dataSpace, &crop, &scalingMode, 803 " crop=[%d,%d,%d,%d] transform=%#x scale=%s", 805 crop.left, crop.top, crop.right, crop.bottom, transform, 811 crop.intersect(bufferRect, &croppedRect); 812 if (croppedRect != crop) { 813 BQ_LOGE("queueBuffer: crop rec [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 330 // 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/opengl/tests/textures/ |
H A D | textures.cpp | 66 GLint crop[4] = { 0, 4, 4, -4 }; 68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 100 * <p>Input: {@link Intent#getData} is the URI of the image to crop and set as wallpaper. 101 * <p>Output: RESULT_OK if user decided to crop/set the wallpaper, RESULT_CANCEL otherwise 466 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image; 468 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image; 486 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image; 488 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image; 560 Log.w(TAG, "crop has bad values for full size image"); 576 Bitmap crop = null; 578 // Do region decoding to get crop bitmap 583 crop [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkImageReader.cpp | 282 // Check if the left-top corner of the crop rect is origin, we currently assume this point is 284 Point lt = buffer->crop.leftTop(); 286 ALOGE("crop left top corner [%d, %d] need to be at origin", lt.x, lt.y); 390 if (!buffer->crop.isEmpty()) { 391 return buffer->crop.getWidth(); 400 if (!buffer->crop.isEmpty()) { 401 return buffer->crop.getHeight();
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGL_test.cpp | 149 const android_native_rect_t& crop(crops[i]); 151 crop.left, crop.top, crop.right, crop.bottom).string()); 153 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); 164 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); 565 // ie NATIVE_WINDOW_SCALING_MODE_CROP should crop 582 // The crop is in the shape of (320, 180) === 16 x 9 590 // crop shoul [all...] |
H A D | IGraphicBufferProducer_test.cpp | 130 crop = QUEUE_BUFFER_INPUT_RECT; 141 crop, 162 QueueBufferInputBuilder& setCrop(Rect crop) { argument 163 this->crop = crop; 186 Rect crop; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder
|
H A D | SurfaceTextureClient_test.cpp | 511 Rect crop = mST->getCurrentCrop(); local 512 EXPECT_EQ(0, crop.left); 513 EXPECT_EQ(0, crop.top); 514 EXPECT_EQ(4, crop.right); 515 EXPECT_EQ(4, crop.bottom); 640 // Query to see if the image crop extension exists 654 android_native_rect_t crop; 655 crop.left = 0; 656 crop.top = 0; 657 crop [all...] |