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