Skip to content

Commit

Permalink
Clarify Pack description.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Nov 6, 2015
1 parent c45fdef commit 1e03a51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions decode/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ func Quantize(input []float64, output []byte) {
// Packs quantized signal into slices such that the first rank represents
// sample offsets and the second represents the value of each symbol from the
// given offset.
//
// Transforms:
// <--Sym1--><--Sym2--><--Sym3--><--Sym4--><--Sym5--><--Sym6--><--Sym7--><--Sym8-->
// <12345678><12345678><12345678><12345678><12345678><12345678><12345678><12345678>
// to:
// <11111111><22222222><33333333><44444444><55555555><66666666><77777777><88888888>
func (d Decoder) Pack(input []byte, slices [][]byte) {
for symbolOffset, slice := range slices {
for symbolIdx := range slice {
Expand Down

0 comments on commit 1e03a51

Please sign in to comment.