Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.ilbc
Class bitstream

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.ilbc.bitstream

 class bitstream
extends Object

Author:
Jean Lorchat, Lyubomir Marinov

Field Summary
(package private)  int bitcount
           
(package private)  byte[] buffer
           
(package private)  int buffer_len
          The length in buffer which is available to octets of this bitstream.
(package private)  int buffer_off
          The offset in buffer of the first octet of this bitstream.
(package private)  int pos
           
 
Constructor Summary
bitstream(byte[] buffer, int offset, int length)
           
 
Method Summary
(package private)  void dopack(int index, int bitno)
           
(package private)  int packcombine(int index, int rest, int bitno_rest)
           
 bitpack packsplit(int index, int bitno_firstpart, int bitno_total)
           
 int unpack(int bitno)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitcount

int bitcount

pos

int pos

buffer

final byte[] buffer

buffer_off

final int buffer_off
The offset in buffer of the first octet of this bitstream.


buffer_len

final int buffer_len
The length in buffer which is available to octets of this bitstream.

Constructor Detail

bitstream

public bitstream(byte[] buffer,
                 int offset,
                 int length)
Method Detail

packsplit

public bitpack packsplit(int index,
                         int bitno_firstpart,
                         int bitno_total)

packcombine

int packcombine(int index,
                int rest,
                int bitno_rest)

dopack

void dopack(int index,
            int bitno)

unpack

public int unpack(int bitno)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.