Searched defs:cropRect (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/media/java/android/media/
H A DImage.java236 public void setCropRect(Rect cropRect) { argument
239 if (cropRect != null) {
240 cropRect = new Rect(cropRect); // make a copy
241 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) {
242 cropRect.setEmpty();
245 mCropRect = cropRect;
H A DMediaCodec.java3478 public void setCropRect(@Nullable Rect cropRect) { argument
3482 super.setCropRect(cropRect);
3488 long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) {
3553 if (cropRect == null) {
3554 cropRect = new Rect(0, 0, mWidth, mHeight);
3556 cropRect.offset(-xOffset, -yOffset);
3557 super.setCropRect(cropRect);
3486 MediaImage( @onNull ByteBuffer buffer, @NonNull ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) argument
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp452 android_native_rect_t cropRect; local
453 cropRect.left = left;
454 cropRect.top = top;
455 cropRect.right = right;
456 cropRect.bottom = bottom;
457 res = native_window_set_crop(anw.get(), &cropRect);
544 android_native_rect_t cropRect; local
545 cropRect.left = left;
546 cropRect.top = top;
547 cropRect
[all...]
H A Dandroid_media_MediaCodec.cpp557 jobject cropRect = NULL; local
567 cropRect = env->NewObject(
582 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect);
591 if (cropRect != NULL) {
592 env->DeleteLocalRef(cropRect);
593 cropRect = NULL;
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp481 int cropRect[4] = { 0, DIGIT_HEIGHT, DIGIT_WIDTH, -DIGIT_HEIGHT }; local
496 cropRect[0] = left;
497 cropRect[2] = width;
498 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);
/frameworks/native/libs/gui/
H A DGLConsumer.cpp813 const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform,
843 if (!cropRect.isEmpty()) {
875 if (cropRect.width() < bufferWidth) {
876 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
877 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) /
880 if (cropRect.height() < bufferHeight) {
881 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) /
883 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) /
1171 const Rect& cropRect,
1176 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect;
812 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument
1170 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java1576 * @param cropRect The cropped region
1580 MeteringRectangle[] requestRegions, Rect cropRect){
1586 resultRect.setIntersect(requestRect, cropRect));
1579 getExpectedOutputRegion( MeteringRectangle[] requestRegions, Rect cropRect) argument

Completed in 130 milliseconds