/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/native/services/surfaceflinger/ |
H A D | Layer.cpp | 103 mCurrentState.active.crop.makeInvalid(); 269 // this is the crop rectangle that applies to the buffer 271 Rect crop; local 273 // if the buffer crop is defined, we use that 274 crop = mCurrentCrop; 277 crop = mActiveBuffer->getBounds(); 279 // if we don't have a buffer yet, we use an empty/invalid crop 280 crop.makeInvalid(); 282 return crop; 303 if (!s.active.crop 1022 setCrop(const Rect& crop) argument [all...] |
H A D | Layer.h | 93 Rect crop; member in struct:android::Layer::Geometry 95 return (w == rhs.w && h == rhs.h && crop == rhs.crop); 137 bool setCrop(const Rect& crop);
|
/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/native/include/gui/ |
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 | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
H A D | SurfaceControl.h | 70 status_t setCrop(const Rect& crop);
|
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.
|
/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/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/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 | LayerState.cpp | 40 output.write(crop); 64 input.read(crop);
|
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 | 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 | SurfaceControl.cpp | 142 status_t SurfaceControl::setCrop(const Rect& crop) { argument 145 return mClient->setCrop(mHandle, crop);
|
H A D | IGraphicBufferProducer.cpp | 435 + sizeof(crop) 455 FlattenableUtils::write(buffer, size, crop); 469 + sizeof(crop) 481 FlattenableUtils::read(buffer, size, crop);
|
/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/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/native/libs/gui/tests/ |
H A D | IGraphicBufferProducer_test.cpp | 129 crop = QUEUE_BUFFER_INPUT_RECT; 140 crop, 157 QueueBufferInputBuilder& setCrop(Rect crop) { argument 158 this->crop = crop; 185 Rect crop; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder
|
H A D | SurfaceTextureClient_test.cpp | 488 Rect crop = mST->getCurrentCrop(); local 489 EXPECT_EQ(0, crop.left); 490 EXPECT_EQ(0, crop.top); 491 EXPECT_EQ(4, crop.right); 492 EXPECT_EQ(4, crop.bottom); 616 android_native_rect_t crop; local 617 crop.left = 0; 618 crop.top = 0; 619 crop.right = 5; 620 crop [all...] |
H A D | SurfaceTextureGL_test.cpp | 137 const android_native_rect_t& crop(crops[i]); 139 crop.left, crop.top, crop.right, crop.bottom).string()); 141 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); 152 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); 536 // ie NATIVE_WINDOW_SCALING_MODE_CROP should crop 553 // The crop is in the shape of (320, 180) === 16 x 9 561 // crop shoul [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/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/native/opengl/tests/filter/ |
H A D | filter.cpp | 78 GLint crop[4] = { 0, 4, 4, -4 }; 80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, 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);
|