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