Updated: October 28, 2024 |
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.
If you configure any of these settings before you call camera_set_vf_mode(), they are lost because this function resets them. For information about setting the viewfinder mode, see the Viewfinder Mode chapter. The settings are also lost whenever you stop and then restart the viewfinder.
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);
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.