Class SplitShapeSearch

java.lang.Object
javaforce.codec.speex.CbSearch
javaforce.codec.speex.SplitShapeSearch

public class SplitShapeSearch extends CbSearch
Split shape codebook search
Version:
$Revision$
Author:
Jim Lawrence, helloNetwork.com, Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    final 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 (Split Shape).
    final void
    unquant(float[] exc, int es, int nsf, Bits bits)
    Codebook Search Unquantification (Split Shape).

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • SplitShapeSearch

      public SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign)
      Constructor
      Parameters:
      subframesize -
      subvect_size -
      nb_subvect -
      shape_cb -
      shape_bits -
      have_sign -
  • Method Details

    • quant

      public final 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 (Split Shape).
      Specified by:
      quant in class CbSearch
      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 final void unquant(float[] exc, int es, int nsf, Bits bits)
      Codebook Search Unquantification (Split Shape).
      Specified by:
      unquant in class CbSearch
      Parameters:
      exc - - excitation array.
      es - - position in excitation array.
      nsf - - number of samples in subframe.
      bits - - Speex bits buffer.