Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 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_26) on Sun Jan 27 20:37:06 CET 2013 -->
6
<TITLE>
7
Encoder (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
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="Encoder (libgdx API)";
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="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Encoder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Decoder.html" title="class in com.badlogic.gdx.utils.compression.rangecoder"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;NEXT CLASS</FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../../../index.html?com/badlogic/gdx/utils/compression/rangecoder/Encoder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Encoder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  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>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
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>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.utils.compression.rangecoder</FONT>
107
<BR>
108
Class Encoder</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.compression.rangecoder.Encoder</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>Encoder</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
<HR>
120
 
121
<P>
122
<!-- =========== FIELD SUMMARY =========== -->
123
 
124
<A NAME="field_summary"><!-- --></A>
125
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
127
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
128
<B>Field Summary</B></FONT></TH>
129
</TR>
130
<TR BGCOLOR="white" CLASS="TableRowColor">
131
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132
<CODE>static&nbsp;int</CODE></FONT></TD>
133
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#kNumBitPriceShiftBits">kNumBitPriceShiftBits</A></B></CODE>
134
 
135
<BR>
136
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
137
</TR>
138
</TABLE>
139
&nbsp;
140
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
141
 
142
<A NAME="constructor_summary"><!-- --></A>
143
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
144
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
145
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
146
<B>Constructor Summary</B></FONT></TH>
147
</TR>
148
<TR BGCOLOR="white" CLASS="TableRowColor">
149
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#Encoder()">Encoder</A></B>()</CODE>
150
 
151
<BR>
152
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153
</TR>
154
</TABLE>
155
&nbsp;
156
<!-- ========== METHOD SUMMARY =========== -->
157
 
158
<A NAME="method_summary"><!-- --></A>
159
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
161
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
162
<B>Method Summary</B></FONT></TH>
163
</TR>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166
<CODE>&nbsp;void</CODE></FONT></TD>
167
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#Encode(short[], int, int)">Encode</A></B>(short[]&nbsp;probs,
168
       int&nbsp;index,
169
       int&nbsp;symbol)</CODE>
170
 
171
<BR>
172
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>&nbsp;void</CODE></FONT></TD>
177
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#EncodeDirectBits(int, int)">EncodeDirectBits</A></B>(int&nbsp;v,
178
                 int&nbsp;numTotalBits)</CODE>
179
 
180
<BR>
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
182
</TR>
183
<TR BGCOLOR="white" CLASS="TableRowColor">
184
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185
<CODE>&nbsp;void</CODE></FONT></TD>
186
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#FlushData()">FlushData</A></B>()</CODE>
187
 
188
<BR>
189
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
190
</TR>
191
<TR BGCOLOR="white" CLASS="TableRowColor">
192
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193
<CODE>&nbsp;void</CODE></FONT></TD>
194
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#FlushStream()">FlushStream</A></B>()</CODE>
195
 
196
<BR>
197
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
198
</TR>
199
<TR BGCOLOR="white" CLASS="TableRowColor">
200
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201
<CODE>static&nbsp;int</CODE></FONT></TD>
202
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#GetPrice(int, int)">GetPrice</A></B>(int&nbsp;Prob,
203
         int&nbsp;symbol)</CODE>
204
 
205
<BR>
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210
<CODE>static&nbsp;int</CODE></FONT></TD>
211
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#GetPrice0(int)">GetPrice0</A></B>(int&nbsp;Prob)</CODE>
212
 
213
<BR>
214
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218
<CODE>static&nbsp;int</CODE></FONT></TD>
219
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#GetPrice1(int)">GetPrice1</A></B>(int&nbsp;Prob)</CODE>
220
 
221
<BR>
222
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>&nbsp;long</CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#GetProcessedSizeAdd()">GetProcessedSizeAdd</A></B>()</CODE>
228
 
229
<BR>
230
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
231
</TR>
232
<TR BGCOLOR="white" CLASS="TableRowColor">
233
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234
<CODE>&nbsp;void</CODE></FONT></TD>
235
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#Init()">Init</A></B>()</CODE>
236
 
237
<BR>
238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
239
</TR>
240
<TR BGCOLOR="white" CLASS="TableRowColor">
241
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242
<CODE>static&nbsp;void</CODE></FONT></TD>
243
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#InitBitModels(short[])">InitBitModels</A></B>(short[]&nbsp;probs)</CODE>
244
 
245
<BR>
246
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
247
</TR>
248
<TR BGCOLOR="white" CLASS="TableRowColor">
249
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250
<CODE>&nbsp;void</CODE></FONT></TD>
251
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#ReleaseStream()">ReleaseStream</A></B>()</CODE>
252
 
