update latest
[external/libjpeg-turbo.git] / java / doc / org / libjpegturbo / turbojpeg / TJ.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_29) on Sun Dec 18 20:09:44 CST 2011 -->
6 <TITLE>
7 TJ
8 </TITLE>
9
10 <META NAME="date" CONTENT="2011-12-18">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17     if (location.href.indexOf('is-external=true') == -1) {
18         parent.document.title="TJ";
19     }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
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="">
35 <TR>
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>&nbsp;</TD>
41   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
42   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
46   </TR>
47 </TABLE>
48 </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50 </EM>
51 </TD>
52 </TR>
53
54 <TR>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 &nbsp;PREV CLASS&nbsp;
57 &nbsp;<A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.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/TJ.html" target="_top"><B>FRAMES</B></A>  &nbsp;
60 &nbsp;<A HREF="TJ.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
61 &nbsp;<SCRIPT type="text/javascript">
62   <!--
63   if(window==top) {
64     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
65   }
66   //-->
67 </SCRIPT>
68 <NOSCRIPT>
69   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
70 </NOSCRIPT>
71
72
73 </FONT></TD>
74 </TR>
75 <TR>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80 </TR>
81 </TABLE>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
84
85 <HR>
86 <!-- ======== START OF CLASS DATA ======== -->
87 <H2>
88 <FONT SIZE="-1">
89 org.libjpegturbo.turbojpeg</FONT>
90 <BR>
91 Class TJ</H2>
92 <PRE>
93 java.lang.Object
94   <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.libjpegturbo.turbojpeg.TJ</B>
95 </PRE>
96 <HR>
97 <DL>
98 <DT><PRE>public final class <B>TJ</B><DT>extends java.lang.Object</DL>
99 </PRE>
100
101 <P>
102 TurboJPEG utility class (cannot be instantiated)
103 <P>
104
105 <P>
106 <HR>
107
108 <P>
109 <!-- =========== FIELD SUMMARY =========== -->
110
111 <A NAME="field_summary"><!-- --></A>
112 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
113 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
114 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
115 <B>Field Summary</B></FONT></TH>
116 </TR>
117 <TR BGCOLOR="white" CLASS="TableRowColor">
118 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119 <CODE>static&nbsp;int</CODE></FONT></TD>
120 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_BOTTOMUP">FLAG_BOTTOMUP</A></B></CODE>
121
122 <BR>
123 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The uncompressed source/destination image is stored in bottom-up (Windows,
124  OpenGL) order, not top-down (X11) order.</TD>
125 </TR>
126 <TR BGCOLOR="white" CLASS="TableRowColor">
127 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128 <CODE>static&nbsp;int</CODE></FONT></TD>
129 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FASTUPSAMPLE">FLAG_FASTUPSAMPLE</A></B></CODE>
130
131 <BR>
132 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use fast, inaccurate chrominance upsampling routines in the JPEG
133  decompressor (libjpeg and libjpeg-turbo versions only.)</TD>
134 </TR>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE>static&nbsp;int</CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCEMMX">FLAG_FORCEMMX</A></B></CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use MMX code
142  (IPP and 32-bit libjpeg-turbo versions only.)</TD>
143 </TR>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE>static&nbsp;int</CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCESSE">FLAG_FORCESSE</A></B></CODE>
148
149 <BR>
150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use SSE code
151  (32-bit IPP and 32-bit libjpeg-turbo versions only.)</TD>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155 <CODE>static&nbsp;int</CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCESSE2">FLAG_FORCESSE2</A></B></CODE>
157
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use SSE2 code
160  (32-bit IPP and 32-bit libjpeg-turbo versions only.)</TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164 <CODE>static&nbsp;int</CODE></FONT></TD>
165 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCESSE3">FLAG_FORCESSE3</A></B></CODE>
166
167 <BR>
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use SSE3 code
169 (64-bit IPP version only.)</TD>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE>static&nbsp;int</CODE></FONT></TD>
174 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#NUMPF">NUMPF</A></B></CODE>
175
176 <BR>
177 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The number of pixel formats</TD>
178 </TR>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181 <CODE>static&nbsp;int</CODE></FONT></TD>
182 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#NUMSAMP">NUMSAMP</A></B></CODE>
183
184 <BR>
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The number of chrominance subsampling options</TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>static&nbsp;int</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_ABGR">PF_ABGR</A></B></CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ABGR pixel format.</TD>
194 </TR>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE>static&nbsp;int</CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_ARGB">PF_ARGB</A></B></CODE>
199
200 <BR>
201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARGB pixel format.</TD>
202 </TR>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE>static&nbsp;int</CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGR">PF_BGR</A></B></CODE>
207
208 <BR>
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BGR pixel format.</TD>
210 </TR>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE>static&nbsp;int</CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGRA">PF_BGRA</A></B></CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BGRA pixel format.</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>static&nbsp;int</CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGRX">PF_BGRX</A></B></CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BGRX pixel format.</TD>
226 </TR>
227 <TR BGCOLOR="white" CLASS="TableRowColor">
228 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229 <CODE>static&nbsp;int</CODE></FONT></TD>
230 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_GRAY">PF_GRAY</A></B></CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grayscale pixel format.</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE>static&nbsp;int</CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_RGB">PF_RGB</A></B></CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGB pixel format.</TD>
242 </TR>
243 <TR BGCOLOR="white" CLASS="TableRowColor">
244 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
245 <CODE>static&nbsp;int</CODE></FONT></TD>
246 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_RGBA">PF_RGBA</A></B></CODE>
247
248 <BR>
249 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGBA pixel format.</TD>
250 </TR>
251 <TR BGCOLOR="white" CLASS="TableRowColor">
252 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253 <CODE>static&nbsp;int</CODE></FONT></TD>
254 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_RGBX">PF_RGBX</A></B></CODE>
255
256 <BR>
257 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGBX pixel format.</TD>
258 </TR>
259 <TR BGCOLOR="white" CLASS="TableRowColor">
260 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261 <CODE>static&nbsp;int</CODE></FONT></TD>
262 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_XBGR">PF_XBGR</A></B></CODE>
263
264 <BR>
265 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XBGR pixel format.</TD>
266 </TR>
267 <TR BGCOLOR="white" CLASS="TableRowColor">
268 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269 <CODE>static&nbsp;int</CODE></FONT></TD>
270 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_XRGB">PF_XRGB</A></B></CODE>
271
272 <BR>
273 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XRGB pixel format.</TD>
274 </TR>
275 <TR BGCOLOR="white" CLASS="TableRowColor">
276 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
277 <CODE>static&nbsp;int</CODE></FONT></TD>
278 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_420">SAMP_420</A></B></CODE>
279
280 <BR>
281 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:2:0 chrominance subsampling.</TD>
282 </TR>
283 <TR BGCOLOR="white" CLASS="TableRowColor">
284 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
285 <CODE>static&nbsp;int</CODE></FONT></TD>
286 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_422">SAMP_422</A></B></CODE>
287
288 <BR>
289 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:2:2 chrominance subsampling.</TD>
290 </TR>
291 <TR BGCOLOR="white" CLASS="TableRowColor">
292 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293 <CODE>static&nbsp;int</CODE></FONT></TD>
294 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_440">SAMP_440</A></B></CODE>
295
296 <BR>
297 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:4:0 chrominance subsampling.</TD>
298 </TR>
299 <TR BGCOLOR="white" CLASS="TableRowColor">
300 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
301 <CODE>static&nbsp;int</CODE></FONT></TD>
302 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_444">SAMP_444</A></B></CODE>
303
304 <BR>
305 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:4:4 chrominance subsampling (no chrominance subsampling).</TD>
306 </TR>
307 <TR BGCOLOR="white" CLASS="TableRowColor">
308 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
309 <CODE>static&nbsp;int</CODE></FONT></TD>
310 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_GRAY">SAMP_GRAY</A></B></CODE>
311
312 <BR>
313 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grayscale.</TD>
314 </TR>
315 </TABLE>
316 &nbsp;
317 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
318
319 <A NAME="constructor_summary"><!-- --></A>
320 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
321 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
322 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
323 <B>Constructor Summary</B></FONT></TH>
324 </TR>
325 <TR BGCOLOR="white" CLASS="TableRowColor">
326 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#TJ()">TJ</A></B>()</CODE>
327
328 <BR>
329 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
330 </TR>
331 </TABLE>
332 &nbsp;
333 <!-- ========== METHOD SUMMARY =========== -->
334
335 <A NAME="method_summary"><!-- --></A>
336 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
337 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
338 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
339 <B>Method Summary</B></FONT></TH>
340 </TR>
341 <TR BGCOLOR="white" CLASS="TableRowColor">
342 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
343 <CODE>static&nbsp;int</CODE></FONT></TD>
344 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#bufSize(int, int, int)">bufSize</A></B>(int&nbsp;width,
345         int&nbsp;height,
346         int&nbsp;jpegSubsamp)</CODE>
347
348 <BR>
349 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum size of the buffer (in bytes) required to hold a JPEG
350  image with the given width and height, and level of chrominance
351  subsampling.</TD>
352 </TR>
353 <TR BGCOLOR="white" CLASS="TableRowColor">
354 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
355 <CODE>static&nbsp;int</CODE></FONT></TD>
356 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#bufSizeYUV(int, int, int)">bufSizeYUV</A></B>(int&nbsp;width,
357            int&nbsp;height,
358            int&nbsp;subsamp)</CODE>
359
360 <BR>
361 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the buffer (in bytes) required to hold a YUV planar
362  image with the given width, height, and level of chrominance subsampling.</TD>
363 </TR>
364 <TR BGCOLOR="white" CLASS="TableRowColor">
365 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
366 <CODE>static&nbsp;int</CODE></FONT></TD>
367 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getBlueOffset(int)">getBlueOffset</A></B>(int&nbsp;pixelFormat)</CODE>
368
369 <BR>
370 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the given pixel format, returns the number of bytes that the blue
371  component is offset from the start of the pixel.</TD>
372 </TR>
373 <TR BGCOLOR="white" CLASS="TableRowColor">
374 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
375 <CODE>static&nbsp;int</CODE></FONT></TD>
376 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getGreenOffset(int)">getGreenOffset</A></B>(int&nbsp;pixelFormat)</CODE>
377
378 <BR>
379 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the given pixel format, returns the number of bytes that the green
380  component is offset from the start of the pixel.</TD>
381 </TR>
382 <TR BGCOLOR="white" CLASS="TableRowColor">
383 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
384 <CODE>static&nbsp;int</CODE></FONT></TD>
385 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)">getMCUHeight</A></B>(int&nbsp;subsamp)</CODE>
386
387 <BR>
388 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the MCU block height for the given level of chrominance
389  subsampling.</TD>
390 </TR>
391 <TR BGCOLOR="white" CLASS="TableRowColor">
392 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
393 <CODE>static&nbsp;int</CODE></FONT></TD>
394 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)">getMCUWidth</A></B>(int&nbsp;subsamp)</CODE>
395
396 <BR>
397 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the MCU block width for the given level of chrominance
398  subsampling.</TD>
399 </TR>
400 <TR BGCOLOR="white" CLASS="TableRowColor">
401 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
402 <CODE>static&nbsp;int</CODE></FONT></TD>
403 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getPixelSize(int)">getPixelSize</A></B>(int&nbsp;pixelFormat)</CODE>
404
405 <BR>
406 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the pixel size (in bytes) of the given pixel format.</TD>
407 </TR>
408 <TR BGCOLOR="white" CLASS="TableRowColor">
409 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
410 <CODE>static&nbsp;int</CODE></FONT></TD>
411 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getRedOffset(int)">getRedOffset</A></B>(int&nbsp;pixelFormat)</CODE>
412
413 <BR>
414 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the given pixel format, returns the number of bytes that the red
415  component is offset from the start of the pixel.</TD>
416 </TR>
417 <TR BGCOLOR="white" CLASS="TableRowColor">
418 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
419 <CODE>static&nbsp;<A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</A>[]</CODE></FONT></TD>
420 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getScalingFactors()">getScalingFactors</A></B>()</CODE>
421
422 <BR>
423 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of fractional scaling factors that the JPEG decompressor in
424  this implementation of TurboJPEG supports.</TD>
425 </TR>
426 </TABLE>
427 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
428 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
429 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
430 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
431 </TR>
432 <TR BGCOLOR="white" CLASS="TableRowColor">
433 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
434 </TR>
435 </TABLE>
436 &nbsp;
437 <P>
438
439 <!-- ============ FIELD DETAIL =========== -->
440
441 <A NAME="field_detail"><!-- --></A>
442 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
443 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
444 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
445 <B>Field Detail</B></FONT></TH>
446 </TR>
447 </TABLE>
448
449 <A NAME="NUMSAMP"><!-- --></A><H3>
450 NUMSAMP</H3>
451 <PRE>
452 public static final int <B>NUMSAMP</B></PRE>
453 <DL>
454 <DD>The number of chrominance subsampling options
455 <P>
456 <DL>
457 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.NUMSAMP">Constant Field Values</A></DL>
458 </DL>
459 <HR>
460
461 <A NAME="SAMP_444"><!-- --></A><H3>
462 SAMP_444</H3>
463 <PRE>
464 public static final int <B>SAMP_444</B></PRE>
465 <DL>
466 <DD>4:4:4 chrominance subsampling (no chrominance subsampling).  The JPEG
467  or YUV image will contain one chrominance component for every pixel in the
468  source image.
469 <P>
470 <DL>
471 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_444">Constant Field Values</A></DL>
472 </DL>
473 <HR>
474
475 <A NAME="SAMP_422"><!-- --></A><H3>
476 SAMP_422</H3>
477 <PRE>
478 public static final int <B>SAMP_422</B></PRE>
479 <DL>
480 <DD>4:2:2 chrominance subsampling.  The JPEG or YUV image will contain one
481  chrominance component for every 2x1 block of pixels in the source image.
482 <P>
483 <DL>
484 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_422">Constant Field Values</A></DL>
485 </DL>
486 <HR>
487
488 <A NAME="SAMP_420"><!-- --></A><H3>
489 SAMP_420</H3>
490 <PRE>
491 public static final int <B>SAMP_420</B></PRE>
492 <DL>
493 <DD>4:2:0 chrominance subsampling.  The JPEG or YUV image will contain one
494  chrominance component for every 2x2 block of pixels in the source image.
495 <P>
496 <DL>
497 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_420">Constant Field Values</A></DL>
498 </DL>
499 <HR>
500
501 <A NAME="SAMP_GRAY"><!-- --></A><H3>
502 SAMP_GRAY</H3>
503 <PRE>
504 public static final int <B>SAMP_GRAY</B></PRE>
505 <DL>
506 <DD>Grayscale.  The JPEG or YUV image will contain no chrominance components.
507 <P>
508 <DL>
509 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_GRAY">Constant Field Values</A></DL>
510 </DL>
511 <HR>
512
513 <A NAME="SAMP_440"><!-- --></A><H3>
514 SAMP_440</H3>
515 <PRE>
516 public static final int <B>SAMP_440</B></PRE>
517 <DL>
518 <DD>4:4:0 chrominance subsampling.  The JPEG or YUV image will contain one
519  chrominance component for every 1x2 block of pixels in the source image.
520 <P>
521 <DL>
522 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_440">Constant Field Values</A></DL>
523 </DL>
524 <HR>
525
526 <A NAME="NUMPF"><!-- --></A><H3>
527 NUMPF</H3>
528 <PRE>
529 public static final int <B>NUMPF</B></PRE>
530 <DL>
531 <DD>The number of pixel formats
532 <P>
533 <DL>
534 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.NUMPF">Constant Field Values</A></DL>
535 </DL>
536 <HR>
537
538 <A NAME="PF_RGB"><!-- --></A><H3>
539 PF_RGB</H3>
540 <PRE>
541 public static final int <B>PF_RGB</B></PRE>
542 <DL>
543 <DD>RGB pixel format.  The red, green, and blue components in the image are
544  stored in 3-byte pixels in the order R, G, B from lowest to highest byte
545  address within each pixel.
546 <P>
547 <DL>
548 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_RGB">Constant Field Values</A></DL>
549 </DL>
550 <HR>
551
552 <A NAME="PF_BGR"><!-- --></A><H3>
553 PF_BGR</H3>
554 <PRE>
555 public static final int <B>PF_BGR</B></PRE>
556 <DL>
557 <DD>BGR pixel format.  The red, green, and blue components in the image are
558  stored in 3-byte pixels in the order B, G, R from lowest to highest byte
559  address within each pixel.
560 <P>
561 <DL>
562 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_BGR">Constant Field Values</A></DL>
563 </DL>
564 <HR>
565
566 <A NAME="PF_RGBX"><!-- --></A><H3>
567 PF_RGBX</H3>
568 <PRE>
569 public static final int <B>PF_RGBX</B></PRE>
570 <DL>
571 <DD>RGBX pixel format.  The red, green, and blue components in the image are
572  stored in 4-byte pixels in the order R, G, B from lowest to highest byte
573  address within each pixel.  The X component is ignored when compressing
574  and undefined when decompressing.
575 <P>
576 <DL>
577 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_RGBX">Constant Field Values</A></DL>
578 </DL>
579 <HR>
580
581 <A NAME="PF_BGRX"><!-- --></A><H3>
582 PF_BGRX</H3>
583 <PRE>
584 public static final int <B>PF_BGRX</B></PRE>
585 <DL>
586 <DD>BGRX pixel format.  The red, green, and blue components in the image are
587  stored in 4-byte pixels in the order B, G, R from lowest to highest byte
588  address within each pixel.  The X component is ignored when compressing
589  and undefined when decompressing.
590 <P>
591 <DL>
592 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_BGRX">Constant Field Values</A></DL>
593 </DL>
594 <HR>
595
596 <A NAME="PF_XBGR"><!-- --></A><H3>
597 PF_XBGR</H3>
598 <PRE>
599 public static final int <B>PF_XBGR</B></PRE>
600 <DL>
601 <DD>XBGR pixel format.  The red, green, and blue components in the image are
602  stored in 4-byte pixels in the order R, G, B from highest to lowest byte
603  address within each pixel.  The X component is ignored when compressing
604  and undefined when decompressing.
605 <P>
606 <DL>
607 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_XBGR">Constant Field Values</A></DL>
608 </DL>
609 <HR>
610
611 <A NAME="PF_XRGB"><!-- --></A><H3>
612 PF_XRGB</H3>
613 <PRE>
614 public static final int <B>PF_XRGB</B></PRE>
615 <DL>
616 <DD>XRGB pixel format.  The red, green, and blue components in the image are
617  stored in 4-byte pixels in the order B, G, R from highest to lowest byte
618  address within each pixel.  The X component is ignored when compressing
619  and undefined when decompressing.
620 <P>
621 <DL>
622 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_XRGB">Constant Field Values</A></DL>
623 </DL>
624 <HR>
625
626 <A NAME="PF_GRAY"><!-- --></A><H3>
627 PF_GRAY</H3>
628 <PRE>
629 public static final int <B>PF_GRAY</B></PRE>
630 <DL>
631 <DD>Grayscale pixel format.  Each 1-byte pixel represents a luminance
632  (brightness) level from 0 to 255.
633 <P>
634 <DL>
635 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_GRAY">Constant Field Values</A></DL>
636 </DL>
637 <HR>
638
639 <A NAME="PF_RGBA"><!-- --></A><H3>
640 PF_RGBA</H3>
641 <PRE>
642 public static final int <B>PF_RGBA</B></PRE>
643 <DL>
644 <DD>RGBA pixel format.  This is the same as <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_RGBX"><CODE>PF_RGBX</CODE></A>, except that when
645  decompressing, the X byte is guaranteed to be 0xFF, which can be
646  interpreted as an opaque alpha channel.
647 <P>
648 <DL>
649 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_RGBA">Constant Field Values</A></DL>
650 </DL>
651 <HR>
652
653 <A NAME="PF_BGRA"><!-- --></A><H3>
654 PF_BGRA</H3>
655 <PRE>
656 public static final int <B>PF_BGRA</B></PRE>
657 <DL>
658 <DD>BGRA pixel format.  This is the same as <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGRX"><CODE>PF_BGRX</CODE></A>, except that when
659  decompressing, the X byte is guaranteed to be 0xFF, which can be
660  interpreted as an opaque alpha channel.
661 <P>
662 <DL>
663 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_BGRA">Constant Field Values</A></DL>
664 </DL>
665 <HR>
666
667 <A NAME="PF_ABGR"><!-- --></A><H3>
668 PF_ABGR</H3>
669 <PRE>
670 public static final int <B>PF_ABGR</B></PRE>
671 <DL>
672 <DD>ABGR pixel format.  This is the same as <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_XBGR"><CODE>PF_XBGR</CODE></A>, except that when
673  decompressing, the X byte is guaranteed to be 0xFF, which can be
674  interpreted as an opaque alpha channel.
675 <P>
676 <DL>
677 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_ABGR">Constant Field Values</A></DL>
678 </DL>
679 <HR>
680
681 <A NAME="PF_ARGB"><!-- --></A><H3>
682 PF_ARGB</H3>
683 <PRE>
684 public static final int <B>PF_ARGB</B></PRE>
685 <DL>
686 <DD>ARGB pixel format.  This is the same as <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_XRGB"><CODE>PF_XRGB</CODE></A>, except that when
687  decompressing, the X byte is guaranteed to be 0xFF, which can be
688  interpreted as an opaque alpha channel.
689 <P>
690 <DL>
691 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_ARGB">Constant Field Values</A></DL>
692 </DL>
693 <HR>
694
695 <A NAME="FLAG_BOTTOMUP"><!-- --></A><H3>
696 FLAG_BOTTOMUP</H3>
697 <PRE>
698 public static final int <B>FLAG_BOTTOMUP</B></PRE>
699 <DL>
700 <DD>The uncompressed source/destination image is stored in bottom-up (Windows,
701  OpenGL) order, not top-down (X11) order.
702 <P>
703 <DL>
704 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_BOTTOMUP">Constant Field Values</A></DL>
705 </DL>
706 <HR>
707
708 <A NAME="FLAG_FORCEMMX"><!-- --></A><H3>
709 FLAG_FORCEMMX</H3>
710 <PRE>
711 public static final int <B>FLAG_FORCEMMX</B></PRE>
712 <DL>
713 <DD>Turn off CPU auto-detection and force TurboJPEG to use MMX code
714  (IPP and 32-bit libjpeg-turbo versions only.)
715 <P>
716 <DL>
717 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCEMMX">Constant Field Values</A></DL>
718 </DL>
719 <HR>
720
721 <A NAME="FLAG_FORCESSE"><!-- --></A><H3>
722 FLAG_FORCESSE</H3>
723 <PRE>
724 public static final int <B>FLAG_FORCESSE</B></PRE>
725 <DL>
726 <DD>Turn off CPU auto-detection and force TurboJPEG to use SSE code
727  (32-bit IPP and 32-bit libjpeg-turbo versions only.)
728 <P>
729 <DL>
730 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCESSE">Constant Field Values</A></DL>
731 </DL>
732 <HR>
733
734 <A NAME="FLAG_FORCESSE2"><!-- --></A><H3>
735 FLAG_FORCESSE2</H3>
736 <PRE>
737 public static final int <B>FLAG_FORCESSE2</B></PRE>
738 <DL>
739 <DD>Turn off CPU auto-detection and force TurboJPEG to use SSE2 code
740  (32-bit IPP and 32-bit libjpeg-turbo versions only.)
741 <P>
742 <DL>
743 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCESSE2">Constant Field Values</A></DL>
744 </DL>
745 <HR>
746
747 <A NAME="FLAG_FORCESSE3"><!-- --></A><H3>
748 FLAG_FORCESSE3</H3>
749 <PRE>
750 public static final int <B>FLAG_FORCESSE3</B></PRE>
751 <DL>
752 <DD>Turn off CPU auto-detection and force TurboJPEG to use SSE3 code
753 (64-bit IPP version only.)
754 <P>
755 <DL>
756 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCESSE3">Constant Field Values</A></DL>
757 </DL>
758 <HR>
759
760 <A NAME="FLAG_FASTUPSAMPLE"><!-- --></A><H3>
761 FLAG_FASTUPSAMPLE</H3>
762 <PRE>
763 public static final int <B>FLAG_FASTUPSAMPLE</B></PRE>
764 <DL>
765 <DD>Use fast, inaccurate chrominance upsampling routines in the JPEG
766  decompressor (libjpeg and libjpeg-turbo versions only.)
767 <P>
768 <DL>
769 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FASTUPSAMPLE">Constant Field Values</A></DL>
770 </DL>
771
772 <!-- ========= CONSTRUCTOR DETAIL ======== -->
773
774 <A NAME="constructor_detail"><!-- --></A>
775 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
776 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
777 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
778 <B>Constructor Detail</B></FONT></TH>
779 </TR>
780 </TABLE>
781
782 <A NAME="TJ()"><!-- --></A><H3>
783 TJ</H3>
784 <PRE>
785 public <B>TJ</B>()</PRE>
786 <DL>
787 </DL>
788
789 <!-- ============ METHOD DETAIL ========== -->
790
791 <A NAME="method_detail"><!-- --></A>
792 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
793 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
794 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
795 <B>Method Detail</B></FONT></TH>
796 </TR>
797 </TABLE>
798
799 <A NAME="getMCUWidth(int)"><!-- --></A><H3>
800 getMCUWidth</H3>
801 <PRE>
802 public static int <B>getMCUWidth</B>(int&nbsp;subsamp)
803                        throws java.lang.Exception</PRE>
804 <DL>
805 <DD>Returns the MCU block width for the given level of chrominance
806  subsampling.
807 <P>
808 <DD><DL>
809 <DT><B>Parameters:</B><DD><CODE>subsamp</CODE> - the level of chrominance subsampling (one of
810  <code>SAMP_*</code>)
811 <DT><B>Returns:</B><DD>the MCU block width for the given level of chrominance subsampling
812 <DT><B>Throws:</B>
813 <DD><CODE>java.lang.Exception</CODE></DL>
814 </DD>
815 </DL>
816 <HR>
817
818 <A NAME="getMCUHeight(int)"><!-- --></A><H3>
819 getMCUHeight</H3>
820 <PRE>
821 public static int <B>getMCUHeight</B>(int&nbsp;subsamp)
822                         throws java.lang.Exception</PRE>
823 <DL>
824 <DD>Returns the MCU block height for the given level of chrominance
825  subsampling.
826 <P>
827 <DD><DL>
828 <DT><B>Parameters:</B><DD><CODE>subsamp</CODE> - the level of chrominance subsampling (one of
829  <code>SAMP_*</code>)
830 <DT><B>Returns:</B><DD>the MCU block height for the given level of chrominance
831  subsampling
832 <DT><B>Throws:</B>
833 <DD><CODE>java.lang.Exception</CODE></DL>
834 </DD>
835 </DL>
836 <HR>
837
838 <A NAME="getPixelSize(int)"><!-- --></A><H3>
839 getPixelSize</H3>
840 <PRE>
841 public static int <B>getPixelSize</B>(int&nbsp;pixelFormat)
842                         throws java.lang.Exception</PRE>
843 <DL>
844 <DD>Returns the pixel size (in bytes) of the given pixel format.
845 <P>
846 <DD><DL>
847 <DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
848 <DT><B>Returns:</B><DD>the pixel size (in bytes) of the given pixel format
849 <DT><B>Throws:</B>
850 <DD><CODE>java.lang.Exception</CODE></DL>
851 </DD>
852 </DL>
853 <HR>
854
855 <A NAME="getRedOffset(int)"><!-- --></A><H3>
856 getRedOffset</H3>
857 <PRE>
858 public static int <B>getRedOffset</B>(int&nbsp;pixelFormat)
859                         throws java.lang.Exception</PRE>
860 <DL>
861 <DD>For the given pixel format, returns the number of bytes that the red
862  component is offset from the start of the pixel.  For instance, if a pixel
863  of format <code>TJ.PF_BGRX</code> is stored in <code>char pixel[]</code>,
864  then the red component will be
865  <code>pixel[TJ.getRedOffset(TJ.PF_BGRX)]</code>.
866 <P>
867 <DD><DL>
868 <DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
869 <DT><B>Returns:</B><DD>the red offset for the given pixel format
870 <DT><B>Throws:</B>
871 <DD><CODE>java.lang.Exception</CODE></DL>
872 </DD>
873 </DL>
874 <HR>
875
876 <A NAME="getGreenOffset(int)"><!-- --></A><H3>
877 getGreenOffset</H3>
878 <PRE>
879 public static int <B>getGreenOffset</B>(int&nbsp;pixelFormat)
880                           throws java.lang.Exception</PRE>
881 <DL>
882 <DD>For the given pixel format, returns the number of bytes that the green
883  component is offset from the start of the pixel.  For instance, if a pixel
884  of format <code>TJ.PF_BGRX</code> is stored in <code>char pixel[]</code>,
885  then the green component will be
886  <code>pixel[TJ.getGreenOffset(TJ.PF_BGRX)]</code>.
887 <P>
888 <DD><DL>
889 <DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
890 <DT><B>Returns:</B><DD>the green offset for the given pixel format
891 <DT><B>Throws:</B>
892 <DD><CODE>java.lang.Exception</CODE></DL>
893 </DD>
894 </DL>
895 <HR>
896
897 <A NAME="getBlueOffset(int)"><!-- --></A><H3>
898 getBlueOffset</H3>
899 <PRE>
900 public static int <B>getBlueOffset</B>(int&nbsp;pixelFormat)
901                          throws java.lang.Exception</PRE>
902 <DL>
903 <DD>For the given pixel format, returns the number of bytes that the blue
904  component is offset from the start of the pixel.  For instance, if a pixel
905  of format <code>TJ.PF_BGRX</code> is stored in <code>char pixel[]</code>,
906  then the blue component will be
907  <code>pixel[TJ.getBlueOffset(TJ.PF_BGRX)]</code>.
908 <P>
909 <DD><DL>
910 <DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
911 <DT><B>Returns:</B><DD>the blue offset for the given pixel format
912 <DT><B>Throws:</B>
913 <DD><CODE>java.lang.Exception</CODE></DL>
914 </DD>
915 </DL>
916 <HR>
917
918 <A NAME="bufSize(int, int, int)"><!-- --></A><H3>
919 bufSize</H3>
920 <PRE>
921 public static int <B>bufSize</B>(int&nbsp;width,
922                           int&nbsp;height,
923                           int&nbsp;jpegSubsamp)
924                    throws java.lang.Exception</PRE>
925 <DL>
926 <DD>Returns the maximum size of the buffer (in bytes) required to hold a JPEG
927  image with the given width and height, and level of chrominance
928  subsampling.
929 <P>
930 <DD><DL>
931 <DT><B>Parameters:</B><DD><CODE>width</CODE> - the width (in pixels) of the JPEG image<DD><CODE>height</CODE> - the height (in pixels) of the JPEG image<DD><CODE>jpegSubsamp</CODE> - the level of chrominance subsampling to be used when
932  generating the JPEG image (one of <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html" title="class in org.libjpegturbo.turbojpeg"><CODE>TJ.SAMP_*</CODE></A>)
933 <DT><B>Returns:</B><DD>the maximum size of the buffer (in bytes) required to hold a JPEG
934  image with the given width and height, and level of chrominance
935  subsampling
936 <DT><B>Throws:</B>
937 <DD><CODE>java.lang.Exception</CODE></DL>
938 </DD>
939 </DL>
940 <HR>
941
942 <A NAME="bufSizeYUV(int, int, int)"><!-- --></A><H3>
943 bufSizeYUV</H3>
944 <PRE>
945 public static int <B>bufSizeYUV</B>(int&nbsp;width,
946                              int&nbsp;height,
947                              int&nbsp;subsamp)
948                       throws java.lang.Exception</PRE>
949 <DL>
950 <DD>Returns the size of the buffer (in bytes) required to hold a YUV planar
951  image with the given width, height, and level of chrominance subsampling.
952 <P>
953 <DD><DL>
954 <DT><B>Parameters:</B><DD><CODE>width</CODE> - the width (in pixels) of the YUV image<DD><CODE>height</CODE> - the height (in pixels) of the YUV image<DD><CODE>subsamp</CODE> - the level of chrominance subsampling used in the YUV
955  image (one of <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html" title="class in org.libjpegturbo.turbojpeg"><CODE>TJ.SAMP_*</CODE></A>)
956 <DT><B>Returns:</B><DD>the size of the buffer (in bytes) required to hold a YUV planar
957  image with the given width, height, and level of chrominance subsampling
958 <DT><B>Throws:</B>
959 <DD><CODE>java.lang.Exception</CODE></DL>
960 </DD>
961 </DL>
962 <HR>
963
964 <A NAME="getScalingFactors()"><!-- --></A><H3>
965 getScalingFactors</H3>
966 <PRE>
967 public static <A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</A>[] <B>getScalingFactors</B>()
968                                            throws java.lang.Exception</PRE>
969 <DL>
970 <DD>Returns a list of fractional scaling factors that the JPEG decompressor in
971  this implementation of TurboJPEG supports.
972 <P>
973 <DD><DL>
974
975 <DT><B>Returns:</B><DD>a list of fractional scaling factors that the JPEG decompressor in
976  this implementation of TurboJPEG supports
977 <DT><B>Throws:</B>
978 <DD><CODE>java.lang.Exception</CODE></DL>
979 </DD>
980 </DL>
981 <!-- ========= END OF CLASS DATA ========= -->
982 <HR>
983
984
985 <!-- ======= START OF BOTTOM NAVBAR ====== -->
986 <A NAME="navbar_bottom"><!-- --></A>
987 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
988 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
989 <TR>
990 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
991 <A NAME="navbar_bottom_firstrow"><!-- --></A>
992 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
993   <TR ALIGN="center" VALIGN="top">
994   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
995   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
996   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
997   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
998   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
999   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1000   </TR>
1001 </TABLE>
1002 </TD>
1003 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1004 </EM>
1005 </TD>
1006 </TR>
1007
1008 <TR>
1009 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1010 &nbsp;PREV CLASS&nbsp;
1011 &nbsp;<A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD>
1012 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1013   <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJ.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1014 &nbsp;<A HREF="TJ.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1015 &nbsp;<SCRIPT type="text/javascript">
1016   <!--
1017   if(window==top) {
1018     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
1019   }
1020   //-->
1021 </SCRIPT>
1022 <NOSCRIPT>
1023   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
1024 </NOSCRIPT>
1025
1026
1027 </FONT></TD>
1028 </TR>
1029 <TR>
1030 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1031   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1032 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1033 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1034 </TR>
1035 </TABLE>
1036 <A NAME="skip-navbar_bottom"></A>
1037 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1038
1039 <HR>
1040
1041 </BODY>
1042 </HTML>