1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>SetTransferBytes</title>
8  </head>
9  <body>
10<h1><CODE>nn::camera::CTR::SetTransferBytes</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14void SetTransferBytes(
15     <a href="../../../nn/camera/CTR/Port.html">Port</a> port,
16     size_t bytes,
17     s16 width,
18     s16 height
19);
20</pre>
21    </div>
22<h2>Arguments</h2>
23    <div class="section">
24      <table class="arguments">
25        <thead>
26          <tr>
27            <td width="15" />
28<th>Name</th>
29<td>Description</td>
30          </tr>
31        </thead>
32        <tr>
33<td>in</td>
34<th>port</th>
35<td>Specifies which port to set the number of bytes for.</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>bytes</th>
40<td>Specifies the number of bytes.<br />All of the following conditions must be met.<br />(1) The <SPAN class="argument">bytes</SPAN> argument must be a multiple of 256. <br />(2) The data in a single image frame (<SPAN class="argument">width</SPAN> * <SPAN class="argument">height</SPAN> * 2) must be a multiple of <SPAN class="argument">bytes</SPAN>.</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>width</th>
45<td>Specifies the width of the image to transfer. If trimming is enabled, specify (in pixels) the desired width of the trimmed image.</td>
46        </tr>
47        <tr>
48<td>in</td>
49<th>height</th>
50<td>Specifies the height of the image to transfer. If trimming is enabled, specify (in pixels) the desired height of the trimmed image.</td>
51        </tr> </table>
52    </div>
53<h2>Return Values</h2>
54    <div class="section">
55None.
56               </div>
57<h2>Description</h2>
58    <div class="section">
59<p>Sets the number of bytes to save in the buffer.</p><p><B>Note:</B> Do not let the amount of data being saved exceed the capacity of the buffer (10 KB).</p><P>
60No values are set if this function is called during image capture (while the <CODE>IsBusy</CODE> function returns <CODE>true</CODE>). To change settings, first call the <CODE>StopCapture</CODE> function to stop capturing, then wait for the <CODE>IsBusy</CODE> function's return value to change to <CODE>false</CODE>, and finally call this function.
61          </P></div>
62<h2>Revision History</h2>
63    <div class="section">
64      <dl class="history">
65        <dt>2010/06/18</dt>
66<dd>Explained that settings cannot be applied while capturing.<br />
67        </dd>
68        <dt>2010/02/02</dt>
69<dd>Initial version.<br />
70        </dd>
71      </dl>
72    </div>
73  <hr><p>CONFIDENTIAL</p></body>
74</html>