253
<BR>
254
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
255
</TR>
256
<TR BGCOLOR="white" CLASS="TableRowColor">
257
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258
<CODE>&nbsp;void</CODE></FONT></TD>
259
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#SetStream(java.io.OutputStream)">SetStream</A></B>(java.io.OutputStream&nbsp;stream)</CODE>
260
 
261
<BR>
262
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
263
</TR>
264
<TR BGCOLOR="white" CLASS="TableRowColor">
265
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266
<CODE>&nbsp;void</CODE></FONT></TD>
267
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Encoder.html#ShiftLow()">ShiftLow</A></B>()</CODE>
268
 
269
<BR>
270
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
271
</TR>
272
</TABLE>
273
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
274
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
276
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
277
</TR>
278
<TR BGCOLOR="white" CLASS="TableRowColor">
279
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
280
</TR>
281
</TABLE>
282
&nbsp;
283
<P>
284
 
285
<!-- ============ FIELD DETAIL =========== -->
286
 
287
<A NAME="field_detail"><!-- --></A>
288
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
289
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
290
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
291
<B>Field Detail</B></FONT></TH>
292
</TR>
293
</TABLE>
294
 
295
<A NAME="kNumBitPriceShiftBits"><!-- --></A><H3>
296
kNumBitPriceShiftBits</H3>
297
<PRE>
298
public static final int <B>kNumBitPriceShiftBits</B></PRE>
299
<DL>
300
<DL>
301
<DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.badlogic.gdx.utils.compression.rangecoder.Encoder.kNumBitPriceShiftBits">Constant Field Values</A></DL>
302
</DL>
303
 
304
<!-- ========= CONSTRUCTOR DETAIL ======== -->
305
 
306
<A NAME="constructor_detail"><!-- --></A>
307
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
308
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
309
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
310
<B>Constructor Detail</B></FONT></TH>
311
</TR>
312
</TABLE>
313
 
314
<A NAME="Encoder()"><!-- --></A><H3>
315
Encoder</H3>
316
<PRE>
317
public <B>Encoder</B>()</PRE>
318
<DL>
319
</DL>
320
 
321
<!-- ============ METHOD DETAIL ========== -->
322
 
323
<A NAME="method_detail"><!-- --></A>
324
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
325
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
326
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
327
<B>Method Detail</B></FONT></TH>
328
</TR>
329
</TABLE>
330
 
331
<A NAME="SetStream(java.io.OutputStream)"><!-- --></A><H3>
332
SetStream</H3>
333
<PRE>
334
public void <B>SetStream</B>(java.io.OutputStream&nbsp;stream)</PRE>
335
<DL>
336
<DD><DL>
337
</DL>
338
</DD>
339
</DL>
340
<HR>
341
 
342
<A NAME="ReleaseStream()"><!-- --></A><H3>
343
ReleaseStream</H3>
344
<PRE>
345
public void <B>ReleaseStream</B>()</PRE>
346
<DL>
347
<DD><DL>
348
</DL>
349
</DD>
350
</DL>
351
<HR>
352
 
353
<A NAME="Init()"><!-- --></A><H3>
354
Init</H3>
355
<PRE>
356
public void <B>Init</B>()</PRE>
357
<DL>
358
<DD><DL>
359
</DL>
360
</DD>
361
</DL>
362
<HR>
363
 
364
<A NAME="FlushData()"><!-- --></A><H3>
365
FlushData</H3>
366
<PRE>
367
public void <B>FlushData</B>()
368
               throws java.io.IOException</PRE>
369
<DL>
370
<DD><DL>
371
 
372
<DT><B>Throws:</B>
373
<DD><CODE>java.io.IOException</CODE></DL>
374
</DD>
375
</DL>
376
<HR>
377
 
378
<A NAME="FlushStream()"><!-- --></A><H3>
379
FlushStream</H3>
380
<PRE>
381
public void <B>FlushStream</B>()
382
                 throws java.io.IOException</PRE>
383
<DL>
384
<DD><DL>
385
 
386
<DT><B>Throws:</B>
387
<DD><CODE>java.io.IOException</CODE></DL>
388
</DD>
389
</DL>
390
<HR>
391
 
392
<A NAME="ShiftLow()"><!-- --></A><H3>
393
ShiftLow</H3>
394
<PRE>
395
public void <B>ShiftLow</B>()
396
              throws java.io.IOException</PRE>
397
<DL>
398
<DD><DL>
399
 
400
<DT><B>Throws:</B>
401
<DD><CODE>java.io.IOException</CODE></DL>
402
</DD>
403
</DL>
404
<HR>
405
 
