nn::camera::CTR::SetTransferBytes Function

Syntax

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

Parameters

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 the desired height (in pixels) 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).

This function does not set any value if it is called during image capture (while the nn::camera::CTR::IsBusy function returns true). If you wish to change the setting, do not call this function until you have used the nn::camera::CTR::StopCapture function to stop capturing and then waited for the nn::camera::CTR::IsBusy function's return value to change to false.

Revision History

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

CONFIDENTIAL