Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto macro mode toggle for Pixel 8 Pro #403

Open
thestinger opened this issue Dec 11, 2023 · 3 comments
Open

auto macro mode toggle for Pixel 8 Pro #403

thestinger opened this issue Dec 11, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@thestinger
Copy link
Member

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

@thestinger thestinger added the enhancement New feature or request label Dec 11, 2023
@thestinger thestinger changed the title macro mode toggle for Pixel 8 Pro auto macro mode toggle for Pixel 8 Pro Dec 11, 2023
@empratyush empratyush self-assigned this Feb 15, 2024
@empratyush
Copy link
Member

Camera2Interop will do the trick afaict.

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

@io43
Copy link

io43 commented Mar 11, 2024

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

@MHShetty
Copy link
Member

MHShetty commented Aug 8, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants