nn::camera::CTR::SetContrast Function

Syntax

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

Parameters

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

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
Result::IsSuccess Process was successful.
ResultIsSleeping This function is unusable because the system cover is closed.
ResultFatalError 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

If synchronization with the stereo camera's brightness was enabled via the nn::camera::CTR::SetBrightnessSynchronization function, it will not be possible to set CONTRAST_PATTERN_10 to the left external camera (SELECT_OUT2). Function execution will fail.

Note: This function may block for an extended period if a camera is restarting.

Revision History

2011/03/22
Added information about failure conditions when brightness synchronization is enabled.
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