Class CbSearch

java.lang.Object
org.xiph.speex.CbSearch
Direct Known Subclasses:
NoiseSearch, SplitShapeSearch

public abstract class CbSearch extends Object
Abstract class that is the base for the various Codebook search methods.
Version:
$Revision: 1.2 $
Author:
Jim Lawrence, helloNetwork.com, Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    quant(float[] target, float[] ak, float[] awk1, float[] awk2, int p, int nsf, float[] exc, int es, float[] r, Bits bits, int complexity)
    Codebook Search Quantification.
    abstract void
    unquant(float[] exc, int es, int nsf, Bits bits)
    Codebook Search Unquantification.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CbSearch

      public CbSearch()
  • Method Details

    • quant

      public abstract void quant(float[] target, float[] ak, float[] awk1, float[] awk2, int p, int nsf, float[] exc, int es, float[] r, Bits bits, int complexity)
      Codebook Search Quantification.
      Parameters:
      target - target vector
      ak - LPCs for this subframe
      awk1 - Weighted LPCs for this subframe
      awk2 - Weighted LPCs for this subframe
      p - number of LPC coeffs
      nsf - number of samples in subframe
      exc - excitation array.
      es - position in excitation array.
      r -
      bits - Speex bits buffer.
      complexity -
    • unquant

      public abstract void unquant(float[] exc, int es, int nsf, Bits bits)
      Codebook Search Unquantification.
      Parameters:
      exc - - excitation array.
      es - - position in excitation array.
      nsf - - number of samples in subframe.
      bits - - Speex bits buffer.