nn::camera::CTR::GetMaxBytes Function

Syntax

size_t GetMaxBytes(
     s16 width,
     s16 height
);

Arguments

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 width of the trimmed image.

Return Values

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

Description

Gets the maximum number of bytes 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 bytes.
Execution halts within this function if the following condition is not met.
• The amount of data per image frame (width * height * 2) must be a multiple of 256 bytes.

Revision History

2010/02/02
Initial version.

CONFIDENTIAL