Home
last modified time | relevance | path

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

123

/frameworks/native/opengl/tests/finish/
Dfinish.cpp106 GLint crop[4] = { 0, 512, 512, -512 }; in main() local
107 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
120 GLint crop[4] = { 0, 1, 1, -1 }; in main() local
121 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
134 GLint crop[4] = { 0, 512, 512, -512 }; in main() local
135 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
149 GLint crop[4] = { 0, 1, 1, -1 }; in main() local
150 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
166 GLint crop[4] = { 0, 512, 512, -512 }; in main() local
167 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
[all …]
/frameworks/native/services/surfaceflinger/
DLayer.cpp127 mCurrentState.crop.makeInvalid(); in Layer()
355 Rect crop; in getContentCrop() local
358 crop = mCurrentCrop; in getContentCrop()
361 crop = mActiveBuffer->getBounds(); in getContentCrop()
364 crop.makeInvalid(); in getContentCrop()
366 return crop; in getContentCrop()
388 if (!s.crop.isEmpty()) { in computeBounds()
389 win.intersect(s.crop, &win); in computeBounds()
398 FloatRect crop(getContentCrop()); in computeCrop() local
412 if (!s.crop.isEmpty()) { in computeCrop()
[all …]
/frameworks/base/media/java/android/media/
DImageWriter.java333 Rect crop = image.getCropRect(); in queueInputImage() local
334 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), crop.left, crop.top, in queueInputImage()
335 crop.right, crop.bottom); in queueInputImage()
519 Rect crop = image.getCropRect(); in attachAndQueueInputImage() local
521 image.getTimestamp(), crop.left, crop.top, crop.right, crop.bottom); in attachAndQueueInputImage()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
DSoftAVC.cpp226 const CropParams& crop = decInfo.cropParams; in handleCropParams() local
227 if (mCropLeft == crop.cropLeftOffset && in handleCropParams()
228 mCropTop == crop.cropTopOffset && in handleCropParams()
229 mCropWidth == crop.cropOutWidth && in handleCropParams()
230 mCropHeight == crop.cropOutHeight) { in handleCropParams()
234 mCropLeft = crop.cropLeftOffset; in handleCropParams()
235 mCropTop = crop.cropTopOffset; in handleCropParams()
236 mCropWidth = crop.cropOutWidth; in handleCropParams()
237 mCropHeight = crop.cropOutHeight; in handleCropParams()
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp174 android_native_rect_t crop; in resetFormatIfChanged() local
175 crop.left = mCropLeft; in resetFormatIfChanged()
176 crop.top = mCropTop; in resetFormatIfChanged()
177 crop.right = mCropRight + 1; in resetFormatIfChanged()
178 crop.bottom = mCropBottom + 1; in resetFormatIfChanged()
180 crop.left, crop.top, crop.right, crop.bottom, bufWidth, bufHeight); in resetFormatIfChanged()
182 CHECK_EQ(0, native_window_set_crop(mNativeWindow.get(), &crop)); in resetFormatIfChanged()
/frameworks/base/core/java/android/view/
DSurfaceControl.java485 public void setWindowCrop(Rect crop) { in setWindowCrop() argument
487 if (crop != null) { in setWindowCrop()
489 crop.left, crop.top, crop.right, crop.bottom); in setWindowCrop()
495 public void setFinalCrop(Rect crop) { in setFinalCrop() argument
497 if (crop != null) { in setFinalCrop()
499 crop.left, crop.top, crop.right, crop.bottom); in setFinalCrop()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowSurfaceController.java626 public void setWindowCrop(Rect crop) { in setWindowCrop() argument
627 if (crop != null) { in setWindowCrop()
628 if (!crop.equals(mWindowCrop)) { in setWindowCrop()
630 + crop.toShortString() + "): OLD:" + this + ". Called by " in setWindowCrop()
632 mWindowCrop.set(crop); in setWindowCrop()
635 super.setWindowCrop(crop); in setWindowCrop()
639 public void setFinalCrop(Rect crop) { in setFinalCrop() argument
640 if (crop != null) { in setFinalCrop()
641 if (!crop.equals(mFinalCrop)) { in setFinalCrop()
643 + crop.toShortString() + "): OLD:" + this + ". Called by " in setFinalCrop()
[all …]
/frameworks/native/include/gui/
DIGraphicBufferProducer.h309 android_dataspace dataSpace, const Rect& crop, int scalingMode,
312 dataSpace(dataSpace), crop(crop), scalingMode(scalingMode), in timestamp()
323 *outCrop = crop;
345 Rect crop; member
DCpuConsumer.h52 Rect crop; member
77 crop(Rect::EMPTY_RECT), in LockedBuffer()
DSurfaceControl.h73 status_t setCrop(const Rect& crop);
74 status_t setFinalCrop(const Rect& crop);
DBufferQueueCore.h322 : crop(_crop), in SharedBufferCache()
328 Rect crop; member
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java336 RectF crop = getMaxCropRect( in cropImageAndSetWallpaper() local
347 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); in cropImageAndSetWallpaper()
656 Bitmap crop = null; local
663 crop = decoder.decodeRegion(roundedTrueCrop, options);
667 if (crop == null) {
712 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left,
718 if (crop == null) {
724 float[] dimsAfter = new float[] { crop.getWidth(), crop.getHeight() };
742 m1.setTranslate(-crop.getWidth() / 2f, -crop.getHeight() / 2f);
763 c.drawBitmap(crop, m, p);
[all …]
/frameworks/native/libs/gui/
DSurfaceControl.cpp155 status_t SurfaceControl::setCrop(const Rect& crop) { in setCrop() argument
158 return mClient->setCrop(mHandle, crop); in setCrop()
160 status_t SurfaceControl::setFinalCrop(const Rect& crop) { in setFinalCrop() argument
163 return mClient->setFinalCrop(mHandle, crop); in setFinalCrop()
DGLConsumer.cpp148 static bool isEglImageCroppable(const Rect& crop) { in isEglImageCroppable() argument
149 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0); in isEglImageCroppable()
887 float crop[16] = { in computeTransformMatrix() local
894 mtxMul(mtxBeforeFlipV, crop, xform); in computeTransformMatrix()
1214 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) { in createImage() argument
1222 EGL_IMAGE_CROP_LEFT_ANDROID, crop.left, in createImage()
1223 EGL_IMAGE_CROP_TOP_ANDROID, crop.top, in createImage()
1224 EGL_IMAGE_CROP_RIGHT_ANDROID, crop.right, in createImage()
1225 EGL_IMAGE_CROP_BOTTOM_ANDROID, crop.bottom, in createImage()
1230 if (!crop.isValid()) { in createImage()
[all …]
DSurfaceComposerClient.cpp160 const Rect& crop);
162 const sp<IBinder>& id, const Rect& crop);
387 const sp<IBinder>& id, const Rect& crop) { in setCrop() argument
393 s->crop = crop; in setCrop()
398 const sp<IBinder>& id, const Rect& crop) { in setFinalCrop() argument
405 s->finalCrop = crop; in setFinalCrop()
657 status_t SurfaceComposerClient::setCrop(const sp<IBinder>& id, const Rect& crop) { in setCrop() argument
658 return getComposer().setCrop(this, id, crop); in setCrop()
662 const Rect& crop) { in setFinalCrop() argument
663 return getComposer().setFinalCrop(this, id, crop); in setFinalCrop()
DBufferQueueProducer.cpp738 Rect crop(Rect::EMPTY_RECT); in queueBuffer() local
743 input.deflate(&timestamp, &isAutoTimestamp, &dataSpace, &crop, &scalingMode, in queueBuffer()
805 crop.left, crop.top, crop.right, crop.bottom, transform, in queueBuffer()
811 crop.intersect(bufferRect, &croppedRect); in queueBuffer()
812 if (croppedRect != crop) { in queueBuffer()
831 item.mCrop = crop; in queueBuffer()
854 mCore->mSharedBufferCache.crop = crop; in queueBuffer()
DLayerState.cpp40 output.write(crop); in write()
68 input.read(crop); in read()
/frameworks/base/core/java/android/app/
DWallpaperManager.java576 Bitmap crop = null; in getBuiltInDrawable() local
583 crop = decoder.decodeRegion(roundedTrueCrop, options); in getBuiltInDrawable()
587 if (crop == null) { in getBuiltInDrawable()
598 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in getBuiltInDrawable()
604 if (crop == null) { in getBuiltInDrawable()
611 (crop.getWidth() != outWidth || crop.getHeight() != outHeight)) { in getBuiltInDrawable()
613 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in getBuiltInDrawable()
622 c.drawBitmap(crop, m, p); in getBuiltInDrawable()
623 crop = tmp; in getBuiltInDrawable()
627 return new BitmapDrawable(resources, crop); in getBuiltInDrawable()
/frameworks/native/include/private/gui/
DLayerState.h65 reserved(0), crop(Rect::INVALID_RECT), in layer_state_t()
95 Rect crop; member
/frameworks/native/opengl/tests/textures/
Dtextures.cpp66 GLint crop[4] = { 0, 4, 4, -4 }; in main() local
68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp149 const android_native_rect_t& crop(crops[i]); in TEST_F() local
151 crop.left, crop.top, crop.right, crop.bottom).string()); in TEST_F()
153 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); in TEST_F()
164 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); in TEST_F()
DSurfaceTextureClient_test.cpp511 Rect crop = mST->getCurrentCrop(); in TEST_F() local
512 EXPECT_EQ(0, crop.left); in TEST_F()
513 EXPECT_EQ(0, crop.top); in TEST_F()
514 EXPECT_EQ(4, crop.right); in TEST_F()
515 EXPECT_EQ(4, crop.bottom); in TEST_F()
654 android_native_rect_t crop; in TEST_F() local
655 crop.left = 0; in TEST_F()
656 crop.top = 0; in TEST_F()
657 crop.right = 5; in TEST_F()
658 crop.bottom = 5; in TEST_F()
[all …]
DIGraphicBufferProducer_test.cpp130 crop = QUEUE_BUFFER_INPUT_RECT; in QueueBufferInputBuilder()
141 crop, in build()
162 QueueBufferInputBuilder& setCrop(Rect crop) { in setCrop()
163 this->crop = crop; in setCrop()
186 Rect crop; member
/frameworks/av/media/ndk/
DNdkImageReader.cpp284 Point lt = buffer->crop.leftTop(); in acquireCpuConsumerImageLocked()
390 if (!buffer->crop.isEmpty()) { in getBufferWidth()
391 return buffer->crop.getWidth(); in getBufferWidth()
400 if (!buffer->crop.isEmpty()) { in getBufferHeight()
401 return buffer->crop.getHeight(); in getBufferHeight()
/frameworks/native/opengl/tests/filter/
Dfilter.cpp78 GLint crop[4] = { 0, 4, 4, -4 }; in main() local
80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()

123