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>SetOption</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/jpeg/Overview.html">jpeg</a>::<a href="../../../../nn/jpeg/CTR/Overview.html">CTR</a>::<a href="../../../../nn/jpeg/CTR/JpegMpEncoder/Overview.html">JpegMpEncoder</a>::SetOption</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/jpeg.h&gt;
14
15void SetOption(
16     <a href="../../../../nn_types/u32.html">u32</a> option
17);
18</pre>
19    </div>
20<h2>Parameters</h2>
21    <div class="section">
22      <table class="arguments">
23        <thead>
24          <tr>
25            <td width="15" />
26<th>Name</th>
27<td>Description</td>
28          </tr>
29        </thead>
30        <tr>
31<td>in</td>
32<th>option</th>
33<td>Specifies the options. Use a bitwise OR of <a href="../../../../nn/jpeg/CTR/EncoderOption.html">EncoderOption</a> values. Specify JPEG_ENCODER_OPTION_NONE (0) to restore default behavior of the encoding function.</td>
34        </tr> </table>
35    </div>
36<h2>Return Values</h2>
37    <div class="section">
38None.
39               </div>
40<h2>Description</h2>
41    <div class="section">
42<p>Specifies JPEG encoding options.</p><p>You can change the behavior of the encoding function by specifying options.</p><p>The specifications are enabled for two primary images when encoding with <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/StartMpEncoderLR.html"><CODE>StartMpEncoderLR</CODE></a>.</p><p>Call this function before calling the encoding function. The values specified by this function are cleared after the encoding function completes, regardless of whether the encoding function succeeded or failed. When encoding multiple times, you must call this function before each encoding function call. The values specified by this function are cleared if you reinitialize the encoder object using the <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/Initialize.html"><CODE>Initialize</CODE></a> function.</p><p>If this function is repeatedly read before calling the encoding function, the last specification in enabled.</p><p>The various data storing functions given below influence APP1 recorded data. These functions do nothing if APP1 is not recorded.</p><p><UL> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetDateTime.html"><CODE>SetDateTime</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetSoftware.html"><CODE>SetSoftware</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetUserMakerNote.html"><CODE>SetUserMakerNote</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetImageUid.html"><CODE>SetImageUid</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetOrientation.html"><CODE>SetOrientation</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetGpsData.html">SetGpsData</a> </LI></UL></p><p>The data storing functions related to the MP format given below influence APP2 recorded data. They have an effect even if APP1 is not recorded.</p><p><UL> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpTypeFlags.html"><CODE>SetMpTypeFlags</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpIndividualNum.html"><CODE>SetMpIndividualNum</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpPanOrientation.html"><CODE>SetMpPanOrientation</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpPanOverlapH.html"><CODE>SetMpPanOverlapH</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpPanOverlapV.html"><CODE>SetMpPanOverlapV</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpBaseViewpointNum.html"><CODE>SetMpBaseViewpointNum</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpConvergenceAngle.html"><CODE>SetMpConvergenceAngle</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpBaselineLength.html"><CODE>SetMpBaselineLength</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpVerticalDivergence.html"><CODE>SetMpVerticalDivergence</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpAxisDistanceX.html"><CODE>SetMpAxisDistanceX</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpAxisDistanceY.html"><CODE>SetMpAxisDistanceY</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpAxisDistanceZ.html"><CODE>SetMpAxisDistanceZ</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpYawAngle.html"><CODE>SetMpYawAngle</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpPitchAngle.html"><CODE>SetMpPitchAngle</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpEncoder/SetMpRollAngle.html"><CODE>SetMpRollAngle</CODE></a> </LI></UL></p><!-- write here --></div>
43<h2>Revision History</h2>
44    <div class="section">
45      <dl class="history">
46        <dt>2010/10/21</dt>
47<dd>Initial version.<br />
48        </dd>
49      </dl>
50    </div>
51  <hr><p>CONFIDENTIAL</p></body>
52</html>
53