Commit 25318aa5 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Merge branch '863-omasa-redundancies-in-stereo-mode-selection' into 'main'

Remove OMASA redundancies (fix 863)

See merge request !1177
parents 6cebea00 f23f41c1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@
#define FIX_820_DOUBLE_PREC_MACROS                      /* VA: issue 820: Double precision arithmetic in IVAS_CALCULATE_ABS() */
#define FIX_814_DOUBLE_PREC_IN_REVERB                   /* Philips: Issue 814: Replace double precision arithmetic in reverb */
#define FIX_866_MOVE_VBAP                               /* Nokia: Issue 866: Move VBAP to lib_rend */

#define FIX_863_REMOVE_REDUNDANCIES_OMASA               /* Nokia/VA: Issue 863: Remove redundancies in stereo_classifier for OMASA */

/* #################### End BE switches ################################## */

+4 −1
Original line number Diff line number Diff line
@@ -1983,8 +1983,11 @@ void ivas_masa_enc_reconfigure(
                copy_encoder_config( st_ivas, st_ivas->hCPE[cpe_id]->hCoreCoder[n], 0 );
                st_ivas->hCPE[cpe_id]->hCoreCoder[n]->total_brate = st_ivas->hCPE[cpe_id]->element_brate / ( st_ivas->nCPE > 1 ? 1 : CPE_CHANNELS ); /* dummy initialization for getting right pointers initialization of input buffers in init_coder_ace_plus() */
            }

#ifdef FIX_863_REMOVE_REDUNDANCIES_OMASA
            if ( ivas_total_brate - ism_total_brate < MIN_BRATE_MDCT_STEREO )
#else
            if ( ivas_total_brate - ism_total_brate < MASA_STEREO_MIN_BITRATE || ivas_total_brate - ism_total_brate < MIN_BRATE_MDCT_STEREO )
#endif
            {
                st_ivas->hCPE[cpe_id]->element_mode = IVAS_CPE_DFT;
            }
+4 −1
Original line number Diff line number Diff line
@@ -124,8 +124,11 @@ int16_t select_stereo_mode(
    {
        stereo_switching_flag = 0;
    }

#ifdef FIX_863_REMOVE_REDUNDANCIES_OMASA
    if ( hCPE->element_brate >= MIN_BRATE_MDCT_STEREO )
#else
    if ( hCPE->element_brate >= MIN_BRATE_MDCT_STEREO && !( hCPE->element_brate == IVAS_48k && ivas_total_brate == IVAS_32k ) ) /* the second condition for PARAM mode OMASA */
#endif
    {
        hStereoClassif->prev_lrtd_mode = 0;
        hStereoClassif->lrtd_mode = 0;