Updated: April 19, 2023 |
The white balance mode of the camera
#include <camera/camera_3a.h>
typedef enum { CAMERA_WHITEBALANCEMODE_DEFAULT, CAMERA_WHITEBALANCEMODE_OFF, CAMERA_WHITEBALANCEMODE_AUTO, CAMERA_WHITEBALANCEMODE_MANUAL, CAMERA_WHITEBALANCEMODE_MANUAL_RB_GAIN, CAMERA_WHITEBALANCEMODE_AUTO_ONCE, CAMERA_WHITEBALANCEMODE_NUMWHITEBALANCEMODES } camera_whitebalancemode_t;
Because not every camera supports all available white balance modes, CAMERA_WHITEBALANCEMODE_DEFAULT can be used as an alias to select a valid white balance mode.
After the adjustments are made, the same white balance settings are used for the camera. You can set this mode multiple times to re-run this one-time adjustment.
You can use the camera_get_whitebalance_modes() function to determine which modes are supported by the current platform and camera.