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

Fix AE and AWB #24

Open
wants to merge 1 commit into
base: feat/new-code
Choose a base branch
from

Conversation

friissoren
Copy link

Same fix for the new code line as #23.

Correctly handle Exposure mode control:
The value definition for the V4L2 interface for exposure
mode control does not map directly to the UVC control
interface. Add some conversion and configuration fixes.

Enable AWB control:
This is a bit of a hack.
The RaspberryPi V4L2 driver exposes only a menu of pre-defined
color temperatures and two of those are manual and auto.

This control definition does not have any corresponding equivalent
in the UVC specification.

Override the UVC color temperature control interface to map
directly to the V4L2 AWB interface. This will allow controlling
the AWB modes from the host but will only show number values with
no explanation of what the numbers refer to.

0: Manual
1: Auto
2: Incandescent
3: Fluorescent
4: Fluorescent H
5: Horizon
6: Daylight
7: Flash
8: Cloudy
9: Shade

This has been tested only on RaspberryPi 4B HW with the
8 Mpixel v2 camera.

Signed-off-by: Soren Friis <soren.friis@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant