Imported Upstream version 3.0.1
[platform/upstream/libjpeg-turbo.git] / java / doc / org / libjpegturbo / turbojpeg / TJTransform.html
1 <!DOCTYPE HTML>
2 <!-- NewPage -->
3 <html lang="en">
4 <head>
5 <!-- Generated by javadoc -->
6 <title>TJTransform</title>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8 <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
9 <link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.min.css" title="Style">
10 <link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
11 <script type="text/javascript" src="../../../script.js"></script>
12 <script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
13 <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
14 <!--[if IE]>
15 <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
16 <![endif]-->
17 <script type="text/javascript" src="../../../jquery/jquery-3.6.0.min.js"></script>
18 <script type="text/javascript" src="../../../jquery/jquery-ui.min.js"></script>
19 </head>
20 <body>
21 <script type="text/javascript"><!--
22     try {
23         if (location.href.indexOf('is-external=true') == -1) {
24             parent.document.title="TJTransform";
25         }
26     }
27     catch(err) {
28     }
29 //-->
30 var pathtoroot = "../../../";
31 var useModuleDirectories = true;
32 loadScripts(document, 'script');</script>
33 <noscript>
34 <div>JavaScript is disabled on your browser.</div>
35 </noscript>
36 <header role="banner">
37 <nav role="navigation">
38 <div class="fixedNav">
39 <!-- ========= START OF TOP NAVBAR ======= -->
40 <div class="topNav"><a id="navbar.top">
41 <!--   -->
42 </a>
43 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
44 <a id="navbar.top.firstrow">
45 <!--   -->
46 </a>
47 <ul class="navList" title="Navigation">
48 <li><a href="package-summary.html">Package</a></li>
49 <li class="navBarCell1Rev">Class</li>
50 <li><a href="package-tree.html">Tree</a></li>
51 <li><a href="../../../deprecated-list.html">Deprecated</a></li>
52 <li><a href="../../../index-all.html">Index</a></li>
53 <li><a href="../../../help-doc.html">Help</a></li>
54 </ul>
55 </div>
56 <div class="subNav">
57 <ul class="navList" id="allclasses_navbar_top">
58 <li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
59 </ul>
60 <ul class="navListSearch">
61 <li><label for="search">SEARCH:</label>
62 <input type="text" id="search" value="search" disabled="disabled">
63 <input type="reset" id="reset" value="reset" disabled="disabled">
64 </li>
65 </ul>
66 <div>
67 <script type="text/javascript"><!--
68   allClassesLink = document.getElementById("allclasses_navbar_top");
69   if(window==top) {
70     allClassesLink.style.display = "block";
71   }
72   else {
73     allClassesLink.style.display = "none";
74   }
75   //-->
76 </script>
77 <noscript>
78 <div>JavaScript is disabled on your browser.</div>
79 </noscript>
80 </div>
81 <div>
82 <ul class="subNavList">
83 <li>Summary:&nbsp;</li>
84 <li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
85 <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
86 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
87 <li><a href="#method.summary">Method</a></li>
88 </ul>
89 <ul class="subNavList">
90 <li>Detail:&nbsp;</li>
91 <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
92 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
93 <li>Method</li>
94 </ul>
95 </div>
96 <a id="skip.navbar.top">
97 <!--   -->
98 </a></div>
99 <!-- ========= END OF TOP NAVBAR ========= -->
100 </div>
101 <div class="navPadding">&nbsp;</div>
102 <script type="text/javascript"><!--
103 $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
104 //-->
105 </script>
106 </nav>
107 </header>
108 <!-- ======== START OF CLASS DATA ======== -->
109 <main role="main">
110 <div class="header">
111 <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.libjpegturbo.turbojpeg</a></div>
112 <h2 title="Class TJTransform" class="title">Class TJTransform</h2>
113 </div>
114 <div class="contentContainer">
115 <ul class="inheritance">
116 <li>java.lang.Object</li>
117 <li>
118 <ul class="inheritance">
119 <li>java.awt.geom.RectangularShape</li>
120 <li>
121 <ul class="inheritance">
122 <li>java.awt.geom.Rectangle2D</li>
123 <li>
124 <ul class="inheritance">
125 <li>java.awt.Rectangle</li>
126 <li>
127 <ul class="inheritance">
128 <li>org.libjpegturbo.turbojpeg.TJTransform</li>
129 </ul>
130 </li>
131 </ul>
132 </li>
133 </ul>
134 </li>
135 </ul>
136 </li>
137 </ul>
138 <div class="description">
139 <ul class="blockList">
140 <li class="blockList">
141 <dl>
142 <dt>All Implemented Interfaces:</dt>
143 <dd><code>java.awt.Shape</code>, <code>java.io.Serializable</code>, <code>java.lang.Cloneable</code></dd>
144 </dl>
145 <hr>
146 <pre>public class <span class="typeNameLabel">TJTransform</span>
147 extends java.awt.Rectangle</pre>
148 <div class="block">Lossless transform parameters</div>
149 <dl>
150 <dt><span class="seeLabel">See Also:</span></dt>
151 <dd><a href="../../../serialized-form.html#org.libjpegturbo.turbojpeg.TJTransform">Serialized Form</a></dd>
152 </dl>
153 </li>
154 </ul>
155 </div>
156 <div class="summary">
157 <ul class="blockList">
158 <li class="blockList">
159 <!-- ======== NESTED CLASS SUMMARY ======== -->
160 <section>
161 <ul class="blockList">
162 <li class="blockList"><a id="nested.class.summary">
163 <!--   -->
164 </a>
165 <h3>Nested Class Summary</h3>
166 <ul class="blockList">
167 <li class="blockList"><a id="nested.classes.inherited.from.class.java.awt.geom.Rectangle2D">
168 <!--   -->
169 </a>
170 <h3>Nested classes/interfaces inherited from class&nbsp;java.awt.geom.Rectangle2D</h3>
171 <code>java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float</code></li>
172 </ul>
173 </li>
174 </ul>
175 </section>
176 <!-- =========== FIELD SUMMARY =========== -->
177 <section>
178 <ul class="blockList">
179 <li class="blockList"><a id="field.summary">
180 <!--   -->
181 </a>
182 <h3>Field Summary</h3>
183 <table class="memberSummary">
184 <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
185 <tr>
186 <th class="colFirst" scope="col">Modifier and Type</th>
187 <th class="colSecond" scope="col">Field</th>
188 <th class="colLast" scope="col">Description</th>
189 </tr>
190 <tr class="altColor">
191 <td class="colFirst"><code><a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a></code></td>
192 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cf">cf</a></span></code></th>
193 <td class="colLast">
194 <div class="block">Custom filter instance</div>
195 </td>
196 </tr>
197 <tr class="rowColor">
198 <td class="colFirst"><code>static int</code></td>
199 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#NUMOP">NUMOP</a></span></code></th>
200 <td class="colLast">
201 <div class="block">The number of lossless transform operations</div>
202 </td>
203 </tr>
204 <tr class="altColor">
205 <td class="colFirst"><code>int</code></td>
206 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#op">op</a></span></code></th>
207 <td class="colLast">
208 <div class="block">Transform operation (one of <a href="#OP_NONE"><code>OP_*</code></a>)</div>
209 </td>
210 </tr>
211 <tr class="rowColor">
212 <td class="colFirst"><code>static int</code></td>
213 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_HFLIP">OP_HFLIP</a></span></code></th>
214 <td class="colLast">
215 <div class="block">Flip (mirror) image horizontally.</div>
216 </td>
217 </tr>
218 <tr class="altColor">
219 <td class="colFirst"><code>static int</code></td>
220 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_NONE">OP_NONE</a></span></code></th>
221 <td class="colLast">
222 <div class="block">Do not transform the position of the image pixels.</div>
223 </td>
224 </tr>
225 <tr class="rowColor">
226 <td class="colFirst"><code>static int</code></td>
227 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_ROT180">OP_ROT180</a></span></code></th>
228 <td class="colLast">
229 <div class="block">Rotate image 180 degrees.</div>
230 </td>
231 </tr>
232 <tr class="altColor">
233 <td class="colFirst"><code>static int</code></td>
234 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_ROT270">OP_ROT270</a></span></code></th>
235 <td class="colLast">
236 <div class="block">Rotate image counter-clockwise by 90 degrees.</div>
237 </td>
238 </tr>
239 <tr class="rowColor">
240 <td class="colFirst"><code>static int</code></td>
241 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_ROT90">OP_ROT90</a></span></code></th>
242 <td class="colLast">
243 <div class="block">Rotate image clockwise by 90 degrees.</div>
244 </td>
245 </tr>
246 <tr class="altColor">
247 <td class="colFirst"><code>static int</code></td>
248 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_TRANSPOSE">OP_TRANSPOSE</a></span></code></th>
249 <td class="colLast">
250 <div class="block">Transpose image (flip/mirror along upper left to lower right axis).</div>
251 </td>
252 </tr>
253 <tr class="rowColor">
254 <td class="colFirst"><code>static int</code></td>
255 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_TRANSVERSE">OP_TRANSVERSE</a></span></code></th>
256 <td class="colLast">
257 <div class="block">Transverse transpose image (flip/mirror along upper right to lower left
258  axis).</div>
259 </td>
260 </tr>
261 <tr class="altColor">
262 <td class="colFirst"><code>static int</code></td>
263 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OP_VFLIP">OP_VFLIP</a></span></code></th>
264 <td class="colLast">
265 <div class="block">Flip (mirror) image vertically.</div>
266 </td>
267 </tr>
268 <tr class="rowColor">
269 <td class="colFirst"><code>static int</code></td>
270 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_ARITHMETIC">OPT_ARITHMETIC</a></span></code></th>
271 <td class="colLast">
272 <div class="block">This option will enable arithmetic entropy coding in the JPEG image
273  generated by this particular transform.</div>
274 </td>
275 </tr>
276 <tr class="altColor">
277 <td class="colFirst"><code>static int</code></td>
278 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_COPYNONE">OPT_COPYNONE</a></span></code></th>
279 <td class="colLast">
280 <div class="block">This option will prevent <a href="TJTransformer.html#transform(byte%5B%5D%5B%5D,org.libjpegturbo.turbojpeg.TJTransform%5B%5D)"><code>TJTransformer.transform()</code></a> from copying any extra markers (including EXIF
281  and ICC profile data) from the source image to the destination image.</div>
282 </td>
283 </tr>
284 <tr class="rowColor">
285 <td class="colFirst"><code>static int</code></td>
286 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_CROP">OPT_CROP</a></span></code></th>
287 <td class="colLast">
288 <div class="block">This option will enable lossless cropping.</div>
289 </td>
290 </tr>
291 <tr class="altColor">
292 <td class="colFirst"><code>static int</code></td>
293 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_GRAY">OPT_GRAY</a></span></code></th>
294 <td class="colLast">
295 <div class="block">This option will discard the color data in the source image and produce a
296  grayscale destination image.</div>
297 </td>
298 </tr>
299 <tr class="rowColor">
300 <td class="colFirst"><code>static int</code></td>
301 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_NOOUTPUT">OPT_NOOUTPUT</a></span></code></th>
302 <td class="colLast">
303 <div class="block">This option will prevent <a href="TJTransformer.html#transform(byte%5B%5D%5B%5D,org.libjpegturbo.turbojpeg.TJTransform%5B%5D)"><code>TJTransformer.transform()</code></a> from outputting a JPEG image for this
304  particular transform.</div>
305 </td>
306 </tr>
307 <tr class="altColor">
308 <td class="colFirst"><code>static int</code></td>
309 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_OPTIMIZE">OPT_OPTIMIZE</a></span></code></th>
310 <td class="colLast">
311 <div class="block">This option will enable optimized baseline entropy coding in the JPEG
312  image generated by this particular transform.</div>
313 </td>
314 </tr>
315 <tr class="rowColor">
316 <td class="colFirst"><code>static int</code></td>
317 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_PERFECT">OPT_PERFECT</a></span></code></th>
318 <td class="colLast">
319 <div class="block">This option will cause <a href="TJTransformer.html#transform(byte%5B%5D%5B%5D,org.libjpegturbo.turbojpeg.TJTransform%5B%5D)"><code>TJTransformer.transform()</code></a> to throw an exception if the transform is not
320  perfect.</div>
321 </td>
322 </tr>
323 <tr class="altColor">
324 <td class="colFirst"><code>static int</code></td>
325 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_PROGRESSIVE">OPT_PROGRESSIVE</a></span></code></th>
326 <td class="colLast">
327 <div class="block">This option will enable progressive entropy coding in the JPEG image
328  generated by this particular transform.</div>
329 </td>
330 </tr>
331 <tr class="rowColor">
332 <td class="colFirst"><code>static int</code></td>
333 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OPT_TRIM">OPT_TRIM</a></span></code></th>
334 <td class="colLast">
335 <div class="block">This option will discard any partial MCU blocks that cannot be
336  transformed.</div>
337 </td>
338 </tr>
339 <tr class="altColor">
340 <td class="colFirst"><code>int</code></td>
341 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#options">options</a></span></code></th>
342 <td class="colLast">
343 <div class="block">Transform options (bitwise OR of one or more of
344  <a href="#OPT_PERFECT"><code>OPT_*</code></a>)</div>
345 </td>
346 </tr>
347 </table>
348 <ul class="blockList">
349 <li class="blockList"><a id="fields.inherited.from.class.java.awt.Rectangle">
350 <!--   -->
351 </a>
352 <h3>Fields inherited from class&nbsp;java.awt.Rectangle</h3>
353 <code>height, width, x, y</code></li>
354 </ul>
355 <ul class="blockList">
356 <li class="blockList"><a id="fields.inherited.from.class.java.awt.geom.Rectangle2D">
357 <!--   -->
358 </a>
359 <h3>Fields inherited from class&nbsp;java.awt.geom.Rectangle2D</h3>
360 <code>OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP</code></li>
361 </ul>
362 </li>
363 </ul>
364 </section>
365 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
366 <section>
367 <ul class="blockList">
368 <li class="blockList"><a id="constructor.summary">
369 <!--   -->
370 </a>
371 <h3>Constructor Summary</h3>
372 <table class="memberSummary">
373 <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
374 <tr>
375 <th class="colFirst" scope="col">Constructor</th>
376 <th class="colLast" scope="col">Description</th>
377 </tr>
378 <tr class="altColor">
379 <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">TJTransform</a></span>()</code></th>
380 <td class="colLast">
381 <div class="block">Create a new lossless transform instance.</div>
382 </td>
383 </tr>
384 <tr class="rowColor">
385 <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int,int,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</a></span>&#8203;(int&nbsp;x,
386            int&nbsp;y,
387            int&nbsp;w,
388            int&nbsp;h,
389            int&nbsp;op,
390            int&nbsp;options,
391            <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</code></th>
392 <td class="colLast">
393 <div class="block">Create a new lossless transform instance with the given parameters.</div>
394 </td>
395 </tr>
396 <tr class="altColor">
397 <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.awt.Rectangle,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</a></span>&#8203;(java.awt.Rectangle&nbsp;r,
398            int&nbsp;op,
399            int&nbsp;options,
400            <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</code></th>
401 <td class="colLast">
402 <div class="block">Create a new lossless transform instance with the given parameters.</div>
403 </td>
404 </tr>
405 </table>
406 </li>
407 </ul>
408 </section>
409 <!-- ========== METHOD SUMMARY =========== -->
410 <section>
411 <ul class="blockList">
412 <li class="blockList"><a id="method.summary">
413 <!--   -->
414 </a>
415 <h3>Method Summary</h3>
416 <ul class="blockList">
417 <li class="blockList"><a id="methods.inherited.from.class.java.awt.Rectangle">
418 <!--   -->
419 </a>
420 <h3>Methods inherited from class&nbsp;java.awt.Rectangle</h3>
421 <code>add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union</code></li>
422 </ul>
423 <ul class="blockList">
424 <li class="blockList"><a id="methods.inherited.from.class.java.awt.geom.Rectangle2D">
425 <!--   -->
426 </a>
427 <h3>Methods inherited from class&nbsp;java.awt.geom.Rectangle2D</h3>
428 <code>add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union</code></li>
429 </ul>
430 <ul class="blockList">
431 <li class="blockList"><a id="methods.inherited.from.class.java.awt.geom.RectangularShape">
432 <!--   -->
433 </a>
434 <h3>Methods inherited from class&nbsp;java.awt.geom.RectangularShape</h3>
435 <code>clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal</code></li>
436 </ul>
437 <ul class="blockList">
438 <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
439 <!--   -->
440 </a>
441 <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
442 <code>finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
443 </ul>
444 <ul class="blockList">
445 <li class="blockList"><a id="methods.inherited.from.class.java.awt.Shape">
446 <!--   -->
447 </a>
448 <h3>Methods inherited from interface&nbsp;java.awt.Shape</h3>
449 <code>contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects</code></li>
450 </ul>
451 </li>
452 </ul>
453 </section>
454 </li>
455 </ul>
456 </div>
457 <div class="details">
458 <ul class="blockList">
459 <li class="blockList">
460 <!-- ============ FIELD DETAIL =========== -->
461 <section>
462 <ul class="blockList">
463 <li class="blockList"><a id="field.detail">
464 <!--   -->
465 </a>
466 <h3>Field Detail</h3>
467 <a id="NUMOP">
468 <!--   -->
469 </a>
470 <ul class="blockList">
471 <li class="blockList">
472 <h4>NUMOP</h4>
473 <pre>public static final&nbsp;int NUMOP</pre>
474 <div class="block">The number of lossless transform operations</div>
475 <dl>
476 <dt><span class="seeLabel">See Also:</span></dt>
477 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.NUMOP">Constant Field Values</a></dd>
478 </dl>
479 </li>
480 </ul>
481 <a id="OP_NONE">
482 <!--   -->
483 </a>
484 <ul class="blockList">
485 <li class="blockList">
486 <h4>OP_NONE</h4>
487 <pre>public static final&nbsp;int OP_NONE</pre>
488 <div class="block">Do not transform the position of the image pixels.</div>
489 <dl>
490 <dt><span class="seeLabel">See Also:</span></dt>
491 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_NONE">Constant Field Values</a></dd>
492 </dl>
493 </li>
494 </ul>
495 <a id="OP_HFLIP">
496 <!--   -->
497 </a>
498 <ul class="blockList">
499 <li class="blockList">
500 <h4>OP_HFLIP</h4>
501 <pre>public static final&nbsp;int OP_HFLIP</pre>
502 <div class="block">Flip (mirror) image horizontally.  This transform is imperfect if there
503  are any partial MCU blocks on the right edge.</div>
504 <dl>
505 <dt><span class="seeLabel">See Also:</span></dt>
506 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
507 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_HFLIP">Constant Field Values</a></dd>
508 </dl>
509 </li>
510 </ul>
511 <a id="OP_VFLIP">
512 <!--   -->
513 </a>
514 <ul class="blockList">
515 <li class="blockList">
516 <h4>OP_VFLIP</h4>
517 <pre>public static final&nbsp;int OP_VFLIP</pre>
518 <div class="block">Flip (mirror) image vertically.  This transform is imperfect if there are
519  any partial MCU blocks on the bottom edge.</div>
520 <dl>
521 <dt><span class="seeLabel">See Also:</span></dt>
522 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
523 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_VFLIP">Constant Field Values</a></dd>
524 </dl>
525 </li>
526 </ul>
527 <a id="OP_TRANSPOSE">
528 <!--   -->
529 </a>
530 <ul class="blockList">
531 <li class="blockList">
532 <h4>OP_TRANSPOSE</h4>
533 <pre>public static final&nbsp;int OP_TRANSPOSE</pre>
534 <div class="block">Transpose image (flip/mirror along upper left to lower right axis).  This
535  transform is always perfect.</div>
536 <dl>
537 <dt><span class="seeLabel">See Also:</span></dt>
538 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
539 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSPOSE">Constant Field Values</a></dd>
540 </dl>
541 </li>
542 </ul>
543 <a id="OP_TRANSVERSE">
544 <!--   -->
545 </a>
546 <ul class="blockList">
547 <li class="blockList">
548 <h4>OP_TRANSVERSE</h4>
549 <pre>public static final&nbsp;int OP_TRANSVERSE</pre>
550 <div class="block">Transverse transpose image (flip/mirror along upper right to lower left
551  axis).  This transform is imperfect if there are any partial MCU blocks in
552  the image.</div>
553 <dl>
554 <dt><span class="seeLabel">See Also:</span></dt>
555 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
556 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSVERSE">Constant Field Values</a></dd>
557 </dl>
558 </li>
559 </ul>
560 <a id="OP_ROT90">
561 <!--   -->
562 </a>
563 <ul class="blockList">
564 <li class="blockList">
565 <h4>OP_ROT90</h4>
566 <pre>public static final&nbsp;int OP_ROT90</pre>
567 <div class="block">Rotate image clockwise by 90 degrees.  This transform is imperfect if
568  there are any partial MCU blocks on the bottom edge.</div>
569 <dl>
570 <dt><span class="seeLabel">See Also:</span></dt>
571 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
572 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT90">Constant Field Values</a></dd>
573 </dl>
574 </li>
575 </ul>
576 <a id="OP_ROT180">
577 <!--   -->
578 </a>
579 <ul class="blockList">
580 <li class="blockList">
581 <h4>OP_ROT180</h4>
582 <pre>public static final&nbsp;int OP_ROT180</pre>
583 <div class="block">Rotate image 180 degrees.  This transform is imperfect if there are any
584  partial MCU blocks in the image.</div>
585 <dl>
586 <dt><span class="seeLabel">See Also:</span></dt>
587 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
588 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT180">Constant Field Values</a></dd>
589 </dl>
590 </li>
591 </ul>
592 <a id="OP_ROT270">
593 <!--   -->
594 </a>
595 <ul class="blockList">
596 <li class="blockList">
597 <h4>OP_ROT270</h4>
598 <pre>public static final&nbsp;int OP_ROT270</pre>
599 <div class="block">Rotate image counter-clockwise by 90 degrees.  This transform is imperfect
600  if there are any partial MCU blocks on the right edge.</div>
601 <dl>
602 <dt><span class="seeLabel">See Also:</span></dt>
603 <dd><a href="#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
604 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT270">Constant Field Values</a></dd>
605 </dl>
606 </li>
607 </ul>
608 <a id="OPT_PERFECT">
609 <!--   -->
610 </a>
611 <ul class="blockList">
612 <li class="blockList">
613 <h4>OPT_PERFECT</h4>
614 <pre>public static final&nbsp;int OPT_PERFECT</pre>
615 <div class="block">This option will cause <a href="TJTransformer.html#transform(byte%5B%5D%5B%5D,org.libjpegturbo.turbojpeg.TJTransform%5B%5D)"><code>TJTransformer.transform()</code></a> to throw an exception if the transform is not
616  perfect.  Lossless transforms operate on MCU blocks, whose size depends on
617  the level of chrominance subsampling used.  If the image's width or height
618  is not evenly divisible by the MCU block size (see <a href="TJ.html#getMCUWidth(int)"><code>TJ.getMCUWidth()</code></a> and <a href="TJ.html#getMCUHeight(int)"><code>TJ.getMCUHeight()</code></a>), then
619  there will be partial MCU blocks on the right and/or bottom edges.  It is
620  not possible to move these partial MCU blocks to the top or left of the
621  image, so any transform that would require that is "imperfect."  If this
622  option is not specified, then any partial MCU blocks that cannot be
623  transformed will be left in place, which will create odd-looking strips on
624  the right or bottom edge of the image.</div>
625 <dl>
626 <dt><span class="seeLabel">See Also:</span></dt>
627 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_PERFECT">Constant Field Values</a></dd>
628 </dl>
629 </li>
630 </ul>
631 <a id="OPT_TRIM">
632 <!--   -->
633 </a>
634 <ul class="blockList">
635 <li class="blockList">
636 <h4>OPT_TRIM</h4>
637 <pre>public static final&nbsp;int OPT_TRIM</pre>
638 <div class="block">This option will discard any partial MCU blocks that cannot be
639  transformed.</div>
640 <dl>
641 <dt><span class="seeLabel">See Also:</span></dt>
642 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_TRIM">Constant Field Values</a></dd>
643 </dl>
644 </li>
645 </ul>
646 <a id="OPT_CROP">
647 <!--   -->
648 </a>
649 <ul class="blockList">
650 <li class="blockList">
651 <h4>OPT_CROP</h4>
652 <pre>public static final&nbsp;int OPT_CROP</pre>
653 <div class="block">This option will enable lossless cropping.</div>
654 <dl>
655 <dt><span class="seeLabel">See Also:</span></dt>
656 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_CROP">Constant Field Values</a></dd>
657 </dl>
658 </li>
659 </ul>
660 <a id="OPT_GRAY">
661 <!--   -->
662 </a>
663 <ul class="blockList">
664 <li class="blockList">
665 <h4>OPT_GRAY</h4>
666 <pre>public static final&nbsp;int OPT_GRAY</pre>
667 <div class="block">This option will discard the color data in the source image and produce a
668  grayscale destination image.</div>
669 <dl>
670 <dt><span class="seeLabel">See Also:</span></dt>
671 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_GRAY">Constant Field Values</a></dd>
672 </dl>
673 </li>
674 </ul>
675 <a id="OPT_NOOUTPUT">
676 <!--   -->
677 </a>
678 <ul class="blockList">
679 <li class="blockList">
680 <h4>OPT_NOOUTPUT</h4>
681 <pre>public static final&nbsp;int OPT_NOOUTPUT</pre>
682 <div class="block">This option will prevent <a href="TJTransformer.html#transform(byte%5B%5D%5B%5D,org.libjpegturbo.turbojpeg.TJTransform%5B%5D)"><code>TJTransformer.transform()</code></a> from outputting a JPEG image for this
683  particular transform.  This can be used in conjunction with a custom
684  filter to capture the transformed DCT coefficients without transcoding
685  them.</div>
686 <dl>
687 <dt><span class="seeLabel">See Also:</span></dt>
688 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_NOOUTPUT">Constant Field Values</a></dd>
689 </dl>
690 </li>
691 </ul>
692 <a id="OPT_PROGRESSIVE">
693 <!--   -->
694 </a>
695 <ul class="blockList">
696 <li class="blockList">
697 <h4>OPT_PROGRESSIVE</h4>
698 <pre>public static final&nbsp;int OPT_PROGRESSIVE</pre>
699 <div class="block">This option will enable progressive entropy coding in the JPEG image
700  generated by this particular transform.  Progressive entropy coding will
701  generally improve compression relative to baseline entropy coding (the
702  default), but it will reduce decompression performance considerably.
703  Can be combined with <a href="#OPT_ARITHMETIC"><code>OPT_ARITHMETIC</code></a>.  Implies
704  <a href="#OPT_OPTIMIZE"><code>OPT_OPTIMIZE</code></a> unless <a href="#OPT_ARITHMETIC"><code>OPT_ARITHMETIC</code></a> is also specified.</div>
705 <dl>
706 <dt><span class="seeLabel">See Also:</span></dt>
707 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_PROGRESSIVE">Constant Field Values</a></dd>
708 </dl>
709 </li>
710 </ul>
711 <a id="OPT_COPYNONE">
712 <!--   -->
713 </a>
714 <ul class="blockList">
715 <li class="blockList">
716 <h4>OPT_COPYNONE</h4>
717 <pre>public static final&nbsp;int OPT_COPYNONE</pre>
718 <div class="block">This option will prevent <a href="TJTransformer.html#transform(byte%5B%5D%5B%5D,org.libjpegturbo.turbojpeg.TJTransform%5B%5D)"><code>TJTransformer.transform()</code></a> from copying any extra markers (including EXIF
719  and ICC profile data) from the source image to the destination image.</div>
720 <dl>
721 <dt><span class="seeLabel">See Also:</span></dt>
722 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_COPYNONE">Constant Field Values</a></dd>
723 </dl>
724 </li>
725 </ul>
726 <a id="OPT_ARITHMETIC">
727 <!--   -->
728 </a>
729 <ul class="blockList">
730 <li class="blockList">
731 <h4>OPT_ARITHMETIC</h4>
732 <pre>public static final&nbsp;int OPT_ARITHMETIC</pre>
733 <div class="block">This option will enable arithmetic entropy coding in the JPEG image
734  generated by this particular transform.  Arithmetic entropy coding will
735  generally improve compression relative to Huffman entropy coding (the
736  default), but it will reduce decompression performance considerably.  Can
737  be combined with <a href="#OPT_PROGRESSIVE"><code>OPT_PROGRESSIVE</code></a>.</div>
738 <dl>
739 <dt><span class="seeLabel">See Also:</span></dt>
740 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_ARITHMETIC">Constant Field Values</a></dd>
741 </dl>
742 </li>
743 </ul>
744 <a id="OPT_OPTIMIZE">
745 <!--   -->
746 </a>
747 <ul class="blockList">
748 <li class="blockList">
749 <h4>OPT_OPTIMIZE</h4>
750 <pre>public static final&nbsp;int OPT_OPTIMIZE</pre>
751 <div class="block">This option will enable optimized baseline entropy coding in the JPEG
752  image generated by this particular transform.  Optimized baseline entropy
753  coding will improve compression slightly (generally 5% or less.)</div>
754 <dl>
755 <dt><span class="seeLabel">See Also:</span></dt>
756 <dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_OPTIMIZE">Constant Field Values</a></dd>
757 </dl>
758 </li>
759 </ul>
760 <a id="op">
761 <!--   -->
762 </a>
763 <ul class="blockList">
764 <li class="blockList">
765 <h4>op</h4>
766 <pre>public&nbsp;int op</pre>
767 <div class="block">Transform operation (one of <a href="#OP_NONE"><code>OP_*</code></a>)</div>
768 </li>
769 </ul>
770 <a id="options">
771 <!--   -->
772 </a>
773 <ul class="blockList">
774 <li class="blockList">
775 <h4>options</h4>
776 <pre>public&nbsp;int options</pre>
777 <div class="block">Transform options (bitwise OR of one or more of
778  <a href="#OPT_PERFECT"><code>OPT_*</code></a>)</div>
779 </li>
780 </ul>
781 <a id="cf">
782 <!--   -->
783 </a>
784 <ul class="blockListLast">
785 <li class="blockList">
786 <h4>cf</h4>
787 <pre>public&nbsp;<a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf</pre>
788 <div class="block">Custom filter instance</div>
789 </li>
790 </ul>
791 </li>
792 </ul>
793 </section>
794 <!-- ========= CONSTRUCTOR DETAIL ======== -->
795 <section>
796 <ul class="blockList">
797 <li class="blockList"><a id="constructor.detail">
798 <!--   -->
799 </a>
800 <h3>Constructor Detail</h3>
801 <a id="&lt;init&gt;()">
802 <!--   -->
803 </a>
804 <ul class="blockList">
805 <li class="blockList">
806 <h4>TJTransform</h4>
807 <pre>public&nbsp;TJTransform()</pre>
808 <div class="block">Create a new lossless transform instance.</div>
809 </li>
810 </ul>
811 <a id="&lt;init&gt;(int,int,int,int,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)">
812 <!--   -->
813 </a>
814 <ul class="blockList">
815 <li class="blockList">
816 <h4>TJTransform</h4>
817 <pre>public&nbsp;TJTransform&#8203;(int&nbsp;x,
818                    int&nbsp;y,
819                    int&nbsp;w,
820                    int&nbsp;h,
821                    int&nbsp;op,
822                    int&nbsp;options,
823                    <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</pre>
824 <div class="block">Create a new lossless transform instance with the given parameters.</div>
825 <dl>
826 <dt><span class="paramLabel">Parameters:</span></dt>
827 <dd><code>x</code> - the left boundary of the cropping region.  This must be evenly
828  divisible by the MCU block width (see <a href="TJ.html#getMCUWidth(int)"><code>TJ.getMCUWidth()</code></a>)</dd>
829 <dd><code>y</code> - the upper boundary of the cropping region.  This must be evenly
830  divisible by the MCU block height (see <a href="TJ.html#getMCUHeight(int)"><code>TJ.getMCUHeight()</code></a>)</dd>
831 <dd><code>w</code> - the width of the cropping region.  Setting this to 0 is the
832  equivalent of setting it to (width of the source JPEG image -
833  <code>x</code>).</dd>
834 <dd><code>h</code> - the height of the cropping region.  Setting this to 0 is the
835  equivalent of setting it to (height of the source JPEG image -
836  <code>y</code>).</dd>
837 <dd><code>op</code> - one of the transform operations (<a href="#OP_NONE"><code>OP_*</code></a>)</dd>
838 <dd><code>options</code> - the bitwise OR of one or more of the transform options
839  (<a href="#OPT_PERFECT"><code>OPT_*</code></a>)</dd>
840 <dd><code>cf</code> - an instance of an object that implements the
841  <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><code>TJCustomFilter</code></a> interface, or null if no custom filter is needed</dd>
842 </dl>
843 </li>
844 </ul>
845 <a id="&lt;init&gt;(java.awt.Rectangle,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)">
846 <!--   -->
847 </a>
848 <ul class="blockListLast">
849 <li class="blockList">
850 <h4>TJTransform</h4>
851 <pre>public&nbsp;TJTransform&#8203;(java.awt.Rectangle&nbsp;r,
852                    int&nbsp;op,
853                    int&nbsp;options,
854                    <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</pre>
855 <div class="block">Create a new lossless transform instance with the given parameters.</div>
856 <dl>
857 <dt><span class="paramLabel">Parameters:</span></dt>
858 <dd><code>r</code> - a <code>java.awt.Rectangle</code> instance that specifies the
859  cropping region.  See
860  <a href="#%3Cinit%3E(int,int,int,int,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)"><code>TJTransform(int, int, int, int, int, int, TJCustomFilter)</code></a> for
861  more details.</dd>
862 <dd><code>op</code> - one of the transform operations (<a href="#OP_NONE"><code>OP_*</code></a>)</dd>
863 <dd><code>options</code> - the bitwise OR of one or more of the transform options
864  (<a href="#OPT_PERFECT"><code>OPT_*</code></a>)</dd>
865 <dd><code>cf</code> - an instance of an object that implements the
866  <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><code>TJCustomFilter</code></a> interface, or null if no custom filter is needed</dd>
867 </dl>
868 </li>
869 </ul>
870 </li>
871 </ul>
872 </section>
873 </li>
874 </ul>
875 </div>
876 </div>
877 </main>
878 <!-- ========= END OF CLASS DATA ========= -->
879 <footer role="contentinfo">
880 <nav role="navigation">
881 <!-- ======= START OF BOTTOM NAVBAR ====== -->
882 <div class="bottomNav"><a id="navbar.bottom">
883 <!--   -->
884 </a>
885 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
886 <a id="navbar.bottom.firstrow">
887 <!--   -->
888 </a>
889 <ul class="navList" title="Navigation">
890 <li><a href="package-summary.html">Package</a></li>
891 <li class="navBarCell1Rev">Class</li>
892 <li><a href="package-tree.html">Tree</a></li>
893 <li><a href="../../../deprecated-list.html">Deprecated</a></li>
894 <li><a href="../../../index-all.html">Index</a></li>
895 <li><a href="../../../help-doc.html">Help</a></li>
896 </ul>
897 </div>
898 <div class="subNav">
899 <ul class="navList" id="allclasses_navbar_bottom">
900 <li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
901 </ul>
902 <div>
903 <script type="text/javascript"><!--
904   allClassesLink = document.getElementById("allclasses_navbar_bottom");
905   if(window==top) {
906     allClassesLink.style.display = "block";
907   }
908   else {
909     allClassesLink.style.display = "none";
910   }
911   //-->
912 </script>
913 <noscript>
914 <div>JavaScript is disabled on your browser.</div>
915 </noscript>
916 </div>
917 <div>
918 <ul class="subNavList">
919 <li>Summary:&nbsp;</li>
920 <li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
921 <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
922 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
923 <li><a href="#method.summary">Method</a></li>
924 </ul>
925 <ul class="subNavList">
926 <li>Detail:&nbsp;</li>
927 <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
928 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
929 <li>Method</li>
930 </ul>
931 </div>
932 <a id="skip.navbar.bottom">
933 <!--   -->
934 </a></div>
935 <!-- ======== END OF BOTTOM NAVBAR ======= -->
936 </nav>
937 </footer>
938 </body>
939 </html>