GrapheneOS / Camera

Modern camera app focused on privacy and security with QR & barcode scanning.
https://grapheneos.org/
MIT License
802 stars 87 forks source link

auto macro mode toggle for Pixel 8 Pro #403

Open thestinger opened 7 months ago

thestinger commented 7 months ago

Not clear if this is feasible to implement and it may require a quite hardware specific API call.

empratyush commented 5 months ago

Camera2Interop will do the trick afaict.

Camera2Interop.Extender(previewBuilder).setCaptureRequestOption(
            CaptureRequest.CONTROL_AF_MODE,
            CaptureRequest.CONTROL_AF_MODE_MACRO
        )
io43 commented 4 months ago

yea, annoying on p8 too and when using the webcam mode too.

Gcam have an option to show an barred macro icon overlay when triggered instead of changing lens and you can press it to change lens