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

12

/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/services/surfaceflinger/
H A DLayer.cpp95 mCurrentState.active.crop.makeInvalid();
252 // this is the crop rectangle that applies to the buffer
254 Rect crop; local
256 // if the buffer crop is defined, we use that
257 crop = mCurrentCrop;
260 crop = mActiveBuffer->getBounds();
262 // if we don't have a buffer yet, we use an empty/invalid crop
263 crop.makeInvalid();
265 return crop;
275 if (!s.active.crop
897 setCrop(const Rect& crop) argument
[all...]
H A DLayer.h87 Rect crop; member in struct:android::Layer::Geometry
89 return (w == rhs.w && h == rhs.h && crop == rhs.crop);
146 bool setCrop(const Rect& crop);
/frameworks/native/include/gui/
H A DIGraphicBufferProducer.h106 const Rect& crop, int scalingMode, uint32_t transform,
108 : timestamp(timestamp), crop(crop), scalingMode(scalingMode),
114 *outCrop = crop;
130 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
105 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 DSurfaceControl.h69 status_t setCrop(const Rect& crop);
H A DSurfaceComposerClient.h121 status_t setCrop(const sp<IBinder>& id, const Rect& crop);
/frameworks/native/include/private/gui/
H A DLayerState.h60 crop.makeInvalid();
85 Rect crop; member in struct:android::layer_state_t
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java369 public void setWindowCrop(Rect crop) { argument
371 if (crop != null) {
373 crop.left, crop.top, crop.right, crop.bottom);
/frameworks/native/libs/gui/
H A DLayerState.cpp40 output.write(crop);
60 input.read(crop);
H A DIGraphicBufferProducer.cpp292 + sizeof(crop)
309 memcpy(p, &crop, sizeof(crop)); p += sizeof(crop);
322 memcpy(&crop, p, sizeof(crop)); p += sizeof(crop);
H A DBufferQueue.cpp481 Rect crop; local
487 input.deflate(&timestamp, &crop, &scalingMode, &transform, &fence);
494 ST_LOGV("queueBuffer: slot=%d time=%#llx crop=[%d,%d,%d,%d] tr=%#x "
496 buf, timestamp, crop.left, crop.top, crop.right, crop.bottom,
525 crop.intersect(bufferRect, &croppedCrop);
526 if (croppedCrop != crop) {
527 ST_LOGE("queueBuffer: crop rec
[all...]
H A DSurfaceControl.cpp153 status_t SurfaceControl::setCrop(const Rect& crop) { argument
157 return client->setCrop(mHandle, crop);
H A DSurfaceComposerClient.cpp157 const Rect& crop);
366 const sp<IBinder>& id, const Rect& crop) {
372 s->crop = crop;
524 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { argument
525 return getComposer().setCrop(this, id, crop);
365 setCrop(const sp<SurfaceComposerClient>& client, const sp<IBinder>& id, const Rect& crop) argument
H A DCpuConsumer.cpp143 nativeBuffer->crop = b.mCrop;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
H A DSoftAVC.h99 bool handleCropRectEvent(const CropParams* crop);
H A DSoftAVC.cpp423 bool SoftAVC::handleCropRectEvent(const CropParams *crop) { argument
424 if (mCropLeft != crop->cropLeftOffset ||
425 mCropTop != crop->cropTopOffset ||
426 mCropWidth != crop->cropOutWidth ||
427 mCropHeight != crop->cropOutHeight) {
428 mCropLeft = crop->cropLeftOffset;
429 mCropTop = crop->cropTopOffset;
430 mCropWidth = crop->cropOutWidth;
431 mCropHeight = crop->cropOutHeight;
/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.cpp486 Rect crop = mST->getCurrentCrop(); local
487 EXPECT_EQ(0, crop.left);
488 EXPECT_EQ(0, crop.top);
489 EXPECT_EQ(4, crop.right);
490 EXPECT_EQ(4, crop.bottom);
615 android_native_rect_t crop; local
616 crop.left = 0;
617 crop.top = 0;
618 crop.right = 5;
619 crop
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraHardwareInterface.h623 android_native_rect_t crop; local
624 crop.left = left;
625 crop.top = top;
626 crop.right = right;
627 crop.bottom = bottom;
628 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/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.h161 virtual void setCrop(const Rect& crop) = 0;
/frameworks/base/core/jni/
H A Dandroid_view_SurfaceControl.cpp310 Rect crop(l, t, r, b);
311 status_t err = ctrl->setCrop(crop);

Completed in 569 milliseconds

12