Camera icon indicating copy to clipboard operation
Camera copied to clipboard

add support for manually switching camera ids, primarily for non-Pixel phones without automatic Camera2 zoom-based camera switching

Open thestinger opened this issue 2 years ago • 4 comments

thestinger avatar May 28 '22 07:05 thestinger

This is somewhat blocked on CameraX adding APIs but may be possible via the Camera2Interop API already.

thestinger avatar May 28 '22 07:05 thestinger

Along related lines, would it be possible to manually select cameras on Pixel instead of relying exclusively on the level of zoom? The problem on Pixels is that you can't, right now, pick a specific camera without having some level of image scaling kicking in and obviously reducing the quality of the shot.

Coming from a pixel 6 pro, the scenarios where image scaling is presumably not present are;

  1. First time starting up the main side camera where it comes in at 1:1.
  2. Zooming out FULLY on the main side camera where it switches to the wide angle lens without applying image scaling (zoom).
  3. Zooming out FULLY on the screen side camera (the default mode on this side is scaled).

There is currently no way to select the telephoto lens without image scaling since it is impossible to select the exact threshold for when it switches.

ASerbinski avatar Jun 03 '22 14:06 ASerbinski

If possible, just add a button to select the ultra-wide lens, just like in the OpenCamera. Thanks

adam-718 avatar Jun 04 '22 00:06 adam-718

@ASerbinski That might be possible but I expect it would be significantly different.

Pixel 6 Pro telephoto lens switches at a dynamic point rather than at exactly 4x even though the telephoto camera is 4x since there are some disadvantages to using it. For example, it doesn't work as well in low light, so it will extend the zoom or avoid using it at all in low light. Not clear exactly what heuristics they use for this. There may be a way to switch manually with the multi-camera API but I think they present the cameras as a single camera ID with multi sub cameras so handling this would be different from other devices even if it's possible to change this.

thestinger avatar Jun 04 '22 03:06 thestinger