infinum / Android-GoldenEye

A wrapper for Camera1 and Camera2 API which exposes simple to use interface.
Apache License 2.0
375 stars 53 forks source link

How to Override defaults for the Camera #41

Open raranov opened 4 years ago

raranov commented 4 years ago

Hello,

I have implemented Goldeneye as a dependency in my project, and adapted MainActivity.kt from the example for my needs.

I'd like to change the defaults for resolution to QVGA, and I'd like to set Antibanding to "off" by default. Can you explain to me how to go about this?

Thank you.

domagojkorman commented 4 years ago

Hi,

antibanding is part of advanced/experimental API - https://github.com/infinum/Android-GoldenEye#advanced-features

Once you turn advanced API on, you can configure Antibanding the same way as any other property through config. It can be done when onReady() is triggered - https://github.com/infinum/Android-GoldenEye/blob/master/goldeneye/src/main/java/co/infinum/goldeneye/Callbacks.kt#L53

Hopefully this solves your issue.