/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
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
|
/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;
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 60 crop.makeInvalid(); 85 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/ |
H A D | SurfaceControl.cpp | 153 status_t SurfaceControl::setCrop(const Rect& crop) { argument 157 return client->setCrop(mHandle, crop);
|
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 | 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 | Surface.cpp | 280 // Make sure the crop rectangle is entirely inside the buffer. 281 Rect crop; local 282 mCrop.intersect(Rect(buffer->width, buffer->height), &crop); 287 crop, mScalingMode, mTransform, mSwapIntervalZero, fence);
|
H A D | SurfaceComposerClient.cpp | 158 const Rect& crop); 371 const sp<IBinder>& id, const Rect& crop) { 377 s->crop = crop; 533 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { argument 534 return getComposer().setCrop(this, id, crop); 370 setCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument
|
/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/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);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | VirtualDisplaySurface.cpp | 405 Rect crop; local 409 input.deflate(×tamp, &isAutoTimestamp, &crop, &scalingMode,
|
/frameworks/native/services/surfaceflinger/ |
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);
|
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...] |
/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/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/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/base/services/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 553 public void setWindowCrop(Rect crop) { argument 554 if (crop != null) { 555 if (!crop.equals(mWindowCrop)) { 556 Slog.v(SURFACE_TAG, "setWindowCrop(" + crop.toShortString() + "): OLD:" + this 558 mWindowCrop.set(crop); 561 super.setWindowCrop(crop); 620 + " crop=" + mWindowCrop.toShortString(); 1068 // scaling to the crop rect. We aren't using the standard rect 1069 // scale function because we want to round things to make the crop 1070 // always round to a larger rect to ensure we don't crop to [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.cpp | 1916 CropRegion crop = calculateCropRegion( (CropRegion::Outputs)( local 1921 static_cast<int32_t>(crop.left), 1922 static_cast<int32_t>(crop.top), 1923 static_cast<int32_t>(crop.width), 1924 static_cast<int32_t>(crop.height) 2556 // Need to convert zoom index into a crop rectangle. The rectangle is 2577 * Assumption: On the HAL side each stream buffer calculates its crop 2610 // skip over outputs we don't want to consider for the crop region 2660 CropRegion crop = { zoomLeft, zoomTop, zoomWidth, zoomHeight }; local 2661 return crop; [all...] |
/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 1333 android_native_rect_t crop = { left, top, right, bottom }; local 1334 return native_window_set_crop(a, &crop);
|
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 1130 // crop window, and we don't trust that they will be able to. 2539 "crop", 2547 "crop", 3420 android_native_rect_t crop; local 3421 if (msg->findRect("crop", 3422 &crop.left, &crop.top, &crop.right, &crop.bottom)) { 3424 mCodec->mNativeWindow.get(), &crop)); [all...] |
H A D | OMXCodec.cpp | 4299 android_native_rect_t crop; local 4300 crop.left = left; 4301 crop.top = top; 4302 crop.right = right + 1; 4303 crop.bottom = bottom + 1; 4307 native_window_set_crop(mNativeWindow.get(), &crop);
|