| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
     g/TR/html4/loose.dtd"> | 
|  | 2 <!-- NewPage --> | 
|  | 3 <html lang="en"> | 
|  | 4 <head> | 
|  | 5 <title>TJTransformer</title> | 
|  | 6 <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Sty
     le"> | 
|  | 7 </head> | 
|  | 8 <body> | 
|  | 9 <script type="text/javascript"><!-- | 
|  | 10     if (location.href.indexOf('is-external=true') == -1) { | 
|  | 11         parent.document.title="TJTransformer"; | 
|  | 12     } | 
|  | 13 //--> | 
|  | 14 </script> | 
|  | 15 <noscript> | 
|  | 16 <div>JavaScript is disabled on your browser.</div> | 
|  | 17 </noscript> | 
|  | 18 <!-- ========= START OF TOP NAVBAR ======= --> | 
|  | 19 <div class="topNav"><a name="navbar_top"> | 
|  | 20 <!--   --> | 
|  | 21 </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar
     _top_firstrow"> | 
|  | 22 <!--   --> | 
|  | 23 </a> | 
|  | 24 <ul class="navList" title="Navigation"> | 
|  | 25 <li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</
     a></li> | 
|  | 26 <li class="navBarCell1Rev">Class</li> | 
|  | 27 <li><a href="package-tree.html">Tree</a></li> | 
|  | 28 <li><a href="../../../deprecated-list.html">Deprecated</a></li> | 
|  | 29 <li><a href="../../../index-all.html">Index</a></li> | 
|  | 30 <li><a href="../../../help-doc.html">Help</a></li> | 
|  | 31 </ul> | 
|  | 32 </div> | 
|  | 33 <div class="subNav"> | 
|  | 34 <ul class="navList"> | 
|  | 35 <li><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="class 
     in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></li> | 
|  | 36 <li><a href="../../../org/libjpegturbo/turbojpeg/YUVImage.html" title="class in 
     org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li> | 
|  | 37 </ul> | 
|  | 38 <ul class="navList"> | 
|  | 39 <li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJTransformer.html" 
     target="_top">Frames</a></li> | 
|  | 40 <li><a href="TJTransformer.html" target="_top">No Frames</a></li> | 
|  | 41 </ul> | 
|  | 42 <ul class="navList" id="allclasses_navbar_top"> | 
|  | 43 <li><a href="../../../allclasses-noframe.html">All Classes</a></li> | 
|  | 44 </ul> | 
|  | 45 <div> | 
|  | 46 <script type="text/javascript"><!-- | 
|  | 47   allClassesLink = document.getElementById("allclasses_navbar_top"); | 
|  | 48   if(window==top) { | 
|  | 49     allClassesLink.style.display = "block"; | 
|  | 50   } | 
|  | 51   else { | 
|  | 52     allClassesLink.style.display = "none"; | 
|  | 53   } | 
|  | 54   //--> | 
|  | 55 </script> | 
|  | 56 </div> | 
|  | 57 <div> | 
|  | 58 <ul class="subNavList"> | 
|  | 59 <li>Summary: </li> | 
|  | 60 <li>Nested | </li> | 
|  | 61 <li><a href="#fields_inherited_from_class_org.libjpegturbo.turbojpeg.TJDecompres
     sor">Field</a> | </li> | 
|  | 62 <li><a href="#constructor_summary">Constr</a> | </li> | 
|  | 63 <li><a href="#method_summary">Method</a></li> | 
|  | 64 </ul> | 
|  | 65 <ul class="subNavList"> | 
|  | 66 <li>Detail: </li> | 
|  | 67 <li>Field | </li> | 
|  | 68 <li><a href="#constructor_detail">Constr</a> | </li> | 
|  | 69 <li><a href="#method_detail">Method</a></li> | 
|  | 70 </ul> | 
|  | 71 </div> | 
|  | 72 <a name="skip-navbar_top"> | 
|  | 73 <!--   --> | 
|  | 74 </a></div> | 
|  | 75 <!-- ========= END OF TOP NAVBAR ========= --> | 
|  | 76 <!-- ======== START OF CLASS DATA ======== --> | 
|  | 77 <div class="header"> | 
|  | 78 <div class="subTitle">org.libjpegturbo.turbojpeg</div> | 
|  | 79 <h2 title="Class TJTransformer" class="title">Class TJTransformer</h2> | 
|  | 80 </div> | 
|  | 81 <div class="contentContainer"> | 
|  | 82 <ul class="inheritance"> | 
|  | 83 <li>java.lang.Object</li> | 
|  | 84 <li> | 
|  | 85 <ul class="inheritance"> | 
|  | 86 <li><a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html" title="cla
     ss in org.libjpegturbo.turbojpeg">org.libjpegturbo.turbojpeg.TJDecompressor</a><
     /li> | 
