camera_get_contrast()

Updated: April 19, 2023

Retrieve the contrast value configured on the camera

Synopsis:

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

Arguments:

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

Library:

libcamapi

Description:

Use this function to retrieve the current contrast value. See also camera_set_contrast().

Returns:

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