/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 222 // Start with the SurfaceTexture's buffer crop... 223 Rect crop; local 225 crop = mCurrentCrop; 227 crop = Rect(mActiveBuffer->getWidth(), mActiveBuffer->getHeight()); 229 crop = Rect(mTransformedBounds.width(), mTransformedBounds.height()); 232 // ... then reduce that in the same proportions as the window crop reduces 235 if (!s.active.crop.isEmpty()) { 236 // Transform the window crop to match the buffer coordinate system, 248 Rect winCrop = s.active.crop.transform(invTransform, 251 float xScale = float(crop 296 Rect crop = computeBufferCrop(); local [all...] |
H A D | LayerBase.cpp | 89 mCurrentState.active.crop.makeInvalid(); 175 bool LayerBase::setCrop(const Rect& crop) { argument 176 if (mCurrentState.requested.crop == crop) 179 mCurrentState.requested.crop = crop; 240 const Rect& crop(s.active.crop); 243 if (!crop.isEmpty()) { 244 win.intersect(crop, [all...] |
H A D | LayerBase.h | 71 Rect crop; member in struct:android::LayerBase::Geometry 73 return (w==rhs.w && h==rhs.h && crop==rhs.crop); 103 bool setCrop(const Rect& crop);
|
/frameworks/native/opengl/tests/finish/ |
H A D | finish.cpp | 105 GLint crop[4] = { 0, 512, 512, -512 }; 106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 119 GLint crop[4] = { 0, 1, 1, -1 }; 120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 133 GLint crop[4] = { 0, 512, 512, -512 }; 134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 148 GLint crop[4] = { 0, 1, 1, -1 }; 149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 165 GLint crop[4] = { 0, 512, 512, -512 }; 166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); [all...] |
/frameworks/native/include/gui/ |
H A D | ISurfaceTexture.h | 89 const Rect& crop, int scalingMode, uint32_t transform) 90 : timestamp(timestamp), crop(crop), scalingMode(scalingMode), 95 *outCrop = crop; 101 Rect crop; member in struct:android::ISurfaceTexture::QueueBufferInput 88 QueueBufferInput(int64_t timestamp, const Rect& crop, int scalingMode, uint32_t transform) argument
|
H A D | Surface.h | 75 status_t setCrop(const Rect& crop);
|
H A D | SurfaceComposerClient.h | 130 status_t setCrop(SurfaceID id, const Rect& crop);
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 44 crop.makeInvalid(); 69 Rect crop; member in struct:android::layer_state_t
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
H A D | SoftAVC.h | 99 bool handleCropRectEvent(const CropParams* crop);
|
H A D | SoftAVC.cpp | 427 bool SoftAVC::handleCropRectEvent(const CropParams *crop) { argument 428 if (mCropLeft != crop->cropLeftOffset || 429 mCropTop != crop->cropTopOffset || 430 mCropWidth != crop->cropOutWidth || 431 mCropHeight != crop->cropOutHeight) { 432 mCropLeft = crop->cropLeftOffset; 433 mCropTop = crop->cropTopOffset; 434 mCropWidth = crop->cropOutWidth; 435 mCropHeight = crop->cropOutHeight;
|
/frameworks/native/opengl/tests/textures/ |
H A D | textures.cpp | 65 GLint crop[4] = { 0, 4, 4, -4 }; 67 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureClient_test.cpp | 456 Rect crop = mST->getCurrentCrop(); local 457 EXPECT_EQ(0, crop.left); 458 EXPECT_EQ(0, crop.top); 459 EXPECT_EQ(4, crop.right); 460 EXPECT_EQ(4, crop.bottom); 585 android_native_rect_t crop; local 586 crop.left = 0; 587 crop.top = 0; 588 crop.right = 5; 589 crop [all...] |
H A D | SurfaceTexture_test.cpp | 797 const android_native_rect_t& crop(crops[i]); 799 crop.left, crop.top, crop.right, crop.bottom).string()); 801 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); 813 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); 1208 // ie NATIVE_WINDOW_SCALING_MODE_CROP should crop 1227 // The crop is in the shape of (320, 180) === 16 x 9 1235 // crop shoul [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraHardwareInterface.h | 628 android_native_rect_t crop; local 629 crop.left = left; 630 crop.top = top; 631 crop.right = right; 632 crop.bottom = bottom; 633 return native_window_set_crop(a, &crop);
|
/frameworks/native/libs/gui/ |
H A D | SurfaceComposerClient.cpp | 129 const Rect& crop); 296 SurfaceID id, const Rect& crop) { 302 s->crop = crop; 414 status_t SurfaceComposerClient::setCrop(SurfaceID id, const Rect& crop) { argument 415 return getComposer().setCrop(this, id, crop); 295 setCrop(const sp<SurfaceComposerClient>& client, SurfaceID id, const Rect& crop) argument
|
H A D | BufferQueue.cpp | 548 Rect crop; local 553 input.deflate(×tamp, &crop, &scalingMode, &transform); 555 ST_LOGV("queueBuffer: slot=%d time=%#llx crop=[%d,%d,%d,%d] tr=%#x " 557 buf, timestamp, crop.left, crop.top, crop.right, crop.bottom, 585 crop.intersect(bufferRect, &croppedCrop); 586 if (croppedCrop != crop) { 587 ST_LOGE("queueBuffer: crop rec [all...] |
H A D | SurfaceTextureClient.cpp | 240 // Make sure the crop rectangle is entirely inside the buffer. 241 Rect crop; local 242 mCrop.intersect(Rect(buffer->width, buffer->height), &crop); 245 ISurfaceTexture::QueueBufferInput input(timestamp, crop, mScalingMode,
|
H A D | Surface.cpp | 167 status_t SurfaceControl::setCrop(const Rect& crop) { argument 171 return client->setCrop(mToken, crop);
|
H A D | SurfaceTexture.cpp | 574 // crop rectangle we may need to shrink it by 2 texels in each 577 // are subsampled we may need to shrink the crop region by a whole 611 float crop[16] = { local 619 mtxMul(mtxBeforeFlipV, crop, xform); 678 // The crop is too wide 683 // The crop is too tall 690 ST_LOGV("getCurrentCrop final crop [%d,%d,%d,%d]", 830 "%snext : {crop=[%d,%d,%d,%d], transform=0x%02x, current=%d}\n",
|
/frameworks/native/opengl/tests/filter/ |
H A D | filter.cpp | 76 GLint crop[4] = { 0, 4, 4, -4 }; 78 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 118 GLint crop[4] = { 0, h, w, -h }; local 146 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 177 GLint crop[4] = { 0, h, w, -h }; local 211 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/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/base/core/jni/ |
H A D | android_view_Surface.cpp | 750 static void Surface_setWindowCrop(JNIEnv* env, jobject thiz, jobject crop) argument 756 if (crop) { 757 nativeCrop.left = env->GetIntField(crop, ro.l); 758 nativeCrop.top = env->GetIntField(crop, ro.t); 759 nativeCrop.right = env->GetIntField(crop, ro.r); 760 nativeCrop.bottom= env->GetIntField(crop, ro.b);
|
/frameworks/base/core/java/android/view/ |
H A D | Surface.java | 514 public native void setWindowCrop(Rect crop); argument
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 527 public void setWindowCrop(Rect crop) { argument 528 super.setWindowCrop(crop); 529 if (crop != null) { 530 mWindowCrop.set(crop); 580 + " crop=" + mWindowCrop.toShortString(); 959 // just keep the crop rect the same as the source surface. 977 // scaling to the crop rect. We aren't using the standard rect 978 // scale function because we want to round things to make the crop 979 // always round to a larger rect to ensure we don't crop too 997 Slog.w(TAG, "Error setting crop surfac [all...] |