/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/libs/gui/ |
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 | CpuConsumer.cpp | 199 nativeBuffer->crop = b.mCrop;
|
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,
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 624 if (!buffer->crop.isEmpty()) { 625 return buffer->crop.getWidth(); 633 if (!buffer->crop.isEmpty()) { 634 return buffer->crop.getHeight(); 809 // Check if the left-top corner of the crop rect is origin, we currently assume this point is 811 Point lt = buffer->crop.leftTop(); 814 "crop left top corner [%d, %d] need to be at origin", lt.x, lt.y);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 997 virtual void setCrop(const FloatRect& crop) { 999 getLayer()->sourceCropf = reinterpret_cast<hwc_frect_t const&>(crop); 1002 * Since h/w composer didn't support a flot crop rect before version 1.3, 1004 * Layer::drawWithOpenGL(). The difference can be large if the buffer crop to 1005 * window size ratio is large and a window crop is defined 1006 * (i.e.: if we scale the buffer a lot and we also crop it with a window crop). 1009 r.left = int(ceilf(crop.left)); 1010 r.top = int(ceilf(crop.top)); 1011 r.right = int(floorf(crop [all...] |
H A D | VirtualDisplaySurface.cpp | 456 Rect crop; local 460 input.deflate(×tamp, &isAutoTimestamp, &crop, &scalingMode,
|
H A D | HWComposer.h | 169 virtual void setCrop(const FloatRect& crop) = 0;
|
/frameworks/native/include/gui/ |
H A D | SurfaceComposerClient.h | 135 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
|
/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/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/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 305 Rect crop(l, t, r, b); 306 status_t err = ctrl->setCrop(crop);
|
/frameworks/av/media/libstagefright/ |
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);
|
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...] |
/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/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 2160 if (layer->setCrop(s.crop)) 3134 ALOGE("Invalid crop rect: l = %d (< 0)", sourceCrop.left); 3137 ALOGE("Invalid crop rect: r = %d (> %d)", sourceCrop.right, hw_w); 3140 ALOGE("Invalid crop rect: t = %d (< 0)", sourceCrop.top); 3143 ALOGE("Invalid crop rect: b = %d (> %d)", sourceCrop.bottom, hw_h);
|