camera_set_ev_offset()

Set the exposure value (EV) offset for exposure compensation.

Synopsis:

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

Since:

BlackBerry 10.2.0

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 (For the qcc command, use the -l camapi option to link against this library)

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.

The viewfinder must be running before calling this function.

Returns:

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