Commit a4785365 authored by malenovsky's avatar malenovsky
Browse files

Merge branch '574-unclr-mis-classifications-in-noisy-speech-stereo' into 'main'

[Non-BE] "UNCLR mis-classifications in noisy speech stereo"

See merge request !783
parents 7e298182 2aafebd9
Loading
Loading
Loading
Loading
Loading

lib_com/options.h

100755 → 100644
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@
#define FIX_572_LFE_LPF_ENC                             /* FhG: issue 572: always apply the low pass filter to the LFE channel */

#define FIX_QMETA_SID_5k2                               /* Nokia: Issue 137: enable using full 5.2k bitrate in MASA SID */
#define FIX_UNCLR_ISSUE                                 /* VoiceAge: issue 574: Fix UNCLR mis-classifications in noisy speech stereo */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+4 −0
Original line number Diff line number Diff line
@@ -107,6 +107,10 @@ int16_t select_stereo_mode(

    /* set binary flag indicating LRTD mode based on unclr/xtalk classifiers' decisions */
    hStereoClassif->prev_lrtd_mode = hStereoClassif->lrtd_mode;
#ifdef FIX_UNCLR_ISSUE
    hStereoClassif->unclr_decision = ( hStereoClassif->unclr_decision && hCPE->hCoreCoder[0]->flag_noisy_speech_snr == 0 &&
                                       hCPE->element_brate > IVAS_16k4 );
#endif
    hStereoClassif->lrtd_mode = ( ( hStereoClassif->unclr_decision | hStereoClassif->xtalk_decision ) && is_speech );

    stereo_switching_flag = 1;