Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup1Values ¶
From the spec: The return value for this function is defined to be ’the greatest integer value for which [return_value] to the power of [codebook_dimensions] is less than or equal to [codebook_ entries]’.
func Lookup1ValuesJava ¶
Translated from some java source somewhere, uses an iterative approach instead of a binary search
Types ¶
type BitReader ¶
type BitReader struct {
// contains filtered or unexported fields
}
func MakeBitReader ¶
func MakeBitReader(in io.ByteReader) *BitReader
func (*BitReader) CheckError ¶
type Codebook ¶
type Codebook struct { Dimensions int Entries []CodebookEntry Multiplicands []uint32 Minimum_value float64 Delta_value float64 Sequence_p bool // Value_vectors[entry][dimension] Value_vectors [][]float64 }
func (*Codebook) AssignCodewords ¶
func (book *Codebook) AssignCodewords()
func (*Codebook) BuildVQType1 ¶
func (book *Codebook) BuildVQType1()
func (*Codebook) BuildVQType2 ¶
func (book *Codebook) BuildVQType2()
func (*Codebook) DecodeScalar ¶
func (*Codebook) DecodeVector ¶
Click to show internal directories.
Click to hide internal directories.