-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera 1 dark preview #139
Comments
This is very interesting @JPLITPeople ! Do you have some example devices which have an obvious (easily reproducible) issue? I know that in Nexus 6P e.g. facebook messenger produces darker images than the stock camera app. |
I've tested on:
But you can test it on a dark or really low light environment, switching from fotoapparat camera to stock camera and check if the image is darker. Altough not all devices will be really dark, you can spot the diferences when the "bug" occurs. I'm using ISO around 400 as well EDIT: Testing now with samsung S8 |
Brain dump/todo: maybe we can improve our fps selectors by prioritizing non-fixed rates than fixed ones |
Ok this is a bug in our selectors. Non-fixed rates must be selected earlier than fixed ones |
New selectors added in v2 |
Some devices are showing a very dark preview comparing to stock camera (specially on low light environments).
Aparently the problem is from the devices and not Fotoapparat. The issue seems to be the Fps range reported. The problematic devices show the same number for lowest and highest range. (ex: [15000,15000] while choosing rangeWithHighestFps or rangeWithLowestFps.
The solution for me was to add a new function:
This gets all the ranges that have different lowest and highest values, and chooses the max from it.
This fixed most my problems with it. Altough some devices were still a bit dark, so i had to play a bit with the sensorSensitivitySelectors. Giving the lowest value would still make some devices a bit dark, but nothing compared to before
The text was updated successfully, but these errors were encountered: