nn::camera::CTR::SetTransferLines Function

Syntax

void SetTransferLines(
     Port port,
     s16 lines,
     s16 width,
     s16 height
);

Parameters

Name Description
in port Specifies which port to set the number of lines for.
in lines Specifies the number of lines.
All of the following conditions must be met.
(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 10 KB (10240 bytes) or less.
in width Specifies the width of the image to transfer. If trimming, specify (in pixels) the desired width of the trimmed image.
in height Specifies the height of the image to transfer. If trimming, specify the desired height (in pixels) of the trimmed image.

Return Values

None.

Description

Sets the number of lines 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/01/07
Initial version.

CONFIDENTIAL