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>
15 <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
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>
21 <script type="text/javascript"><!--
23 if (location.href.indexOf('is-external=true') == -1) {
24 parent.document.title="TJTransform";
30 var pathtoroot = "../../../";
31 var useModuleDirectories = true;
32 loadScripts(document, 'script');</script>
34 <div>JavaScript is disabled on your browser.</div>
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">
43 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
44 <a id="navbar.top.firstrow">
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>
57 <ul class="navList" id="allclasses_navbar_top">
58 <li><a href="../../../allclasses.html">All Classes</a></li>
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">
67 <script type="text/javascript"><!--
68 allClassesLink = document.getElementById("allclasses_navbar_top");
70 allClassesLink.style.display = "block";
73 allClassesLink.style.display = "none";
78 <div>JavaScript is disabled on your browser.</div>
82 <ul class="subNavList">
83 <li>Summary: </li>
84 <li><a href="#nested.class.summary">Nested</a> | </li>
85 <li><a href="#field.summary">Field</a> | </li>
86 <li><a href="#constructor.summary">Constr</a> | </li>
87 <li><a href="#method.summary">Method</a></li>
89 <ul class="subNavList">
90 <li>Detail: </li>
91 <li><a href="#field.detail">Field</a> | </li>
92 <li><a href="#constructor.detail">Constr</a> | </li>
96 <a id="skip.navbar.top">
99 <!-- ========= END OF TOP NAVBAR ========= -->
101 <div class="navPadding"> </div>
102 <script type="text/javascript"><!--
103 $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
108 <!-- ======== START OF CLASS DATA ======== -->
111 <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.libjpegturbo.turbojpeg</a></div>
112 <h2 title="Class TJTransform" class="title">Class TJTransform</h2>
114 <div class="contentContainer">
115 <ul class="inheritance">
116 <li>java.lang.Object</li>
118 <ul class="inheritance">
119 <li>java.awt.geom.RectangularShape</li>
121 <ul class="inheritance">
122 <li>java.awt.geom.Rectangle2D</li>
124 <ul class="inheritance">
125 <li>java.awt.Rectangle</li>
127 <ul class="inheritance">
128 <li>org.libjpegturbo.turbojpeg.TJTransform</li>
138 <div class="description">
139 <ul class="blockList">
140 <li class="blockList">
142 <dt>All Implemented Interfaces:</dt>
143 <dd><code>java.awt.Shape</code>, <code>java.io.Serializable</code>, <code>java.lang.Cloneable</code></dd>
146 <pre>public class <span class="typeNameLabel">TJTransform</span>
147 extends java.awt.Rectangle</pre>
148 <div class="block">Lossless transform parameters</div>
150 <dt><span class="seeLabel">See Also:</span></dt>
151 <dd><a href="../../../serialized-form.html#org.libjpegturbo.turbojpeg.TJTransform">Serialized Form</a></dd>
156 <div class="summary">
157 <ul class="blockList">
158 <li class="blockList">
159 <!-- ======== NESTED CLASS SUMMARY ======== -->
161 <ul class="blockList">
162 <li class="blockList"><a id="nested.class.summary">
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">
170 <h3>Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D</h3>
171 <code>java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float</code></li>
176 <!-- =========== FIELD SUMMARY =========== -->
178 <ul class="blockList">
179 <li class="blockList"><a id="field.summary">
182 <h3>Field Summary</h3>
183 <table class="memberSummary">
184 <caption><span>Fields</span><span class="tabEnd"> </span></caption>
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>
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>
194 <div class="block">Custom filter instance</div>
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>
201 <div class="block">The number of lossless transform operations</div>
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>
208 <div class="block">Transform operation (one of <a href="#OP_NONE"><code>OP_*</code></a>)</div>
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>
215 <div class="block">Flip (mirror) image horizontally.</div>
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>
222 <div class="block">Do not transform the position of the image pixels.</div>
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>
229 <div class="block">Rotate image 180 degrees.</div>
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>
236 <div class="block">Rotate image counter-clockwise by 90 degrees.</div>
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>
243 <div class="block">Rotate image clockwise by 90 degrees.</div>
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>
250 <div class="block">Transpose image (flip/mirror along upper left to lower right axis).</div>
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>
257 <div class="block">Transverse transpose image (flip/mirror along upper right to lower left
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>
265 <div class="block">Flip (mirror) image vertically.</div>
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>
272 <div class="block">This option will enable arithmetic entropy coding in the JPEG image
273 generated by this particular transform.</div>
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>
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>
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>
288 <div class="block">This option will enable lossless cropping.</div>
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>
295 <div class="block">This option will discard the color data in the source image and produce a
296 grayscale destination image.</div>
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>
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>
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>
311 <div class="block">This option will enable optimized baseline entropy coding in the JPEG
312 image generated by this particular transform.</div>
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>
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
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>
327 <div class="block">This option will enable progressive entropy coding in the JPEG image
328 generated by this particular transform.</div>
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>
335 <div class="block">This option will discard any partial MCU blocks that cannot be
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>
343 <div class="block">Transform options (bitwise OR of one or more of
344 <a href="#OPT_PERFECT"><code>OPT_*</code></a>)</div>
348 <ul class="blockList">
349 <li class="blockList"><a id="fields.inherited.from.class.java.awt.Rectangle">
352 <h3>Fields inherited from class java.awt.Rectangle</h3>
353 <code>height, width, x, y</code></li>
355 <ul class="blockList">
356 <li class="blockList"><a id="fields.inherited.from.class.java.awt.geom.Rectangle2D">
359 <h3>Fields inherited from class java.awt.geom.Rectangle2D</h3>
360 <code>OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP</code></li>
365 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
367 <ul class="blockList">
368 <li class="blockList"><a id="constructor.summary">
371 <h3>Constructor Summary</h3>
372 <table class="memberSummary">
373 <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
375 <th class="colFirst" scope="col">Constructor</th>
376 <th class="colLast" scope="col">Description</th>
378 <tr class="altColor">
379 <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">TJTransform</a></span>()</code></th>
381 <div class="block">Create a new lossless transform instance.</div>
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>​(int x,
391 <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</code></th>
393 <div class="block">Create a new lossless transform instance with the given parameters.</div>
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>​(java.awt.Rectangle r,
400 <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</code></th>
402 <div class="block">Create a new lossless transform instance with the given parameters.</div>
409 <!-- ========== METHOD SUMMARY =========== -->
411 <ul class="blockList">
412 <li class="blockList"><a id="method.summary">
415 <h3>Method Summary</h3>
416 <ul class="blockList">
417 <li class="blockList"><a id="methods.inherited.from.class.java.awt.Rectangle">
420 <h3>Methods inherited from class 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>
423 <ul class="blockList">
424 <li class="blockList"><a id="methods.inherited.from.class.java.awt.geom.Rectangle2D">
427 <h3>Methods inherited from class 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>
430 <ul class="blockList">
431 <li class="blockList"><a id="methods.inherited.from.class.java.awt.geom.RectangularShape">
434 <h3>Methods inherited from class 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>
437 <ul class="blockList">
438 <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
441 <h3>Methods inherited from class java.lang.Object</h3>
442 <code>finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
444 <ul class="blockList">
445 <li class="blockList"><a id="methods.inherited.from.class.java.awt.Shape">
448 <h3>Methods inherited from interface java.awt.Shape</h3>
449 <code>contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects</code></li>
457 <div class="details">
458 <ul class="blockList">
459 <li class="blockList">
460 <!-- ============ FIELD DETAIL =========== -->
462 <ul class="blockList">
463 <li class="blockList"><a id="field.detail">
466 <h3>Field Detail</h3>
470 <ul class="blockList">
471 <li class="blockList">
473 <pre>public static final int NUMOP</pre>
474 <div class="block">The number of lossless transform operations</div>
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>
484 <ul class="blockList">
485 <li class="blockList">
487 <pre>public static final int OP_NONE</pre>
488 <div class="block">Do not transform the position of the image pixels.</div>
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>
498 <ul class="blockList">
499 <li class="blockList">
501 <pre>public static final 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>
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>
514 <ul class="blockList">
515 <li class="blockList">
517 <pre>public static final 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>
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>
527 <a id="OP_TRANSPOSE">
530 <ul class="blockList">
531 <li class="blockList">
532 <h4>OP_TRANSPOSE</h4>
533 <pre>public static final 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>
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>
543 <a id="OP_TRANSVERSE">
546 <ul class="blockList">
547 <li class="blockList">
548 <h4>OP_TRANSVERSE</h4>
549 <pre>public static final 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
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>
563 <ul class="blockList">
564 <li class="blockList">
566 <pre>public static final 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>
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>
579 <ul class="blockList">
580 <li class="blockList">
582 <pre>public static final 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>
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>
595 <ul class="blockList">
596 <li class="blockList">
598 <pre>public static final 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>
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>
611 <ul class="blockList">
612 <li class="blockList">
614 <pre>public static final 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>
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>
634 <ul class="blockList">
635 <li class="blockList">
637 <pre>public static final int OPT_TRIM</pre>
638 <div class="block">This option will discard any partial MCU blocks that cannot be
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>
649 <ul class="blockList">
650 <li class="blockList">
652 <pre>public static final int OPT_CROP</pre>
653 <div class="block">This option will enable lossless cropping.</div>
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>
663 <ul class="blockList">
664 <li class="blockList">
666 <pre>public static final 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>
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>
675 <a id="OPT_NOOUTPUT">
678 <ul class="blockList">
679 <li class="blockList">
680 <h4>OPT_NOOUTPUT</h4>
681 <pre>public static final 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
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>
692 <a id="OPT_PROGRESSIVE">
695 <ul class="blockList">
696 <li class="blockList">
697 <h4>OPT_PROGRESSIVE</h4>
698 <pre>public static final 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>
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>
711 <a id="OPT_COPYNONE">
714 <ul class="blockList">
715 <li class="blockList">
716 <h4>OPT_COPYNONE</h4>
717 <pre>public static final 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>
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>
726 <a id="OPT_ARITHMETIC">
729 <ul class="blockList">
730 <li class="blockList">
731 <h4>OPT_ARITHMETIC</h4>
732 <pre>public static final 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>
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>
744 <a id="OPT_OPTIMIZE">
747 <ul class="blockList">
748 <li class="blockList">
749 <h4>OPT_OPTIMIZE</h4>
750 <pre>public static final 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>
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>
763 <ul class="blockList">
764 <li class="blockList">
766 <pre>public int op</pre>
767 <div class="block">Transform operation (one of <a href="#OP_NONE"><code>OP_*</code></a>)</div>
773 <ul class="blockList">
774 <li class="blockList">
776 <pre>public 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>
784 <ul class="blockListLast">
785 <li class="blockList">
787 <pre>public <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf</pre>
788 <div class="block">Custom filter instance</div>
794 <!-- ========= CONSTRUCTOR DETAIL ======== -->
796 <ul class="blockList">
797 <li class="blockList"><a id="constructor.detail">
800 <h3>Constructor Detail</h3>
801 <a id="<init>()">
804 <ul class="blockList">
805 <li class="blockList">
807 <pre>public TJTransform()</pre>
808 <div class="block">Create a new lossless transform instance.</div>
811 <a id="<init>(int,int,int,int,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)">
814 <ul class="blockList">
815 <li class="blockList">
817 <pre>public TJTransform​(int x,
823 <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</pre>
824 <div class="block">Create a new lossless transform instance with the given parameters.</div>
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>
845 <a id="<init>(java.awt.Rectangle,int,int,org.libjpegturbo.turbojpeg.TJCustomFilter)">
848 <ul class="blockListLast">
849 <li class="blockList">
851 <pre>public TJTransform​(java.awt.Rectangle r,
854 <a href="TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</pre>
855 <div class="block">Create a new lossless transform instance with the given parameters.</div>
857 <dt><span class="paramLabel">Parameters:</span></dt>
858 <dd><code>r</code> - a <code>java.awt.Rectangle</code> instance that specifies the
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
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>
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">
885 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
886 <a id="navbar.bottom.firstrow">
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>
899 <ul class="navList" id="allclasses_navbar_bottom">
900 <li><a href="../../../allclasses.html">All Classes</a></li>
903 <script type="text/javascript"><!--
904 allClassesLink = document.getElementById("allclasses_navbar_bottom");
906 allClassesLink.style.display = "block";
909 allClassesLink.style.display = "none";
914 <div>JavaScript is disabled on your browser.</div>
918 <ul class="subNavList">
919 <li>Summary: </li>
920 <li><a href="#nested.class.summary">Nested</a> | </li>
921 <li><a href="#field.summary">Field</a> | </li>
922 <li><a href="#constructor.summary">Constr</a> | </li>
923 <li><a href="#method.summary">Method</a></li>
925 <ul class="subNavList">
926 <li>Detail: </li>
927 <li><a href="#field.detail">Field</a> | </li>
928 <li><a href="#constructor.detail">Constr</a> | </li>
932 <a id="skip.navbar.bottom">
935 <!-- ======== END OF BOTTOM NAVBAR ======= -->