1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_29) on Sun Dec 18 20:09:44 CST 2011 -->
10 <META NAME="date" CONTENT="2011-12-18">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="TJTransform";
27 <BODY BGCOLOR="white" onload="windowTitle();">
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
41 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg"><B>PREV CLASS</B></A>
57 <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="TJTransform.html" target="_top"><B>NO FRAMES</B></A>
61 <SCRIPT type="text/javascript">
64 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.awt.Rectangle">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.libjpegturbo.turbojpeg</FONT>
91 Class TJTransform</H2>
94 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.geom.RectangularShape
95 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.geom.Rectangle2D
96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.awt.Rectangle
97 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.libjpegturbo.turbojpeg.TJTransform</B>
100 <DT><B>All Implemented Interfaces:</B> <DD>java.awt.Shape, java.io.Serializable, java.lang.Cloneable</DD>
104 <DT><PRE>public class <B>TJTransform</B><DT>extends java.awt.Rectangle</DL>
108 Lossless transform parameters
113 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.libjpegturbo.turbojpeg.TJTransform">Serialized Form</A></DL>
117 <!-- ======== NESTED CLASS SUMMARY ======== -->
119 <A NAME="nested_class_summary"><!-- --></A>
120 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123 <B>Nested Class Summary</B></FONT></TH>
126 <A NAME="nested_classes_inherited_from_class_java.awt.geom.Rectangle2D"><!-- --></A>
127 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
129 <TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D</B></TH>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD><CODE>java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float</CODE></TD>
136 <!-- =========== FIELD SUMMARY =========== -->
138 <A NAME="field_summary"><!-- --></A>
139 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142 <B>Field Summary</B></FONT></TH>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE> <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A></CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#cf">cf</A></B></CODE>
150 Custom filter instance</TD>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE>static int</CODE></FONT></TD>
155 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#NUMOP">NUMOP</A></B></CODE>
158 The number of lossless transform operations</TD>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE> int</CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#op">op</A></B></CODE>
166 Transform operation (one of <code>OP_*</code>)</TD>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>static int</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_HFLIP">OP_HFLIP</A></B></CODE>
174 Flip (mirror) image horizontally.</TD>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE>static int</CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_NONE">OP_NONE</A></B></CODE>
182 Do not transform the position of the image pixels.</TD>
184 <TR BGCOLOR="white" CLASS="TableRowColor">
185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186 <CODE>static int</CODE></FONT></TD>
187 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT180">OP_ROT180</A></B></CODE>
190 Rotate image 180 degrees.</TD>
192 <TR BGCOLOR="white" CLASS="TableRowColor">
193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194 <CODE>static int</CODE></FONT></TD>
195 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT270">OP_ROT270</A></B></CODE>
198 Rotate image counter-clockwise by 90 degrees.</TD>
200 <TR BGCOLOR="white" CLASS="TableRowColor">
201 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202 <CODE>static int</CODE></FONT></TD>
203 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_ROT90">OP_ROT90</A></B></CODE>
206 Rotate image clockwise by 90 degrees.</TD>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE>static int</CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_TRANSPOSE">OP_TRANSPOSE</A></B></CODE>
214 Transpose image (flip/mirror along upper left to lower right axis).</TD>
216 <TR BGCOLOR="white" CLASS="TableRowColor">
217 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218 <CODE>static int</CODE></FONT></TD>
219 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_TRANSVERSE">OP_TRANSVERSE</A></B></CODE>
222 Transverse transpose image (flip/mirror along upper right to lower left
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE>static int</CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OP_VFLIP">OP_VFLIP</A></B></CODE>
231 Flip (mirror) image vertically.</TD>
233 <TR BGCOLOR="white" CLASS="TableRowColor">
234 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235 <CODE>static int</CODE></FONT></TD>
236 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_CROP">OPT_CROP</A></B></CODE>
239 This option will enable lossless cropping.</TD>
241 <TR BGCOLOR="white" CLASS="TableRowColor">
242 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243 <CODE>static int</CODE></FONT></TD>
244 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_GRAY">OPT_GRAY</A></B></CODE>
247 This option will discard the color data in the input image and produce
248 a grayscale output image.</TD>
250 <TR BGCOLOR="white" CLASS="TableRowColor">
251 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
252 <CODE>static int</CODE></FONT></TD>
253 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_NOOUTPUT">OPT_NOOUTPUT</A></B></CODE>
256 This option will prevent <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> from outputting a JPEG image for this
257 particular transform.</TD>
259 <TR BGCOLOR="white" CLASS="TableRowColor">
260 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261 <CODE>static int</CODE></FONT></TD>
262 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT">OPT_PERFECT</A></B></CODE>
265 This option will cause <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> to throw an exception if the transform is not
268 <TR BGCOLOR="white" CLASS="TableRowColor">
269 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270 <CODE>static int</CODE></FONT></TD>
271 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_TRIM">OPT_TRIM</A></B></CODE>
274 This option will discard any partial MCU blocks that cannot be
277 <TR BGCOLOR="white" CLASS="TableRowColor">
278 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
279 <CODE> int</CODE></FONT></TD>
280 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#options">options</A></B></CODE>
283 Transform options (bitwise OR of one or more of <code>OPT_*</code>)</TD>
286 <A NAME="fields_inherited_from_class_java.awt.Rectangle"><!-- --></A>
287 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
289 <TH ALIGN="left"><B>Fields inherited from class java.awt.Rectangle</B></TH>
291 <TR BGCOLOR="white" CLASS="TableRowColor">
292 <TD><CODE>height, width, x, y</CODE></TD>
295 <A NAME="fields_inherited_from_class_java.awt.geom.Rectangle2D"><!-- --></A>
296 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
297 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
298 <TH ALIGN="left"><B>Fields inherited from class java.awt.geom.Rectangle2D</B></TH>
300 <TR BGCOLOR="white" CLASS="TableRowColor">
301 <TD><CODE>OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP</CODE></TD>
305 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
307 <A NAME="constructor_summary"><!-- --></A>
308 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
309 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
310 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
311 <B>Constructor Summary</B></FONT></TH>
313 <TR BGCOLOR="white" CLASS="TableRowColor">
314 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform()">TJTransform</A></B>()</CODE>
317 Create a new lossless transform instance.</TD>
319 <TR BGCOLOR="white" CLASS="TableRowColor">
320 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</A></B>(int x,
326 <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf)</CODE>
329 Create a new lossless transform instance with the given parameters.</TD>
331 <TR BGCOLOR="white" CLASS="TableRowColor">
332 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(java.awt.Rectangle, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)">TJTransform</A></B>(java.awt.Rectangle r,
335 <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf)</CODE>
338 Create a new lossless transform instance with the given parameters.</TD>
342 <!-- ========== METHOD SUMMARY =========== -->
344 <A NAME="method_summary"><!-- --></A>
345 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
346 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
347 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
348 <B>Method Summary</B></FONT></TH>
351 <A NAME="methods_inherited_from_class_java.awt.Rectangle"><!-- --></A>
352 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
353 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
354 <TH ALIGN="left"><B>Methods inherited from class java.awt.Rectangle</B></TH>
356 <TR BGCOLOR="white" CLASS="TableRowColor">
357 <TD><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></TD>
360 <A NAME="methods_inherited_from_class_java.awt.geom.Rectangle2D"><!-- --></A>
361 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
362 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
363 <TH ALIGN="left"><B>Methods inherited from class java.awt.geom.Rectangle2D</B></TH>
365 <TR BGCOLOR="white" CLASS="TableRowColor">
366 <TD><CODE>add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union</CODE></TD>
369 <A NAME="methods_inherited_from_class_java.awt.geom.RectangularShape"><!-- --></A>
370 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
371 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
372 <TH ALIGN="left"><B>Methods inherited from class java.awt.geom.RectangularShape</B></TH>
374 <TR BGCOLOR="white" CLASS="TableRowColor">
375 <TD><CODE>clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal</CODE></TD>
378 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
379 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
380 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
381 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
383 <TR BGCOLOR="white" CLASS="TableRowColor">
384 <TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
387 <A NAME="methods_inherited_from_class_java.awt.Shape"><!-- --></A>
388 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
389 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
390 <TH ALIGN="left"><B>Methods inherited from interface java.awt.Shape</B></TH>
392 <TR BGCOLOR="white" CLASS="TableRowColor">
393 <TD><CODE>contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects</CODE></TD>
399 <!-- ============ FIELD DETAIL =========== -->
401 <A NAME="field_detail"><!-- --></A>
402 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
403 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
404 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
405 <B>Field Detail</B></FONT></TH>
409 <A NAME="NUMOP"><!-- --></A><H3>
412 public static final int <B>NUMOP</B></PRE>
414 <DD>The number of lossless transform operations
417 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.NUMOP">Constant Field Values</A></DL>
421 <A NAME="OP_NONE"><!-- --></A><H3>
424 public static final int <B>OP_NONE</B></PRE>
426 <DD>Do not transform the position of the image pixels.
429 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_NONE">Constant Field Values</A></DL>
433 <A NAME="OP_HFLIP"><!-- --></A><H3>
436 public static final int <B>OP_HFLIP</B></PRE>
438 <DD>Flip (mirror) image horizontally. This transform is imperfect if there
439 are any partial MCU blocks on the right edge.
442 <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>,
443 <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_HFLIP">Constant Field Values</A></DL>
447 <A NAME="OP_VFLIP"><!-- --></A><H3>
450 public static final int <B>OP_VFLIP</B></PRE>
452 <DD>Flip (mirror) image vertically. This transform is imperfect if there are
453 any partial MCU blocks on the bottom edge.
456 <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>,
457 <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_VFLIP">Constant Field Values</A></DL>
461 <A NAME="OP_TRANSPOSE"><!-- --></A><H3>
464 public static final int <B>OP_TRANSPOSE</B></PRE>
466 <DD>Transpose image (flip/mirror along upper left to lower right axis). This
467 transform is always perfect.
470 <DT><B>See Also:</B><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_TRANSPOSE">Constant Field Values</A></DL>
475 <A NAME="OP_TRANSVERSE"><!-- --></A><H3>
478 public static final int <B>OP_TRANSVERSE</B></PRE>
480 <DD>Transverse transpose image (flip/mirror along upper right to lower left
481 axis). This transform is imperfect if there are any partial MCU blocks in
485 <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>,
486 <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_TRANSVERSE">Constant Field Values</A></DL>
490 <A NAME="OP_ROT90"><!-- --></A><H3>
493 public static final int <B>OP_ROT90</B></PRE>
495 <DD>Rotate image clockwise by 90 degrees. This transform is imperfect if
496 there are any partial MCU blocks on the bottom edge.
499 <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>,
500 <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT90">Constant Field Values</A></DL>
504 <A NAME="OP_ROT180"><!-- --></A><H3>
507 public static final int <B>OP_ROT180</B></PRE>
509 <DD>Rotate image 180 degrees. This transform is imperfect if there are any
510 partial MCU blocks in the image.
513 <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>,
514 <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT180">Constant Field Values</A></DL>
518 <A NAME="OP_ROT270"><!-- --></A><H3>
521 public static final int <B>OP_ROT270</B></PRE>
523 <DD>Rotate image counter-clockwise by 90 degrees. This transform is imperfect
524 if there are any partial MCU blocks on the right edge.
527 <DT><B>See Also:</B><DD><A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#OPT_PERFECT"><CODE>OPT_PERFECT</CODE></A>,
528 <A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OP_ROT270">Constant Field Values</A></DL>
532 <A NAME="OPT_PERFECT"><!-- --></A><H3>
535 public static final int <B>OPT_PERFECT</B></PRE>
537 <DD>This option will cause <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> to throw an exception if the transform is not
538 perfect. Lossless transforms operate on MCU blocks, whose size depends on
539 the level of chrominance subsampling used. If the image's width or height
540 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>
541 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
542 right and/or bottom edges. It is not possible to move these partial MCU
543 blocks to the top or left of the image, so any transform that would
544 require that is "imperfect." If this option is not specified, then any
545 partial MCU blocks that cannot be transformed will be left in place, which
546 will create odd-looking strips on the right or bottom edge of the image.
549 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_PERFECT">Constant Field Values</A></DL>
553 <A NAME="OPT_TRIM"><!-- --></A><H3>
556 public static final int <B>OPT_TRIM</B></PRE>
558 <DD>This option will discard any partial MCU blocks that cannot be
562 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_TRIM">Constant Field Values</A></DL>
566 <A NAME="OPT_CROP"><!-- --></A><H3>
569 public static final int <B>OPT_CROP</B></PRE>
571 <DD>This option will enable lossless cropping.
574 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_CROP">Constant Field Values</A></DL>
578 <A NAME="OPT_GRAY"><!-- --></A><H3>
581 public static final int <B>OPT_GRAY</B></PRE>
583 <DD>This option will discard the color data in the input image and produce
584 a grayscale output image.
587 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_GRAY">Constant Field Values</A></DL>
591 <A NAME="OPT_NOOUTPUT"><!-- --></A><H3>
594 public static final int <B>OPT_NOOUTPUT</B></PRE>
596 <DD>This option will prevent <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html#transform(byte[][], org.libjpegturbo.turbojpeg.TJTransform[], int)"><CODE>TJTransformer.transform()</CODE></A> from outputting a JPEG image for this
597 particular transform. This can be used in conjunction with a custom
598 filter to capture the transformed DCT coefficients without transcoding
602 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJTransform.OPT_NOOUTPUT">Constant Field Values</A></DL>
606 <A NAME="op"><!-- --></A><H3>
609 public int <B>op</B></PRE>
611 <DD>Transform operation (one of <code>OP_*</code>)
618 <A NAME="options"><!-- --></A><H3>
621 public int <B>options</B></PRE>
623 <DD>Transform options (bitwise OR of one or more of <code>OPT_*</code>)
630 <A NAME="cf"><!-- --></A><H3>
633 public <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> <B>cf</B></PRE>
635 <DD>Custom filter instance
641 <!-- ========= CONSTRUCTOR DETAIL ======== -->
643 <A NAME="constructor_detail"><!-- --></A>
644 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
645 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
646 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
647 <B>Constructor Detail</B></FONT></TH>
651 <A NAME="TJTransform()"><!-- --></A><H3>
654 public <B>TJTransform</B>()</PRE>
656 <DD>Create a new lossless transform instance.
661 <A NAME="TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)"><!-- --></A><H3>
664 public <B>TJTransform</B>(int x,
670 <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf)
671 throws java.lang.Exception</PRE>
673 <DD>Create a new lossless transform instance with the given parameters.
676 <DT><B>Parameters:</B><DD><CODE>x</CODE> - the left boundary of the cropping region. This must be evenly
677 divisible by the MCU block width (see <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)"><CODE>TJ.getMCUWidth(int)</CODE></A>)<DD><CODE>y</CODE> - the upper boundary of the cropping region. This must be evenly
678 divisible by the MCU block height (see <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)"><CODE>TJ.getMCUHeight(int)</CODE></A>)<DD><CODE>w</CODE> - the width of the cropping region. Setting this to 0 is the
679 equivalent of setting it to the width of the source JPEG image - x.<DD><CODE>h</CODE> - the height of the cropping region. Setting this to 0 is the
680 equivalent of setting it to the height of the source JPEG image - y.<DD><CODE>op</CODE> - one of the transform operations (<code>OP_*</code>)<DD><CODE>options</CODE> - the bitwise OR of one or more of the transform options
681 (<code>OPT_*</code>)<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
683 <DD><CODE>java.lang.Exception</CODE></DL>
687 <A NAME="TJTransform(java.awt.Rectangle, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)"><!-- --></A><H3>
690 public <B>TJTransform</B>(java.awt.Rectangle r,
693 <A HREF="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</A> cf)
694 throws java.lang.Exception</PRE>
696 <DD>Create a new lossless transform instance with the given parameters.
699 <DT><B>Parameters:</B><DD><CODE>r</CODE> - a <code>Rectangle</code> instance that specifies the cropping
700 region. See <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTransform(int, int, int, int, int, int, org.libjpegturbo.turbojpeg.TJCustomFilter)"><CODE>TJTransform(int, int, int, int, int, int, TJCustomFilter)</CODE></A> for more
701 detail.<DD><CODE>op</CODE> - one of the transform operations (<code>OP_*</code>)<DD><CODE>options</CODE> - the bitwise OR of one or more of the transform options
702 (<code>OPT_*</code>)<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
704 <DD><CODE>java.lang.Exception</CODE></DL>
706 <!-- ========= END OF CLASS DATA ========= -->
710 <!-- ======= START OF BOTTOM NAVBAR ====== -->
711 <A NAME="navbar_bottom"><!-- --></A>
712 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
713 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
715 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
716 <A NAME="navbar_bottom_firstrow"><!-- --></A>
717 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
718 <TR ALIGN="center" VALIGN="top">
719 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
720 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
721 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
722 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
723 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
724 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
728 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
734 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
735 <A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg"><B>PREV CLASS</B></A>
736 <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD>
737 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
738 <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" target="_top"><B>FRAMES</B></A>
739 <A HREF="TJTransform.html" target="_top"><B>NO FRAMES</B></A>
740 <SCRIPT type="text/javascript">
743 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
748 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
755 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
756 SUMMARY: <A HREF="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.awt.Rectangle">METHOD</A></FONT></TD>
757 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
758 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD>
761 <A NAME="skip-navbar_bottom"></A>
762 <!-- ======== END OF BOTTOM NAVBAR ======= -->