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>GetMpAttribute</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/JpegMpDecoder/Overview.html">JpegMpDecoder</a>::GetMpAttribute</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/jpeg.h&gt;
14
15bool GetMpAttribute(
16     <a href="../../../../nn/jpeg/CTR/MpAttribute/Overview.html">MpAttribute</a> * pAttr,
17     const <a href="../../../../nn_types/u8.html">u8</a> * src,
18     size_t srcSize
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>out</td>
34<th>pAttr</th>
35<td>Specifies the buffer for storing the MP Attribute IFD.<br />The stored data has been converted to a format that is easier for the library to process, and thus the binary representation of a stored MP Attribute IFD differs from that of the original data.</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>src</th>
40<td>Specifies the start of the individual image data.</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>srcSize</th>
45<td>Specifies the size of <SPAN class="argument">src</SPAN> in bytes.</td>
46        </tr> </table>
47    </div>
48<h2>Return Values</h2>
49<div class="section">Returns <CODE>true</CODE> on success. Returns <CODE>false</CODE> on failure.<br />Use the <CODE><a href="../../../../nn/jpeg/CTR/JpegMpEncoder/GetLastError.html">GetLastError</a></CODE> function to get the reason for failure. </div>
50<h2>Description</h2>
51    <div class="section">
52<p>Gets the MP Attribute IFD, which is included in the individual image data stored in MP format.</p><p>The MP Attribute IFD is included in the individual image data. Normally, the <SPAN class="argument">src</SPAN> argument contains a pointer to the position of the starting image plus the return value of <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetMpImageOffset.html">GetMpImageOffset</a></CODE>. <SPAN class="argument">srcSize</SPAN> contains the return value of <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetMpImageSize.html">GetMpImageSize</a></CODE>. Confirm beforehand that the region specified by <SPAN class="argument">src</SPAN> and <SPAN class="argument">srcSize</SPAN> is a valid region.</p><p>This function will fail if the MP type (<a href="../../../../nn/jpeg/CTR/MpTypeCode.html">MpTypeCode</a>) of the individual image is <a href="../../../../nn/jpeg/CTR/MpTypeCode.html">MP_TYPE_CODE_LARGE_THUMBNAIL_IMAGE_CLASS_1</a> or <a href="../../../../nn/jpeg/CTR/MpTypeCode.html">MP_TYPE_CODE_LARGE_THUMBNAIL_IMAGE_CLASS_2</a>, because these types of images are for display on monitors and do not include an MP Attribute IFD or the other information associated with MP format.</p><p>This function only partially performs decoding and shared processing. Consequently, there are some functions you cannot call immediately after calling this function: the <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastWidth.html">GetLastWidth</a></CODE>, <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastHeight.html">GetLastHeight</a></CODE>, <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastOutputBufferWidth.html">GetLastOutputBufferWidth</a></CODE>, and <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastOutputBufferHeight.html">GetLastOutputBufferHeight</a></CODE> functions, and all functions that get EXIF information, such as the <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastDateTime.html">GetLastDateTime</a></CODE> function. Calls to these functions will have undefined return values.</p><!-- write here --></div>
53<h2>Revision History</h2>
54    <div class="section">
55      <dl class="history">
56        <dt>2010/06/14</dt>
57<dd>Initial version.<br />
58        </dd>
59      </dl>
60    </div>
61  <hr><p>CONFIDENTIAL</p></body>
62</html>
63