camera_set_ev_offset()

Updated: April 19, 2023

Set the exposure value (EV) offset for exposure compensation

Synopsis:

#include <camera/camera_3a.h>
camera_error_t camera_set_ev_offset(camera_handle_t handle,
                                    double offset)

Arguments:

handle
The handle returned by a call to the camera_open() function.
offset
The EV offset to set. Positive values, such as +1 will make the picture brighter while negative values, such as -1 will make the picture darker.

Library:

libcamapi

Description:

Use this function to set the EV offset to make pictures brighter or darker. The value set in this function does not take effect if the exposure mode (camera_exposuremode_t) is set to one of these values:

You can call camera_get_supported_ev_offsets() to determine the available EV offset values that can be used.

Returns:

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