Searched refs:crop (Results 1 - 25 of 42) sorted by last modified time

12

/frameworks/native/include/gui/
H A DCpuConsumer.h52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
H A DGLConsumer.h289 // 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 DIGraphicBufferProducer.h263 // * 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 DSurfaceComposerClient.h135 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
H A DSurfaceControl.h70 status_t setCrop(const Rect& crop);
/frameworks/native/include/private/gui/
H A DLayerState.h65 crop.makeInvalid();
90 Rect crop; member in struct:android::layer_state_t
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp519 Rect crop; local
525 input.deflate(&timestamp, &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 DCpuConsumer.cpp199 nativeBuffer->crop = b.mCrop;
H A DGLConsumer.cpp115 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 DIGraphicBufferProducer.cpp435 + sizeof(crop)
455 FlattenableUtils::write(buffer, size, crop);
469 + sizeof(crop)
481 FlattenableUtils::read(buffer, size, crop);
H A DLayerState.cpp40 output.write(crop);
64 input.read(crop);
H A DSurface.cpp314 // 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 DSurfaceComposerClient.cpp158 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 DSurfaceControl.cpp142 status_t SurfaceControl::setCrop(const Rect& crop) { argument
145 return mClient->setCrop(mHandle, crop);
/frameworks/native/libs/gui/tests/
H A DIGraphicBufferProducer_test.cpp129 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 DSurfaceTextureClient_test.cpp488 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 DSurfaceTextureGL_test.cpp137 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 Dfilter.cpp78 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 Dfinish.cpp106 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 Dgl_yuvtex.cpp151 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 Dtextures.cpp66 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 DHWComposer.cpp997 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 DHWComposer.h169 virtual void setCrop(const FloatRect& crop) = 0;
H A DVirtualDisplaySurface.cpp456 Rect crop; local
460 input.deflate(&timestamp, &isAutoTimestamp, &crop, &scalingMode,
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp103 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...]

Completed in 2341 milliseconds

12