Some work on index packing

This commit is contained in:
Jean-Marc Valin 2007-12-06 15:39:38 +11:00
parent bc5cedf26f
commit 29ccab8aac
5 changed files with 16 additions and 8 deletions

View file

@ -235,7 +235,7 @@ int celt_encode(CELTState *st, short *pcm)
sum += X[i]*X[i];
printf ("%f\n", sum);*/
/* Residual quantisation */
quant_bands(st->mode, X, P);
quant_bands(st->mode, X, P, &st->enc);
/* Synthesis */
denormalise_bands(st->mode, X, bandE);
@ -267,7 +267,7 @@ int celt_encode(CELTState *st, short *pcm)
pcm[i*N+j] = (short)floor(.5+tmp);
}
}
printf ("%d\n", ec_byte_bytes(&st->buf));
return 0;
}