Status Update
Comments
th...@gmail.com <th...@gmail.com> #2
Steps to reproduce
What steps are needed to reproduce this issue?
Please explain the reproduction steps in detail.
Expected output
Could you please explain the expected behavior.
Current output
Could you please explain the current behavior.
Screen capture of the issue
Press the volume down and power buttons simultaneously. The image will appear in your gallery. Attach the screenshot image to this issue.
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #3
1. Switch night mode to on/off;
2. Switch night mode to follow system.
Expected: Switch to the same night mode as the system currently uses.
Current: No changes at all.
th...@gmail.com <th...@gmail.com> #4
ch...@google.com <ch...@google.com> #5
th...@gmail.com <th...@gmail.com> #6
ch...@google.com <ch...@google.com> #7
Thanks.
Could you also help to provide the Build.DEVICE
info of these two devices? Thanks.
th...@gmail.com <th...@gmail.com> #8
For Huawei Mate 20 Lite it's HWSNE
. Unfortunately, I'm unable to provide you info for Honor 9X.
ch...@google.com <ch...@google.com> #9
Hi,
We're clarifying this issue with the camera framework team and need your further help to provide some more information. So that we can know all the details and might be able to improve the CTS tests to cover this in the future.
- What is the problematic image size when capturing the image in target aspect ratio 4:3 setting?
- Could you help to provide the JPEG supported sizes list of the Huawei Mate 20 Lite device? I'm not sure whether it is the same as you have been provided in
.b/161156062#comment4 - Could you provide a bugreport that is dumped right after operating to capture the problematic 4:3 image?
Thanks in advance.
th...@gmail.com <th...@gmail.com> #10
Hi,
- I didn't specify target resolution, but I've check with max available resolution (3840x5120) and custom one (1200x1600), both times the issue has occurred.
- Yes, it is the same list I've provided.
- In attachments.
Please let me know when you will have any plans to cover this issue.
ch...@google.com <ch...@google.com> #11
Thanks. This issue will be targeted to be fixed in Dec release.
th...@gmail.com <th...@gmail.com> #12
Thank you. I'm looking forward to it.
ch...@google.com <ch...@google.com> #13
Hi,
Could you help to install and check whether the issue can be resolved by the attached apk?
What I modified:
- Force CameraFragment#aspectRatio() to return AspectRatio.RATIO_4_3.
- Do not use JPEG_ORIENTATION capture request parameter and rotate the output image according the target rotation setting. This is only applied to the Huawei Mate 20 Lite and Honor 9X devices by Build.BRAND and Build.MODEL.
Please take pictures in 0, 90 and 180 and also help to dump and extract logs with tag "b171492111-debug". So that I can analyze whether the solution work as expectation.
Thanks.
wu...@google.com <wu...@google.com> #14
Friendly ping :)
ma...@shelfwise.ai <ma...@shelfwise.ai> #15
Sorry for the delay, I was trying to borrow the Huawei device again. Unfortunately I'm unable to get this device in next few weeks. Does it stop the fix from being added to library?
Best.
ch...@google.com <ch...@google.com> #16
Hi,
It won't stop the fix. The purpose is just to verify my solution can really resolve the problem since I do not have device to verify it. I'll still prepare the fix in the next release.
ap...@google.com <ap...@google.com> #17
Branch: androidx-master-dev
commit 5995a6a42d1bddfa42276d2c7c730605624fa84b
Author: charcoalchen <charcoalchen@google.com>
Date: Thu Oct 29 15:44:03 2020
Fixed orientation issue when capturing 4:3 images on some devices.
1. Add ImageCapture capture option quirk to not use CaptureRequest.JPEG_ORIENTATION on some devices. (On some devices, the orientation value in the embedded exif of the captured images may be 0 but the image buffer data actually is not rotated to upright orientation by HAL.)
2. For those devices, we can't use CaptureRequest.JPEG_ORIENTATION parameter and need to set the orientation value according to the target rotation setting.
Relnote:"Fixed orientation issue when capturing 4:3 images on some devices."
Bug: 171492111
Test: ./gradlew bOS
Change-Id: I0e3fb7705daeb5b8caa98e80215a545f8a3ca484
M camera/camera-core/src/main/java/androidx/camera/core/ImageCapture.java
M camera/camera-core/src/main/java/androidx/camera/core/ImageSaver.java
M camera/camera-core/src/main/java/androidx/camera/core/internal/compat/quirk/DeviceQuirksLoader.java
A camera/camera-core/src/main/java/androidx/camera/core/internal/compat/quirk/ImageCaptureRotationOptionQuirk.java
A camera/camera-core/src/main/java/androidx/camera/core/internal/compat/workaround/ExifRotationAvailability.java
A camera/camera-core/src/main/java/androidx/camera/core/internal/compat/workaround/package-info.java
A camera/camera-core/src/test/java/androidx/camera/core/internal/compat/quirk/ImageCaptureRotationOptionQuirkTest.java
A camera/camera-core/src/test/java/androidx/camera/core/internal/compat/workaround/ExifRotationAvailabilityTest.java
ch...@google.com <ch...@google.com> #18
th...@gmail.com <th...@gmail.com> #19
Hi,
Great news, it works on real users' devices. Thank you for resolving this.
Description
CAMERAX VERSION: 1.0.0-beta10
DEVICE NAME: Huawei Mate 20 Lite
DESCRIPTION:
Originally I've opened issue here .
Some of the users have reported that their photos are cropped and rotated. I've noticed that all of them have the same devices, i.a. Huawei Mate 20 Lite (SNE-LX1), Honor 9X (STK-LX1).
I couldn't reproduce the issue on my devices, that's why the previous issue has been closed, but I have finally managed to borrow Huawei Mate 20 Lite and test it.
The reproduction steps are very easy, just download the official CameraXBasic Sample , force the app to always use AspectRatio.RATIO_4_3 and run on a affected device (or maybe this is not an easy step). The result is that the photos are cropped and rotated (see the attachment).