OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/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="Sty
le"> |
| 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="cl
ass in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></l
i> |
| 36 <li><a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="clas
s 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" ta
rget="_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">Nes
ted</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="../../../serializ
ed-form.html#org.libjpegturbo.turbojpeg.TJTransform">Serialized Form</a></dd></d
l> |
| 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.Rectangle2
D</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" summar
y="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/TJCustom
Filter.html" title="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a><
/code></td> |
| 153 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.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/T
JTransform.html#OPT_GRAY">OPT_GRAY</a></strong></code> |
| 227 <div class="block">This option will discard the color data in the input image an
d 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/T
JTransform.html#OPT_NOOUTPUT">OPT_NOOUTPUT</a></strong></code> |
| 234 <div class="block">This option will prevent <a href="../../../org/libjpegturbo/t
urbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJT
ransform[],%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/T
JTransform.html#OPT_PERFECT">OPT_PERFECT</a></strong></code> |
| 241 <div class="block">This option will cause <a href="../../../org/libjpegturbo/tur
bojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTra
nsform[],%20int)"><code>TJTransformer.transform()</code></a> to throw an excepti
on 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/T
JTransform.html#OPT_TRIM">OPT_TRIM</a></strong></code> |
| 248 <div class="block">This option will discard any partial MCU blocks that cannot b
e |
| 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/T
JTransform.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.Rectang
le2D"> |
| 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" summar
y="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/TJ
Transform.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/TJ
Transform.html#TJTransform(int,%20int,%20int,%20int,%20int,%20int,%20org.libjpeg
turbo.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" tit
le="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</code> |
| 299 <div class="block">Create a new lossless transform instance with the given param
eters.</div> |
| 300 </td> |
| 301 </tr> |
| 302 <tr class="altColor"> |
| 303 <td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJ
Transform.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" tit
le="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</code> |
| 307 <div class="block">Create a new lossless transform instance with the given param
eters.</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, g
etWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outc
ode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, s
etSize, 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.Rectan
gle2D"> |
| 328 <!-- --> |
| 329 </a> |
| 330 <h3>Methods inherited from class java.awt.geom.Rectangle2D</h3> |
| 331 <code>add, add, add, contains, contains, getPathIterator, getPathIterator, hashC
ode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, s
etRect, union</code></li> |
| 332 </ul> |
| 333 <ul class="blockList"> |
| 334 <li class="blockList"><a name="methods_inherited_from_class_java.awt.geom.Rectan
gularShape"> |
| 335 <!-- --> |
| 336 </a> |
| 337 <h3>Methods inherited from class java.awt.geom.RectangularShape</h3> |
| 338 <code>clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getM
axY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFr
ameFromCenter, 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 Valu
es</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 imperfec
t 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/libj
pegturbo/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/libj
pegturbo/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/libj
pegturbo/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/libj
pegturbo/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 impe
rfect 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/libj
pegturbo/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 the
re are any |
| 464 partial MCU blocks in the image.</div> |
| 465 <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/libj
pegturbo/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/libj
pegturbo/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/tur
bojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJTra
nsform[],%20int)"><code>TJTransformer.transform()</code></a> to throw an excepti
on 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/libjpe
gturbo/turbojpeg/TJ.html#getMCUWidth(int)"><code>TJ.getMCUWidth(int)</code></a> |
| 493 and <a href="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)"><co
de>TJ.getMCUHeight(int)</code></a>), then there will be partial MCU blocks on th
e |
| 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 b
e |
| 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 Val
ues</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 Val
ues</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 an
d 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 Val
ues</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/t
urbojpeg/TJTransformer.html#transform(byte[][],%20org.libjpegturbo.turbojpeg.TJT
ransform[],%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.htm
l" 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.TJ
CustomFilter)"> |
| 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" tit
le="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</pre> |
| 612 <div class="block">Create a new lossless transform instance with the given param
eters.</div> |
| 613 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - the lef
t boundary of the cropping region. This must be evenly |
| 614 divisible by the MCU block width (see <a href="../../../org/libjpegturbo/turboj
peg/TJ.html#getMCUWidth(int)"><code>TJ.getMCUWidth(int)</code></a>)</dd><dd><cod
e>y</code> - the upper boundary of the cropping region. This must be evenly |
| 615 divisible by the MCU block height (see <a href="../../../org/libjpegturbo/turbo
jpeg/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 |
| 616 equivalent of setting it to (width of the source JPEG image - |
| 617 <code>x</code>).</dd><dd><code>h</code> - the height of the cropping region. S
etting this to 0 is the |
| 618 equivalent of setting it to (height of the source JPEG image - |
| 619 <code>y</code>).</dd><dd><code>op</code> - one of the transform operations (<co
de>OP_*</code>)</dd><dd><code>options</code> - the bitwise OR of one or more of
the transform options |
| 620 (<code>OPT_*</code>)</dd><dd><code>cf</code> - an instance of an object that im
plements the <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" t
itle="interface in org.libjpegturbo.turbojpeg"><code>TJCustomFilter</code></a> i
nterface, or null if no custom filter is needed</dd></dl> |
| 621 </li> |
| 622 </ul> |
| 623 <a name="TJTransform(java.awt.Rectangle, int, int, org.libjpegturbo.turbojpeg.TJ
CustomFilter)"> |
| 624 <!-- --> |
| 625 </a> |
| 626 <ul class="blockListLast"> |
| 627 <li class="blockList"> |
| 628 <h4>TJTransform</h4> |
| 629 <pre>public TJTransform(java.awt.Rectangle r, |
| 630 int op, |
| 631 int options, |
| 632 <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" tit
le="interface in org.libjpegturbo.turbojpeg">TJCustomFilter</a> cf)</pre> |
| 633 <div class="block">Create a new lossless transform instance with the given param
eters.</div> |
| 634 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>r</code> - a <code
>Rectangle</code> instance that specifies the cropping |
| 635 region. See <a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html#TJTr
ansform(int,%20int,%20int,%20int,%20int,%20int,%20org.libjpegturbo.turbojpeg.TJC
ustomFilter)"><code>TJTransform(int, int, int, int, int, int, TJCustomFilter)</c
ode></a> for more |
| 636 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 trans
form options |
| 637 (<code>OPT_*</code>)</dd><dd><code>cf</code> - an instance of an object that im
plements the <a href="../../../org/libjpegturbo/turbojpeg/TJCustomFilter.html" t
itle="interface in org.libjpegturbo.turbojpeg"><code>TJCustomFilter</code></a> i
nterface, or null if no custom filter is needed</dd></dl> |
| 638 </li> |
| 639 </ul> |
| 640 </li> |
| 641 </ul> |
| 642 </li> |
| 643 </ul> |
| 644 </div> |
| 645 </div> |
| 646 <!-- ========= END OF CLASS DATA ========= --> |
| 647 <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| 648 <div class="bottomNav"><a name="navbar_bottom"> |
| 649 <!-- --> |
| 650 </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="nav
bar_bottom_firstrow"> |
| 651 <!-- --> |
| 652 </a> |
| 653 <ul class="navList" title="Navigation"> |
| 654 <li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</
a></li> |
| 655 <li class="navBarCell1Rev">Class</li> |
| 656 <li><a href="package-tree.html">Tree</a></li> |
| 657 <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| 658 <li><a href="../../../index-all.html">Index</a></li> |
| 659 <li><a href="../../../help-doc.html">Help</a></li> |
| 660 </ul> |
| 661 </div> |
| 662 <div class="subNav"> |
| 663 <ul class="navList"> |
| 664 <li><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="cl
ass in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></l
i> |
| 665 <li><a href="../../../org/libjpegturbo/turbojpeg/TJTransformer.html" title="clas
s in org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li> |
| 666 </ul> |
| 667 <ul class="navList"> |
| 668 <li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJTransform.html" ta
rget="_top">Frames</a></li> |
| 669 <li><a href="TJTransform.html" target="_top">No Frames</a></li> |
| 670 </ul> |
| 671 <ul class="navList" id="allclasses_navbar_bottom"> |
| 672 <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| 673 </ul> |
| 674 <div> |
| 675 <script type="text/javascript"><!-- |
| 676 allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| 677 if(window==top) { |
| 678 allClassesLink.style.display = "block"; |
| 679 } |
| 680 else { |
| 681 allClassesLink.style.display = "none"; |
| 682 } |
| 683 //--> |
| 684 </script> |
| 685 </div> |
| 686 <div> |
| 687 <ul class="subNavList"> |
| 688 <li>Summary: </li> |
| 689 <li><a href="#nested_classes_inherited_from_class_java.awt.geom.Rectangle2D">Nes
ted</a> | </li> |
| 690 <li><a href="#field_summary">Field</a> | </li> |
| 691 <li><a href="#constructor_summary">Constr</a> | </li> |
| 692 <li><a href="#methods_inherited_from_class_java.awt.Rectangle">Method</a></li> |
| 693 </ul> |
| 694 <ul class="subNavList"> |
| 695 <li>Detail: </li> |
| 696 <li><a href="#field_detail">Field</a> | </li> |
| 697 <li><a href="#constructor_detail">Constr</a> | </li> |
| 698 <li>Method</li> |
| 699 </ul> |
| 700 </div> |
| 701 <a name="skip-navbar_bottom"> |
| 702 <!-- --> |
| 703 </a></div> |
| 704 <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| 705 </body> |
| 706 </html> |
OLD | NEW |