Imported Upstream version 2.0.1
[platform/upstream/libjpeg-turbo.git] / java / doc / org / libjpegturbo / turbojpeg / TJTransform.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!-- NewPage -->
3 <html lang="en">
4 <head>
5 <title>TJTransform</title>
6 <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
7 </head>
8 <body>
9 <script type="text/javascript"><!--
10     try {
11         if (location.href.indexOf('is-external=true') == -1) {
12             parent.document.title="TJTransform";
13         }
14     }
15     catch(err) {
16     }
17 //-->
18 </script>
19 <noscript>
20 <div>JavaScript is disabled on your browser.</div>
21 </noscript>
22 <!-- ========= START OF TOP NAVBAR ======= -->
23 <div class="topNav"><a name="navbar_top">
24 <!--   -->
25 </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
26 <!--   -->
27 </a>
28 <ul class="navList" title="Navigation">
29 <li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</a></li>
30 <li class="navBarCell1Rev">Class</li>
31 <li><a href="package-tree.html">Tree</a></li>
32 <li><a href="../../../deprecated-list.html">Deprecated</a></li>
33 <li><a href="../../../index-all.html">Index</a></li>
34 <li><a href="../../../help-doc.html">Help</a></li>
35 </ul>
36 </div>
37 <div class="subNav">
38 <ul class="navList">
39 <li><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></li>
40 <li><a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li>
41 </ul>
42 <ul class="navList">
43 <li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" target="_top">Frames</a></li>
44 <li><a href="TJTransform.html" target="_top">No Frames</a></li>
45 </ul>
46 <ul class="navList" id="allclasses_navbar_top">
47 <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
48 </ul>
49 <div>
50 <script type="text/javascript"><!--
51   allClassesLink = document.getElementById("allclasses_navbar_top");
52   if(window==top) {
53     allClassesLink.style.display = "block";
54   }
55   else {
56     allClassesLink.style.display = "none";
57   }
58   //-->
59 </script>
60 </div>
61 <div>
62 <ul class="subNavList">
63 <li>Summary:&nbsp;</li>
64 <li><a href="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">Nested</a>&nbsp;|&nbsp;</li>
65 <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
66 <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67 <li><a href="#methods_inherited_from_class_java.awt.Rectangle">Method</a></li>
68 </ul>
69 <ul class="subNavList">
70 <li>Detail:&nbsp;</li>
71 <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
72 <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73 <li>Method</li>
74 </ul>
75 </div>
76 <a name="skip-navbar_top">
77 <!--   -->
78 </a></div>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80 <!-- ======== START OF CLASS DATA ======== -->
81 <div class="header">
82 <div class="subTitle">org.libjpegturbo.turbojpeg</div>
83 <h2 title="Class TJTransform" class="title">Class TJTransform</h2>
84 </div>
85 <div class="contentContainer">
86 <ul class="inheritance">
87 <li>java.lang.Object</li>
88 <li>
89 <ul class="inheritance">
90 <li>java.awt.geom.RectangularShape</li>
91 <li>
92 <ul class="inheritance">
93 <li>java.awt.geom.Rectangle2D</li>
94 <li>
95 <ul class="inheritance">
96 <li>java.awt.Rectangle</li>
97 <li>
98 <ul class="inheritance">
99 <li>org.libjpegturbo.turbojpeg.TJTransform</li>
100 </ul>
101 </li>
102 </ul>
103 </li>
104 </ul>
105 </li>
106 </ul>
107 </li>
108 </ul>
109 <div class="description">
110 <ul class="blockList">
111 <li class="blockList">
112 <dl>
113 <dt>All Implemented Interfaces:</dt>
114 <dd>java.awt.Shape, java.io.Serializable, java.lang.Cloneable</dd>
115 </dl>
116 <hr>
117 <br>
118 <pre>public class <span class="strong">TJTransform</span>
119 extends java.awt.Rectangle</pre>
120 <div class="block">Lossless transform parameters</div>
121 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#org.libjpegturbo.turbojpeg.TJTransform">Serialized Form</a></dd></dl>
122 </li>
123 </ul>
124 </div>
125 <div class="summary">
126 <ul class="blockList">
127 <li class="blockList">
128 <!-- ======== NESTED CLASS SUMMARY ======== -->
129 <ul class="blockList">
130 <li class="blockList"><a name="nested_class_summary">
131 <!--   -->
132 </a>
133 <h3>Nested Class Summary</h3>
134 <ul class="blockList">
135 <li class="blockList"><a name="nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">
136 <!--   -->
137 </a>
138 <h3>Nested classes/interfaces inherited from class&nbsp;java.awt.geom.Rectangle2D</h3>
139 <code>java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float</code></li>
140 </ul>
141 </li>
142 </ul>
143 <!-- =========== FIELD SUMMARY =========== -->
144 <ul class="blockList">
145 <li class="blockList"><a name="field_summary">
146 <!--   -->
147 </a>
148 <h3>Field Summary</h3>
149 <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
150 <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
151 <tr>
152 <th class="colFirst" scope="col">Modifier and Type</th>
153 <th class="colLast" scope="col">Field and Description</th>
154 </tr>
155 <tr class="altColor">
156 <td class="colFirst"><code><a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a></code></td>
157 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#cf">cf</a></strong></code>
158 <div class="block">Custom filter instance</div>
159 </td>
160 </tr>
161 <tr class="rowColor">
162 <td class="colFirst"><code>static int</code></td>
163 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#NUMOP">NUMOP</a></strong></code>
164 <div class="block">The number of lossless transform operations</div>
165 </td>
166 </tr>
167 <tr class="altColor">
168 <td class="colFirst"><code>int</code></td>
169 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#op">op</a></strong></code>
170 <div class="block">Transform operation (one of <code>OP_*</code>)</div>
171 </td>
172 </tr>
173 <tr class="rowColor">
174 <td class="colFirst"><code>static int</code></td>
175 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_HFLIP">OP_HFLIP</a></strong></code>
176 <div class="block">Flip (mirror) image horizontally.</div>
177 </td>
178 </tr>
179 <tr class="altColor">
180 <td class="colFirst"><code>static int</code></td>
181 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_NONE">OP_NONE</a></strong></code>
182 <div class="block">Do not transform the position of the image pixels.</div>
183 </td>
184 </tr>
185 <tr class="rowColor">
186 <td class="colFirst"><code>static int</code></td>
187 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT180">OP_ROT180</a></strong></code>
188 <div class="block">Rotate image 180 degrees.</div>
189 </td>
190 </tr>
191 <tr class="altColor">
192 <td class="colFirst"><code>static int</code></td>
193 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT270">OP_ROT270</a></strong></code>
194 <div class="block">Rotate image counter-clockwise by 90 degrees.</div>
195 </td>
196 </tr>
197 <tr class="rowColor">
198 <td class="colFirst"><code>static int</code></td>
199 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT90">OP_ROT90</a></strong></code>
200 <div class="block">Rotate image clockwise by 90 degrees.</div>
201 </td>
202 </tr>
203 <tr class="altColor">
204 <td class="colFirst"><code>static int</code></td>
205 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_TRANSPOSE">OP_TRANSPOSE</a></strong></code>
206 <div class="block">Transpose image (flip/mirror along upper left to lower right axis).</div>
207 </td>
208 </tr>
209 <tr class="rowColor">
210 <td class="colFirst"><code>static int</code></td>
211 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_TRANSVERSE">OP_TRANSVERSE</a></strong></code>
212 <div class="block">Transverse transpose image (flip/mirror along upper right to lower left
213  axis).</div>
214 </td>
215 </tr>
216 <tr class="altColor">
217 <td class="colFirst"><code>static int</code></td>
218 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_VFLIP">OP_VFLIP</a></strong></code>
219 <div class="block">Flip (mirror) image vertically.</div>
220 </td>
221 </tr>
222 <tr class="rowColor">
223 <td class="colFirst"><code>static int</code></td>
224 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_COPYNONE">OPT_COPYNONE</a></strong></code>
225 <div class="block">This option will prevent <a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[],%20int)"><code>TJTransformer.transform()</code></a> from copying any extra markers (including EXIF
226  and ICC profile data) from the source image to the output image.</div>
227 </td>
228 </tr>
229 <tr class="altColor">
230 <td class="colFirst"><code>static int</code></td>
231 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_CROP">OPT_CROP</a></strong></code>
232 <div class="block">This option will enable lossless cropping.</div>
233 </td>
234 </tr>
235 <tr class="rowColor">
236 <td class="colFirst"><code>static int</code></td>
237 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_GRAY">OPT_GRAY</a></strong></code>
238 <div class="block">This option will discard the color data in the input image and produce
239  a grayscale output image.</div>
240 </td>
241 </tr>
242 <tr class="altColor">
243 <td class="colFirst"><code>static int</code></td>
244 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_NOOUTPUT">OPT_NOOUTPUT</a></strong></code>
245 <div class="block">This option will prevent <a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[],%20int)"><code>TJTransformer.transform()</code></a> from outputting a JPEG image for this
246  particular transform.</div>
247 </td>
248 </tr>
249 <tr class="rowColor">
250 <td class="colFirst"><code>static int</code></td>
251 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT">OPT_PERFECT</a></strong></code>
252 <div class="block">This option will cause <a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[],%20int)"><code>TJTransformer.transform()</code></a> to throw an exception if the transform is not
253  perfect.</div>
254 </td>
255 </tr>
256 <tr class="altColor">
257 <td class="colFirst"><code>static int</code></td>
258 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PROGRESSIVE">OPT_PROGRESSIVE</a></strong></code>
259 <div class="block">This option will enable progressive entropy coding in the output image
260  generated by this particular transform.</div>
261 </td>
262 </tr>
263 <tr class="rowColor">
264 <td class="colFirst"><code>static int</code></td>
265 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_TRIM">OPT_TRIM</a></strong></code>
266 <div class="block">This option will discard any partial MCU blocks that cannot be
267  transformed.</div>
268 </td>
269 </tr>
270 <tr class="altColor">
271 <td class="colFirst"><code>int</code></td>
272 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#options">options</a></strong></code>
273 <div class="block">Transform options (bitwise OR of one or more of <code>OPT_*</code>)</div>
274 </td>
275 </tr>
276 </table>
277 <ul class="blockList">
278 <li class="blockList"><a name="fields_inherited_from_class_java.awt.Rectangle">
279 <!--   -->
280 </a>
281 <h3>Fields inherited from class&nbsp;java.awt.Rectangle</h3>
282 <code>height, width, x, y</code></li>
283 </ul>
284 <ul class="blockList">
285 <li class="blockList"><a name="fields_inherited_from_class_java.awt.geom.Rectangle2D">
286 <!--   -->
287 </a>
288 <h3>Fields inherited from class&nbsp;java.awt.geom.Rectangle2D</h3>
289 <code>OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP</code></li>
290 </ul>
291 </li>
292 </ul>
293 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
294 <ul class="blockList">
295 <li class="blockList"><a name="constructor_summary">
296 <!--   -->
297 </a>
298 <h3>Constructor Summary</h3>
299 <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
300 <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
301 <tr>
302 <th class="colOne" scope="col">Constructor and Description</th>
303 </tr>
304 <tr class="altColor">
305 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform()">TJTransform</a></strong>()</code>
306 <div class="block">Create a new lossless transform instance.</div>
307 </td>
308 </tr>
309 <tr class="rowColor">
310 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(int,%20int,%20int,%20int,%20int,%20int,%20org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</a></strong>(int&nbsp;x,
311            int&nbsp;y,
312            int&nbsp;w,
313            int&nbsp;h,
314            int&nbsp;op,
315            int&nbsp;options,
316            <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</code>
317 <div class="block">Create a new lossless transform instance with the given parameters.</div>
318 </td>
319 </tr>
320 <tr class="altColor">
321 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(java.awt.Rectangle,%20int,%20int,%20org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</a></strong>(java.awt.Rectangle&nbsp;r,
322            int&nbsp;op,
323            int&nbsp;options,
324            <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</code>
325 <div class="block">Create a new lossless transform instance with the given parameters.</div>
326 </td>
327 </tr>
328 </table>
329 </li>
330 </ul>
331 <!-- ========== METHOD SUMMARY =========== -->
332 <ul class="blockList">
333 <li class="blockList"><a name="method_summary">
334 <!--   -->
335 </a>
336 <h3>Method Summary</h3>
337 <ul class="blockList">
338 <li class="blockList"><a name="methods_inherited_from_class_java.awt.Rectangle">
339 <!--   -->
340 </a>
341 <h3>Methods inherited from class&nbsp;java.awt.Rectangle</h3>
342 <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>
343 </ul>
344 <ul class="blockList">
345 <li class="blockList"><a name="methods_inherited_from_class_java.awt.geom.Rectangle2D">
346 <!--   -->
347 </a>
348 <h3>Methods inherited from class&nbsp;java.awt.geom.Rectangle2D</h3>
349 <code>add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union</code></li>
350 </ul>
351 <ul class="blockList">
352 <li class="blockList"><a name="methods_inherited_from_class_java.awt.geom.RectangularShape">
353 <!--   -->
354 </a>
355 <h3>Methods inherited from class&nbsp;java.awt.geom.RectangularShape</h3>
356 <code>clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal</code></li>
357 </ul>
358 <ul class="blockList">
359 <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
360 <!--   -->
361 </a>
362 <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
363 <code>finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
364 </ul>
365 <ul class="blockList">
366 <li class="blockList"><a name="methods_inherited_from_class_java.awt.Shape">
367 <!--   -->
368 </a>
369 <h3>Methods inherited from interface&nbsp;java.awt.Shape</h3>
370 <code>contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects</code></li>
371 </ul>
372 </li>
373 </ul>
374 </li>
375 </ul>
376 </div>
377 <div class="details">
378 <ul class="blockList">
379 <li class="blockList">
380 <!-- ============ FIELD DETAIL =========== -->
381 <ul class="blockList">
382 <li class="blockList"><a name="field_detail">
383 <!--   -->
384 </a>
385 <h3>Field Detail</h3>
386 <a name="NUMOP">
387 <!--   -->
388 </a>
389 <ul class="blockList">
390 <li class="blockList">
391 <h4>NUMOP</h4>
392 <pre>public static final&nbsp;int NUMOP</pre>
393 <div class="block">The number of lossless transform operations</div>
394 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.NUMOP">Constant Field Values</a></dd></dl>
395 </li>
396 </ul>
397 <a name="OP_NONE">
398 <!--   -->
399 </a>
400 <ul class="blockList">
401 <li class="blockList">
402 <h4>OP_NONE</h4>
403 <pre>public static final&nbsp;int OP_NONE</pre>
404 <div class="block">Do not transform the position of the image pixels.</div>
405 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_NONE">Constant Field Values</a></dd></dl>
406 </li>
407 </ul>
408 <a name="OP_HFLIP">
409 <!--   -->
410 </a>
411 <ul class="blockList">
412 <li class="blockList">
413 <h4>OP_HFLIP</h4>
414 <pre>public static final&nbsp;int OP_HFLIP</pre>
415 <div class="block">Flip (mirror) image horizontally.  This transform is imperfect if there
416  are any partial MCU blocks on the right edge.</div>
417 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
418 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_HFLIP">Constant Field Values</a></dd></dl>
419 </li>
420 </ul>
421 <a name="OP_VFLIP">
422 <!--   -->
423 </a>
424 <ul class="blockList">
425 <li class="blockList">
426 <h4>OP_VFLIP</h4>
427 <pre>public static final&nbsp;int OP_VFLIP</pre>
428 <div class="block">Flip (mirror) image vertically.  This transform is imperfect if there are
429  any partial MCU blocks on the bottom edge.</div>
430 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
431 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_VFLIP">Constant Field Values</a></dd></dl>
432 </li>
433 </ul>
434 <a name="OP_TRANSPOSE">
435 <!--   -->
436 </a>
437 <ul class="blockList">
438 <li class="blockList">
439 <h4>OP_TRANSPOSE</h4>
440 <pre>public static final&nbsp;int OP_TRANSPOSE</pre>
441 <div class="block">Transpose image (flip/mirror along upper left to lower right axis).  This
442  transform is always perfect.</div>
443 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
444 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSPOSE">Constant Field Values</a></dd></dl>
445 </li>
446 </ul>
447 <a name="OP_TRANSVERSE">
448 <!--   -->
449 </a>
450 <ul class="blockList">
451 <li class="blockList">
452 <h4>OP_TRANSVERSE</h4>
453 <pre>public static final&nbsp;int OP_TRANSVERSE</pre>
454 <div class="block">Transverse transpose image (flip/mirror along upper right to lower left
455  axis).  This transform is imperfect if there are any partial MCU blocks in
456  the image.</div>
457 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
458 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSVERSE">Constant Field Values</a></dd></dl>
459 </li>
460 </ul>
461 <a name="OP_ROT90">
462 <!--   -->
463 </a>
464 <ul class="blockList">
465 <li class="blockList">
466 <h4>OP_ROT90</h4>
467 <pre>public static final&nbsp;int OP_ROT90</pre>
468 <div class="block">Rotate image clockwise by 90 degrees.  This transform is imperfect if
469  there are any partial MCU blocks on the bottom edge.</div>
470 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
471 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT90">Constant Field Values</a></dd></dl>
472 </li>
473 </ul>
474 <a name="OP_ROT180">
475 <!--   -->
476 </a>
477 <ul class="blockList">
478 <li class="blockList">
479 <h4>OP_ROT180</h4>
480 <pre>public static final&nbsp;int OP_ROT180</pre>
481 <div class="block">Rotate image 180 degrees.  This transform is imperfect if there are any
482  partial MCU blocks in the image.</div>
483 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
484 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT180">Constant Field Values</a></dd></dl>
485 </li>
486 </ul>
487 <a name="OP_ROT270">
488 <!--   -->
489 </a>
490 <ul class="blockList">
491 <li class="blockList">
492 <h4>OP_ROT270</h4>
493 <pre>public static final&nbsp;int OP_ROT270</pre>
494 <div class="block">Rotate image counter-clockwise by 90 degrees.  This transform is imperfect
495  if there are any partial MCU blocks on the right edge.</div>
496 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><code>OPT_PERFECT</code></a>, 
497 <a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT270">Constant Field Values</a></dd></dl>
498 </li>
499 </ul>
500 <a name="OPT_PERFECT">
501 <!--   -->
502 </a>
503 <ul class="blockList">
504 <li class="blockList">
505 <h4>OPT_PERFECT</h4>
506 <pre>public static final&nbsp;int OPT_PERFECT</pre>
507 <div class="block">This option will cause <a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[],%20int)"><code>TJTransformer.transform()</code></a> to throw an exception if the transform is not
508  perfect.  Lossless transforms operate on MCU blocks, whose size depends on
509  the level of chrominance subsampling used.  If the image's width or height
510  is not evenly divisible by the MCU block size (see <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)"><code>TJ.getMCUWidth(int)</code></a>
511  and <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)"><code>TJ.getMCUHeight(int)</code></a>), then there will be partial MCU blocks on the
512  right and/or bottom edges.   It is not possible to move these partial MCU
513  blocks to the top or left of the image, so any transform that would
514  require that is "imperfect."  If this option is not specified, then any
515  partial MCU blocks that cannot be transformed will be left in place, which
516  will create odd-looking strips on the right or bottom edge of the image.</div>
517 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_PERFECT">Constant Field Values</a></dd></dl>
518 </li>
519 </ul>
520 <a name="OPT_TRIM">
521 <!--   -->
522 </a>
523 <ul class="blockList">
524 <li class="blockList">
525 <h4>OPT_TRIM</h4>
526 <pre>public static final&nbsp;int OPT_TRIM</pre>
527 <div class="block">This option will discard any partial MCU blocks that cannot be
528  transformed.</div>
529 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_TRIM">Constant Field Values</a></dd></dl>
530 </li>
531 </ul>
532 <a name="OPT_CROP">
533 <!--   -->
534 </a>
535 <ul class="blockList">
536 <li class="blockList">
537 <h4>OPT_CROP</h4>
538 <pre>public static final&nbsp;int OPT_CROP</pre>
539 <div class="block">This option will enable lossless cropping.</div>
540 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_CROP">Constant Field Values</a></dd></dl>
541 </li>
542 </ul>
543 <a name="OPT_GRAY">
544 <!--   -->
545 </a>
546 <ul class="blockList">
547 <li class="blockList">
548 <h4>OPT_GRAY</h4>
549 <pre>public static final&nbsp;int OPT_GRAY</pre>
550 <div class="block">This option will discard the color data in the input image and produce
551  a grayscale output image.</div>
552 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_GRAY">Constant Field Values</a></dd></dl>
553 </li>
554 </ul>
555 <a name="OPT_NOOUTPUT">
556 <!--   -->
557 </a>
558 <ul class="blockList">
559 <li class="blockList">
560 <h4>OPT_NOOUTPUT</h4>
561 <pre>public static final&nbsp;int OPT_NOOUTPUT</pre>
562 <div class="block">This option will prevent <a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[],%20int)"><code>TJTransformer.transform()</code></a> from outputting a JPEG image for this
563  particular transform.  This can be used in conjunction with a custom
564  filter to capture the transformed DCT coefficients without transcoding
565  them.</div>
566 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_NOOUTPUT">Constant Field Values</a></dd></dl>
567 </li>
568 </ul>
569 <a name="OPT_PROGRESSIVE">
570 <!--   -->
571 </a>
572 <ul class="blockList">
573 <li class="blockList">
574 <h4>OPT_PROGRESSIVE</h4>
575 <pre>public static final&nbsp;int OPT_PROGRESSIVE</pre>
576 <div class="block">This option will enable progressive entropy coding in the output image
577  generated by this particular transform.  Progressive entropy coding will
578  generally improve compression relative to baseline entropy coding (the
579  default), but it will reduce compression and decompression performance
580  considerably.</div>
581 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_PROGRESSIVE">Constant Field Values</a></dd></dl>
582 </li>
583 </ul>
584 <a name="OPT_COPYNONE">
585 <!--   -->
586 </a>
587 <ul class="blockList">
588 <li class="blockList">
589 <h4>OPT_COPYNONE</h4>
590 <pre>public static final&nbsp;int OPT_COPYNONE</pre>
591 <div class="block">This option will prevent <a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTransform[],%20int)"><code>TJTransformer.transform()</code></a> from copying any extra markers (including EXIF
592  and ICC profile data) from the source image to the output image.</div>
593 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_COPYNONE">Constant Field Values</a></dd></dl>
594 </li>
595 </ul>
596 <a name="op">
597 <!--   -->
598 </a>
599 <ul class="blockList">
600 <li class="blockList">
601 <h4>op</h4>
602 <pre>public&nbsp;int op</pre>
603 <div class="block">Transform operation (one of <code>OP_*</code>)</div>
604 </li>
605 </ul>
606 <a name="options">
607 <!--   -->
608 </a>
609 <ul class="blockList">
610 <li class="blockList">
611 <h4>options</h4>
612 <pre>public&nbsp;int options</pre>
613 <div class="block">Transform options (bitwise OR of one or more of <code>OPT_*</code>)</div>
614 </li>
615 </ul>
616 <a name="cf">
617 <!--   -->
618 </a>
619 <ul class="blockListLast">
620 <li class="blockList">
621 <h4>cf</h4>
622 <pre>public&nbsp;<a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf</pre>
623 <div class="block">Custom filter instance</div>
624 </li>
625 </ul>
626 </li>
627 </ul>
628 <!-- ========= CONSTRUCTOR DETAIL ======== -->
629 <ul class="blockList">
630 <li class="blockList"><a name="constructor_detail">
631 <!--   -->
632 </a>
633 <h3>Constructor Detail</h3>
634 <a name="TJTransform()">
635 <!--   -->
636 </a>
637 <ul class="blockList">
638 <li class="blockList">
639 <h4>TJTransform</h4>
640 <pre>public&nbsp;TJTransform()</pre>
641 <div class="block">Create a new lossless transform instance.</div>
642 </li>
643 </ul>
644 <a name="TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)">
645 <!--   -->
646 </a>
647 <ul class="blockList">
648 <li class="blockList">
649 <h4>TJTransform</h4>
650 <pre>public&nbsp;TJTransform(int&nbsp;x,
651            int&nbsp;y,
652            int&nbsp;w,
653            int&nbsp;h,
654            int&nbsp;op,
655            int&nbsp;options,
656            <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</pre>
657 <div class="block">Create a new lossless transform instance with the given parameters.</div>
658 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the left boundary of the cropping region.  This must be evenly
659  divisible by the MCU block width (see <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)"><code>TJ.getMCUWidth(int)</code></a>)</dd><dd><code>y</code> - the upper boundary of the cropping region.  This must be evenly
660  divisible by the MCU block height (see <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)"><code>TJ.getMCUHeight(int)</code></a>)</dd><dd><code>w</code> - the width of the cropping region.  Setting this to 0 is the
661  equivalent of setting it to (width of the source JPEG image -
662  <code>x</code>).</dd><dd><code>h</code> - the height of the cropping region.  Setting this to 0 is the
663  equivalent of setting it to (height of the source JPEG image -
664  <code>y</code>).</dd><dd><code>op</code> - one of the transform operations (<code>OP_*</code>)</dd><dd><code>options</code> - the bitwise OR of one or more of the transform options
665  (<code>OPT_*</code>)</dd><dd><code>cf</code> - an instance of an object that implements the <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><code>TJCustomFilter</code></a> interface, or null if no custom filter is needed</dd></dl>
666 </li>
667 </ul>
668 <a name="TJTransform(java.awt.Rectangle, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)">
669 <!--   -->
670 </a>
671 <ul class="blockListLast">
672 <li class="blockList">
673 <h4>TJTransform</h4>
674 <pre>public&nbsp;TJTransform(java.awt.Rectangle&nbsp;r,
675            int&nbsp;op,
676            int&nbsp;options,
677            <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a>&nbsp;cf)</pre>
678 <div class="block">Create a new lossless transform instance with the given parameters.</div>
679 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>r</code> - a <code>Rectangle</code> instance that specifies the cropping
680  region.  See <a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(int,%20int,%20int,%20int,%20int,%20int,%20org.libjpegturbo.turbojpeg.TJCustomFilter)"><code>TJTransform(int, int, int, int, int, int, TJCustomFilter)</code></a> for more
681  detail.</dd><dd><code>op</code> - one of the transform operations (<code>OP_*</code>)</dd><dd><code>options</code> - the bitwise OR of one or more of the transform options
682  (<code>OPT_*</code>)</dd><dd><code>cf</code> - an instance of an object that implements the <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg"><code>TJCustomFilter</code></a> interface, or null if no custom filter is needed</dd></dl>
683 </li>
684 </ul>
685 </li>
686 </ul>
687 </li>
688 </ul>
689 </div>
690 </div>
691 <!-- ========= END OF CLASS DATA ========= -->
692 <!-- ======= START OF BOTTOM NAVBAR ====== -->
693 <div class="bottomNav"><a name="navbar_bottom">
694 <!--   -->
695 </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
696 <!--   -->
697 </a>
698 <ul class="navList" title="Navigation">
699 <li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</a></li>
700 <li class="navBarCell1Rev">Class</li>
701 <li><a href="package-tree.html">Tree</a></li>
702 <li><a href="../../../deprecated-list.html">Deprecated</a></li>
703 <li><a href="../../../index-all.html">Index</a></li>
704 <li><a href="../../../help-doc.html">Help</a></li>
705 </ul>
706 </div>
707 <div class="subNav">
708 <ul class="navList">
709 <li><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></li>
710 <li><a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li>
711 </ul>
712 <ul class="navList">
713 <li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" target="_top">Frames</a></li>
714 <li><a href="TJTransform.html" target="_top">No Frames</a></li>
715 </ul>
716 <ul class="navList" id="allclasses_navbar_bottom">
717 <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
718 </ul>
719 <div>
720 <script type="text/javascript"><!--
721   allClassesLink = document.getElementById("allclasses_navbar_bottom");
722   if(window==top) {
723     allClassesLink.style.display = "block";
724   }
725   else {
726     allClassesLink.style.display = "none";
727   }
728   //-->
729 </script>
730 </div>
731 <div>
732 <ul class="subNavList">
733 <li>Summary:&nbsp;</li>
734 <li><a href="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">Nested</a>&nbsp;|&nbsp;</li>
735 <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
736 <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
737 <li><a href="#methods_inherited_from_class_java.awt.Rectangle">Method</a></li>
738 </ul>
739 <ul class="subNavList">
740 <li>Detail:&nbsp;</li>
741 <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
742 <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
743 <li>Method</li>
744 </ul>
745 </div>
746 <a name="skip-navbar_bottom">
747 <!--   -->
748 </a></div>
749 <!-- ======== END OF BOTTOM NAVBAR ======= -->
750 </body>
751 </html>