/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 | BufferQueueCore.h | 310 : crop(_crop), 316 Rect crop; member in struct:android::BufferQueueCore::SharedBufferCache
|
H A D | IGraphicBufferProducer.h | 291 // * crop rect is out of bounds of the buffer dimensions 299 // crop - a crop rectangle that's used as a hint to the consumer 307 android_dataspace dataSpace, const Rect& crop, int scalingMode, 310 dataSpace(dataSpace), crop(crop), scalingMode(scalingMode), 321 *outCrop = crop; 343 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput 306 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
|
/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/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/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 | GLConsumer.cpp | 148 static bool isEglImageCroppable(const Rect& crop) { 149 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0); 850 // crop rectangle we may need to shrink it by 2 texels in each 853 // are subsampled we may need to shrink the crop region by a whole 886 float crop[16] = { local 893 mtxMul(mtxBeforeFlipV, crop, xform); 944 // The crop is too wide 951 // The crop is too tall 960 GLC_LOGV("getCurrentCrop final crop [ 1212 createImage(EGLDisplay dpy, const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) argument [all...] |
H A D | SurfaceComposerClient.cpp | 158 const Rect& crop); 160 const sp<IBinder>& id, const Rect& crop); 385 const sp<IBinder>& id, const Rect& crop) { 391 s->crop = crop; 396 const sp<IBinder>& id, const Rect& crop) { 403 s->finalCrop = crop; 635 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { argument 636 return getComposer().setCrop(this, id, crop); 640 const Rect& crop) { 384 setCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument 395 setFinalCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument 639 setFinalCrop(const sp<IBinder>& id, const Rect& crop) argument [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | BufferQueue_test.cpp | 73 Rect crop; local 78 input.deflate(×tamp, &isAutoTimestamp, &dataSpace, &crop, 83 ASSERT_EQ(crop, item.mCrop);
|
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...] |
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
|
/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 | 508 Rect crop; local 511 input.deflate(×tamp, &isAutoTimestamp, &dataSpace, &crop,
|
H A D | HWC2.cpp | 1054 Error Layer::setSourceCrop(const FloatRect& crop) argument 1056 hwc_frect_t hwcRect{crop.left, crop.top, crop.right, crop.bottom};
|
H A D | HWC2On1Adapter.cpp | 1550 output << fill << "Source crop: "; 2067 Error HWC2On1Adapter::Layer::setSourceCrop(hwc_frect_t crop) argument 2069 mSourceCrop.setPending(crop); 2168 output << fill << " Source crop: " <<
|
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.h | 122 Rect crop; member in struct:android::Layer::State 159 bool setCrop(const Rect& crop); 160 bool setFinalCrop(const Rect& crop);
|
H A D | Layer.cpp | 125 mCurrentState.crop.makeInvalid(); 350 // this is the crop rectangle that applies to the buffer 352 Rect crop; local 354 // if the buffer crop is defined, we use that 355 crop = mCurrentCrop; 358 crop = mActiveBuffer->getBounds(); 360 // if we don't have a buffer yet, we use an empty/invalid crop 361 crop.makeInvalid(); 363 return crop; 385 if (!s.crop 1151 boundPoint(vec2* point, const Rect& crop) argument 1576 setCrop(const Rect& crop) argument 1585 setFinalCrop(const Rect& crop) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 124 GLint crop[4] = { 0, h, w, -h }; local 152 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 188 GLint crop[4] = { 0, h, w, -h }; local 222 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowSurfaceController.java | 64 // Surface flinger doesn't support crop rectangles where width or height is non-positive. 199 Slog.w(TAG, "Error setting crop surface of " + this 200 + " crop=" + clipRect.toShortString(), e); 202 mAnimator.reclaimSomeSurfaceMemory("crop", true); 214 Slog.w(TAG, "Error setting clearing crop of " + this, e); 216 mAnimator.reclaimSomeSurfaceMemory("crop", true); 602 public void setWindowCrop(Rect crop) { argument 603 if (crop != null) { 604 if (!crop.equals(mWindowCrop)) { 606 + crop 615 setFinalCrop(Rect crop) argument 808 setWindowCrop(Rect crop) argument 814 setFinalCrop(Rect crop) argument [all...] |
H A D | WindowManagerService.java | 6121 private static void convertCropForSurfaceFlinger(Rect crop, int rot, int dw, int dh) { argument 6123 final int tmp = crop.top; 6124 crop.top = dw - crop.right; 6125 crop.right = crop.bottom; 6126 crop.bottom = dw - crop.left; 6127 crop.left = tmp; 6129 int tmp = crop [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.cpp | 2114 CropRegion crop = calculateCropRegion(/*previewOnly*/ false); local 2116 static_cast<int32_t>(crop.left), 2117 static_cast<int32_t>(crop.top), 2118 static_cast<int32_t>(crop.width), 2119 static_cast<int32_t>(crop.height) 2908 // Need to convert zoom index into a crop rectangle. The rectangle is 2929 // Calculate a tight crop region for the preview stream only 2954 // Calculate the global crop region with a shape matching the active 2967 CropRegion crop = { zoomLeft, zoomTop, zoomWidth, zoomHeight }; local 2968 return crop; [all...] |
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 473 public void setWindowCrop(Rect crop) { argument 475 if (crop != null) { 477 crop.left, crop.top, crop.right, crop.bottom); 483 public void setFinalCrop(Rect crop) { argument 485 if (crop != null) { 487 crop.left, crop [all...] |
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 1957 // crop window, and we don't trust that they will be able to. 4772 "crop", 5221 // notify renderer of the crop change and dataspace change 5224 if (mOutputFormat->findRect("crop", &left, &top, &right, &bottom)) { 5225 notify->setRect("crop", left, top, right + 1, bottom + 1); 6025 // If potentially rendering onto a surface, always save key format data (crop & 6127 android_native_rect_t crop; local 6128 if (msg->findRect("crop", &crop.left, &crop [all...] |