/*--------------------------------------------------------------------------*/ /* ITU-T G.722.1 Fullband Extension Annex X. Source Code */ /* © 2008 Ericsson AB. and Polycom Inc. */ /* All rights reserved. */ /*--------------------------------------------------------------------------*/ #include "cnst.h" /*--------------------------------------------------------------------------*/ /* Function hdecnrm */ /* ~~~~~~~~~~~~~~~~~ */ /* */ /* Huffman decoding for indices of quantized norms */ /*--------------------------------------------------------------------------*/ /* short *bitstream (i) Huffman code */ /* short N (i) number of norms */ /* short *index (o) indices of quantized norms */ /*--------------------------------------------------------------------------*/ void hdecnrm(short *bitstream, short N, short *index) { short i, j, k, n, m; short temp; short *pbits, *pidx; pbits = bitstream; pidx = index; m = N - 1; for (i=0; i