nn::camera::CTR::SetTransferBytes Function

Syntax

void SetTransferBytes(
     Port port,
     size_t bytes,
     s16 width,
     s16 height
);

Arguments

Name Description
in port Specifies which port to set the number of bytes for.
in bytes Specifies the number of bytes.
All of the following conditions must be met.
(1) The bytes argument must be a multiple of 256.
(2) The data in a single image frame (width * height * 2) must be a multiple of bytes.
in width Specifies the width of the image to transfer. If trimming is enabled, specify (in pixels) the desired width of the trimmed image.
in height Specifies the height of the image to transfer. If trimming is enabled, specify (in pixels) the desired height of the trimmed image.

Return Values

None.

Description

Sets the number of bytes to save in the buffer.

Note: Do not let the amount of data being saved exceed the capacity of the buffer (10 KB).

No values are set if this function is called during image capture (while the IsBusy function returns true). To change settings, first call the StopCapture function to stop capturing, then wait for the IsBusy function's return value to change to false, and finally call this function.

Revision History

2010/06/18
Explained that settings cannot be applied while capturing.
2010/02/02
Initial version.

CONFIDENTIAL