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>DecoderOption</title> 8 </head> 9 <body> 10<h1>nn::jpeg::CTR::DecoderOption Enumerated Type</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14enum DecoderOption; 15</pre> 16 </div> 17<h2>Value</h2> 18 <div class="section"> 19 <table class="arguments"> 20 <thead> 21 <tr> 22<th>Value</th> 23<td>Description</td> 24 </tr> 25 </thead> 26 <tr> 27<th>JPEG_DECODER_OPTION_NONE</th> 28 <td> 29 </td> 30 </tr> 31 <tr> 32<th>JPEG_DECODER_OPTION_ENABLE_DEFAULT_DHT</th> 33 <td> 34 </td> 35 </tr> 36 <tr> 37<th>JPEG_DECODER_OPTION_MATCH_WIDTH_HEIGHT</th> 38 <td> 39 </td> 40 </tr> 41 </table> </div> 42<h2>Description</h2> 43 <div class="section"> 44<p>Options used when decoding.</p><p>The default value is JPEG_DECODER_OPTION_NONE (0).</p><p>You can specify values that are the bitwise logical sum of these constants using <a href="../../../nn/jpeg/CTR/JpegMpDecoder/SetOption.html">JpegMpDecoder::SetOption</a>.</p><p><UL> <LI> JPEG_DECODER_OPTION_NONE<br /> Equal to 0, you can clear options by specifying this one by itself.</p><p><LI> <CODE>JPEG_DECODER_OPTION_ENABLE_DEFAULT_DHT</CODE>:<br />If no DHT (Huffman table) is found in the JPEG data, the library's standard Huffman table is used. This results in an error under the default behavior of the decoding functions. (The error code returned by <a href="../../../nn/jpeg/CTR/JpegMpDecoder/GetLastError.html">JpegMpDecoder::GetLastError</a> is <span>JPEG_DECODER_ERROR_DHT_NOT_FOUND</span> unless another error occurs.)<br /><a href="../../../nn/jpeg/CTR/JpegMpEncoder/Overview.html">This option must be specified for encoded JPEG data for where DHT has not been recorded by the <a href="../../../nn/jpeg/CTR/JpegMpEncoder/Overview.html">JpegMpEncoder</a> class.</p><p><LI> JPEG_DECODER_OPTION_MATCH_WIDTH_HEIGHT<br /> Decoding is performed only if the image size matches the specified size; otherwise, an error results. The error code returned by (<a href="../../../nn/jpeg/CTR/JpegMpDecoder/GetLastError.html">JpegMpDecoder::GetLastError</a> will be <span>JPEG_DECODER_ERROR_WIDTH_HEIGHT_DIFFERENT</span> unless another error occurs.).<br />Under the default operation of the decoding functions, decoding is only performed when the values are within the specified range.</UL></p><p>The return value of <a href="../../../nn/jpeg/CTR/JpegMpDecoder/GetOption.html">JpegMpDecoder::GetOption</a> is the bitwise OR of these constants.</p><!-- write here --></div> 45<h2>Revision History</h2> 46 <div class="section"> 47 <dl class="history"> 48 <dt>2010/10/21</dt> 49<dd>Initial version.<br /> 50 </dd> 51 </dl> 52 </div> 53 <hr><p>CONFIDENTIAL</p></body> 54</html>