|  | 87 <li> | 
|  | 88 <ul class="inheritance"> | 
|  | 89 <li>org.libjpegturbo.turbojpeg.TJTransformer</li> | 
|  | 90 </ul> | 
|  | 91 </li> | 
|  | 92 </ul> | 
|  | 93 </li> | 
|  | 94 </ul> | 
|  | 95 <div class="description"> | 
|  | 96 <ul class="blockList"> | 
|  | 97 <li class="blockList"> | 
|  | 98 <dl> | 
|  | 99 <dt>All Implemented Interfaces:</dt> | 
|  | 100 <dd>java.io.Closeable, java.lang.AutoCloseable</dd> | 
|  | 101 </dl> | 
|  | 102 <hr> | 
|  | 103 <br> | 
|  | 104 <pre>public class <span class="strong">TJTransformer</span> | 
|  | 105 extends <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html" title=
     "class in org.libjpegturbo.turbojpeg">TJDecompressor</a></pre> | 
|  | 106 <div class="block">TurboJPEG lossless transformer</div> | 
|  | 107 </li> | 
|  | 108 </ul> | 
|  | 109 </div> | 
|  | 110 <div class="summary"> | 
|  | 111 <ul class="blockList"> | 
|  | 112 <li class="blockList"> | 
|  | 113 <!-- =========== FIELD SUMMARY =========== --> | 
|  | 114 <ul class="blockList"> | 
|  | 115 <li class="blockList"><a name="field_summary"> | 
|  | 116 <!--   --> | 
|  | 117 </a> | 
|  | 118 <h3>Field Summary</h3> | 
|  | 119 <ul class="blockList"> | 
|  | 120 <li class="blockList"><a name="fields_inherited_from_class_org.libjpegturbo.turb
     ojpeg.TJDecompressor"> | 
|  | 121 <!--   --> | 
|  | 122 </a> | 
|  | 123 <h3>Fields inherited from class org.libjpegturbo.turbojpeg.<a href="../../.
     ./org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegtur
     bo.turbojpeg">TJDecompressor</a></h3> | 
|  | 124 <code><a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#handle">h
     andle</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#jpeg
     Buf">jpegBuf</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.ht
     ml#jpegBufSize">jpegBufSize</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJ
     Decompressor.html#jpegColorspace">jpegColorspace</a>, <a href="../../../org/libj
     pegturbo/turbojpeg/TJDecompressor.html#jpegHeight">jpegHeight</a>, <a href="../.
     ./../org/libjpegturbo/turbojpeg/TJDecompressor.html#jpegSubsamp">jpegSubsamp</a>
     , <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#jpegWidth">jp
     egWidth</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#yu
     vImage">yuvImage</a></code></li> | 
|  | 125 </ul> | 
|  | 126 </li> | 
|  | 127 </ul> | 
|  | 128 <!-- ======== CONSTRUCTOR SUMMARY ======== --> | 
|  | 129 <ul class="blockList"> | 
|  | 130 <li class="blockList"><a name="constructor_summary"> | 
|  | 131 <!--   --> | 
|  | 132 </a> | 
|  | 133 <h3>Constructor Summary</h3> | 
|  | 134 <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summar
     y="Constructor Summary table, listing constructors, and an explanation"> | 
|  | 135 <caption><span>Constructors</span><span class="tabEnd"> </span></caption> | 
|  | 136 <tr> | 
|  | 137 <th class="colOne" scope="col">Constructor and Description</th> | 
|  | 138 </tr> | 
|  | 139 <tr class="altColor"> | 
|  | 140 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJ
     Transformer.html#TJTransformer()">TJTransformer</a></strong>()</code> | 
|  | 141 <div class="block">Create a TurboJPEG lossless transformer instance.</div> | 
|  | 142 </td> | 
|  | 143 </tr> | 
|  | 144 <tr class="rowColor"> | 
|  | 145 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJ
     Transformer.html#TJTransformer(byte[])">TJTransformer</a></strong>(byte[] j
     pegImage)</code> | 
