Commit 376de564 authored by vaclav's avatar vaclav
Browse files

formal improvements

parent 04f10f45
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2024,7 +2024,7 @@ Word16 calc_nor_delta_hf_fx(

    max_delta = -100;
    move16();
    calc_norm_fx( t_audio, 12, ynrm_t, normqlg2_t, 0, nb_sfm, sfmsize, sfm_start );
    calc_norm_fx( t_audio, Q12, ynrm_t, normqlg2_t, 0, nb_sfm, sfmsize, sfm_start );
    add_bits_denv = 0;
    move16();
    FOR( i = num_env_bands; i < nb_sfm; ++i )
+8 −3
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
 *
 * Log quantization for norms of sub-vectors
 *--------------------------------------------------------------------------*/

void logqnorm_ivas_fx(
    const Word32 *x_fx,    /* i  : coefficient vector Qq*/
    const Word16 q,        /* i  : q of coefficient vector */
@@ -129,8 +130,11 @@ void logqnorm_ivas_fx(
        *k_fx = j2;
        move16();
    }

    return;
}


void logqnorm_fx(
    const Word32 *L_x,    /* i : coefficient vector                         Qx  */
    const Word16 qx,      /* i : Q value of input                               */
@@ -276,6 +280,7 @@ void logqnorm_2_fx(
 *
 *  Calculate the norms for the spectral envelope
 *--------------------------------------------------------------------------*/

void calc_norm_ivas_fx(
    const Word32 *x_fx,      /* i  : Input vector.(Qin)                  */
    Word16 *norm,            /* o  : Quantization indices for norms   Q0 */
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ void hq_hr_enc_fx(
     *------------------------------------------------------------------*/

    /* calculate and quantize norms */
    calc_norm_fx( t_audio, 12, ynrm, normqlg2, start_norm, num_env_bands, sfmsize, sfm_start );
    calc_norm_fx( t_audio, Q12, ynrm, normqlg2, start_norm, num_env_bands, sfmsize, sfm_start );

    /* create differential code of quantized norm indices */
    diff_envelope_coding_fx( is_transient, num_env_bands, start_norm, ynrm, normqlg2, difidx );