blob: f90540641c192a9d72b11ad7c553069d5c5bef1f [file] [log] [blame]
DRC92549de2011-03-15 20:52:02 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
DRC92549de2011-03-15 20:52:02 +00005<TITLE>
6TJ
7</TITLE>
8
DRC92549de2011-03-15 20:52:02 +00009
10<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
11
12<SCRIPT type="text/javascript">
13function windowTitle()
14{
15 if (location.href.indexOf('is-external=true') == -1) {
16 parent.document.title="TJ";
17 }
18}
19</SCRIPT>
20<NOSCRIPT>
21</NOSCRIPT>
22
23</HEAD>
24
25<BODY BGCOLOR="white" onload="windowTitle();">
26<HR>
27
28
29<!-- ========= START OF TOP NAVBAR ======= -->
30<A NAME="navbar_top"><!-- --></A>
31<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33<TR>
34<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
35<A NAME="navbar_top_firstrow"><!-- --></A>
36<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
37 <TR ALIGN="center" VALIGN="top">
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44 </TR>
45</TABLE>
46</TD>
47<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48</EM>
49</TD>
50</TR>
51
52<TR>
53<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54&nbsp;PREV CLASS&nbsp;
DRCb2f94152011-04-02 02:09:03 +000055&nbsp;<A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD>
DRC92549de2011-03-15 20:52:02 +000056<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJ.html" target="_top"><B>FRAMES</B></A> &nbsp;
58&nbsp;<A HREF="TJ.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
59&nbsp;<SCRIPT type="text/javascript">
60 <!--
61 if(window==top) {
62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
63 }
64 //-->
65</SCRIPT>
66<NOSCRIPT>
67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
68</NOSCRIPT>
69
70
71</FONT></TD>
72</TR>
73<TR>
74<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DRCb2f94152011-04-02 02:09:03 +000075 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>
DRC92549de2011-03-15 20:52:02 +000076<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77DETAIL:&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>
78</TR>
79</TABLE>
80<A NAME="skip-navbar_top"></A>
81<!-- ========= END OF TOP NAVBAR ========= -->
82
83<HR>
84<!-- ======== START OF CLASS DATA ======== -->
85<H2>
86<FONT SIZE="-1">
87org.libjpegturbo.turbojpeg</FONT>
88<BR>
89Class TJ</H2>
90<PRE>
91java.lang.Object
92 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.libjpegturbo.turbojpeg.TJ</B>
93</PRE>
94<HR>
95<DL>
96<DT><PRE>public final class <B>TJ</B><DT>extends java.lang.Object</DL>
97</PRE>
98
99<P>
100TurboJPEG utility class (cannot be instantiated)
101<P>
102
103<P>
104<HR>
105
106<P>
DRCb2f94152011-04-02 02:09:03 +0000107<!-- =========== FIELD SUMMARY =========== -->
DRC92549de2011-03-15 20:52:02 +0000108
109<A NAME="field_summary"><!-- --></A>
110<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
113<B>Field Summary</B></FONT></TH>
114</TR>
115<TR BGCOLOR="white" CLASS="TableRowColor">
116<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117<CODE>static&nbsp;int</CODE></FONT></TD>
DRC73d74c12012-06-29 23:46:38 +0000118<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_ACCURATEDCT">FLAG_ACCURATEDCT</A></B></CODE>
119
120<BR>
121&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use the most accurate DCT/IDCT algorithm available in the underlying
122 codec.</TD>
123</TR>
124<TR BGCOLOR="white" CLASS="TableRowColor">
125<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
126<CODE>static&nbsp;int</CODE></FONT></TD>
DRC92549de2011-03-15 20:52:02 +0000127<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_BOTTOMUP">FLAG_BOTTOMUP</A></B></CODE>
128
129<BR>
130&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The uncompressed source/destination image is stored in bottom-up (Windows,
131 OpenGL) order, not top-down (X11) order.</TD>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135<CODE>static&nbsp;int</CODE></FONT></TD>
DRC73d74c12012-06-29 23:46:38 +0000136<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FASTDCT">FLAG_FASTDCT</A></B></CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use the fastest DCT/IDCT algorithm available in the underlying codec.</TD>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143<CODE>static&nbsp;int</CODE></FONT></TD>
DRC92549de2011-03-15 20:52:02 +0000144<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FASTUPSAMPLE">FLAG_FASTUPSAMPLE</A></B></CODE>
145
146<BR>
DRC65d4a462013-04-27 01:06:52 +0000147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When decompressing an image that was compressed using chrominance
148 subsampling, use the fastest chrominance upsampling algorithm available in
149 the underlying codec.</TD>
DRC92549de2011-03-15 20:52:02 +0000150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>static&nbsp;int</CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCEMMX">FLAG_FORCEMMX</A></B></CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use MMX code
DRC73d74c12012-06-29 23:46:38 +0000158 (if the underlying codec supports it.)</TD>
DRC92549de2011-03-15 20:52:02 +0000159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>static&nbsp;int</CODE></FONT></TD>
163<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCESSE">FLAG_FORCESSE</A></B></CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use SSE code
DRC73d74c12012-06-29 23:46:38 +0000167 (if the underlying codec supports it.)</TD>
DRC92549de2011-03-15 20:52:02 +0000168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171<CODE>static&nbsp;int</CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCESSE2">FLAG_FORCESSE2</A></B></CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use SSE2 code
DRC73d74c12012-06-29 23:46:38 +0000176 (if the underlying codec supports it.)</TD>
DRC92549de2011-03-15 20:52:02 +0000177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>static&nbsp;int</CODE></FONT></TD>
181<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#FLAG_FORCESSE3">FLAG_FORCESSE3</A></B></CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turn off CPU auto-detection and force TurboJPEG to use SSE3 code
DRC73d74c12012-06-29 23:46:38 +0000185 (if the underlying codec supports it.)</TD>
DRC92549de2011-03-15 20:52:02 +0000186</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#NUMPF">NUMPF</A></B></CODE>
191
192<BR>
193&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The number of pixel formats</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#NUMSAMP">NUMSAMP</A></B></CODE>
199
200<BR>
201&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The number of chrominance subsampling options</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>
DRC67ce3b22011-12-19 02:21:03 +0000206<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_ABGR">PF_ABGR</A></B></CODE>
207
208<BR>
209&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ABGR 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_ARGB">PF_ARGB</A></B></CODE>
215
216<BR>
217&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARGB 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>
DRC92549de2011-03-15 20:52:02 +0000222<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGR">PF_BGR</A></B></CODE>
223
224<BR>
225&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BGR 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>
DRC67ce3b22011-12-19 02:21:03 +0000230<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGRA">PF_BGRA</A></B></CODE>
231
232<BR>
233&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BGRA 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>
DRC92549de2011-03-15 20:52:02 +0000238<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_BGRX">PF_BGRX</A></B></CODE>
239
240<BR>
241&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BGRX 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_GRAY">PF_GRAY</A></B></CODE>
247
248<BR>
249&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grayscale 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_RGB">PF_RGB</A></B></CODE>
255
256<BR>
257&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGB 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>
DRC67ce3b22011-12-19 02:21:03 +0000262<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_RGBA">PF_RGBA</A></B></CODE>
263
264<BR>
265&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGBA 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>
DRC92549de2011-03-15 20:52:02 +0000270<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#PF_RGBX">PF_RGBX</A></B></CODE>
271
272<BR>
273&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RGBX 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#PF_XBGR">PF_XBGR</A></B></CODE>
279
280<BR>
281&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XBGR pixel format.</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#PF_XRGB">PF_XRGB</A></B></CODE>
287
288<BR>
289&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XRGB pixel format.</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_420">SAMP_420</A></B></CODE>
295
296<BR>
297&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:2: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_422">SAMP_422</A></B></CODE>
303
304<BR>
305&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:2:2 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_440">SAMP_440</A></B></CODE>
311
312<BR>
313&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:4:0 chrominance subsampling.</TD>
314</TR>
315<TR BGCOLOR="white" CLASS="TableRowColor">
316<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
317<CODE>static&nbsp;int</CODE></FONT></TD>
318<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_444">SAMP_444</A></B></CODE>
319
320<BR>
321&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4:4:4 chrominance subsampling (no chrominance subsampling).</TD>
322</TR>
323<TR BGCOLOR="white" CLASS="TableRowColor">
324<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
325<CODE>static&nbsp;int</CODE></FONT></TD>
326<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#SAMP_GRAY">SAMP_GRAY</A></B></CODE>
327
328<BR>
329&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grayscale.</TD>
330</TR>
331</TABLE>
332&nbsp;
333<!-- ======== CONSTRUCTOR SUMMARY ======== -->
334
335<A NAME="constructor_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>Constructor Summary</B></FONT></TH>
340</TR>
341<TR BGCOLOR="white" CLASS="TableRowColor">
342<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#TJ()">TJ</A></B>()</CODE>
343
344<BR>
345&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
346</TR>
347</TABLE>
348&nbsp;
349<!-- ========== METHOD SUMMARY =========== -->
350
351<A NAME="method_summary"><!-- --></A>
352<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
353<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
354<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
355<B>Method Summary</B></FONT></TH>
356</TR>
357<TR BGCOLOR="white" CLASS="TableRowColor">
358<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
359<CODE>static&nbsp;int</CODE></FONT></TD>
DRC9b49f0e2011-07-12 03:17:23 +0000360<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#bufSize(int, int, int)">bufSize</A></B>(int&nbsp;width,
361 int&nbsp;height,
362 int&nbsp;jpegSubsamp)</CODE>
DRC92549de2011-03-15 20:52:02 +0000363
364<BR>
365&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum size of the buffer (in bytes) required to hold a JPEG
DRC65d4a462013-04-27 01:06:52 +0000366 image with the given width, height, and level of chrominance subsampling.</TD>
DRC92549de2011-03-15 20:52:02 +0000367</TR>
368<TR BGCOLOR="white" CLASS="TableRowColor">
369<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
370<CODE>static&nbsp;int</CODE></FONT></TD>
371<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#bufSizeYUV(int, int, int)">bufSizeYUV</A></B>(int&nbsp;width,
372 int&nbsp;height,
373 int&nbsp;subsamp)</CODE>
374
375<BR>
DRC2c74e512011-03-16 00:02:53 +0000376&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the buffer (in bytes) required to hold a YUV planar
377 image with the given width, height, and level of chrominance subsampling.</TD>
DRC92549de2011-03-15 20:52:02 +0000378</TR>
379<TR BGCOLOR="white" CLASS="TableRowColor">
380<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
381<CODE>static&nbsp;int</CODE></FONT></TD>
DRC2c74e512011-03-16 00:02:53 +0000382<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getBlueOffset(int)">getBlueOffset</A></B>(int&nbsp;pixelFormat)</CODE>
DRC92549de2011-03-15 20:52:02 +0000383
384<BR>
DRC2c74e512011-03-16 00:02:53 +0000385&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the given pixel format, returns the number of bytes that the blue
386 component is offset from the start of the pixel.</TD>
DRC92549de2011-03-15 20:52:02 +0000387</TR>
388<TR BGCOLOR="white" CLASS="TableRowColor">
389<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
390<CODE>static&nbsp;int</CODE></FONT></TD>
DRC2c74e512011-03-16 00:02:53 +0000391<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getGreenOffset(int)">getGreenOffset</A></B>(int&nbsp;pixelFormat)</CODE>
DRC92549de2011-03-15 20:52:02 +0000392
393<BR>
DRC2c74e512011-03-16 00:02:53 +0000394&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the given pixel format, returns the number of bytes that the green
395 component is offset from the start of the pixel.</TD>
DRC92549de2011-03-15 20:52:02 +0000396</TR>
397<TR BGCOLOR="white" CLASS="TableRowColor">
398<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
399<CODE>static&nbsp;int</CODE></FONT></TD>
400<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUHeight(int)">getMCUHeight</A></B>(int&nbsp;subsamp)</CODE>
401
402<BR>
403&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the MCU block height for the given level of chrominance
404 subsampling.</TD>
405</TR>
406<TR BGCOLOR="white" CLASS="TableRowColor">
407<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
408<CODE>static&nbsp;int</CODE></FONT></TD>
409<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getMCUWidth(int)">getMCUWidth</A></B>(int&nbsp;subsamp)</CODE>
410
411<BR>
412&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the MCU block width for the given level of chrominance
413 subsampling.</TD>
414</TR>
415<TR BGCOLOR="white" CLASS="TableRowColor">
416<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
417<CODE>static&nbsp;int</CODE></FONT></TD>
418<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getPixelSize(int)">getPixelSize</A></B>(int&nbsp;pixelFormat)</CODE>
419
420<BR>
DRC65d4a462013-04-27 01:06:52 +0000421&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the pixel size (in bytes) for the given pixel format.</TD>
DRC92549de2011-03-15 20:52:02 +0000422</TR>
423<TR BGCOLOR="white" CLASS="TableRowColor">
424<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
425<CODE>static&nbsp;int</CODE></FONT></TD>
DRC2c74e512011-03-16 00:02:53 +0000426<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getRedOffset(int)">getRedOffset</A></B>(int&nbsp;pixelFormat)</CODE>
DRC92549de2011-03-15 20:52:02 +0000427
428<BR>
DRC2c74e512011-03-16 00:02:53 +0000429&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the given pixel format, returns the number of bytes that the red
430 component is offset from the start of the pixel.</TD>
DRC92549de2011-03-15 20:52:02 +0000431</TR>
432<TR BGCOLOR="white" CLASS="TableRowColor">
433<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
DRCb2f94152011-04-02 02:09:03 +0000434<CODE>static&nbsp;<A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</A>[]</CODE></FONT></TD>
DRC92549de2011-03-15 20:52:02 +0000435<TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html#getScalingFactors()">getScalingFactors</A></B>()</CODE>
436
437<BR>
438&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of fractional scaling factors that the JPEG decompressor in
439 this implementation of TurboJPEG supports.</TD>
440</TR>
441</TABLE>
442&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
443<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
444<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
445<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
446</TR>
447<TR BGCOLOR="white" CLASS="TableRowColor">
448<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
449</TR>
450</TABLE>
451&nbsp;
452<P>
453
454<!-- ============ FIELD DETAIL =========== -->
455
456<A NAME="field_detail"><!-- --></A>
457<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
458<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
459<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
460<B>Field Detail</B></FONT></TH>
461</TR>
462</TABLE>
463
464<A NAME="NUMSAMP"><!-- --></A><H3>
465NUMSAMP</H3>
466<PRE>
467public static final int <B>NUMSAMP</B></PRE>
468<DL>
469<DD>The number of chrominance subsampling options
470<P>
471<DL>
472<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.NUMSAMP">Constant Field Values</A></DL>
473</DL>
474<HR>
475
476<A NAME="SAMP_444"><!-- --></A><H3>
477SAMP_444</H3>
478<PRE>
479public static final int <B>SAMP_444</B></PRE>
480<DL>
481<DD>4:4:4 chrominance subsampling (no chrominance subsampling). The JPEG
482 or YUV image will contain one chrominance component for every pixel in the
483 source image.
484<P>
485<DL>
486<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_444">Constant Field Values</A></DL>
487</DL>
488<HR>
489
490<A NAME="SAMP_422"><!-- --></A><H3>
491SAMP_422</H3>
492<PRE>
493public static final int <B>SAMP_422</B></PRE>
494<DL>
495<DD>4:2:2 chrominance subsampling. The JPEG or YUV image will contain one
496 chrominance component for every 2x1 block of pixels in the source image.
497<P>
498<DL>
499<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_422">Constant Field Values</A></DL>
500</DL>
501<HR>
502
503<A NAME="SAMP_420"><!-- --></A><H3>
504SAMP_420</H3>
505<PRE>
506public static final int <B>SAMP_420</B></PRE>
507<DL>
508<DD>4:2:0 chrominance subsampling. The JPEG or YUV image will contain one
509 chrominance component for every 2x2 block of pixels in the source image.
510<P>
511<DL>
512<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_420">Constant Field Values</A></DL>
513</DL>
514<HR>
515
516<A NAME="SAMP_GRAY"><!-- --></A><H3>
517SAMP_GRAY</H3>
518<PRE>
519public static final int <B>SAMP_GRAY</B></PRE>
520<DL>
521<DD>Grayscale. The JPEG or YUV image will contain no chrominance components.
522<P>
523<DL>
524<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_GRAY">Constant Field Values</A></DL>
525</DL>
526<HR>
527
528<A NAME="SAMP_440"><!-- --></A><H3>
529SAMP_440</H3>
530<PRE>
531public static final int <B>SAMP_440</B></PRE>
532<DL>
533<DD>4:4:0 chrominance subsampling. The JPEG or YUV image will contain one
534 chrominance component for every 1x2 block of pixels in the source image.
DRCae924182013-08-18 10:47:07 +0000535 Note that 4:4:0 subsampling is not fully accelerated in libjpeg-turbo.
DRC92549de2011-03-15 20:52:02 +0000536<P>
537<DL>
538<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.SAMP_440">Constant Field Values</A></DL>
539</DL>
540<HR>
541
542<A NAME="NUMPF"><!-- --></A><H3>
543NUMPF</H3>
544<PRE>
545public static final int <B>NUMPF</B></PRE>
546<DL>
547<DD>The number of pixel formats
548<P>
549<DL>
550<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.NUMPF">Constant Field Values</A></DL>
551</DL>
552<HR>
553
554<A NAME="PF_RGB"><!-- --></A><H3>
555PF_RGB</H3>
556<PRE>
557public static final int <B>PF_RGB</B></PRE>
558<DL>
559<DD>RGB pixel format. The red, green, and blue components in the image are
560 stored in 3-byte pixels in the order R, G, B from lowest to highest byte
561 address within each pixel.
562<P>
563<DL>
564<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_RGB">Constant Field Values</A></DL>
565</DL>
566<HR>
567
568<A NAME="PF_BGR"><!-- --></A><H3>
569PF_BGR</H3>
570<PRE>
571public static final int <B>PF_BGR</B></PRE>
572<DL>
573<DD>BGR pixel format. The red, green, and blue components in the image are
574 stored in 3-byte pixels in the order B, G, R from lowest to highest byte
575 address within each pixel.
576<P>
577<DL>
578<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_BGR">Constant Field Values</A></DL>
579</DL>
580<HR>
581
582<A NAME="PF_RGBX"><!-- --></A><H3>
583PF_RGBX</H3>
584<PRE>
585public static final int <B>PF_RGBX</B></PRE>
586<DL>
587<DD>RGBX pixel format. The red, green, and blue components in the image are
588 stored in 4-byte pixels in the order R, G, B from lowest to highest byte
DRC67ce3b22011-12-19 02:21:03 +0000589 address within each pixel. The X component is ignored when compressing
590 and undefined when decompressing.
DRC92549de2011-03-15 20:52:02 +0000591<P>
592<DL>
593<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_RGBX">Constant Field Values</A></DL>
594</DL>
595<HR>
596
597<A NAME="PF_BGRX"><!-- --></A><H3>
598PF_BGRX</H3>
599<PRE>
600public static final int <B>PF_BGRX</B></PRE>
601<DL>
602<DD>BGRX pixel format. The red, green, and blue components in the image are
603 stored in 4-byte pixels in the order B, G, R from lowest to highest byte
DRC67ce3b22011-12-19 02:21:03 +0000604 address within each pixel. The X component is ignored when compressing
605 and undefined when decompressing.
DRC92549de2011-03-15 20:52:02 +0000606<P>
607<DL>
608<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_BGRX">Constant Field Values</A></DL>
609</DL>
610<HR>
611
612<A NAME="PF_XBGR"><!-- --></A><H3>
613PF_XBGR</H3>
614<PRE>
615public static final int <B>PF_XBGR</B></PRE>
616<DL>
617<DD>XBGR pixel format. The red, green, and blue components in the image are
618 stored in 4-byte pixels in the order R, G, B from highest to lowest byte
DRC67ce3b22011-12-19 02:21:03 +0000619 address within each pixel. The X component is ignored when compressing
620 and undefined when decompressing.
DRC92549de2011-03-15 20:52:02 +0000621<P>
622<DL>
623<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_XBGR">Constant Field Values</A></DL>
624</DL>
625<HR>
626
627<A NAME="PF_XRGB"><!-- --></A><H3>
628PF_XRGB</H3>
629<PRE>
630public static final int <B>PF_XRGB</B></PRE>
631<DL>
632<DD>XRGB pixel format. The red, green, and blue components in the image are
633 stored in 4-byte pixels in the order B, G, R from highest to lowest byte
DRC67ce3b22011-12-19 02:21:03 +0000634 address within each pixel. The X component is ignored when compressing
635 and undefined when decompressing.
DRC92549de2011-03-15 20:52:02 +0000636<P>
637<DL>
638<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_XRGB">Constant Field Values</A></DL>
639</DL>
640<HR>
641
642<A NAME="PF_GRAY"><!-- --></A><H3>
643PF_GRAY</H3>
644<PRE>
645public static final int <B>PF_GRAY</B></PRE>
646<DL>
647<DD>Grayscale pixel format. Each 1-byte pixel represents a luminance
648 (brightness) level from 0 to 255.
649<P>
650<DL>
651<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_GRAY">Constant Field Values</A></DL>
652</DL>
653<HR>
654
DRC67ce3b22011-12-19 02:21:03 +0000655<A NAME="PF_RGBA"><!-- --></A><H3>
656PF_RGBA</H3>
657<PRE>
658public static final int <B>PF_RGBA</B></PRE>
659<DL>
660<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
661 decompressing, the X byte is guaranteed to be 0xFF, which can be
662 interpreted as an opaque alpha channel.
663<P>
664<DL>
665<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_RGBA">Constant Field Values</A></DL>
666</DL>
667<HR>
668
669<A NAME="PF_BGRA"><!-- --></A><H3>
670PF_BGRA</H3>
671<PRE>
672public static final int <B>PF_BGRA</B></PRE>
673<DL>
674<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
675 decompressing, the X byte is guaranteed to be 0xFF, which can be
676 interpreted as an opaque alpha channel.
677<P>
678<DL>
679<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_BGRA">Constant Field Values</A></DL>
680</DL>
681<HR>
682
683<A NAME="PF_ABGR"><!-- --></A><H3>
684PF_ABGR</H3>
685<PRE>
686public static final int <B>PF_ABGR</B></PRE>
687<DL>
688<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
689 decompressing, the X byte is guaranteed to be 0xFF, which can be
690 interpreted as an opaque alpha channel.
691<P>
692<DL>
693<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_ABGR">Constant Field Values</A></DL>
694</DL>
695<HR>
696
697<A NAME="PF_ARGB"><!-- --></A><H3>
698PF_ARGB</H3>
699<PRE>
700public static final int <B>PF_ARGB</B></PRE>
701<DL>
702<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
703 decompressing, the X byte is guaranteed to be 0xFF, which can be
704 interpreted as an opaque alpha channel.
705<P>
706<DL>
707<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.PF_ARGB">Constant Field Values</A></DL>
708</DL>
709<HR>
710
DRC92549de2011-03-15 20:52:02 +0000711<A NAME="FLAG_BOTTOMUP"><!-- --></A><H3>
712FLAG_BOTTOMUP</H3>
713<PRE>
714public static final int <B>FLAG_BOTTOMUP</B></PRE>
715<DL>
716<DD>The uncompressed source/destination image is stored in bottom-up (Windows,
717 OpenGL) order, not top-down (X11) order.
718<P>
719<DL>
720<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_BOTTOMUP">Constant Field Values</A></DL>
721</DL>
722<HR>
723
724<A NAME="FLAG_FORCEMMX"><!-- --></A><H3>
725FLAG_FORCEMMX</H3>
726<PRE>
727public static final int <B>FLAG_FORCEMMX</B></PRE>
728<DL>
729<DD>Turn off CPU auto-detection and force TurboJPEG to use MMX code
DRC73d74c12012-06-29 23:46:38 +0000730 (if the underlying codec supports it.)
DRC92549de2011-03-15 20:52:02 +0000731<P>
732<DL>
733<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCEMMX">Constant Field Values</A></DL>
734</DL>
735<HR>
736
737<A NAME="FLAG_FORCESSE"><!-- --></A><H3>
738FLAG_FORCESSE</H3>
739<PRE>
740public static final int <B>FLAG_FORCESSE</B></PRE>
741<DL>
742<DD>Turn off CPU auto-detection and force TurboJPEG to use SSE code
DRC73d74c12012-06-29 23:46:38 +0000743 (if the underlying codec supports it.)
DRC92549de2011-03-15 20:52:02 +0000744<P>
745<DL>
746<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCESSE">Constant Field Values</A></DL>
747</DL>
748<HR>
749
750<A NAME="FLAG_FORCESSE2"><!-- --></A><H3>
751FLAG_FORCESSE2</H3>
752<PRE>
753public static final int <B>FLAG_FORCESSE2</B></PRE>
754<DL>
755<DD>Turn off CPU auto-detection and force TurboJPEG to use SSE2 code
DRC73d74c12012-06-29 23:46:38 +0000756 (if the underlying codec supports it.)
DRC92549de2011-03-15 20:52:02 +0000757<P>
758<DL>
759<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCESSE2">Constant Field Values</A></DL>
760</DL>
761<HR>
762
763<A NAME="FLAG_FORCESSE3"><!-- --></A><H3>
764FLAG_FORCESSE3</H3>
765<PRE>
766public static final int <B>FLAG_FORCESSE3</B></PRE>
767<DL>
768<DD>Turn off CPU auto-detection and force TurboJPEG to use SSE3 code
DRC73d74c12012-06-29 23:46:38 +0000769 (if the underlying codec supports it.)
DRC92549de2011-03-15 20:52:02 +0000770<P>
771<DL>
772<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FORCESSE3">Constant Field Values</A></DL>
773</DL>
774<HR>
775
776<A NAME="FLAG_FASTUPSAMPLE"><!-- --></A><H3>
777FLAG_FASTUPSAMPLE</H3>
778<PRE>
779public static final int <B>FLAG_FASTUPSAMPLE</B></PRE>
780<DL>
DRC65d4a462013-04-27 01:06:52 +0000781<DD>When decompressing an image that was compressed using chrominance
782 subsampling, use the fastest chrominance upsampling algorithm available in
783 the underlying codec. The default is to use smooth upsampling, which
784 creates a smooth transition between neighboring chrominance components in
785 order to reduce upsampling artifacts in the decompressed image.
DRC92549de2011-03-15 20:52:02 +0000786<P>
787<DL>
788<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FASTUPSAMPLE">Constant Field Values</A></DL>
789</DL>
DRC73d74c12012-06-29 23:46:38 +0000790<HR>
791
792<A NAME="FLAG_FASTDCT"><!-- --></A><H3>
793FLAG_FASTDCT</H3>
794<PRE>
795public static final int <B>FLAG_FASTDCT</B></PRE>
796<DL>
797<DD>Use the fastest DCT/IDCT algorithm available in the underlying codec. The
DRCae924182013-08-18 10:47:07 +0000798 default if this flag is not specified is implementation-specific. For
799 example, the implementation of TurboJPEG for libjpeg[-turbo] uses the fast
800 algorithm by default when compressing, because this has been shown to have
801 only a very slight effect on accuracy, but it uses the accurate algorithm
802 when decompressing, because this has been shown to have a larger effect.
DRC73d74c12012-06-29 23:46:38 +0000803<P>
804<DL>
805<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_FASTDCT">Constant Field Values</A></DL>
806</DL>
807<HR>
808
809<A NAME="FLAG_ACCURATEDCT"><!-- --></A><H3>
810FLAG_ACCURATEDCT</H3>
811<PRE>
812public static final int <B>FLAG_ACCURATEDCT</B></PRE>
813<DL>
814<DD>Use the most accurate DCT/IDCT algorithm available in the underlying
815 codec. The default if this flag is not specified is
DRCae924182013-08-18 10:47:07 +0000816 implementation-specific. For example, the implementation of TurboJPEG for
817 libjpeg[-turbo] uses the fast algorithm by default when compressing,
818 because this has been shown to have only a very slight effect on accuracy,
819 but it uses the accurate algorithm when decompressing, because this has
820 been shown to have a larger effect.
DRC73d74c12012-06-29 23:46:38 +0000821<P>
822<DL>
823<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.libjpegturbo.turbojpeg.TJ.FLAG_ACCURATEDCT">Constant Field Values</A></DL>
824</DL>
DRC92549de2011-03-15 20:52:02 +0000825
826<!-- ========= CONSTRUCTOR DETAIL ======== -->
827
828<A NAME="constructor_detail"><!-- --></A>
829<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
830<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
831<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
832<B>Constructor Detail</B></FONT></TH>
833</TR>
834</TABLE>
835
836<A NAME="TJ()"><!-- --></A><H3>
837TJ</H3>
838<PRE>
839public <B>TJ</B>()</PRE>
840<DL>
841</DL>
842
843<!-- ============ METHOD DETAIL ========== -->
844
845<A NAME="method_detail"><!-- --></A>
846<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
847<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
848<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
849<B>Method Detail</B></FONT></TH>
850</TR>
851</TABLE>
852
853<A NAME="getMCUWidth(int)"><!-- --></A><H3>
854getMCUWidth</H3>
855<PRE>
856public static int <B>getMCUWidth</B>(int&nbsp;subsamp)
857 throws java.lang.Exception</PRE>
858<DL>
859<DD>Returns the MCU block width for the given level of chrominance
860 subsampling.
861<P>
862<DD><DL>
DRC2c74e512011-03-16 00:02:53 +0000863<DT><B>Parameters:</B><DD><CODE>subsamp</CODE> - the level of chrominance subsampling (one of
864 <code>SAMP_*</code>)
DRC92549de2011-03-15 20:52:02 +0000865<DT><B>Returns:</B><DD>the MCU block width for the given level of chrominance subsampling
866<DT><B>Throws:</B>
867<DD><CODE>java.lang.Exception</CODE></DL>
868</DD>
869</DL>
870<HR>
871
872<A NAME="getMCUHeight(int)"><!-- --></A><H3>
873getMCUHeight</H3>
874<PRE>
875public static int <B>getMCUHeight</B>(int&nbsp;subsamp)
876 throws java.lang.Exception</PRE>
877<DL>
878<DD>Returns the MCU block height for the given level of chrominance
879 subsampling.
880<P>
881<DD><DL>
DRC2c74e512011-03-16 00:02:53 +0000882<DT><B>Parameters:</B><DD><CODE>subsamp</CODE> - the level of chrominance subsampling (one of
883 <code>SAMP_*</code>)
DRC92549de2011-03-15 20:52:02 +0000884<DT><B>Returns:</B><DD>the MCU block height for the given level of chrominance
885 subsampling
886<DT><B>Throws:</B>
887<DD><CODE>java.lang.Exception</CODE></DL>
888</DD>
889</DL>
890<HR>
891
892<A NAME="getPixelSize(int)"><!-- --></A><H3>
893getPixelSize</H3>
894<PRE>
895public static int <B>getPixelSize</B>(int&nbsp;pixelFormat)
896 throws java.lang.Exception</PRE>
897<DL>
DRC65d4a462013-04-27 01:06:52 +0000898<DD>Returns the pixel size (in bytes) for the given pixel format.
DRC92549de2011-03-15 20:52:02 +0000899<P>
900<DD><DL>
DRC2c74e512011-03-16 00:02:53 +0000901<DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
DRC65d4a462013-04-27 01:06:52 +0000902<DT><B>Returns:</B><DD>the pixel size (in bytes) for the given pixel format
DRC92549de2011-03-15 20:52:02 +0000903<DT><B>Throws:</B>
904<DD><CODE>java.lang.Exception</CODE></DL>
905</DD>
906</DL>
907<HR>
908
DRC2c74e512011-03-16 00:02:53 +0000909<A NAME="getRedOffset(int)"><!-- --></A><H3>
910getRedOffset</H3>
DRC92549de2011-03-15 20:52:02 +0000911<PRE>
DRC2c74e512011-03-16 00:02:53 +0000912public static int <B>getRedOffset</B>(int&nbsp;pixelFormat)
DRC92549de2011-03-15 20:52:02 +0000913 throws java.lang.Exception</PRE>
914<DL>
DRC2c74e512011-03-16 00:02:53 +0000915<DD>For the given pixel format, returns the number of bytes that the red
916 component is offset from the start of the pixel. For instance, if a pixel
917 of format <code>TJ.PF_BGRX</code> is stored in <code>char pixel[]</code>,
918 then the red component will be
919 <code>pixel[TJ.getRedOffset(TJ.PF_BGRX)]</code>.
DRC92549de2011-03-15 20:52:02 +0000920<P>
921<DD><DL>
DRC2c74e512011-03-16 00:02:53 +0000922<DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
923<DT><B>Returns:</B><DD>the red offset for the given pixel format
924<DT><B>Throws:</B>
925<DD><CODE>java.lang.Exception</CODE></DL>
926</DD>
927</DL>
928<HR>
929
930<A NAME="getGreenOffset(int)"><!-- --></A><H3>
931getGreenOffset</H3>
932<PRE>
933public static int <B>getGreenOffset</B>(int&nbsp;pixelFormat)
934 throws java.lang.Exception</PRE>
935<DL>
936<DD>For the given pixel format, returns the number of bytes that the green
937 component is offset from the start of the pixel. For instance, if a pixel
938 of format <code>TJ.PF_BGRX</code> is stored in <code>char pixel[]</code>,
939 then the green component will be
940 <code>pixel[TJ.getGreenOffset(TJ.PF_BGRX)]</code>.
941<P>
942<DD><DL>
943<DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
944<DT><B>Returns:</B><DD>the green offset for the given pixel format
945<DT><B>Throws:</B>
946<DD><CODE>java.lang.Exception</CODE></DL>
947</DD>
948</DL>
949<HR>
950
951<A NAME="getBlueOffset(int)"><!-- --></A><H3>
952getBlueOffset</H3>
953<PRE>
954public static int <B>getBlueOffset</B>(int&nbsp;pixelFormat)
955 throws java.lang.Exception</PRE>
956<DL>
957<DD>For the given pixel format, returns the number of bytes that the blue
958 component is offset from the start of the pixel. For instance, if a pixel
959 of format <code>TJ.PF_BGRX</code> is stored in <code>char pixel[]</code>,
960 then the blue component will be
961 <code>pixel[TJ.getBlueOffset(TJ.PF_BGRX)]</code>.
962<P>
963<DD><DL>
964<DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the pixel format (one of <code>PF_*</code>)
965<DT><B>Returns:</B><DD>the blue offset for the given pixel format
DRC92549de2011-03-15 20:52:02 +0000966<DT><B>Throws:</B>
967<DD><CODE>java.lang.Exception</CODE></DL>
968</DD>
969</DL>
970<HR>
971
DRC9b49f0e2011-07-12 03:17:23 +0000972<A NAME="bufSize(int, int, int)"><!-- --></A><H3>
DRC92549de2011-03-15 20:52:02 +0000973bufSize</H3>
974<PRE>
975public static int <B>bufSize</B>(int&nbsp;width,
DRC9b49f0e2011-07-12 03:17:23 +0000976 int&nbsp;height,
977 int&nbsp;jpegSubsamp)
DRC92549de2011-03-15 20:52:02 +0000978 throws java.lang.Exception</PRE>
979<DL>
980<DD>Returns the maximum size of the buffer (in bytes) required to hold a JPEG
DRC65d4a462013-04-27 01:06:52 +0000981 image with the given width, height, and level of chrominance subsampling.
DRC92549de2011-03-15 20:52:02 +0000982<P>
983<DD><DL>
DRC9b49f0e2011-07-12 03:17:23 +0000984<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
985 generating the JPEG image (one of <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html" title="class in org.libjpegturbo.turbojpeg"><CODE>TJ.SAMP_*</CODE></A>)
DRC92549de2011-03-15 20:52:02 +0000986<DT><B>Returns:</B><DD>the maximum size of the buffer (in bytes) required to hold a JPEG
DRC65d4a462013-04-27 01:06:52 +0000987 image with the given width, height, and level of chrominance subsampling
DRC92549de2011-03-15 20:52:02 +0000988<DT><B>Throws:</B>
989<DD><CODE>java.lang.Exception</CODE></DL>
990</DD>
991</DL>
992<HR>
993
994<A NAME="bufSizeYUV(int, int, int)"><!-- --></A><H3>
995bufSizeYUV</H3>
996<PRE>
997public static int <B>bufSizeYUV</B>(int&nbsp;width,
998 int&nbsp;height,
999 int&nbsp;subsamp)
1000 throws java.lang.Exception</PRE>
1001<DL>
DRC2c74e512011-03-16 00:02:53 +00001002<DD>Returns the size of the buffer (in bytes) required to hold a YUV planar
1003 image with the given width, height, and level of chrominance subsampling.
DRC92549de2011-03-15 20:52:02 +00001004<P>
1005<DD><DL>
1006<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
DRC9b49f0e2011-07-12 03:17:23 +00001007 image (one of <A HREF="../../../org/libjpegturbo/turbojpeg/TJ.html" title="class in org.libjpegturbo.turbojpeg"><CODE>TJ.SAMP_*</CODE></A>)
DRC2c74e512011-03-16 00:02:53 +00001008<DT><B>Returns:</B><DD>the size of the buffer (in bytes) required to hold a YUV planar
1009 image with the given width, height, and level of chrominance subsampling
DRC92549de2011-03-15 20:52:02 +00001010<DT><B>Throws:</B>
1011<DD><CODE>java.lang.Exception</CODE></DL>
1012</DD>
1013</DL>
1014<HR>
1015
1016<A NAME="getScalingFactors()"><!-- --></A><H3>
1017getScalingFactors</H3>
1018<PRE>
DRCb2f94152011-04-02 02:09:03 +00001019public static <A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</A>[] <B>getScalingFactors</B>()
1020 throws java.lang.Exception</PRE>
DRC92549de2011-03-15 20:52:02 +00001021<DL>
1022<DD>Returns a list of fractional scaling factors that the JPEG decompressor in
1023 this implementation of TurboJPEG supports.
1024<P>
1025<DD><DL>
1026
1027<DT><B>Returns:</B><DD>a list of fractional scaling factors that the JPEG decompressor in
1028 this implementation of TurboJPEG supports
1029<DT><B>Throws:</B>
1030<DD><CODE>java.lang.Exception</CODE></DL>
1031</DD>
1032</DL>
1033<!-- ========= END OF CLASS DATA ========= -->
1034<HR>
1035
1036
1037<!-- ======= START OF BOTTOM NAVBAR ====== -->
1038<A NAME="navbar_bottom"><!-- --></A>
1039<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1040<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1041<TR>
1042<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1043<A NAME="navbar_bottom_firstrow"><!-- --></A>
1044<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1045 <TR ALIGN="center" VALIGN="top">
1046 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1047 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1048 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1049 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1050 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1051 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1052 </TR>
1053</TABLE>
1054</TD>
1055<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1056</EM>
1057</TD>
1058</TR>
1059
1060<TR>
1061<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1062&nbsp;PREV CLASS&nbsp;
DRCb2f94152011-04-02 02:09:03 +00001063&nbsp;<A HREF="../../../org/libjpegturbo/turbojpeg/TJCompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD>
DRC92549de2011-03-15 20:52:02 +00001064<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1065 <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJ.html" target="_top"><B>FRAMES</B></A> &nbsp;
1066&nbsp;<A HREF="TJ.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
1067&nbsp;<SCRIPT type="text/javascript">
1068 <!--
1069 if(window==top) {
1070 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
1071 }
1072 //-->
1073</SCRIPT>
1074<NOSCRIPT>
1075 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
1076</NOSCRIPT>
1077
1078
1079</FONT></TD>
1080</TR>
1081<TR>
1082<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DRCb2f94152011-04-02 02:09:03 +00001083 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>
DRC92549de2011-03-15 20:52:02 +00001084<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1085DETAIL:&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>
1086</TR>
1087</TABLE>
1088<A NAME="skip-navbar_bottom"></A>
1089<!-- ======== END OF BOTTOM NAVBAR ======= -->
1090
1091<HR>
1092
1093</BODY>
1094</HTML>