/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
H A D | GLConsumer.h | 289 // one yet, or the EGLDisplay or crop-rect has changed). 310 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop); 325 // mCropRect is the crop rectangle passed to EGL when mEglImage 368 // mCurrentCrop is the crop rectangle that applies to the current texture.
|
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
|
H A D | SurfaceComposerClient.h | 135 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
|
H A D | SurfaceControl.h | 70 status_t setCrop(const Rect& crop);
|
/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 | CpuConsumer.cpp | 199 nativeBuffer->crop = b.mCrop;
|
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 | IGraphicBufferProducer.cpp | 435 + sizeof(crop) 455 FlattenableUtils::write(buffer, size, crop); 469 + sizeof(crop) 481 FlattenableUtils::read(buffer, size, crop);
|
H A D | LayerState.cpp | 40 output.write(crop); 64 input.read(crop);
|
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...] |
H A D | SurfaceTextureGL_test.cpp | 137 const android_native_rect_t& crop(crops[i]); 139 crop.left, crop.top, crop.right, crop.bottom).string()); 141 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); 152 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); 536 // ie NATIVE_WINDOW_SCALING_MODE_CROP should crop 553 // The crop is in the shape of (320, 180) === 16 x 9 561 // crop shoul [all...] |
/frameworks/native/opengl/tests/filter/ |
H A D | filter.cpp | 78 GLint crop[4] = { 0, 4, 4, -4 }; 80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/native/opengl/tests/finish/ |
H A D | finish.cpp | 106 GLint crop[4] = { 0, 512, 512, -512 }; 107 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 120 GLint crop[4] = { 0, 1, 1, -1 }; 121 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 134 GLint crop[4] = { 0, 512, 512, -512 }; 135 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 149 GLint crop[4] = { 0, 1, 1, -1 }; 150 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 166 GLint crop[4] = { 0, 512, 512, -512 }; 167 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, 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/opengl/tests/textures/ |
H A D | textures.cpp | 66 GLint crop[4] = { 0, 4, 4, -4 }; 68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/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 | HWComposer.h | 169 virtual void setCrop(const FloatRect& crop) = 0;
|
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...] |