406
<A NAME="EncodeDirectBits(int, int)"><!-- --></A><H3>
407
EncodeDirectBits</H3>
408
<PRE>
409
public void <B>EncodeDirectBits</B>(int&nbsp;v,
410
                             int&nbsp;numTotalBits)
411
                      throws java.io.IOException</PRE>
412
<DL>
413
<DD><DL>
414
 
415
<DT><B>Throws:</B>
416
<DD><CODE>java.io.IOException</CODE></DL>
417
</DD>
418
</DL>
419
<HR>
420
 
421
<A NAME="GetProcessedSizeAdd()"><!-- --></A><H3>
422
GetProcessedSizeAdd</H3>
423
<PRE>
424
public long <B>GetProcessedSizeAdd</B>()</PRE>
425
<DL>
426
<DD><DL>
427
</DL>
428
</DD>
429
</DL>
430
<HR>
431
 
432
<A NAME="InitBitModels(short[])"><!-- --></A><H3>
433
InitBitModels</H3>
434
<PRE>
435
public static void <B>InitBitModels</B>(short[]&nbsp;probs)</PRE>
436
<DL>
437
<DD><DL>
438
</DL>
439
</DD>
440
</DL>
441
<HR>
442
 
443
<A NAME="Encode(short[], int, int)"><!-- --></A><H3>
444
Encode</H3>
445
<PRE>
446
public void <B>Encode</B>(short[]&nbsp;probs,
447
                   int&nbsp;index,
448
                   int&nbsp;symbol)
449
            throws java.io.IOException</PRE>
450
<DL>
451
<DD><DL>
452
 
453
<DT><B>Throws:</B>
454
<DD><CODE>java.io.IOException</CODE></DL>
455
</DD>
456
</DL>
457
<HR>
458
 
459
<A NAME="GetPrice(int, int)"><!-- --></A><H3>
460
GetPrice</H3>
461
<PRE>
462
public static int <B>GetPrice</B>(int&nbsp;Prob,
463
                           int&nbsp;symbol)</PRE>
464
<DL>
465
<DD><DL>
466
</DL>
467
</DD>
468
</DL>
469
<HR>
470
 
471
<A NAME="GetPrice0(int)"><!-- --></A><H3>
472
GetPrice0</H3>
473
<PRE>
474
public static int <B>GetPrice0</B>(int&nbsp;Prob)</PRE>
475
<DL>
476
<DD><DL>
477
</DL>
478
</DD>
479
</DL>
480
<HR>
481
 
482
<A NAME="GetPrice1(int)"><!-- --></A><H3>
483
GetPrice1</H3>
484
<PRE>
485
public static int <B>GetPrice1</B>(int&nbsp;Prob)</PRE>
486
<DL>
487
<DD><DL>
488
</DL>
489
</DD>
490
</DL>
491
<!-- ========= END OF CLASS DATA ========= -->
492
<HR>
493
 
494
 
495
<!-- ======= START OF BOTTOM NAVBAR ====== -->
496
<A NAME="navbar_bottom"><!-- --></A>
497
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
498
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
499
<TR>
500
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
501
<A NAME="navbar_bottom_firstrow"><!-- --></A>
502
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
503
  <TR ALIGN="center" VALIGN="top">
504
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
505
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
506
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
507
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Encoder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
508
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
509
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
510
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
511
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
512
  </TR>
513
</TABLE>
514
</TD>
515
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
516
libgdx API</EM>
517
</TD>
518
</TR>
519
 
520
<TR>
521
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
522
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/utils/compression/rangecoder/Decoder.html" title="class in com.badlogic.gdx.utils.compression.rangecoder"><B>PREV CLASS</B></A>&nbsp;
523
&nbsp;NEXT CLASS</FONT></TD>
524
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
525
  <A HREF="../../../../../../index.html?com/badlogic/gdx/utils/compression/rangecoder/Encoder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
526
&nbsp;<A HREF="Encoder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
527
&nbsp;<SCRIPT type="text/javascript">
528
  <!--
529
  if(window==top) {
530
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
531
  }
532
  //-->
533
</SCRIPT>
534
<NOSCRIPT>
535
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
536
</NOSCRIPT>
537
 
538
 
539
</FONT></TD>
540
</TR>
541
<TR>
542
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
543
  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>
544
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
545
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>
546
</TR>
547
</TABLE>
548
<A NAME="skip-navbar_bottom"></A>
549
<!-- ======== END OF BOTTOM NAVBAR ======= -->
550
 
551
<HR>
552
 
553
                                <div style="font-size:9pt"><i>
554
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
555
                                </i></div>
556
 
557
</BODY>
558
</HTML>