/frameworks/base/media/java/android/media/ |
H A D | Image.java | 270 public void setCropRect(Rect cropRect) { argument 273 if (cropRect != null) { 274 cropRect = new Rect(cropRect); // make a copy 275 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) { 276 cropRect.setEmpty(); 279 mCropRect = cropRect;
|
H A D | MediaCodec.java | 3656 public void setCropRect(@Nullable Rect cropRect) { argument 3660 super.setCropRect(cropRect); 3666 long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) { 3731 if (cropRect == null) { 3732 cropRect = new Rect(0, 0, mWidth, mHeight); 3734 cropRect.offset(-xOffset, -yOffset); 3735 super.setCropRect(cropRect); 3664 MediaImage( @onNull ByteBuffer buffer, @NonNull ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimatedImageDrawable.java | 293 int srcDensity, int dstDensity, Rect cropRect, 299 if (cropRect == null) { 303 cropRect.set(Bitmap.scaleFromDensity(cropRect.left, srcDensity, dstDensity), 304 Bitmap.scaleFromDensity(cropRect.top, srcDensity, dstDensity), 305 Bitmap.scaleFromDensity(cropRect.right, srcDensity, dstDensity), 306 Bitmap.scaleFromDensity(cropRect.bottom, srcDensity, dstDensity)); 307 mIntrinsicWidth = cropRect.width(); 308 mIntrinsicHeight = cropRect.height(); 311 mState = new State(nCreate(nativeImageDecoder, decoder, width, height, cropRect), 291 AnimatedImageDrawable(long nativeImageDecoder, @Nullable ImageDecoder decoder, int width, int height, int srcDensity, int dstDensity, Rect cropRect, InputStream inputStream, AssetFileDescriptor afd) argument 574 nCreate(long nativeImageDecoder, @Nullable ImageDecoder decoder, int width, int height, Rect cropRect) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | BufferLayerConsumer.cpp | 438 const Rect& cropRect = canUseImageCrop(mCurrentCrop) ? Rect::EMPTY_RECT : mCurrentCrop; local 439 GLConsumer::computeTransformMatrix(mCurrentTransformMatrix, buf, cropRect, mCurrentTransform,
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 468 android_native_rect_t cropRect; local 469 cropRect.left = left; 470 cropRect.top = top; 471 cropRect.right = right; 472 cropRect.bottom = bottom; 473 res = native_window_set_crop(anw.get(), &cropRect); 565 android_native_rect_t cropRect; local 566 cropRect.left = left; 567 cropRect.top = top; 568 cropRect [all...] |
H A D | android_media_MediaCodec.cpp | 574 jobject cropRect = NULL; local 584 cropRect = env->NewObject( 599 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect); 608 if (cropRect != NULL) { 609 env->DeleteLocalRef(cropRect); 610 cropRect = NULL;
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 778 const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, 811 if (!cropRect.isEmpty()) { 845 if (cropRect.width() < bufferWidth) { 846 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; 847 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / 850 if (cropRect.height() < bufferHeight) { 851 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / 853 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / 1080 const Rect& cropRect, 1085 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect; 777 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument 1079 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 575 int cropRect[4] = { 0, 0, font.char_width, -font.char_height }; local 588 cropRect[0] = col * font.char_width; // Left of column 589 cropRect[1] = row * font.char_height * 2; // Top of row 591 cropRect[1] += bold ? 2 * font.char_height : font.char_height; 592 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | ImageDecoder.java | 1894 @Nullable Rect cropRect, boolean mutable, 1890 nDecodeBitmap(long nativePtr, @NonNull ImageDecoder decoder, boolean doPostProcess, int width, int height, @Nullable Rect cropRect, boolean mutable, int allocator, boolean unpremulRequired, boolean conserveMemory, boolean decodeAsAlphaMask, @Nullable ColorSpace desiredColorSpace) argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1576 * @param cropRect The cropped region 1580 MeteringRectangle[] requestRegions, Rect cropRect){ 1586 resultRect.setIntersect(requestRect, cropRect)); 1579 getExpectedOutputRegion( MeteringRectangle[] requestRegions, Rect cropRect) argument
|