Commit ad9eef19 authored by malenov's avatar malenov
Browse files

correction of comments and debugging output

parent 22adcacd
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -216,8 +216,8 @@ void ivas_decision_matrix_enc(
    {
        st->core = ACELP_CORE;
#ifdef NONBE_FIX_1205_TD_STEREO_MOD_CT
        /* For TD stereo at 16.4kbps (TD is not allowed at 13k2), we can't overwrite the coder_type here WHEN it is TRANSITION */
        /* as it has been used for TD bit allocation and must remained the same at the decoder side to ensure identical bit allocation */
        /* In TD stereo at 16.4kbps (not applicable at 13.2kbps), we cannot overwrite the `coder_type` when it is set to TRANSITION, */
        /* as it is used for TD stereo bit allocation. To ensure consistent bit allocation, it must remain unchanged on the decoder side. */
        if ( st->idchan == 0 && !( element_brate <= IVAS_16k4 && st->coder_type == TRANSITION && st->element_mode == IVAS_CPE_TD ) )
        {
            st->coder_type = AUDIO;
@@ -225,7 +225,7 @@ void ivas_decision_matrix_enc(
#ifdef DEBUG_MODE_TD
        else
        {
            printf( "coder type not changed\n" );
            printf( "TD stereo: coder_type not changed in ivas_decision_matrix_enc().\n" );
        }
#endif
#else
+0 −1
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@ static void edge_detect( const float *inp, const int16_t len, const float inp_mi

static float redge_detect( const float *inp, const int16_t len, const float inp_min, const float inp_max );


/*-------------------------------------------------------------------*
 * Function select_stereo_mode()
 *
+1 −2
Original line number Diff line number Diff line
@@ -452,8 +452,7 @@ void tdm_configure_enc(
#ifdef NONBE_FIX_1205_TD_STEREO_MOD_CT
    if ( hCPE->element_brate < IVAS_24k4 )
    {
        /* Only sure TRANSITION coding modes are important for bit allocation, otherwise mod_ct is set to AUDIO only to easy debugging if needed */
        /* Enforce GC coder type on inactive signal (this can be later overwritten to INACTIVE) */
        /* In TD stereo, the TRANSITION mode has a specific bit allocation. All other formats share the same bit allocation. For these other formats, `mod_ct` is set to AUDIO to aid in debugging, though it does not have any functional impact. */
        if ( !( sts[0]->localVAD == 0 && sts[0]->coder_type == TRANSITION ) &&
             ( sts[0]->coder_type == TRANSITION ||
               ( ( ( sts[0]->last_L_frame >= L_FRAME16k && sts[0]->flag_ACELP16k == 0 ) ||