|  | 146 <div class="block">Create a TurboJPEG lossless transformer instance and associat
     e the JPEG | 
|  | 147  image stored in <code>jpegImage</code> with the newly created instance.</div> | 
|  | 148 </td> | 
|  | 149 </tr> | 
|  | 150 <tr class="altColor"> | 
|  | 151 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJ
     Transformer.html#TJTransformer(byte[],%20int)">TJTransformer</a></strong>(byte[]
      jpegImage, | 
|  | 152              int imageSize)</code> | 
|  | 153 <div class="block">Create a TurboJPEG lossless transformer instance and associat
     e the JPEG | 
|  | 154  image of length <code>imageSize</code> bytes stored in | 
|  | 155  <code>jpegImage</code> with the newly created instance.</div> | 
|  | 156 </td> | 
|  | 157 </tr> | 
|  | 158 </table> | 
|  | 159 </li> | 
|  | 160 </ul> | 
|  | 161 <!-- ========== METHOD SUMMARY =========== --> | 
|  | 162 <ul class="blockList"> | 
|  | 163 <li class="blockList"><a name="method_summary"> | 
|  | 164 <!--   --> | 
|  | 165 </a> | 
|  | 166 <h3>Method Summary</h3> | 
|  | 167 <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summar
     y="Method Summary table, listing methods, and an explanation"> | 
|  | 168 <caption><span>Methods</span><span class="tabEnd"> </span></caption> | 
|  | 169 <tr> | 
|  | 170 <th class="colFirst" scope="col">Modifier and Type</th> | 
|  | 171 <th class="colLast" scope="col">Method and Description</th> | 
|  | 172 </tr> | 
|  | 173 <tr class="altColor"> | 
|  | 174 <td class="colFirst"><code>int[]</code></td> | 
|  | 175 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/T
     JTransformer.html#getTransformedSizes()">getTransformedSizes</a></strong>()</cod
     e> | 
|  | 176 <div class="block">Returns an array containing the sizes of the transformed JPEG
      images | 
|  | 177  generated by the most recent transform operation.</div> | 
|  | 178 </td> | 
|  | 179 </tr> | 
|  | 180 <tr class="rowColor"> | 
|  | 181 <td class="colFirst"><code>void</code></td> | 
|  | 182 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/T
     JTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[]
     ,%20int)">transform</a></strong>(byte[][] dstBufs, | 
|  | 183          <a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="c
     lass in org.libjpegturbo.turbojpeg">TJTransform</a>[] transforms, | 
|  | 184          int flags)</code> | 
|  | 185 <div class="block">Losslessly transform the JPEG image associated with this tran
     sformer | 
|  | 186  instance into one or more JPEG images stored in the given destination | 
|  | 187  buffers.</div> | 
|  | 188 </td> | 
|  | 189 </tr> | 
|  | 190 <tr class="altColor"> | 
|  | 191 <td class="colFirst"><code><a href="../../../org/libjpegturbo/turbojpeg/TJDecomp
     ressor.html" title="class in org.libjpegturbo.turbojpeg">TJDecompressor</a>[]</c
     ode></td> | 
|  | 192 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/T
     JTransformer.html#transform(org.libjpegturbo.turbojpeg.TJTransform[],%20int)">tr
     ansform</a></strong>(<a href="../../../org/libjpegturbo/turbojpeg/TJTransform.ht
     ml" title="class in org.libjpegturbo.turbojpeg">TJTransform</a>[] transform
     s, | 
|  | 193          int flags)</code> | 
|  | 194 <div class="block">Losslessly transform the JPEG image associated with this tran
     sformer | 
|  | 195  instance and return an array of <a href="../../../org/libjpegturbo/turbojpeg/TJ
     Decompressor.html" title="class in org.libjpegturbo.turbojpeg"><code>TJDecompres
     sor</code></a> instances, each of | 
|  | 196  which has a transformed JPEG image associated with it.</div> | 
|  | 197 </td> | 
|  | 198 </tr> | 
|  | 199 </table> | 
|  | 200 <ul class="blockList"> | 
|  | 201 <li class="blockList"><a name="methods_inherited_from_class_org.libjpegturbo.tur
     bojpeg.TJDecompressor"> | 
|  | 202 <!--   --> | 
|  | 203 </a> | 
|  | 204 <h3>Methods inherited from class org.libjpegturbo.turbojpeg.<a href="../../
     ../org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegtu
     rbo.turbojpeg">TJDecompressor</a></h3> | 
