/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 1375 // crop window, and we don't trust that they will be able to. 3496 // TODO: also get input crop 3524 "crop", 3851 notify->findRect("crop", &left, &top, &right, &bottom)) { 3852 // notify renderer of the crop change 3854 reply->setRect("crop", left, top, right + 1, bottom + 1); 4635 android_native_rect_t crop; local 4636 if (msg->findRect("crop", 4637 &crop.left, &crop [all...] |
H A D | OMXCodec.cpp | 4215 android_native_rect_t crop; local 4216 crop.left = left; 4217 crop.top = top; 4218 crop.right = right + 1; 4219 crop.bottom = bottom + 1; 4223 native_window_set_crop(mNativeWindow.get(), &crop);
|
/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/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/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.cpp | 2091 CropRegion crop = calculateCropRegion( (CropRegion::Outputs)( local 2096 static_cast<int32_t>(crop.left), 2097 static_cast<int32_t>(crop.top), 2098 static_cast<int32_t>(crop.width), 2099 static_cast<int32_t>(crop.height) 2849 // Need to convert zoom index into a crop rectangle. The rectangle is 2870 * Assumption: On the HAL side each stream buffer calculates its crop 2903 // skip over outputs we don't want to consider for the crop region 2953 CropRegion crop = { zoomLeft, zoomTop, zoomWidth, zoomHeight }; local 2954 return crop; [all...] |
/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/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 1378 android_native_rect_t crop = { left, top, right, bottom }; local 1379 return native_window_set_crop(a, &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);
|
/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/base/services/core/java/com/android/server/wm/ |
H A D | WindowManagerService.java | 6031 private static void convertCropForSurfaceFlinger(Rect crop, int rot, int dw, int dh) { argument 6033 final int tmp = crop.top; 6034 crop.top = dw - crop.right; 6035 crop.right = crop.bottom; 6036 crop.bottom = dw - crop.left; 6037 crop.left = tmp; 6039 int tmp = crop [all...] |
H A D | WindowStateAnimator.java | 632 public void setWindowCrop(Rect crop) { argument 633 if (crop != null) { 634 if (!crop.equals(mWindowCrop)) { 636 + crop.toShortString() + "): OLD:" + this + ". Called by " 638 mWindowCrop.set(crop); 641 super.setWindowCrop(crop); 756 + " crop=" + mWindowCrop.toShortString() 1269 // scaling to the crop rect. We aren't using the standard rect 1270 // scale function because we want to round things to make the crop 1271 // always round to a larger rect to ensure we don't crop to [all...] |
/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
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
|
/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 | 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 | 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 | Surface.cpp | 314 // Make sure the crop rectangle is entirely inside the buffer. 315 Rect crop; local 316 mCrop.intersect(Rect(buffer->width, buffer->height), &crop); 321 crop, mScalingMode, mTransform ^ mStickyTransform, mSwapIntervalZero,
|
H A D | SurfaceComposerClient.cpp | 158 const Rect& crop); 377 const sp<IBinder>& id, const Rect& crop) { 383 s->crop = crop; 562 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { argument 563 return getComposer().setCrop(this, id, crop); 376 setCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument
|
H A D | SurfaceControl.cpp | 142 status_t SurfaceControl::setCrop(const Rect& crop) { argument 145 return mClient->setCrop(mHandle, crop);
|
/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...] |
/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 | 456 Rect crop; local 460 input.deflate(×tamp, &isAutoTimestamp, &crop, &scalingMode,
|
/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);
|