Loading lib_enc/ivas_mc_paramupmix_enc.c +12 −0 Original line number Diff line number Diff line Loading @@ -456,7 +456,11 @@ static void huffman_encode( uint16_t bit_buffer[MC_PARAMUPMIX_MAX_BITS], int16_t *bit_pos ) { #ifdef FIX_891_PARAMUPMIX_CLEANUP int16_t iv; #else int16_t iv, ndf, ndt; #endif int32_t icode; int16_t offset; HUFF_TAB df0, df, dt; Loading @@ -469,9 +473,11 @@ static void huffman_encode( offset = nq - 1; /* range [-(nquant - 1), nquant - 1] */ #ifndef FIX_891_PARAMUPMIX_CLEANUP /* Get code length for time and freq diff coding */ ndf = 0; ndt = 0; #endif #ifdef FIX_891_PARAMUPMIX_CLEANUP for ( iv = 0; iv < IVAS_MAX_NUM_BANDS; iv++ ) #else Loading @@ -485,16 +491,22 @@ static void huffman_encode( #endif { icode = vq[iv]; #ifndef FIX_891_PARAMUPMIX_CLEANUP ndf += df0.length[icode]; #endif } else { icode = vq[iv] - vq[iv - 1] + offset; #ifndef FIX_891_PARAMUPMIX_CLEANUP ndf += df.length[icode]; #endif } icode = vq[iv] - vqPrev[iv] + offset; #ifndef FIX_891_PARAMUPMIX_CLEANUP ndt += dt.length[icode]; #endif } #ifndef FIX_891_PARAMUPMIX_CLEANUP Loading Loading
lib_enc/ivas_mc_paramupmix_enc.c +12 −0 Original line number Diff line number Diff line Loading @@ -456,7 +456,11 @@ static void huffman_encode( uint16_t bit_buffer[MC_PARAMUPMIX_MAX_BITS], int16_t *bit_pos ) { #ifdef FIX_891_PARAMUPMIX_CLEANUP int16_t iv; #else int16_t iv, ndf, ndt; #endif int32_t icode; int16_t offset; HUFF_TAB df0, df, dt; Loading @@ -469,9 +473,11 @@ static void huffman_encode( offset = nq - 1; /* range [-(nquant - 1), nquant - 1] */ #ifndef FIX_891_PARAMUPMIX_CLEANUP /* Get code length for time and freq diff coding */ ndf = 0; ndt = 0; #endif #ifdef FIX_891_PARAMUPMIX_CLEANUP for ( iv = 0; iv < IVAS_MAX_NUM_BANDS; iv++ ) #else Loading @@ -485,16 +491,22 @@ static void huffman_encode( #endif { icode = vq[iv]; #ifndef FIX_891_PARAMUPMIX_CLEANUP ndf += df0.length[icode]; #endif } else { icode = vq[iv] - vq[iv - 1] + offset; #ifndef FIX_891_PARAMUPMIX_CLEANUP ndf += df.length[icode]; #endif } icode = vq[iv] - vqPrev[iv] + offset; #ifndef FIX_891_PARAMUPMIX_CLEANUP ndt += dt.length[icode]; #endif } #ifndef FIX_891_PARAMUPMIX_CLEANUP Loading