|  | 205 <code><a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#close()">
     close</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#deco
     mpress(java.awt.image.BufferedImage,%20int)">decompress</a>, <a href="../../../o
     rg/libjpegturbo/turbojpeg/TJDecompressor.html#decompress(byte[],%20int,%20int,%2
     0int,%20int,%20int)">decompress</a>, <a href="../../../org/libjpegturbo/turbojpe
     g/TJDecompressor.html#decompress(byte[],%20int,%20int,%20int,%20int,%20int,%20in
     t,%20int)">decompress</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecomp
     ressor.html#decompress(int[],%20int,%20int,%20int,%20int,%20int,%20int,%20int)">
     decompress</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html
     #decompress(int,%20int,%20int,%20int)">decompress</a>, <a href="../../../org/lib
     jpegturbo/turbojpeg/TJDecompressor.html#decompress(int,%20int,%20int,%20int,%20i
     nt)">decompress</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor
     .html#decompressToYUV(byte[],%20int)">decompressToYUV</a>, <a href="../../../org
     /libjpegturbo/turbojpeg/TJDecompressor.html#decompressToYUV(int)">decompressToYU
     V</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#decompre
     ssToYUV(int,%20int[],%20int,%20int)">decompressToYUV</a>, <a href="../../../org/
     libjpegturbo/turbojpeg/TJDecompressor.html#decompressToYUV(int,%20int,%20int,%20
     int)">decompressToYUV</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecomp
     ressor.html#decompressToYUV(org.libjpegturbo.turbojpeg.YUVImage,%20int)">decompr
     essToYUV</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#f
     inalize()">finalize</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompre
     ssor.html#getColorspace()">getColorspace</a>, <a href="../../../org/libjpegturbo
     /turbojpeg/TJDecompressor.html#getHeight()">getHeight</a>, <a href="../../../org
     /libjpegturbo/turbojpeg/TJDecompressor.html#getJPEGBuf()">getJPEGBuf</a>, <a hre
     f="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#getJPEGSize()">getJPE
     GSize</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#getS
     caledHeight(int,%20int)">getScaledHeight</a>, <a href="../../../org/libjpegturbo
     /turbojpeg/TJDecompressor.html#getScaledWidth(int,%20int)">getScaledWidth</a>, <
     a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#getSubsamp()">ge
     tSubsamp</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#g
     etWidth()">getWidth</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompre
     ssor.html#setJPEGImage(byte[],%20int)">setJPEGImage</a>, <a href="../../../org/l
     ibjpegturbo/turbojpeg/TJDecompressor.html#setSourceImage(byte[],%20int)">setSour
     ceImage</a>, <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html#se
     tSourceImage(org.libjpegturbo.turbojpeg.YUVImage)">setSourceImage</a></code></li
     > | 
|  | 206 </ul> | 
|  | 207 <ul class="blockList"> | 
|  | 208 <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> | 
|  | 209 <!--   --> | 
|  | 210 </a> | 
|  | 211 <h3>Methods inherited from class java.lang.Object</h3> | 
|  | 212 <code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
     , wait</code></li> | 
|  | 213 </ul> | 
|  | 214 </li> | 
|  | 215 </ul> | 
|  | 216 </li> | 
|  | 217 </ul> | 
|  | 218 </div> | 
|  | 219 <div class="details"> | 
|  | 220 <ul class="blockList"> | 
|  | 221 <li class="blockList"> | 
|  | 222 <!-- ========= CONSTRUCTOR DETAIL ======== --> | 
|  | 223 <ul class="blockList"> | 
|  | 224 <li class="blockList"><a name="constructor_detail"> | 
|  | 225 <!--   --> | 
|  | 226 </a> | 
|  | 227 <h3>Constructor Detail</h3> | 
|  | 228 <a name="TJTransformer()"> | 
|  | 229 <!--   --> | 
|  | 230 </a> | 
|  | 231 <ul class="blockList"> | 
|  | 232 <li class="blockList"> | 
|  | 233 <h4>TJTransformer</h4> | 
|  | 234 <pre>public TJTransformer() | 
|  | 235               throws <a href="../../../org/libjpegturbo/turbojpeg/TJException.ht
     ml" title="class in org.libjpegturbo.turbojpeg">TJException</a></pre> | 
