/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 200 // Start with the SurfaceTexture's buffer crop... 201 Rect crop; local 203 crop = mCurrentCrop; 205 crop = Rect(mActiveBuffer->getWidth(), mActiveBuffer->getHeight()); 207 crop.makeInvalid(); 208 return crop; 211 // ... then reduce that in the same proportions as the window crop reduces 214 if (!s.active.crop.isEmpty()) { 215 // Transform the window crop to match the buffer coordinate system, 227 Rect winCrop = s.active.crop [all...] |
H A D | LayerBase.cpp | 77 mCurrentState.active.crop.makeInvalid(); 168 bool LayerBase::setCrop(const Rect& crop) { argument 169 if (mCurrentState.requested.crop == crop) 172 mCurrentState.requested.crop = crop; 242 if (!s.active.crop.isEmpty()) { 243 win.intersect(s.active.crop, &win); 259 if (!s.active.crop.isEmpty()) { 260 win.intersect(s.active.crop, [all...] |
H A D | LayerBase.h | 69 Rect crop; member in struct:android::LayerBase::Geometry 71 return (w==rhs.w && h==rhs.h && crop==rhs.crop); 116 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 | 92 const Rect& crop, int scalingMode, uint32_t transform, 94 : timestamp(timestamp), crop(crop), scalingMode(scalingMode), 100 *outCrop = crop; 116 Rect crop; member in struct:android::ISurfaceTexture::QueueBufferInput 91 QueueBufferInput(int64_t timestamp, const Rect& crop, int scalingMode, uint32_t transform, sp<Fence> fence) argument
|
H A D | CpuConsumer.h | 51 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
H A D | Surface.h | 73 status_t setCrop(const Rect& crop);
|
H A D | SurfaceComposerClient.h | 120 status_t setCrop(SurfaceID id, const Rect& crop);
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 61 crop.makeInvalid(); 86 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/libs/gui/ |
H A D | ISurfaceTexture.cpp | 303 + sizeof(crop) 322 memcpy(p, &crop, sizeof(crop)); p += sizeof(crop); 339 memcpy(&crop, p, sizeof(crop)); p += sizeof(crop);
|
H A D | BufferQueue.cpp | 485 Rect crop; local 491 input.deflate(×tamp, &crop, &scalingMode, &transform, &fence); 493 ST_LOGV("queueBuffer: slot=%d time=%#llx crop=[%d,%d,%d,%d] tr=%#x " 495 buf, timestamp, crop.left, crop.top, crop.right, crop.bottom, 524 crop.intersect(bufferRect, &croppedCrop); 525 if (croppedCrop != crop) { 526 ST_LOGE("queueBuffer: crop rec [all...] |
H A D | CpuConsumer.cpp | 106 nativeBuffer->crop = b.mCrop;
|
H A D | SurfaceComposerClient.cpp | 154 const Rect& crop); 343 SurfaceID id, const Rect& crop) { 349 s->crop = crop; 499 status_t SurfaceComposerClient::setCrop(SurfaceID id, const Rect& crop) { argument 500 return getComposer().setCrop(this, id, crop); 342 setCrop(const sp<SurfaceComposerClient>& client, SurfaceID id, const Rect& crop) argument
|
H A D | Surface.cpp | 155 status_t SurfaceControl::setCrop(const Rect& crop) { argument 159 return client->setCrop(mToken, crop);
|
/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...] |
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 626 Rect crop; 628 crop.left = env->GetIntField(cropObj, gRectClassInfo.left); 629 crop.top = env->GetIntField(cropObj, gRectClassInfo.top); 630 crop.right = env->GetIntField(cropObj, gRectClassInfo.right); 631 crop.bottom = env->GetIntField(cropObj, gRectClassInfo.bottom); 633 crop.left = crop.top = crop.right = crop.bottom = 0; 636 status_t err = surface->setCrop(crop); [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraHardwareInterface.h | 627 android_native_rect_t crop; local 628 crop.left = left; 629 crop.top = top; 630 crop.right = right; 631 crop.bottom = bottom; 632 return native_window_set_crop(a, &crop);
|
/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/core/java/android/view/ |
H A D | Surface.java | 257 private native void nativeSetWindowCrop(Rect crop); argument 585 public void setWindowCrop(Rect crop) { argument 586 nativeSetWindowCrop(crop);
|
/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/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 | HWComposer.h | 149 virtual void setCrop(const Rect& crop) = 0;
|