public class RangeCoder
extends java.lang.Object
Constructor and Description |
---|
RangeCoder() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
SKP_Silk_range_coder_check_after_decoding(SKP_Silk_range_coder_state psRC)
Check that any remaining bits in the last byte are set to 1.
|
(package private) static int |
SKP_Silk_range_coder_get_length(SKP_Silk_range_coder_state psRC,
int[] nBytes)
Determine length of bitstream.
|
(package private) static void |
SKP_Silk_range_dec_init(SKP_Silk_range_coder_state psRC,
byte[] buffer,
int buffer_offset,
int bufferLength)
Initialize range decoder.
|
(package private) static void |
SKP_Silk_range_decoder_multi(int[] data,
SKP_Silk_range_coder_state psRC,
int[][] prob,
int[] probStartIx,
int nSymbols)
Range decoder for multiple symbols.
|
(package private) static void |
SKP_Silk_range_decoder(int[] data,
int data_offset,
SKP_Silk_range_coder_state psRC,
int[] prob,
int prob_offset,
int probIx)
Range decoder for one symbol.
|
(package private) static void |
SKP_Silk_range_enc_init(SKP_Silk_range_coder_state psRC)
Initialize range encoder.
|
(package private) static void |
SKP_Silk_range_enc_wrap_up(SKP_Silk_range_coder_state psRC)
Write shortest uniquely decodable stream to buffer, and determine its length.
|
(package private) static void |
SKP_Silk_range_encoder_multi(SKP_Silk_range_coder_state psRC,
int[] data,
int[][] prob,
int nSymbols)
Range encoder for multiple symbols.
|
(package private) static void |
SKP_Silk_range_encoder(SKP_Silk_range_coder_state psRC,
int data,
int[] prob,
int prob_offset)
Range encoder for one symbol.
|
static void SKP_Silk_range_encoder(SKP_Silk_range_coder_state psRC, int data, int[] prob, int prob_offset)
psRC
- compressor data structure.data
- uncompressed data.prob
- cumulative density functions.prob_offset
- offset of valid data.static void SKP_Silk_range_encoder_multi(SKP_Silk_range_coder_state psRC, int[] data, int[][] prob, int nSymbols)
psRC
- compressor data structure.data
- uncompressed data [nSymbols].prob
- cumulative density functions.nSymbols
- number of data symbols.static void SKP_Silk_range_decoder(int[] data, int data_offset, SKP_Silk_range_coder_state psRC, int[] prob, int prob_offset, int probIx)
data
- uncompressed data.data_offset
- offset of valid data.psRC
- compressor data structure.prob
- cumulative density function.prob_offset
- offset of valid data.probIx
- initial (middle) entry of cdf.static void SKP_Silk_range_decoder_multi(int[] data, SKP_Silk_range_coder_state psRC, int[][] prob, int[] probStartIx, int nSymbols)
data
- uncompressed data [nSymbols].psRC
- compressor data structure.prob
- cumulative density functions.probStartIx
- initial (middle) entries of cdfs [nSymbols].nSymbols
- number of data symbols.static void SKP_Silk_range_enc_init(SKP_Silk_range_coder_state psRC)
psRC
- compressor data structure.static void SKP_Silk_range_dec_init(SKP_Silk_range_coder_state psRC, byte[] buffer, int buffer_offset, int bufferLength)
psRC
- compressor data structure.buffer
- buffer for compressed data [bufferLength].buffer_offset
- offset of valid data.bufferLength
- buffer length (in bytes).static int SKP_Silk_range_coder_get_length(SKP_Silk_range_coder_state psRC, int[] nBytes)
psRC
- compressed data structure.nBytes
- number of BYTES in stream.static void SKP_Silk_range_enc_wrap_up(SKP_Silk_range_coder_state psRC)
psRC
- ompressed data structure.static void SKP_Silk_range_coder_check_after_decoding(SKP_Silk_range_coder_state psRC)
psRC
- compressed data structure.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.