Updated: October 28, 2024 |
Set the viewfinder mode for a camera
#include <camera/camera_api.h>
camera_error_t camera_set_vf_mode(camera_handle_t handle, camera_vfmode_t mode)
A viewfinder mode must be selected prior to configuring and starting the viewfinder. Changing viewfinder modes is not allowed while the viewfinder is already running. The camera_get_supported_vf_modes() function should be called prior to setting the viewfinder mode to determine the supported viewfinder modes.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.