Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.g729
Class PParity

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.g729.PParity

 class PParity
extends Object

Author:
Lubomir Marinov (translation of ITU-T C source code to Java)

Constructor Summary
PParity()
           
 
Method Summary
(package private) static int check_parity_pitch(int pitch_index, int parity)
          Check parity of index with transmitted parity
(package private) static int parity_pitch(int pitch_index)
          Compute parity bit for first 6 MSBs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PParity

PParity()
Method Detail

parity_pitch

static int parity_pitch(int pitch_index)
Compute parity bit for first 6 MSBs

Parameters:
pitch_index - input : index for which parity is computed
Returns:
parity bit (XOR of 6 MSB bits)

check_parity_pitch

static int check_parity_pitch(int pitch_index,
                              int parity)
Check parity of index with transmitted parity

Parameters:
pitch_index - input : index of parameter
parity - input : parity bit
Returns:
0 = no error, 1= error

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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