Searched defs:crop (Results 1 - 23 of 23) sorted by relevance

/frameworks/native/include/gui/
H A DCpuConsumer.h51 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
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
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
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/include/private/gui/
H A DLayerState.h61 crop.makeInvalid();
86 Rect crop; member in struct:android::layer_state_t
/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/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/
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);
H A DLayer.cpp201 // Start with the SurfaceTexture's buffer crop...
202 Rect crop; local
204 crop = mCurrentCrop;
206 crop = Rect(mActiveBuffer->getWidth(), mActiveBuffer->getHeight());
208 crop.makeInvalid();
209 return crop;
212 // ... then reduce that in the same proportions as the window crop reduces
215 if (!s.active.crop.isEmpty()) {
216 // Transform the window crop to match the buffer coordinate system,
228 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...]
/frameworks/native/libs/gui/
H A DSurface.cpp155 status_t SurfaceControl::setCrop(const Rect& crop) { argument
159 return client->setCrop(mToken, crop);
H A DBufferQueue.cpp484 Rect crop; local
490 input.deflate(&timestamp, &crop, &scalingMode, &transform, &fence);
492 ST_LOGV("queueBuffer: slot=%d time=%#llx crop=[%d,%d,%d,%d] tr=%#x "
494 buf, timestamp, crop.left, crop.top, crop.right, crop.bottom,
523 crop.intersect(bufferRect, &croppedCrop);
524 if (croppedCrop != crop) {
525 ST_LOGE("queueBuffer: crop rec
[all...]
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 DSurfaceTexture.cpp618 // crop rectangle we may need to shrink it by 2 texels in each
621 // are subsampled we may need to shrink the crop region by a whole
657 float crop[16] = { local
665 mtxMul(mtxBeforeFlipV, crop, xform);
717 // The crop is too wide
722 // The crop is too tall
729 ST_LOGV("getCurrentCrop final crop [%d,%d,%d,%d]",
H A DSurfaceTextureClient.cpp294 // Make sure the crop rectangle is entirely inside the buffer.
295 Rect crop; local
296 mCrop.intersect(Rect(buffer->width, buffer->height), &crop);
300 ISurfaceTexture::QueueBufferInput input(timestamp, crop, mScalingMode,
/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/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);
H A DCamera2Device.cpp1307 android_native_rect_t crop = { left, top, right, bottom }; local
1308 return native_window_set_crop(a, &crop);
/frameworks/base/core/java/android/view/
H A DSurface.java260 private native void nativeSetWindowCrop(Rect crop); argument
602 public void setWindowCrop(Rect crop) { argument
603 nativeSetWindowCrop(crop);
/frameworks/base/services/java/com/android/server/wm/
H A DWindowStateAnimator.java552 public void setWindowCrop(Rect crop) { argument
553 super.setWindowCrop(crop);
554 if (crop != null) {
555 if (!crop.equals(mWindowCrop)) {
559 mWindowCrop.set(crop);
620 + " crop=" + mWindowCrop.toShortString();
1052 // scaling to the crop rect. We aren't using the standard rect
1053 // scale function because we want to round things to make the crop
1054 // always round to a larger rect to ensure we don't crop too
1072 // just keep the crop rec
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.cpp837 virtual void setCrop(const Rect& crop) { argument
838 reinterpret_cast<Rect&>(getLayer()->sourceCrop) = crop;
936 " type | handle | hints | flags | tr | blend | format | source crop | frame name \n"
/frameworks/av/media/libstagefright/
H A DACodec.cpp2172 "crop",
2179 android_native_rect_t crop; local
2180 crop.left = rect.nLeft;
2181 crop.top = rect.nTop;
2182 crop.right = rect.nLeft + rect.nWidth;
2183 crop.bottom = rect.nTop + rect.nHeight;
2186 mNativeWindow.get(), &crop));
H A DOMXCodec.cpp4295 android_native_rect_t crop; local
4296 crop.left = left;
4297 crop.top = top;
4298 crop.right = right + 1;
4299 crop.bottom = bottom + 1;
4303 native_window_set_crop(mNativeWindow.get(), &crop);
/frameworks/av/services/camera/libcameraservice/camera2/
H A DParameters.cpp1748 CropRegion crop = calculateCropRegion( (CropRegion::Outputs)( local
1752 int32_t reqCropRegion[3] = { crop.left, crop.top, crop.width };
2313 // Need to convert zoom index into a crop rectangle. The rectangle is
2334 * Assumption: On the HAL side each stream buffer calculates its crop
2363 // skip over outputs we don't want to consider for the crop region
2413 CropRegion crop = { zoomLeft, zoomTop, zoomWidth, zoomHeight }; local
2414 return crop;

Completed in 2564 milliseconds