nn::camera::CTR::SetContrast Function

Syntax

nn::Result SetContrast(
     CameraSelect select,
     Contrast contrast
);

Arguments

Name Description
in select Specifies which camera to change settings for.
in contrast Specifies the contrast (gamma curve).

Return Values

Returns the result of the operation.
LEVEL_SUCCESS:SUMMARY_SUCCESS:MODULE_COMMON:DESCRIPTION_SUCCESS: Success.
LEVEL_STATUS:SUMMARY_STATUS_CHANGED:MODULE_NN_CAMERA:DESCRIPTION_CAMERA_IS_SLEEPING: Asleep, and thus unavailable.
LEVEL_FATAL:SUMMARY_INTERNAL:MODULE_NN_CAMERA:DESCRIPTION_CAMERA_FATAL_ERROR: There may be something physically wrong with the camera.

Description

Sets the image contrast (gamma curve).

The default values for each camera are shown below.

Inner CameraRight Outer CameraLeft Outer Camera
CONTRAST_LOWCONTRAST_NORMALCONTRAST_NORMAL

Note that this function may block internally for an extended period if a camera is restarting.

Revision History

2010/07/17
Added explanation about operation during restart.
2010/04/14
Added a description of the default values.
2010/02/02
Initial version.

CONFIDENTIAL