nn::camera::CTR::GetMaxLines Function
s16 GetMaxLines(
s16 width ,
s16 height
);
| 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 height (in pixels). If trimming, specify (in pixels) the desired height of the trimmed image. |
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.
CONFIDENTIAL