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>GetMpEntry</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>::GetMpEntry</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/jpeg.h&gt;
14
15static bool GetMpEntry(
16     <a href="../../../../nn/jpeg/CTR/MpEntry/Overview.html">MpEntry</a> * pEntry,
17     const <a href="../../../../nn/jpeg/CTR/MpIndex/Overview.html">MpIndex</a> * pIndex,
18     <a href="../../../../nn_types/u32.html">u32</a> index
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>pEntry</th>
35<td>Specifies the buffer storing the MP entry.<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 entry differs from that of the original data.</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>pIndex</th>
40<td>Specifies the MP Index IFD. To get this ahead of time, use the <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetMpIndex.html">GetMpIndex</a></CODE> function.</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>index</th>
45<td>Specifies the storage order index within the MP entries.</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 />This is because this function ascertains whether the reason for failure is an invalid argument or an invalid MP entry. </div>
50<h2>Description</h2>
51    <div class="section">
52<p>Gets an MP entry included in the data stored in MP format.</p><p>Gets one specified MP entry from among all MP entries. Specify the MP entry to get by its storage order index within all the MP entries. These begin from 0. This storage order is different from the individual image numbers in MP format. (The individual image numbers generally begin from 1, but there are sometimes cases where numbers are not sequential or are not assigned.)</p><p>Access the obtained MP entry using functions such as <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetMpImageOffset.html">GetMpImageOffset</a></CODE> or <CODE><a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetMpImageSize.html">GetMpImageSize</a></CODE>.</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