5 <!-- Generated by javadoc -->
6 <title>TJScalingFactor</title>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8 <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
9 <link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.min.css" title="Style">
10 <link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
11 <script type="text/javascript" src="../../../script.js"></script>
12 <script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
13 <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
15 <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
17 <script type="text/javascript" src="../../../jquery/jquery-3.6.0.min.js"></script>
18 <script type="text/javascript" src="../../../jquery/jquery-ui.min.js"></script>
21 <script type="text/javascript"><!--
23 if (location.href.indexOf('is-external=true') == -1) {
24 parent.document.title="TJScalingFactor";
30 var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10};
31 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
32 var altColor = "altColor";
33 var rowColor = "rowColor";
34 var tableTab = "tableTab";
35 var activeTableTab = "activeTableTab";
36 var pathtoroot = "../../../";
37 var useModuleDirectories = true;
38 loadScripts(document, 'script');</script>
40 <div>JavaScript is disabled on your browser.</div>
42 <header role="banner">
43 <nav role="navigation">
44 <div class="fixedNav">
45 <!-- ========= START OF TOP NAVBAR ======= -->
46 <div class="topNav"><a id="navbar.top">
49 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
50 <a id="navbar.top.firstrow">
53 <ul class="navList" title="Navigation">
54 <li><a href="package-summary.html">Package</a></li>
55 <li class="navBarCell1Rev">Class</li>
56 <li><a href="package-tree.html">Tree</a></li>
57 <li><a href="../../../deprecated-list.html">Deprecated</a></li>
58 <li><a href="../../../index-all.html">Index</a></li>
59 <li><a href="../../../help-doc.html">Help</a></li>
63 <ul class="navList" id="allclasses_navbar_top">
64 <li><a href="../../../allclasses.html">All Classes</a></li>
66 <ul class="navListSearch">
67 <li><label for="search">SEARCH:</label>
68 <input type="text" id="search" value="search" disabled="disabled">
69 <input type="reset" id="reset" value="reset" disabled="disabled">
73 <script type="text/javascript"><!--
74 allClassesLink = document.getElementById("allclasses_navbar_top");
76 allClassesLink.style.display = "block";
79 allClassesLink.style.display = "none";
84 <div>JavaScript is disabled on your browser.</div>
88 <ul class="subNavList">
89 <li>Summary: </li>
90 <li>Nested | </li>
91 <li>Field | </li>
92 <li><a href="#constructor.summary">Constr</a> | </li>
93 <li><a href="#method.summary">Method</a></li>
95 <ul class="subNavList">
96 <li>Detail: </li>
97 <li>Field | </li>
98 <li><a href="#constructor.detail">Constr</a> | </li>
99 <li><a href="#method.detail">Method</a></li>
102 <a id="skip.navbar.top">
105 <!-- ========= END OF TOP NAVBAR ========= -->
107 <div class="navPadding"> </div>
108 <script type="text/javascript"><!--
109 $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
114 <!-- ======== START OF CLASS DATA ======== -->
117 <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.libjpegturbo.turbojpeg</a></div>
118 <h2 title="Class TJScalingFactor" class="title">Class TJScalingFactor</h2>
120 <div class="contentContainer">
121 <ul class="inheritance">
122 <li>java.lang.Object</li>
124 <ul class="inheritance">
125 <li>org.libjpegturbo.turbojpeg.TJScalingFactor</li>
129 <div class="description">
130 <ul class="blockList">
131 <li class="blockList">
133 <pre>public class <span class="typeNameLabel">TJScalingFactor</span>
134 extends java.lang.Object</pre>
135 <div class="block">Fractional scaling factor</div>
139 <div class="summary">
140 <ul class="blockList">
141 <li class="blockList">
142 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
144 <ul class="blockList">
145 <li class="blockList"><a id="constructor.summary">
148 <h3>Constructor Summary</h3>
149 <table class="memberSummary">
150 <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
152 <th class="colFirst" scope="col">Constructor</th>
153 <th class="colLast" scope="col">Description</th>
155 <tr class="altColor">
156 <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int)">TJScalingFactor</a></span>​(int num,
157 int denom)</code></th>
159 <div class="block">Create a TurboJPEG scaling factor instance.</div>
166 <!-- ========== METHOD SUMMARY =========== -->
168 <ul class="blockList">
169 <li class="blockList"><a id="method.summary">
172 <h3>Method Summary</h3>
173 <table class="memberSummary">
174 <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
176 <th class="colFirst" scope="col">Modifier and Type</th>
177 <th class="colSecond" scope="col">Method</th>
178 <th class="colLast" scope="col">Description</th>
180 <tr id="i0" class="altColor">
181 <td class="colFirst"><code>boolean</code></td>
182 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(org.libjpegturbo.turbojpeg.TJScalingFactor)">equals</a></span>​(<a href="TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</a> other)</code></th>
184 <div class="block">Returns true or false, depending on whether this instance and
185 <code>other</code> have the same numerator and denominator.</div>
188 <tr id="i1" class="rowColor">
189 <td class="colFirst"><code>int</code></td>
190 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDenom()">getDenom</a></span>()</code></th>
192 <div class="block">Returns denominator</div>
195 <tr id="i2" class="altColor">
196 <td class="colFirst"><code>int</code></td>
197 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNum()">getNum</a></span>()</code></th>
199 <div class="block">Returns numerator</div>
202 <tr id="i3" class="rowColor">
203 <td class="colFirst"><code>int</code></td>
204 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaled(int)">getScaled</a></span>​(int dimension)</code></th>
206 <div class="block">Returns the scaled value of <code>dimension</code>.</div>
209 <tr id="i4" class="altColor">
210 <td class="colFirst"><code>boolean</code></td>
211 <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isOne()">isOne</a></span>()</code></th>
213 <div class="block">Returns true or false, depending on whether this instance is equal to
218 <ul class="blockList">
219 <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
222 <h3>Methods inherited from class java.lang.Object</h3>
223 <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
231 <div class="details">
232 <ul class="blockList">
233 <li class="blockList">
234 <!-- ========= CONSTRUCTOR DETAIL ======== -->
236 <ul class="blockList">
237 <li class="blockList"><a id="constructor.detail">
240 <h3>Constructor Detail</h3>
241 <a id="<init>(int,int)">
244 <ul class="blockListLast">
245 <li class="blockList">
246 <h4>TJScalingFactor</h4>
247 <pre>public TJScalingFactor​(int num,
248 int denom)</pre>
249 <div class="block">Create a TurboJPEG scaling factor instance.</div>
251 <dt><span class="paramLabel">Parameters:</span></dt>
252 <dd><code>num</code> - numerator</dd>
253 <dd><code>denom</code> - denominator</dd>
260 <!-- ============ METHOD DETAIL ========== -->
262 <ul class="blockList">
263 <li class="blockList"><a id="method.detail">
266 <h3>Method Detail</h3>
270 <ul class="blockList">
271 <li class="blockList">
273 <pre class="methodSignature">public int getNum()</pre>
274 <div class="block">Returns numerator</div>
276 <dt><span class="returnLabel">Returns:</span></dt>
284 <ul class="blockList">
285 <li class="blockList">
287 <pre class="methodSignature">public int getDenom()</pre>
288 <div class="block">Returns denominator</div>
290 <dt><span class="returnLabel">Returns:</span></dt>
295 <a id="getScaled(int)">
298 <ul class="blockList">
299 <li class="blockList">
301 <pre class="methodSignature">public int getScaled​(int dimension)</pre>
302 <div class="block">Returns the scaled value of <code>dimension</code>. This function
303 performs the integer equivalent of
304 <code>ceil(dimension * scalingFactor)</code>.</div>
306 <dt><span class="paramLabel">Parameters:</span></dt>
307 <dd><code>dimension</code> - width or height to multiply by this scaling factor</dd>
308 <dt><span class="returnLabel">Returns:</span></dt>
309 <dd>the scaled value of <code>dimension</code>.</dd>
313 <a id="equals(org.libjpegturbo.turbojpeg.TJScalingFactor)">
316 <ul class="blockList">
317 <li class="blockList">
319 <pre class="methodSignature">public boolean equals​(<a href="TJScalingFactor.html" title="class in org.libjpegturbo.turbojpeg">TJScalingFactor</a> other)</pre>
320 <div class="block">Returns true or false, depending on whether this instance and
321 <code>other</code> have the same numerator and denominator.</div>
323 <dt><span class="paramLabel">Parameters:</span></dt>
324 <dd><code>other</code> - the scaling factor against which to compare this one</dd>
325 <dt><span class="returnLabel">Returns:</span></dt>
326 <dd>true or false, depending on whether this instance and
327 <code>other</code> have the same numerator and denominator.</dd>
334 <ul class="blockListLast">
335 <li class="blockList">
337 <pre class="methodSignature">public boolean isOne()</pre>
338 <div class="block">Returns true or false, depending on whether this instance is equal to
341 <dt><span class="returnLabel">Returns:</span></dt>
342 <dd>true or false, depending on whether this instance is equal to
355 <!-- ========= END OF CLASS DATA ========= -->
356 <footer role="contentinfo">
357 <nav role="navigation">
358 <!-- ======= START OF BOTTOM NAVBAR ====== -->
359 <div class="bottomNav"><a id="navbar.bottom">
362 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
363 <a id="navbar.bottom.firstrow">
366 <ul class="navList" title="Navigation">
367 <li><a href="package-summary.html">Package</a></li>
368 <li class="navBarCell1Rev">Class</li>
369 <li><a href="package-tree.html">Tree</a></li>
370 <li><a href="../../../deprecated-list.html">Deprecated</a></li>
371 <li><a href="../../../index-all.html">Index</a></li>
372 <li><a href="../../../help-doc.html">Help</a></li>
376 <ul class="navList" id="allclasses_navbar_bottom">
377 <li><a href="../../../allclasses.html">All Classes</a></li>
380 <script type="text/javascript"><!--
381 allClassesLink = document.getElementById("allclasses_navbar_bottom");
383 allClassesLink.style.display = "block";
386 allClassesLink.style.display = "none";
391 <div>JavaScript is disabled on your browser.</div>
395 <ul class="subNavList">
396 <li>Summary: </li>
397 <li>Nested | </li>
398 <li>Field | </li>
399 <li><a href="#constructor.summary">Constr</a> | </li>
400 <li><a href="#method.summary">Method</a></li>
402 <ul class="subNavList">
403 <li>Detail: </li>
404 <li>Field | </li>
405 <li><a href="#constructor.detail">Constr</a> | </li>
406 <li><a href="#method.detail">Method</a></li>
409 <a id="skip.navbar.bottom">
412 <!-- ======== END OF BOTTOM NAVBAR ======= -->