• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<title>TJScalingFactor</title>
6<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
7</head>
8<body>
9<script type="text/javascript"><!--
10    if (location.href.indexOf('is-external=true') == -1) {
11        parent.document.title="TJScalingFactor";
12    }
13//-->
14</script>
15<noscript>
16<div>JavaScript is disabled on your browser.</div>
17</noscript>
18<!-- ========= START OF TOP NAVBAR ======= -->
19<div class="topNav"><a name="navbar_top">
20<!--   -->
21</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
22<!--   -->
23</a>
24<ul class="navList" title="Navigation">
25<li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</a></li>
26<li class="navBarCell1Rev">Class</li>
27<li><a href="package-tree.html">Tree</a></li>
28<li><a href="../../../deprecated-list.html">Deprecated</a></li>
29<li><a href="../../../index-all.html">Index</a></li>
30<li><a href="../../../help-doc.html">Help</a></li>
31</ul>
32</div>
33<div class="subNav">
34<ul class="navList">
35<li><a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></li>
36<li><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li>
37</ul>
38<ul class="navList">
39<li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJScalingFactor.html" target="_top">Frames</a></li>
40<li><a href="TJScalingFactor.html" target="_top">No Frames</a></li>
41</ul>
42<ul class="navList" id="allclasses_navbar_top">
43<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
44</ul>
45<div>
46<script type="text/javascript"><!--
47  allClassesLink = document.getElementById("allclasses_navbar_top");
48  if(window==top) {
49    allClassesLink.style.display = "block";
50  }
51  else {
52    allClassesLink.style.display = "none";
53  }
54  //-->
55</script>
56</div>
57<div>
58<ul class="subNavList">
59<li>Summary:&nbsp;</li>
60<li>Nested&nbsp;|&nbsp;</li>
61<li>Field&nbsp;|&nbsp;</li>
62<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
63<li><a href="#method_summary">Method</a></li>
64</ul>
65<ul class="subNavList">
66<li>Detail:&nbsp;</li>
67<li>Field&nbsp;|&nbsp;</li>
68<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
69<li><a href="#method_detail">Method</a></li>
70</ul>
71</div>
72<a name="skip-navbar_top">
73<!--   -->
74</a></div>
75<!-- ========= END OF TOP NAVBAR ========= -->
76<!-- ======== START OF CLASS DATA ======== -->
77<div class="header">
78<div class="subTitle">org.libjpegturbo.turbojpeg</div>
79<h2 title="Class TJScalingFactor" class="title">Class TJScalingFactor</h2>
80</div>
81<div class="contentContainer">
82<ul class="inheritance">
83<li>java.lang.Object</li>
84<li>
85<ul class="inheritance">
86<li>org.libjpegturbo.turbojpeg.TJScalingFactor</li>
87</ul>
88</li>
89</ul>
90<div class="description">
91<ul class="blockList">
92<li class="blockList">
93<hr>
94<br>
95<pre>public class <span class="strong">TJScalingFactor</span>
96extends java.lang.Object</pre>
97<div class="block">Fractional scaling factor</div>
98</li>
99</ul>
100</div>
101<div class="summary">
102<ul class="blockList">
103<li class="blockList">
104<!-- ======== CONSTRUCTOR SUMMARY ======== -->
105<ul class="blockList">
106<li class="blockList"><a name="constructor_summary">
107<!--   -->
108</a>
109<h3>Constructor Summary</h3>
110<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
111<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
112<tr>
113<th class="colOne" scope="col">Constructor and Description</th>
114</tr>
115<tr class="altColor">
116<td class="colOne"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#TJScalingFactor(int,%20int)">TJScalingFactor</a></strong>(int&nbsp;num,
117               int&nbsp;denom)</code>&nbsp;</td>
118</tr>
119</table>
120</li>
121</ul>
122<!-- ========== METHOD SUMMARY =========== -->
123<ul class="blockList">
124<li class="blockList"><a name="method_summary">
125<!--   -->
126</a>
127<h3>Method Summary</h3>
128<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
129<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
130<tr>
131<th class="colFirst" scope="col">Modifier and Type</th>
132<th class="colLast" scope="col">Method and Description</th>
133</tr>
134<tr class="altColor">
135<td class="colFirst"><code>boolean</code></td>
136<td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#equals(org.libjpegturbo.turbojpeg.TJScalingFactor)">equals</a></strong>(<a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</a>&nbsp;other)</code>
137<div class="block">Returns true or false, depending on whether this instance and
138 <code>other</code> have the same numerator and denominator.</div>
139</td>
140</tr>
141<tr class="rowColor">
142<td class="colFirst"><code>int</code></td>
143<td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#getDenom()">getDenom</a></strong>()</code>
144<div class="block">Returns denominator</div>
145</td>
146</tr>
147<tr class="altColor">
148<td class="colFirst"><code>int</code></td>
149<td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#getNum()">getNum</a></strong>()</code>
150<div class="block">Returns numerator</div>
151</td>
152</tr>
153<tr class="rowColor">
154<td class="colFirst"><code>int</code></td>
155<td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#getScaled(int)">getScaled</a></strong>(int&nbsp;dimension)</code>
156<div class="block">Returns the scaled value of <code>dimension</code>.</div>
157</td>
158</tr>
159<tr class="altColor">
160<td class="colFirst"><code>boolean</code></td>
161<td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html#isOne()">isOne</a></strong>()</code>
162<div class="block">Returns true or false, depending on whether this instance is equal to
163 1/1.</div>
164</td>
165</tr>
166</table>
167<ul class="blockList">
168<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
169<!--   -->
170</a>
171<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
172<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
173</ul>
174</li>
175</ul>
176</li>
177</ul>
178</div>
179<div class="details">
180<ul class="blockList">
181<li class="blockList">
182<!-- ========= CONSTRUCTOR DETAIL ======== -->
183<ul class="blockList">
184<li class="blockList"><a name="constructor_detail">
185<!--   -->
186</a>
187<h3>Constructor Detail</h3>
188<a name="TJScalingFactor(int, int)">
189<!--   -->
190</a>
191<ul class="blockListLast">
192<li class="blockList">
193<h4>TJScalingFactor</h4>
194<pre>public&nbsp;TJScalingFactor(int&nbsp;num,
195               int&nbsp;denom)
196                throws java.lang.Exception</pre>
197<dl><dt><span class="strong">Throws:</span></dt>
198<dd><code>java.lang.Exception</code></dd></dl>
199</li>
200</ul>
201</li>
202</ul>
203<!-- ============ METHOD DETAIL ========== -->
204<ul class="blockList">
205<li class="blockList"><a name="method_detail">
206<!--   -->
207</a>
208<h3>Method Detail</h3>
209<a name="getNum()">
210<!--   -->
211</a>
212<ul class="blockList">
213<li class="blockList">
214<h4>getNum</h4>
215<pre>public&nbsp;int&nbsp;getNum()</pre>
216<div class="block">Returns numerator</div>
217<dl><dt><span class="strong">Returns:</span></dt><dd>numerator</dd></dl>
218</li>
219</ul>
220<a name="getDenom()">
221<!--   -->
222</a>
223<ul class="blockList">
224<li class="blockList">
225<h4>getDenom</h4>
226<pre>public&nbsp;int&nbsp;getDenom()</pre>
227<div class="block">Returns denominator</div>
228<dl><dt><span class="strong">Returns:</span></dt><dd>denominator</dd></dl>
229</li>
230</ul>
231<a name="getScaled(int)">
232<!--   -->
233</a>
234<ul class="blockList">
235<li class="blockList">
236<h4>getScaled</h4>
237<pre>public&nbsp;int&nbsp;getScaled(int&nbsp;dimension)</pre>
238<div class="block">Returns the scaled value of <code>dimension</code>.  This function
239 performs the integer equivalent of
240 <code>ceil(dimension * scalingFactor)</code>.</div>
241<dl><dt><span class="strong">Returns:</span></dt><dd>the scaled value of <code>dimension</code>.</dd></dl>
242</li>
243</ul>
244<a name="equals(org.libjpegturbo.turbojpeg.TJScalingFactor)">
245<!--   -->
246</a>
247<ul class="blockList">
248<li class="blockList">
249<h4>equals</h4>
250<pre>public&nbsp;boolean&nbsp;equals(<a href="../../../org/libjpegturbo/turbojpeg/TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</a>&nbsp;other)</pre>
251<div class="block">Returns true or false, depending on whether this instance and
252 <code>other</code> have the same numerator and denominator.</div>
253<dl><dt><span class="strong">Returns:</span></dt><dd>true or false, depending on whether this instance and
254 <code>other</code> have the same numerator and denominator.</dd></dl>
255</li>
256</ul>
257<a name="isOne()">
258<!--   -->
259</a>
260<ul class="blockListLast">
261<li class="blockList">
262<h4>isOne</h4>
263<pre>public&nbsp;boolean&nbsp;isOne()</pre>
264<div class="block">Returns true or false, depending on whether this instance is equal to
265 1/1.</div>
266<dl><dt><span class="strong">Returns:</span></dt><dd>true or false, depending on whether this instance is equal to
267 1/1.</dd></dl>
268</li>
269</ul>
270</li>
271</ul>
272</li>
273</ul>
274</div>
275</div>
276<!-- ========= END OF CLASS DATA ========= -->
277<!-- ======= START OF BOTTOM NAVBAR ====== -->
278<div class="bottomNav"><a name="navbar_bottom">
279<!--   -->
280</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
281<!--   -->
282</a>
283<ul class="navList" title="Navigation">
284<li><a href="../../../org/libjpegturbo/turbojpeg/package-summary.html">Package</a></li>
285<li class="navBarCell1Rev">Class</li>
286<li><a href="package-tree.html">Tree</a></li>
287<li><a href="../../../deprecated-list.html">Deprecated</a></li>
288<li><a href="../../../index-all.html">Index</a></li>
289<li><a href="../../../help-doc.html">Help</a></li>
290</ul>
291</div>
292<div class="subNav">
293<ul class="navList">
294<li><a href="../../../org/libjpegturbo/turbojpeg/TJDecompressor.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Prev Class</span></a></li>
295<li><a href="../../../org/libjpegturbo/turbojpeg/TJTransform.html" title="class in org.libjpegturbo.turbojpeg"><span class="strong">Next Class</span></a></li>
296</ul>
297<ul class="navList">
298<li><a href="../../../index.html?org/libjpegturbo/turbojpeg/TJScalingFactor.html" target="_top">Frames</a></li>
299<li><a href="TJScalingFactor.html" target="_top">No Frames</a></li>
300</ul>
301<ul class="navList" id="allclasses_navbar_bottom">
302<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
303</ul>
304<div>
305<script type="text/javascript"><!--
306  allClassesLink = document.getElementById("allclasses_navbar_bottom");
307  if(window==top) {
308    allClassesLink.style.display = "block";
309  }
310  else {
311    allClassesLink.style.display = "none";
312  }
313  //-->
314</script>
315</div>
316<div>
317<ul class="subNavList">
318<li>Summary:&nbsp;</li>
319<li>Nested&nbsp;|&nbsp;</li>
320<li>Field&nbsp;|&nbsp;</li>
321<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
322<li><a href="#method_summary">Method</a></li>
323</ul>
324<ul class="subNavList">
325<li>Detail:&nbsp;</li>
326<li>Field&nbsp;|&nbsp;</li>
327<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
328<li><a href="#method_detail">Method</a></li>
329</ul>
330</div>
331<a name="skip-navbar_bottom">
332<!--   -->
333</a></div>
334<!-- ======== END OF BOTTOM NAVBAR ======= -->
335</body>
336</html>
337