< prev index next >

src/java.desktop/share/classes/javax/imageio/metadata/doc-files/jpeg_metadata.html

Print this page


   1 <!doctype html>
   2 <html lang="en">
   3 <head>
   4   <meta charset="utf-8"/>
   5   <title>JPEG Metadata Format Specification and Usage Notes</title>
   6 </head>
   7 <!--
   8 Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
   9 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  10 
  11 This code is free software; you can redistribute it and/or modify it
  12 under the terms of the GNU General Public License version 2 only, as
  13 published by the Free Software Foundation.  Oracle designates this
  14 particular file as subject to the "Classpath" exception as provided
  15 by Oracle in the LICENSE file that accompanied this code.
  16 
  17 This code is distributed in the hope that it will be useful, but WITHOUT
  18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  20 version 2 for more details (a copy is included in the LICENSE file that
  21 accompanied this code).
  22 
  23 You should have received a copy of the GNU General Public License version
  24 2 along with this work; if not, write to the Free Software Foundation,
  25 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  26 
  27 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  28 or visit www.oracle.com if you need additional information or have any
  29 questions.
  30 -->
  31 
  32 <body>
  33 <main role="main">

  34 <h1>JPEG Metadata Format Specification and Usage Notes</h1>
  35 
  36 <p>
  37 <a href=#metadata>JPEG Metadata</a><br>
  38 <a href=#abbrev>Abbreviated Streams</a><br>
  39 <a href=#tables>Sources of Tables</a><br>
  40 <a href=#color>Colorspace Transformations and Conventional Markers</a><br>
  41 <a href=#thumbs>Thumbnail Images</a><br>
  42 <a href=#prog>Progressive Encoding</a><br>
  43 <a href=#tree>Native Metadata Format Tree Structure and Editing</a><br>
  44 <a href=#image>Image Metadata DTD</a><br>
  45 <a href=#stream>Stream Metadata DTD</a>
  46 <p>
  47 <b>NOTE</b>: It is important to call <code>dispose()</code>
  48 on the JPEG reader and writer objects when they are no longer needed, as
  49 they consume significant native resources which are not adequately recovered
  50 by garbage collection.  Both reader and writer call <code>dispose()</code>
  51 in their finalizers, but those finalizers may not be called before the native
  52 code has exhausted native memory.
  53 


1142             "3") #REQUIRED&gt;
1143             &lt;!-- The huffman table to use for encoding AC coefficients --&gt;
1144 ]&gt;
1145 </pre>
1146 
1147 <h2>
1148 <a id=stream>Stream Metadata DTD</a>
1149 </h2>
1150 
1151 <pre>
1152 &lt;!DOCTYPE "javax_imageio_jpeg_stream_1.0" [
1153   &lt;!ELEMENT "javax_imageio_jpeg_stream_1.0" (dqt |
1154                       dht |
1155                       dri |
1156                       com |
1157                       unknown)*&gt;
1158 
1159   &lt;!-- All elements are as defined above for image metadata --&gt;
1160 ]&gt;
1161 </pre>

1162 </main>
1163 </body>
1164 </html>
   1 <!doctype html>
   2 <html lang="en">
   3 <head>
   4   <meta charset="utf-8"/>
   5   <title>JPEG Metadata Format Specification and Usage Notes</title>
   6 </head>
   7 <!--
   8 Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
   9 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  10 
  11 This code is free software; you can redistribute it and/or modify it
  12 under the terms of the GNU General Public License version 2 only, as
  13 published by the Free Software Foundation.  Oracle designates this
  14 particular file as subject to the "Classpath" exception as provided
  15 by Oracle in the LICENSE file that accompanied this code.
  16 
  17 This code is distributed in the hope that it will be useful, but WITHOUT
  18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  19 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  20 version 2 for more details (a copy is included in the LICENSE file that
  21 accompanied this code).
  22 
  23 You should have received a copy of the GNU General Public License version
  24 2 along with this work; if not, write to the Free Software Foundation,
  25 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  26 
  27 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  28 or visit www.oracle.com if you need additional information or have any
  29 questions.
  30 -->
  31 
  32 <body>
  33 <main role="main">
  34 <div class="contentContainer">
  35 <h1>JPEG Metadata Format Specification and Usage Notes</h1>
  36 
  37 <p>
  38 <a href=#metadata>JPEG Metadata</a><br>
  39 <a href=#abbrev>Abbreviated Streams</a><br>
  40 <a href=#tables>Sources of Tables</a><br>
  41 <a href=#color>Colorspace Transformations and Conventional Markers</a><br>
  42 <a href=#thumbs>Thumbnail Images</a><br>
  43 <a href=#prog>Progressive Encoding</a><br>
  44 <a href=#tree>Native Metadata Format Tree Structure and Editing</a><br>
  45 <a href=#image>Image Metadata DTD</a><br>
  46 <a href=#stream>Stream Metadata DTD</a>
  47 <p>
  48 <b>NOTE</b>: It is important to call <code>dispose()</code>
  49 on the JPEG reader and writer objects when they are no longer needed, as
  50 they consume significant native resources which are not adequately recovered
  51 by garbage collection.  Both reader and writer call <code>dispose()</code>
  52 in their finalizers, but those finalizers may not be called before the native
  53 code has exhausted native memory.
  54 


1143             "3") #REQUIRED&gt;
1144             &lt;!-- The huffman table to use for encoding AC coefficients --&gt;
1145 ]&gt;
1146 </pre>
1147 
1148 <h2>
1149 <a id=stream>Stream Metadata DTD</a>
1150 </h2>
1151 
1152 <pre>
1153 &lt;!DOCTYPE "javax_imageio_jpeg_stream_1.0" [
1154   &lt;!ELEMENT "javax_imageio_jpeg_stream_1.0" (dqt |
1155                       dht |
1156                       dri |
1157                       com |
1158                       unknown)*&gt;
1159 
1160   &lt;!-- All elements are as defined above for image metadata --&gt;
1161 ]&gt;
1162 </pre>
1163 </div>
1164 </main>
1165 </body>
1166 </html>
< prev index next >