camera_get_vf_mode()

Updated: April 19, 2023

Query the viewfinder mode for a camera

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_get_vf_mode(camera_handle_t handle,
                                  camera_vfmode_t *mode)

Arguments:

handle
The handle returned by a call to the camera_open() function.
mode
A pointer to a camera_vfmode_t value in which to return the current viewfinder mode.

Library:

libcamapi

Description:

Use this function to retrieve the currently configured viewfinder mode.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.