|  | 236 <div class="block">Create a TurboJPEG lossless transformer instance.</div> | 
|  | 237 <dl><dt><span class="strong">Throws:</span></dt> | 
|  | 238 <dd><code><a href="../../../org/libjpegturbo/turbojpeg/TJException.html" title="
     class in org.libjpegturbo.turbojpeg">TJException</a></code></dd></dl> | 
|  | 239 </li> | 
|  | 240 </ul> | 
|  | 241 <a name="TJTransformer(byte[])"> | 
|  | 242 <!--   --> | 
|  | 243 </a> | 
|  | 244 <ul class="blockList"> | 
|  | 245 <li class="blockList"> | 
|  | 246 <h4>TJTransformer</h4> | 
|  | 247 <pre>public TJTransformer(byte[] jpegImage) | 
|  | 248               throws <a href="../../../org/libjpegturbo/turbojpeg/TJException.ht
     ml" title="class in org.libjpegturbo.turbojpeg">TJException</a></pre> | 
|  | 249 <div class="block">Create a TurboJPEG lossless transformer instance and associat
     e the JPEG | 
|  | 250  image stored in <code>jpegImage</code> with the newly created instance.</div> | 
|  | 251 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>jpegImage</code> -
      JPEG image buffer (size of the JPEG image is assumed to | 
|  | 252  be the length of the array.)  This buffer is not modified.</dd> | 
|  | 253 <dt><span class="strong">Throws:</span></dt> | 
|  | 254 <dd><code><a href="../../../org/libjpegturbo/turbojpeg/TJException.html" title="
     class in org.libjpegturbo.turbojpeg">TJException</a></code></dd></dl> | 
|  | 255 </li> | 
|  | 256 </ul> | 
|  | 257 <a name="TJTransformer(byte[], int)"> | 
|  | 258 <!--   --> | 
|  | 259 </a> | 
|  | 260 <ul class="blockListLast"> | 
|  | 261 <li class="blockList"> | 
|  | 262 <h4>TJTransformer</h4> | 
|  | 263 <pre>public TJTransformer(byte[] jpegImage, | 
|  | 264              int imageSize) | 
|  | 265               throws <a href="../../../org/libjpegturbo/turbojpeg/TJException.ht
     ml" title="class in org.libjpegturbo.turbojpeg">TJException</a></pre> | 
|  | 266 <div class="block">Create a TurboJPEG lossless transformer instance and associat
     e the JPEG | 
|  | 267  image of length <code>imageSize</code> bytes stored in | 
|  | 268  <code>jpegImage</code> with the newly created instance.</div> | 
|  | 269 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>jpegImage</code> -
      JPEG image buffer.  This buffer is not modified.</dd><dd><code>imageSize</code>
      - size of the JPEG image (in bytes)</dd> | 
|  | 270 <dt><span class="strong">Throws:</span></dt> | 
|  | 271 <dd><code><a href="../../../org/libjpegturbo/turbojpeg/TJException.html" title="
     class in org.libjpegturbo.turbojpeg">TJException</a></code></dd></dl> | 
|  | 272 </li> | 
|  | 273 </ul> | 
|  | 274 </li> | 
|  | 275 </ul> | 
|  | 276 <!-- ============ METHOD DETAIL ========== --> | 
|  | 277 <ul class="blockList"> | 
|  | 278 <li class="blockList"><a name="method_detail"> | 
|  | 279 <!--   --> | 
|  | 280 </a> | 
|  | 281 <h3>Method Detail</h3> | 
|  | 282 <a name="transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"> | 
|  | 283 <!--   --> | 
|  | 284 </a> | 
|  | 285 <ul class="blockList"> | 
|  | 286 <li class="blockList"> | 
|  | 287 <h4>transform</h4> | 
|  | 288 <pre>public void transform(byte[][] dstBufs, | 
|  | 289              <a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" titl
     e="class in org.libjpegturbo.turbojpeg">TJTransform</a>[] transforms, | 
|  | 290              int flags) | 
|  | 291                throws <a href="../../../org/libjpegturbo/turbojpeg/TJException.h
     tml" title="class in org.libjpegturbo.turbojpeg">TJException</a></pre> | 
|  | 292 <div class="block">Losslessly transform the JPEG image associated with this tran
     sformer | 
