Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

Screen flashes bright white on taking picture #39

Open
mateosalta opened this issue Oct 31, 2017 · 8 comments
Open

Screen flashes bright white on taking picture #39

mateosalta opened this issue Oct 31, 2017 · 8 comments
Assignees

Comments

@mateosalta
Copy link
Contributor

was implemented as a feature to light up dark selfies however:

  • activates on rear camera as well
  • activates with flash off
  • is not timed with the activation of the picture, so does not serve original dark selfie purpo
  • in "no flash" areas of aquarium/museum staff mistake screen flashing for the flash being on

#38

@dark-eye
Copy link
Collaborator

dark-eye commented Oct 31, 2017

The above PR was merged as a temporary fix.
The real fix should be to only enable the screen flash when the user selected to enable it and that its actually helpful (i.e. The picture is taken from a selfie camera so the subject can be illuminated by the screen ).

It be a good idea to add a new button in the quick options to allow the user to manage the screen flash.

Also if possible (probably not due to confinement) use maximum / adjustable screen brightness.

@mateosalta Thanks for the fix 👍 do you want to take the rest?

@dark-eye dark-eye self-assigned this Nov 1, 2017
@mateosalta
Copy link
Contributor Author

cool, working on it. Currently have a button that will turn it on/off, made a new icon.

Need to find a way to turn it off when using the camera facing away from the screen, I first tried using

property bool available: !camera.advanced.hasFlash

but this will only make the button unavailable and will keep the previous setting. Ideas on where to trigger clearing the setting?

screenshot20171106_140027506

mateosalta@2122fb4

Then I will have to test and adjust the animation duration so it will light up the subject

@dark-eye
Copy link
Collaborator

dark-eye commented Nov 7, 2017

Thanks for the help! the icon looks great 👍

To turn it of when not using the selfie camera you can use the 'camera.position === Camera.FrontFace' expression so the available property will be :
property bool available: (!camera.advanced.hasFlash && camera.position === Camera.FrontFace)
I also suggest adding it to the indicators with : property bool showInIndicators: true

No need to clear the settings you can just add the camera.position test to the shootFeedback white / black check so it will only be white if the setting is selected and the camera.position is FrontFace

Regarding the flash duration you don't have to fix it, as fixing it require some refactoring to the shooting code as in my device case (Miezu PRO 5) the picture is taken 10-50 milis (depending on exposure) before the shoot button is clicked, I`ll digg into to it during the weekend.

@Flohack74
Copy link
Member

Wouldnt it be possible to put a shim around the click of the button and then activate the white screen? Is the button click in our app or is this directly going to Android part?

@dark-eye
Copy link
Collaborator

dark-eye commented Nov 7, 2017

@Flohack74 it`s possible (already done actually need some more testing...) I've added an (ugly) hack that will activate the white screen in case it is on and the camara is a front/seflie camera and then wait for 66 miliseconds before actually taking the shoot.

@mateosalta
Copy link
Contributor Author

Mine is a pro 5 as well.
Ah, so any flash effect done on screen after the button is pressed is too late for that device, at first I thought it might be early, interesting.

dark-eye added a commit to dark-eye/camera-app that referenced this issue Nov 11, 2017
@mateosalta
Copy link
Contributor Author

nice, I like the icons for on and off, and I think yours will look better at small size.

@dark-eye
Copy link
Collaborator

dark-eye commented Nov 12, 2017

Oh ignore that just uploaded some test so I can work on them on another computer theres still issues with the shutter timing as it seems theres no support for camera.exposure.shutterSpeed variable in meizu pro 5

I liked your icon alot more then mine I think you shold do the UI i`m just working on solving the shutter and screen flash sync.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants