Class SubMode

java.lang.Object
javaforce.codec.speex.SubMode

public class SubMode extends Object
Speex SubMode
Version:
$Revision$
Author:
Jim Lawrence, helloNetwork.com, Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Number of bits per frame after encoding
    final float
    Gain of enhancer comb filter
    final int
    Apply innovation quantization twice for higher quality (and higher bit-rate)
    final int
    Use the same (forced) pitch gain for all sub-frames
    final int
    Number of bits to use as sub-frame innovation gain
    final CbSearch
    Codebook Search un-quantizer
    final int
    Set to -1 for "normal" modes, otherwise encode pitch using a global pitch and allowing a +- lbr_pitch variation (for low not-rates)
    final float
    Enhancer constant
    final float
    Enhancer constant
    final LspQuant
    LSP quantization/unquantization function
    final Ltp
    Long-term predictor (pitch) un-quantizer
  • Constructor Summary

    Constructors
    Constructor
    Description
    SubMode(int lbr_pitch, int forced_pitch_gain, int have_subframe_gain, int double_codebook, LspQuant lspQuant, Ltp ltp, CbSearch innovation, float lpc_enh_k1, float lpc_enh_k2, float comb_gain, int bits_per_frame)
    Constructor
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • lbr_pitch

      public final int lbr_pitch
      Set to -1 for "normal" modes, otherwise encode pitch using a global pitch and allowing a +- lbr_pitch variation (for low not-rates)
    • forced_pitch_gain

      public final int forced_pitch_gain
      Use the same (forced) pitch gain for all sub-frames
    • have_subframe_gain

      public final int have_subframe_gain
      Number of bits to use as sub-frame innovation gain
    • double_codebook

      public final int double_codebook
      Apply innovation quantization twice for higher quality (and higher bit-rate)
    • lsqQuant

      public final LspQuant lsqQuant
      LSP quantization/unquantization function
    • ltp

      public final Ltp ltp
      Long-term predictor (pitch) un-quantizer
    • innovation

      public final CbSearch innovation
      Codebook Search un-quantizer
    • lpc_enh_k1

      public final float lpc_enh_k1
      Enhancer constant
    • lpc_enh_k2

      public final float lpc_enh_k2
      Enhancer constant
    • comb_gain

      public final float comb_gain
      Gain of enhancer comb filter
    • bits_per_frame

      public final int bits_per_frame
      Number of bits per frame after encoding
  • Constructor Details

    • SubMode

      public SubMode(int lbr_pitch, int forced_pitch_gain, int have_subframe_gain, int double_codebook, LspQuant lspQuant, Ltp ltp, CbSearch innovation, float lpc_enh_k1, float lpc_enh_k2, float comb_gain, int bits_per_frame)
      Constructor