|  | 293  instance into one or more JPEG images stored in the given destination | 
|  | 294  buffers.  Lossless transforms work by moving the raw coefficients from one | 
|  | 295  JPEG image structure to another without altering the values of the | 
|  | 296  coefficients.  While this is typically faster than decompressing the | 
|  | 297  image, transforming it, and re-compressing it, lossless transforms are not | 
|  | 298  free.  Each lossless transform requires reading and performing Huffman | 
|  | 299  decoding on all of the coefficients in the source image, regardless of the | 
|  | 300  size of the destination image.  Thus, this method provides a means of | 
|  | 301  generating multiple transformed images from the same source or of applying | 
|  | 302  multiple transformations simultaneously, in order to eliminate the need to | 
|  | 303  read the source coefficients multiple times.</div> | 
|  | 304 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dstBufs</code> - a
     n array of image buffers.  <code>dstbufs[i]</code> will | 
|  | 305  receive a JPEG image that has been transformed using the parameters in | 
|  | 306  <code>transforms[i]</code>.  Use <a href="../../../org/libjpegturbo/turbojpeg/T
     J.html#bufSize(int,%20int,%20int)"><code>TJ.bufSize(int, int, int)</code></a> to
      determine the | 
|  | 307  maximum size for each buffer based on the transformed or cropped width and | 
|  | 308  height and the level of subsampling used in the source image.</dd><dd><code>tra
     nsforms</code> - an array of <a href="../../../org/libjpegturbo/turbojpeg/TJTran
     sform.html" title="class in org.libjpegturbo.turbojpeg"><code>TJTransform</code>
     </a> instances, each of | 
|  | 309  which specifies the transform parameters and/or cropping region for the | 
|  | 310  corresponding transformed output image</dd><dd><code>flags</code> - the bitwise
      OR of one or more of | 
|  | 311  <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_BOTTOMUP"><code>TJ.FL
     AG_*</code></a></dd> | 
|  | 312 <dt><span class="strong">Throws:</span></dt> | 
|  | 313 <dd><code><a href="../../../org/libjpegturbo/turbojpeg/TJException.html" title="
     class in org.libjpegturbo.turbojpeg">TJException</a></code></dd></dl> | 
|  | 314 </li> | 
|  | 315 </ul> | 
|  | 316 <a name="transform(org.libjpegturbo.turbojpeg.TJTransform[], int)"> | 
|  | 317 <!--   --> | 
|  | 318 </a> | 
|  | 319 <ul class="blockList"> | 
|  | 320 <li class="blockList"> | 
|  | 321 <h4>transform</h4> | 
|  | 322 <pre>public <a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.htm
     l" title="class in org.libjpegturbo.turbojpeg">TJDecompressor</a>[] transfo
     rm(<a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="class i
     n org.libjpegturbo.turbojpeg">TJTransform</a>[] transforms, | 
|  | 323                          int flags) | 
|  | 324                            throws <a href="../../../org/libjpegturbo/turbojpeg/T
     JException.html" title="class in org.libjpegturbo.turbojpeg">TJException</a></pr
     e> | 
|  | 325 <div class="block">Losslessly transform the JPEG image associated with this tran
     sformer | 
|  | 326  instance and return an array of <a href="../../../org/libjpegturbo/turbojpeg/TJ
     Decompressor.html" title="class in org.libjpegturbo.turbojpeg"><code>TJDecompres
     sor</code></a> instances, each of | 
|  | 327  which has a transformed JPEG image associated with it.</div> | 
|  | 328 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>transforms</code> 
     - an array of <a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" tit
     le="class in org.libjpegturbo.turbojpeg"><code>TJTransform</code></a> instances,
      each of | 
|  | 329  which specifies the transform parameters and/or cropping region for the | 
|  | 330  corresponding transformed output image</dd><dd><code>flags</code> - the bitwise
      OR of one or more of | 
|  | 331  <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_BOTTOMUP"><code>TJ.FL
     AG_*</code></a></dd> | 
|  | 332 <dt><span class="strong">Returns:</span></dt><dd>an array of <a href="../../../o
     rg/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.
     turbojpeg"><code>TJDecompressor</code></a> instances, each of | 
|  | 333  which has a transformed JPEG image associated with it.</dd> | 
|  | 334 <dt><span class="strong">Throws:</span></dt> | 
|  | 335 <dd><code><a href="../../../org/libjpegturbo/turbojpeg/TJException.html" title="
     class in org.libjpegturbo.turbojpeg">TJException</a></code></dd></dl> | 
