Camera icon indicating copy to clipboard operation
Camera copied to clipboard

auto macro mode toggle for Pixel 8 Pro

Open thestinger opened this issue 2 years ago • 5 comments

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

thestinger avatar Dec 11 '23 08:12 thestinger

Camera2Interop will do the trick afaict.

Camera2Interop.Extender(previewBuilder).setCaptureRequestOption(
            CaptureRequest.CONTROL_AF_MODE,
            CaptureRequest.CONTROL_AF_MODE_MACRO
        )

empratyush avatar Feb 15 '24 13:02 empratyush

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

xx-5 avatar Mar 11 '24 14:03 xx-5

Hi everyone,

We could try directly implementing this using the Camera2Interop API as @empratyush has suggested, but I have raised a feature request for the same on the CameraX library to have better support for device-specific quirks. (Link to the filed issue to stay updated: https://issuetracker.google.com/issues/358257249)

MHShetty avatar Aug 08 '24 09:08 MHShetty

Does this mean we already have macro mode, and can enable it in camera settings somehow, because I can't find a toggle smh.

lepras avatar Nov 07 '25 02:11 lepras

It's available and used automatically. There's no toggle to turn it off.

thestinger avatar Nov 07 '25 02:11 thestinger