org.xiph.speex

Class SplitShapeSearch


public class SplitShapeSearch
extends CbSearch

Split shape codebook search
Version:
$Revision: 1.2 $
Authors:
Jim Lawrence, helloNetwork.com
Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)

Field Summary

private float[]
E
static int
MAX_COMPLEXITY
private float[]
e
private int
have_sign
private int[]
ind
private int
nb_subvect
private int[][]
nind
private float[][]
nt
private int[][]
oind
private float[][]
ot
private float[]
r2
private int
shape_bits
private int[]
shape_cb
private int
shape_cb_size
private int[]
signs
private int
subframesize
private int
subvect_size
private float[]
t

Constructor Summary

SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign)
Constructor

Method Summary

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

Methods inherited from class org.xiph.speex.CbSearch

quant, unquant

Field Details

E

private float[] E

MAX_COMPLEXITY

public static final int MAX_COMPLEXITY
Field Value:
10

e

private float[] e

have_sign

private int have_sign

ind

private int[] ind

nb_subvect

private int nb_subvect

nind

private int[][] nind

nt

private float[][] nt

oind

private int[][] oind

ot

private float[][] ot

r2

private float[] r2

shape_bits

private int shape_bits

shape_cb

private int[] shape_cb

shape_cb_size

private int shape_cb_size

signs

private int[] signs

subframesize

private int subframesize

subvect_size

private int subvect_size

t

private float[] t

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).
Overrides:
quant in interface 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).
Overrides:
unquant in interface CbSearch
Parameters:
exc - - excitation array.
es - - position in excitation array.
nsf - - number of samples in subframe.
bits - - Speex bits buffer.

Copyright © 1999-2004 Wimba S.A. All Rights Reserved.