[Exynos 9611] Pink tint on Galaxy M21
Info:
Android 16 (crDroid 12.7).
Stock vendor.
Executed python patch_libexynoscamera3.py libexynoscamera3.so --hardware-level FULL --skip-depth --model GalaxyM21 --android-version 16 --version 1 --enable-cap RAW.
Used both BSG 8.1 and 9.6.
Result:
Looking pinkish like the other 9611 models, toggling HDR doesn't fix. Please let me know if you need any further information.
Thanks for the information. The curse of 9610/9611 persists.
I have something I'd like to try to fix it. If you're interested send me your lib so I can patch it
Thanks for the information. The curse of 9610/9611 persists.
I have something I'd like to try to fix it. If you're interested send me your lib so I can patch it
Of course I'd like to be interested, here's the lib.
It'd be super helpful if you could take:
- A log of you taking a picture on Gcam with the lib that you patched yourself.
- A DNG (raw) picture where the pink tint is visible, also using the lib you patched yourself.
Then do those two things again but with this lib:
I’m not sure if I took the correct log file but I was able to retrieve the raw image and Gcam logs.
It seems like the logs are only from Gcam, but what I'm interested in is the logs from the camera lib itself. It'd be great if you can take them without using any filters
Oh I'm sorry my mistake, I have added with the logcat data now.
Still investigating this. I've confirmed that the Exynos 9610/9611 series outputs pre-processed DNGs, which is the problem.
A manual fix to make the DNGs usables is to use a tool like ExifTool to change the BlackLevel to 3096 3096 3096 3096 and AsShotNeutral to 1 1 1. I believe this could be done on the lib itself and maybe that'd fix it, but that's just a workaround. I'll see if I can find exactly why this is happening in the first place.
If you are impatient, in the meantime you could test different GCams with these settings:
- Black level higher than 128. BSG 8.1's max black level is 100 so that one probably won't work right now. Maybe i'll send another lib later with the black level set so you don't need to change it on Gcam, but not right now.
- Somehow disable AWB corrections, I believe this can be done on BSG 8.1 by going into the settings of a camera module -> AWB Correction -> Enable
Manual entry of valuesand set each value to1or1.0. I'm not sure if this is the correct setting though.
For reference this is how one of the images you sent me looks:
And this is how it looks after setting AsShotNeutral to 1 1 1 (which hopefully should be equivalent to disabling the AWB corrections on gcam). It looks washed (because the black level is too low), but the colors are way better.
And this is how it looks after also changing the BlackLevel to 3096 3096 3096 3096 (which should be equivalent to ~193 on GCam values). That's probably not the right value but it should be something similar to that, maybe a little lower.
Give this lib a try and let me know if the pink tint is still present (try all the different black level values, default, 0, 64, etc.) Module_M21_NoPureBayerReprocessing.zip
If the pink tint is still there I'll ask you again for a DNG picture (taken with the black level set to default) and a log of you taking a picture, just like before.