/frameworks/native/opengl/tests/finish/ |
H A D | finish.cpp | 105 GLint crop[4] = { 0, 512, 512, -512 }; 106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 119 GLint crop[4] = { 0, 1, 1, -1 }; 120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 133 GLint crop[4] = { 0, 512, 512, -512 }; 134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 148 GLint crop[4] = { 0, 1, 1, -1 }; 149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 165 GLint crop[4] = { 0, 512, 512, -512 }; 166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 98 mCurrentState.active.crop.makeInvalid(); 239 // this is the crop rectangle that applies to the buffer 241 Rect crop; local 243 // if the buffer crop is defined, we use that 244 crop = mCurrentCrop; 247 crop = mActiveBuffer->getBounds(); 249 // if we don't have a buffer yet, we use an empty/invalid crop 250 crop.makeInvalid(); 252 return crop; 268 if (!s.active.crop 877 setCrop(const Rect& crop) argument [all...] |
H A D | Layer.h | 88 Rect crop; member in struct:android::Layer::Geometry 90 return (w == rhs.w && h == rhs.h && crop == rhs.crop); 132 bool setCrop(const Rect& crop);
|
/frameworks/native/include/gui/ |
H A D | IGraphicBufferProducer.h | 112 const Rect& crop, int scalingMode, uint32_t transform, bool async, 114 : timestamp(timestamp), isAutoTimestamp(isAutoTimestamp), crop(crop), 122 *outCrop = crop; 138 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput 111 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, const Rect& crop, int scalingMode, uint32_t transform, bool async, const sp<Fence>& fence) argument
|
H A D | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
H A D | SurfaceControl.h | 69 status_t setCrop(const Rect& crop);
|
H A D | GLConsumer.h | 276 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop); 323 // mCurrentCrop is the crop rectangle that applies to the current texture. 389 // mCropRect is the crop rectangle passed to EGL when mEglImage was
|
H A D | SurfaceComposerClient.h | 124 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
H A D | SoftAVC.cpp | 232 bool SoftAVC::handleCropRectEvent(const CropParams *crop) { argument 233 if (mCropLeft != crop->cropLeftOffset || 234 mCropTop != crop->cropTopOffset || 235 mCropWidth != crop->cropOutWidth || 236 mCropHeight != crop->cropOutHeight) { 237 mCropLeft = crop->cropLeftOffset; 238 mCropTop = crop->cropTopOffset; 239 mCropWidth = crop->cropOutWidth; 240 mCropHeight = crop->cropOutHeight;
|
H A D | SoftAVC.h | 78 bool handleCropRectEvent(const CropParams* crop);
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 60 crop.makeInvalid(); 85 Rect crop; member in struct:android::layer_state_t
|
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 72 * <p>Input: {@link Intent#getData} is the URI of the image to crop and set as wallpaper. 73 * <p>Output: RESULT_OK if user decided to crop/set the wallpaper, RESULT_CANCEL otherwise 404 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image; 406 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image; 467 Log.w(TAG, "crop has bad values for full size image"); 483 Bitmap crop = null; 485 // Do region decoding to get crop bitmap 490 crop = decoder.decodeRegion(roundedTrueCrop, options); 494 if (crop == null) { 495 // BitmapRegionDecoder has failed, try to crop i [all...] |
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 362 public void setWindowCrop(Rect crop) { argument 364 if (crop != null) { 366 crop.left, crop.top, crop.right, crop.bottom);
|
/frameworks/native/libs/gui/ |
H A D | LayerState.cpp | 40 output.write(crop); 60 input.read(crop);
|
H A D | GLConsumer.cpp | 115 static bool isEglImageCroppable(const Rect& crop) { 116 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0); 318 // different crop rect, so we'll need to recreate the EGLImage if 624 Rect crop; local 807 // crop rectangle we may need to shrink it by 2 texels in each 810 // are subsampled we may need to shrink the crop region by a whole 844 float crop[16] = { local 851 mtxMul(mtxBeforeFlipV, crop, xform); 878 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) { 877 createImage(EGLDisplay dpy, const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) argument [all...] |
H A D | BufferQueue.cpp | 474 Rect crop; local 482 input.deflate(×tamp, &isAutoTimestamp, &crop, &scalingMode, &transform, 535 ST_LOGV("queueBuffer: slot=%d/%llu time=%#llx crop=[%d,%d,%d,%d] " 538 crop.left, crop.top, crop.right, crop.bottom, 544 crop.intersect(bufferRect, &croppedCrop); 545 if (croppedCrop != crop) { 546 ST_LOGE("queueBuffer: crop rec [all...] |
H A D | IGraphicBufferProducer.cpp | 275 + sizeof(crop) 294 FlattenableUtils::write(buffer, size, crop); 307 + sizeof(crop) 318 FlattenableUtils::read(buffer, size, crop);
|
H A D | SurfaceControl.cpp | 153 status_t SurfaceControl::setCrop(const Rect& crop) { argument 157 return client->setCrop(mHandle, crop);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 303 // crop this image and scale it down to the default wallpaper size for 309 RectF crop = getMaxCropRect( 323 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); 335 // Get the crop 346 // Get the crop 369 // Extend the crop all the way to the right, for parallax 573 // Find crop bounds (scaled to original image size) 606 Log.w(LOGTAG, "crop has bad values for full size image"); 633 Bitmap crop = null; 635 // Do region decoding to get crop bitma [all...] |
/frameworks/native/opengl/tests/textures/ |
H A D | textures.cpp | 65 GLint crop[4] = { 0, 4, 4, -4 }; 67 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureClient_test.cpp | 485 Rect crop = mST->getCurrentCrop(); local 486 EXPECT_EQ(0, crop.left); 487 EXPECT_EQ(0, crop.top); 488 EXPECT_EQ(4, crop.right); 489 EXPECT_EQ(4, crop.bottom); 613 android_native_rect_t crop; local 614 crop.left = 0; 615 crop.top = 0; 616 crop.right = 5; 617 crop [all...] |
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 623 android_native_rect_t crop; local 624 crop.left = left; 625 crop.top = top; 626 crop.right = right; 627 crop.bottom = bottom; 628 return native_window_set_crop(a, &crop);
|
/frameworks/native/opengl/tests/filter/ |
H A D | filter.cpp | 76 GLint crop[4] = { 0, 4, 4, -4 }; 78 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 119 GLint crop[4] = { 0, h, w, -h }; local 147 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 178 GLint crop[4] = { 0, h, w, -h }; local 212 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/native/opengl/tests/gl_yuvtex/ |
H A D | gl_yuvtex.cpp | 151 GLint crop[4] = { 0, 0, yuvTexWidth, yuvTexHeight }; local 152 glTexParameteriv(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_CROP_RECT_OES, crop);
|