Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/native/services/surfaceflinger/
DLayer.cpp95 mCurrentState.active.crop.makeInvalid(); in Layer()
254 Rect crop; in getContentCrop() local
257 crop = mCurrentCrop; in getContentCrop()
260 crop = mActiveBuffer->getBounds(); in getContentCrop()
263 crop.makeInvalid(); in getContentCrop()
265 return crop; in getContentCrop()
275 if (!s.active.crop.isEmpty()) { in computeBounds()
276 win.intersect(s.active.crop, &win); in computeBounds()
292 Rect crop(getContentCrop()); in computeCrop() local
304 Rect activeCrop(s.transform.transform(s.active.crop)); in computeCrop()
[all …]
DLayer.h87 Rect crop; member
89 return (w == rhs.w && h == rhs.h && crop == rhs.crop);
146 bool setCrop(const Rect& crop);
/frameworks/native/opengl/tests/finish/
Dfinish.cpp105 GLint crop[4] = { 0, 512, 512, -512 }; in main() local
106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
119 GLint crop[4] = { 0, 1, 1, -1 }; in main() local
120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
133 GLint crop[4] = { 0, 512, 512, -512 }; in main() local
134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
148 GLint crop[4] = { 0, 1, 1, -1 }; in main() local
149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
165 GLint crop[4] = { 0, 512, 512, -512 }; in main() local
166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
[all …]
/frameworks/native/include/gui/
DIGraphicBufferProducer.h106 const Rect& crop, int scalingMode, uint32_t transform, in QueueBufferInput()
108 : timestamp(timestamp), crop(crop), scalingMode(scalingMode), in QueueBufferInput()
114 *outCrop = crop; in deflate()
130 Rect crop; member
DCpuConsumer.h51 Rect crop; member
DSurfaceControl.h69 status_t setCrop(const Rect& crop);
DSurfaceComposerClient.h121 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
/frameworks/native/libs/gui/
DIGraphicBufferProducer.cpp292 + sizeof(crop) in getFlattenedSize()
309 memcpy(p, &crop, sizeof(crop)); p += sizeof(crop); in flatten()
322 memcpy(&crop, p, sizeof(crop)); p += sizeof(crop); in unflatten()
DLayerState.cpp40 output.write(crop); in write()
60 input.read(crop); in read()
DBufferQueue.cpp481 Rect crop; in queueBuffer() local
487 input.deflate(&timestamp, &crop, &scalingMode, &transform, &fence); in queueBuffer()
496 buf, timestamp, crop.left, crop.top, crop.right, crop.bottom, in queueBuffer()
525 crop.intersect(bufferRect, &croppedCrop); in queueBuffer()
526 if (croppedCrop != crop) { in queueBuffer()
558 mSlots[buf].mCrop = crop; in queueBuffer()
DSurfaceControl.cpp153 status_t SurfaceControl::setCrop(const Rect& crop) { in setCrop() argument
157 return client->setCrop(mHandle, crop); in setCrop()
DSurfaceComposerClient.cpp157 const Rect& crop);
366 const sp<IBinder>& id, const Rect& crop) { in setCrop() argument
372 s->crop = crop; in setCrop()
524 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { in setCrop() argument
525 return getComposer().setCrop(this, id, crop); in setCrop()
DSurface.cpp275 Rect crop; in queueBuffer() local
276 mCrop.intersect(Rect(buffer->width, buffer->height), &crop); in queueBuffer()
280 IGraphicBufferProducer::QueueBufferInput input(timestamp, crop, mScalingMode, in queueBuffer()
DCpuConsumer.cpp143 nativeBuffer->crop = b.mCrop; in lockNextBuffer()
/frameworks/base/core/java/android/view/
DSurfaceControl.java369 public void setWindowCrop(Rect crop) { in setWindowCrop() argument
371 if (crop != null) { in setWindowCrop()
373 crop.left, crop.top, crop.right, crop.bottom); in setWindowCrop()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
DSoftAVC.cpp423 bool SoftAVC::handleCropRectEvent(const CropParams *crop) { in handleCropRectEvent() argument
424 if (mCropLeft != crop->cropLeftOffset || in handleCropRectEvent()
425 mCropTop != crop->cropTopOffset || in handleCropRectEvent()
426 mCropWidth != crop->cropOutWidth || in handleCropRectEvent()
427 mCropHeight != crop->cropOutHeight) { in handleCropRectEvent()
428 mCropLeft = crop->cropLeftOffset; in handleCropRectEvent()
429 mCropTop = crop->cropTopOffset; in handleCropRectEvent()
430 mCropWidth = crop->cropOutWidth; in handleCropRectEvent()
431 mCropHeight = crop->cropOutHeight; in handleCropRectEvent()
DSoftAVC.h99 bool handleCropRectEvent(const CropParams* crop);
/frameworks/native/include/private/gui/
DLayerState.h60 crop.makeInvalid(); in layer_state_t()
85 Rect crop; member
/frameworks/native/opengl/tests/textures/
Dtextures.cpp65 GLint crop[4] = { 0, 4, 4, -4 }; in main() local
67 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
/frameworks/av/services/camera/libcameraservice/
DCameraHardwareInterface.h623 android_native_rect_t crop; in __set_crop() local
624 crop.left = left; in __set_crop()
625 crop.top = top; in __set_crop()
626 crop.right = right; in __set_crop()
627 crop.bottom = bottom; in __set_crop()
628 return native_window_set_crop(a, &crop); in __set_crop()
/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp486 Rect crop = mST->getCurrentCrop(); in TEST_F() local
487 EXPECT_EQ(0, crop.left); in TEST_F()
488 EXPECT_EQ(0, crop.top); in TEST_F()
489 EXPECT_EQ(4, crop.right); in TEST_F()
490 EXPECT_EQ(4, crop.bottom); in TEST_F()
615 android_native_rect_t crop; in TEST_F() local
616 crop.left = 0; in TEST_F()
617 crop.top = 0; in TEST_F()
618 crop.right = 5; in TEST_F()
619 crop.bottom = 5; in TEST_F()
[all …]
/frameworks/native/opengl/tests/filter/
Dfilter.cpp76 GLint crop[4] = { 0, 4, 4, -4 }; in main() local
78 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp119 GLint crop[4] = { 0, h, w, -h }; in initTexture() local
147 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTexture()
178 GLint crop[4] = { 0, h, w, -h }; in initTexture() local
212 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTexture()
/frameworks/native/opengl/tests/gl_yuvtex/
Dgl_yuvtex.cpp151 GLint crop[4] = { 0, 0, yuvTexWidth, yuvTexHeight }; in setupYuvTexSurface() local
152 glTexParameteriv(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_CROP_RECT_OES, crop); in setupYuvTexSurface()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp310 Rect crop(l, t, r, b); in nativeSetWindowCrop() local
311 status_t err = ctrl->setCrop(crop); in nativeSetWindowCrop()

12