Commit bddfcdb1 authored by vaclav's avatar vaclav
Browse files

issue 360: consider objects being speech+noise for active speech coding; under...

issue 360: consider objects being speech+noise for active speech coding; under TUNE_360_OBJECT_WITH_NOISE
parent 23db55ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -162,8 +162,8 @@

#define BINAURALIZATION_DELAY_REPORT                    /* VA: Issue 255 - Changes the way the decoder delay is reported */
#define FIX_351_HRTF_COMMAND                            /* VA: Issue 354 - improve "-hrtf" command-line option */

#define FIX_94_VERIFY_WAV_NUM_CHANNELS                  /* FhG: Issue 94 - Check if number of channels in input wav file matches encoder/renderer configuration */
#define TUNE_360_OBJECT_WITH_NOISE                      /* VA: issue 360: consider objects being speech+noise for active speech coding */


/* ################## End DEVELOPMENT switches ######################### */
+6 −1
Original line number Diff line number Diff line
@@ -210,6 +210,9 @@ ivas_error ivas_ism_metadata_enc(
        }
        else if ( ism_mode == ISM_MODE_DISC )
        {
#ifdef TUNE_360_OBJECT_WITH_NOISE
            hIsmMeta[ch]->ism_metadata_flag = localVAD[ch] || hSCE[ch]->hCoreCoder[0]->lp_noise > 10;
#else
            hIsmMeta[ch]->ism_metadata_flag = localVAD[ch];

            if ( hIsmMeta[ch]->ism_metadata_flag == 0 )
@@ -223,6 +226,7 @@ ivas_error ivas_ism_metadata_enc(
                    hIsmMeta[ch]->ism_metadata_flag = 1;
                }
            }
#endif

            if ( hSCE[ch]->hCoreCoder[0]->tcxonly )
            {
@@ -238,6 +242,7 @@ ivas_error ivas_ism_metadata_enc(

    rate_ism_importance( nchan_transport, hIsmMeta, hSCE, ism_imp );

#ifndef TUNE_360_OBJECT_WITH_NOISE
    /* relax the importance decision in "stereo" coding for noisy audio */
    if ( ism_mode == ISM_MODE_DISC && num_obj == 2 )
    {
@@ -257,7 +262,7 @@ ivas_error ivas_ism_metadata_enc(
            }
        }
    }

#endif
    /*----------------------------------------------------------------*
     * Write ISm common signaling
     *----------------------------------------------------------------*/