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>ExtractExif</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>::ExtractExif</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/jpeg.h&gt;
14
15bool ExtractExif(
16     const <a href="../../../../nn_types/u8.html">u8</a> * src,
17     size_t srcSize,
18     bool extractThumbnail
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>src</th>
35<td>Specifies the JPEG data to decode.</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>srcSize</th>
40<td>Specifies the size of <SPAN class="argument">src</SPAN> in bytes.</td>
41        </tr>
42        <tr>
43<td>in</td>
44<th>extractThumbnail</th>
45<td>Specify <CODE>true</CODE> to extract the thumbnail image size.<br />Specify <CODE>false</CODE> to extract the primary image size.<br />Fails if <CODE>true</CODE> is specified but no thumbnail is found.</td>
46        </tr> </table>
47    </div>
48<h2>Return Values</h2>
49<div class="section">Returns <CODE>true</CODE> on success. Even if no Exif information exists this function will return <CODE>true</CODE> if it is possible to obtain the image size.<br />Returns <CODE>false</CODE> on failure. 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>Extracts Exif information.</p><p>Because this function does not decode the image, it can get information more quickly than the <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/StartJpegDecoder.html"><CODE>StartJpegDecoder</CODE></a> function.<br></p><p>To actually get the information included in EXIF, call this function first, and after it has succeeded, use the <CODE>GetLast</CODE> functions below.</p><p><UL> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastDateTime.html"><CODE>GetLastDateTime</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastDateTimePointer.html"><CODE>GetLastDateTimePointer</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastSoftwarePointer.html"><CODE>GetLastSoftwarePointer</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastSoftwareLength.html"><CODE>GetLastSoftwareLength</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastUserMakerNotePointer.html"><CODE>GetLastUserMakerNotePointer</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastUserMakerNoteSize.html"><CODE>GetLastUserMakerNoteSize</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastTwlPhotoMakerNote.html"><CODE>GetLastTwlPhotoMakerNote</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastTwlUserMakerNotePointer.html"><CODE>GetLastTwlUserMakerNotePointer</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastTwlUserMakerNoteSize.html"><CODE>GetLastTwlUserMakerNoteSize</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastImageUid.html"><CODE>GetLastImageUid</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastOrientation.html"><CODE>GetLastOrientation</CODE></a> <LI> <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastGpsData.html">GetLastGpsData</a> </LI></UL></p><p>Use the <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastWidth.html"><CODE>GetLastWidth</CODE></a> and <a href="../../../../nn/jpeg/CTR/JpegMpDecoder/GetLastHeight.html"><CODE>GetLastHeight</CODE></a> functions to get the image size of either the primary or thumbnail images.</p><p>Image decoding might fail even if this function succeeds.</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