|  | 336 </li> | 
|  | 337 </ul> | 
|  | 338 <a name="getTransformedSizes()"> | 
|  | 339 <!--   --> | 
|  | 340 </a> | 
|  | 341 <ul class="blockListLast"> | 
|  | 342 <li class="blockList"> | 
|  | 343 <h4>getTransformedSizes</h4> | 
|  | 344 <pre>public int[] getTransformedSizes()</pre> | 
|  | 345 <div class="block">Returns an array containing the sizes of the transformed JPEG
      images | 
|  | 346  generated by the most recent transform operation.</div> | 
|  | 347 <dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the siz
     es of the transformed JPEG images | 
|  | 348  generated by the most recent transform operation.</dd></dl> | 
|  | 349 </li> | 
|  | 350 </ul> | 
|  | 351 </li> | 
|  | 352 </ul> | 
|  | 353 </li> | 
|  | 354 </ul> | 
|  | 355 </div> | 
|  | 356 </div> | 
|  | 357 <!-- ========= END OF CLASS DATA ========= --> | 
|  | 358 <!-- ======= START OF BOTTOM NAVBAR ====== --> | 
|  | 359 <div class="bottomNav"><a name="navbar_bottom"> | 
|  | 360 <!--   --> | 
|  | 361 </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="nav
     bar_bottom_firstrow"> | 
|  | 362 <!--   --> | 
|  | 363 </a> | 
|  | 364 <ul class="navList" title="Navigation"> | 
|  | 365 <li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</
     a></li> | 
|  | 366 <li class="navBarCell1Rev">Class</li> | 
|  | 367 <li><a href="package-tree.html">Tree</a></li> | 
|  | 368 <li><a href="../../../deprecated-list.html">Deprecated</a></li> | 
|  | 369 <li><a href="../../../index-all.html">Index</a></li> | 
|  | 370 <li><a href="../../../help-doc.html">Help</a></li> | 
|  | 371 </ul> | 
|  | 372 </div> | 
|  | 373 <div class="subNav"> | 
|  | 374 <ul class="navList"> | 
|  | 375 <li><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="class 
     in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></li> | 
|  | 376 <li><a href="../../../org/libjpegturbo/turbojpeg/YUVImage.html" title="class in 
     org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li> | 
|  | 377 </ul> | 
|  | 378 <ul class="navList"> | 
|  | 379 <li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJTransformer.html" 
     target="_top">Frames</a></li> | 
|  | 380 <li><a href="TJTransformer.html" target="_top">No Frames</a></li> | 
|  | 381 </ul> | 
|  | 382 <ul class="navList" id="allclasses_navbar_bottom"> | 
|  | 383 <li><a href="../../../allclasses-noframe.html">All Classes</a></li> | 
|  | 384 </ul> | 
|  | 385 <div> | 
|  | 386 <script type="text/javascript"><!-- | 
|  | 387   allClassesLink = document.getElementById("allclasses_navbar_bottom"); | 
|  | 388   if(window==top) { | 
|  | 389     allClassesLink.style.display = "block"; | 
|  | 390   } | 
|  | 391   else { | 
|  | 392     allClassesLink.style.display = "none"; | 
|  | 393   } | 
|  | 394   //--> | 
|  | 395 </script> | 
|  | 396 </div> | 
|  | 397 <div> | 
|  | 398 <ul class="subNavList"> | 
|  | 399 <li>Summary: </li> | 
|  | 400 <li>Nested | </li> | 
|  | 401 <li><a href="#fields_inherited_from_class_org.libjpegturbo.turbojpeg.TJDecompres
     sor">Field</a> | </li> | 
|  | 402 <li><a href="#constructor_summary">Constr</a> | </li> | 
|  | 403 <li><a href="#method_summary">Method</a></li> | 
|  | 404 </ul> | 
|  | 405 <ul class="subNavList"> | 
|  | 406 <li>Detail: </li> | 
|  | 407 <li>Field | </li> | 
|  | 408 <li><a href="#constructor_detail">Constr</a> | </li> | 
|  | 409 <li><a href="#method_detail">Method</a></li> | 
|  | 410 </ul> | 
|  | 411 </div> | 
|  | 412 <a name="skip-navbar_bottom"> | 
|  | 413 <!--   --> | 
|  | 414 </a></div> | 
|  | 415 <!-- ======== END OF BOTTOM NAVBAR ======= --> | 
|  | 416 </body> | 
|  | 417 </html> | 
| OLD | NEW | 
|---|