camera_set_saturation()

Updated: April 19, 2023

Set the saturation value for the camera

Synopsis:

#include <camera/camera_api.h>
camera_error_t camera_set_saturation(camera_handle_t handle,
                                     int32_t saturation)

Arguments:

handle
The handle returned by a call to the camera_open() function.
saturation
The saturation value to set. Higher values increase the intensity of the colors in an image while lower values decrease the intensity of the colors.

Library:

libcamapi

Description:

Use this function to adjust the saturation for the camera. Saturation controls the intensity of the colors in an image. You can call camera_get_supported_saturation() to determine the available saturation 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.