camera_get_brightness()

Updated: April 19, 2023

Retrieve the brightness value configured on the camera

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_get_brightness(camera_handle_t handle,
                                     int32_t *brightness)

Arguments:

handle
The handle returned by a call to the camera_open() function.
brightness
A pointer to an int32_t that is updated with the current brightness value.

Library:

libcamapi

Description:

Use this function to retrieve the current brightness value on the camera. See also camera_set_brightness().

Returns:

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