1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_29) on Sun Dec 18 20:09:44 CST 2011 -->
10 <META NAME="date" CONTENT="2011-12-18">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="TJScalingFactor";
27 <BODY BGCOLOR="white" onload="windowTitle();">
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
41 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>PREV CLASS</B></A>
57 <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.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/TJScalingFactor.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="TJScalingFactor.html" target="_top"><B>NO FRAMES</B></A>
61 <SCRIPT type="text/javascript">
64 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.libjpegturbo.turbojpeg</FONT>
91 Class TJScalingFactor</H2>
94 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.libjpegturbo.turbojpeg.TJScalingFactor</B>
98 <DT><PRE>public class <B>TJScalingFactor</B><DT>extends java.lang.Object</DL>
102 Fractional scaling factor
110 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
112 <A NAME="constructor_summary"><!-- --></A>
113 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
116 <B>Constructor Summary</B></FONT></TH>
118 <TR BGCOLOR="white" CLASS="TableRowColor">
119 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#TJScalingFactor(int, int)">TJScalingFactor</A></B>(int num,
120 int denom)</CODE>
123 </TD>
127 <!-- ========== METHOD SUMMARY =========== -->
129 <A NAME="method_summary"><!-- --></A>
130 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
133 <B>Method Summary</B></FONT></TH>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE> boolean</CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#equals(org.libjpegturbo.turbojpeg.TJScalingFactor)">equals</A></B>(<A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</A> other)</CODE>
141 Returns true or false, depending on whether this instance and
142 <code>other</code> have the same numerator and denominator.</TD>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE> int</CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#getDenom()">getDenom</A></B>()</CODE>
150 Returns denominator</TD>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE> int</CODE></FONT></TD>
155 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#getNum()">getNum</A></B>()</CODE>
158 Returns numerator</TD>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE> int</CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#getScaled(int)">getScaled</A></B>(int dimension)</CODE>
166 Returns the scaled value of <code>dimension</code>.</TD>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE> boolean</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#isOne()">isOne</A></B>()</CODE>
174 Returns true or false, depending on whether this instance is equal to
178 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
179 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
181 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
183 <TR BGCOLOR="white" CLASS="TableRowColor">
184 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
190 <!-- ========= CONSTRUCTOR DETAIL ======== -->
192 <A NAME="constructor_detail"><!-- --></A>
193 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
194 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
195 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
196 <B>Constructor Detail</B></FONT></TH>
200 <A NAME="TJScalingFactor(int, int)"><!-- --></A><H3>
203 public <B>TJScalingFactor</B>(int num,
205 throws java.lang.Exception</PRE>
210 <DD><CODE>java.lang.Exception</CODE></DL>
213 <!-- ============ METHOD DETAIL ========== -->
215 <A NAME="method_detail"><!-- --></A>
216 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
217 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
218 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
219 <B>Method Detail</B></FONT></TH>
223 <A NAME="getNum()"><!-- --></A><H3>
226 public int <B>getNum</B>()</PRE>
228 <DD>Returns numerator
232 <DT><B>Returns:</B><DD>numerator</DL>
237 <A NAME="getDenom()"><!-- --></A><H3>
240 public int <B>getDenom</B>()</PRE>
242 <DD>Returns denominator
246 <DT><B>Returns:</B><DD>denominator</DL>
251 <A NAME="getScaled(int)"><!-- --></A><H3>
254 public int <B>getScaled</B>(int dimension)</PRE>
256 <DD>Returns the scaled value of <code>dimension</code>. This function
257 performs the integer equivalent of
258 <code>ceil(dimension * scalingFactor)</code>.
262 <DT><B>Returns:</B><DD>the scaled value of <code>dimension</code></DL>
267 <A NAME="equals(org.libjpegturbo.turbojpeg.TJScalingFactor)"><!-- --></A><H3>
270 public boolean <B>equals</B>(<A HREF="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</A> other)</PRE>
272 <DD>Returns true or false, depending on whether this instance and
273 <code>other</code> have the same numerator and denominator.
277 <DT><B>Returns:</B><DD>true or false, depending on whether this instance and
278 <code>other</code> have the same numerator and denominator</DL>
283 <A NAME="isOne()"><!-- --></A><H3>
286 public boolean <B>isOne</B>()</PRE>
288 <DD>Returns true or false, depending on whether this instance is equal to
293 <DT><B>Returns:</B><DD>true or false, depending on whether this instance is equal to
297 <!-- ========= END OF CLASS DATA ========= -->
301 <!-- ======= START OF BOTTOM NAVBAR ====== -->
302 <A NAME="navbar_bottom"><!-- --></A>
303 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
304 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
306 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
307 <A NAME="navbar_bottom_firstrow"><!-- --></A>
308 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
309 <TR ALIGN="center" VALIGN="top">
310 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../org/libjpegturbo/turbojpeg/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
311 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
312 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
313 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
314 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
315 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
319 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
325 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
326 <A HREF="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg"><B>PREV CLASS</B></A>
327 <A HREF="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="class in org.libjpegturbo.turbojpeg"><B>NEXT CLASS</B></A></FONT></TD>
328 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
329 <A HREF="../../../index.html?org/libjpegturbo/turbojpeg/TJScalingFactor.html" target="_top"><B>FRAMES</B></A>
330 <A HREF="TJScalingFactor.html" target="_top"><B>NO FRAMES</B></A>
331 <SCRIPT type="text/javascript">
334 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
339 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
346 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
347 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
348 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
349 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
352 <A NAME="skip-navbar_bottom"></A>
353 <!-- ======== END OF BOTTOM NAVBAR ======= -->