nn::camera::CTR::GetMaxLines Function

Syntax

s16 GetMaxLines(
     s16 width,
     s16 height
);

Parameters

Name Description
in width Specifies the horizontal width (in pixels). If trimming, specify (in pixels) the desired width of the trimmed image.
in height Specifies the vertical height (in pixels). If trimming, specify the desired height (in pixels) of the trimmed image.

Return Values

Returns the maximum number of lines that can be saved in the buffer.

Description

Gets the maximum number of lines that can be saved in the buffer.

The buffer can save up to a maximum of 10 KB of data, but to avoid buffer errors this function instead takes 5 KB (half of that maximum value) as its standard when it returns the number of lines.

If the number of lines, lines, does not satisfy all of the following conditions, this function will stop internally.
(1) The amount of transfer data (width * lines * 2) must be a multiple of 256 bytes.
(2) The height argument must be a multiple of lines.
(3) The amount of transfer data (width * lines * 2) must be 5 KB (5120 bytes) or less.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL