Searched refs:crop (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/native/services/surfaceflinger/
H A DLayer.cpp200 // 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 DLayerBase.cpp77 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 DLayerBase.h69 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 Dfinish.cpp105 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 DISurfaceTexture.h92 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 DCpuConsumer.h51 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
H A DSurface.h73 status_t setCrop(const Rect& crop);
H A DSurfaceComposerClient.h120 status_t setCrop(SurfaceID id, const Rect& crop);
/frameworks/native/include/private/gui/
H A DLayerState.h61 crop.makeInvalid();
86 Rect crop; member in struct:android::layer_state_t
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
H A DSoftAVC.h99 bool handleCropRectEvent(const CropParams* crop);
H A DSoftAVC.cpp427 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 DISurfaceTexture.cpp303 + sizeof(crop)
322 memcpy(p, &crop, sizeof(crop)); p += sizeof(crop);
339 memcpy(&crop, p, sizeof(crop)); p += sizeof(crop);
H A DBufferQueue.cpp485 Rect crop; local
491 input.deflate(&timestamp, &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 DCpuConsumer.cpp106 nativeBuffer->crop = b.mCrop;
H A DSurfaceComposerClient.cpp154 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 DSurface.cpp155 status_t SurfaceControl::setCrop(const Rect& crop) { argument
159 return client->setCrop(mToken, crop);
/frameworks/native/opengl/tests/textures/
H A Dtextures.cpp65 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 DSurfaceTextureClient_test.cpp456 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 Dandroid_view_Surface.cpp626 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 DCameraHardwareInterface.h627 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 Dfilter.cpp76 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 DSurface.java257 private native void nativeSetWindowCrop(Rect crop); argument
585 public void setWindowCrop(Rect crop) { argument
586 nativeSetWindowCrop(crop);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp119 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 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/services/surfaceflinger/DisplayHardware/
H A DHWComposer.h149 virtual void setCrop(const Rect& crop) = 0;

Completed in 1986 milliseconds

12