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><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/camera/Overview.html">camera</a>::<a href="../../../nn/camera/CTR/Overview.html">CTR</a>::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     <a href="../../../nn_types/s16.html">s16</a> width,
18     <a href="../../../nn_types/s16.html">s16</a> height
19);
20</pre>
21    </div>
22    <h2>Parameters</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 the desired height (in pixels) of the trimmed image.</td>
51        </tr> </table>
52    </div>
53    <h2>Return Values</h2>
54    <div class="section">
55                None.
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>
60              This function does not set any value if it is called during image capture (while the <CODE><a href="../../../nn/camera/CTR/IsBusy.html">nn::camera::CTR::IsBusy</a></CODE> function returns <CODE>true</CODE>). If you wish to change the setting, do not call this function until you have used the <CODE><a href="../../../nn/camera/CTR/StopCapture.html">nn::camera::CTR::StopCapture</a></CODE> function to stop capturing and then waited for the <CODE><a href="../../../nn/camera/CTR/IsBusy.html">nn::camera::CTR::IsBusy</a></CODE> function's return value to change to <CODE>false</CODE>.
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>