nn::camera::CTR::SetLensCorrection Function

Syntax

nn::Result SetLensCorrection(
CameraSelect select,
LensCorrection correction
);

Arguments

Name Description
in select Specifies which camera to change settings for.
in correction Specifies the degree of lens correction.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultIsSleeping Unusable because the system is closed.
ResultFatalError There may be something physically wrong with the camera.

Description

Sets the degree of lens correction.

As referred to here, "lens correction" fixes a phenomenon called vignetting, where there is a difference in brightness between the center and edges of an image, by increasing the brightness of the edges to more closely match that of the center.

The default value is LENS_CORRECTION_NORMAL for all cameras.

Note that this function may block 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