A K M Saleh Sultan
A K M Saleh Sultan

Reputation: 2403

Camera2 API for Pixel 5 Zooming out below 1x

In Google Pixel 5 default camera application, there is a feature that you can zoom out below 1x(By default: .6x, 1x, 2x).

Now is Camera2 framework, is there any function that apply the zoom-out functionality to get the wide angle of the picture?

I am in a situation that I need the wide angle of the camera, so that i can capture more content of the view.

Upvotes: 0

Views: 652

Answers (1)

Eddy Talvala
Eddy Talvala

Reputation: 18137

For Pixel 5, see if the CONTROL_ZOOM_RATIO_RANGE has a minimum below 1.0x, and if so, you can use CONTROL_ZOOM_RATIO to zoom out.

This is a relatively new API to Android, so not all devices support a range <= 1.0x for accessing the wide-angle camera yet, but it's something that will be increasing over time.

Upvotes: 1

Related Questions