Settings on the Camera
You can configure various settings on the camera to modify the ISO, aperture, shutter speed, framerate, resolution, format, etc.
As you run your application and make manual setting changes, you may notice that such changes aren't visible for several frames. This is expected due to the latency in the image-processing pipeline. This latency varies from system to system and from camera to camera.
Note that the settings are lost whenever you stop and then restart the viewfinder.
- retrieve the supported camera settings, such as camera_get_supported_ev_offsets() and camera_get_supported_manual_aperture_values()
- retrieve the current camera settings, such as camera_get_manual_iso()
- set the camera settings, such as camera_set_manual_iso()
3A Locked modes
Typically, these functions are used to lock settings on the camera. If you use 3A locked modes, it can lock autofocus, autoexposure, or auto white balance. Depending on the camera, only some settings can be locked. To determine which settings can be locked, call camera_get_3a_lock_modes(), and then based on the lock modes available, determine the combinations of camera settings that can be locked using camera_set_3a_lock().
element 0: CAMERA_3A_AUTOFOCUS
element 1: CAMERA_3A_AUTOEXPOSURE
element 2: CAMERA_3A_AUTOWHITEBALANCE
element 3: CAMERA_3A_NONE
element 0: CAMERA_3A_AUTOFOCUS | CAMERA_3A_AUTOEXPOSURE
element 1: CAMERA_3A_AUTOWHITEBALANCE
element 2: CAMERA_3A_NONE
camera_set_3a_lock(cameraHandle, CAMERA_3A_AUTOFOCUS | CAMERA_3A_AUTOEXPOSURE);
Manual camera settings
You can manually set aperture, focus, white balance, shutter speed, exposure modes, and ISO values for the camera, instead of letting the camera automatic modes do it (if available). The advantage of manual settings is they give you more control over the appearance of the image buffers captured from the camera. These manual settings can be set only after you start the viewfinder.
