Commit 09d42f9c authored by vaclav's avatar vaclav
Browse files

Merge branch '272-code-coverage-ivas_binaural_cldfb' into 'main'

Resolve "code coverage: ivas_binaural_cldfb()"

See merge request !373
parents 6d1b4204 7c0ddddd
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4608,11 +4608,12 @@ void ivas_binRenderer_close(
    BINAURAL_RENDERER_HANDLE *hBinRenderer                      /* i/o: decoder binaural renderer handle                */
);

#ifdef DEBUGGING
void ivas_binaural_cldfb(
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder structure                                  */
    float output_f[][L_FRAME48k]                                /* i/o: synthesized core-coder transport channels/DirAC output  */
);

#endif
void ivas_binRenderer(
    BINAURAL_RENDERER_HANDLE hBinRenderer,                      /* i/o: fastconv binaural renderer handle                       */
    HEAD_TRACK_DATA_HANDLE hHeadTrackData,                      /* i/o: head track handle                                       */
+1 −0
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@
#define MC_JBM                                          /* FhG: extend JBM beyond mono for running IVAS in VoIP mode (contribution 19) */
#define FIX_265_MC_BRATE_SWITCHING                      /* Issue 265: fix use-of-uninitialized-value in MC bitrate switching */
#define FIX_ANGLE_WRAPPING								/* Issue 244: Problems with angle wrapping*/
#define FIX_272_COV                                     /* Issue 272: Cleanup for code coverage related to calls to ivas_binaural_cldfb() */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+4 −0
Original line number Diff line number Diff line
@@ -210,10 +210,12 @@ ivas_error ivas_dec(
                ivas_crend_process( st_ivas, output );
                ivas_binaural_add_LFE( st_ivas, output_frame, output );
            }
#ifdef DEBUGGING
            else if ( st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV || st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
            {
                ivas_binaural_cldfb( st_ivas, output );
            }
#endif
        }
    }
    else if ( st_ivas->ivas_format == SBA_FORMAT || st_ivas->ivas_format == MASA_FORMAT )
@@ -394,11 +396,13 @@ ivas_error ivas_dec(
                ivas_crend_process( st_ivas, output );
                ivas_binaural_add_LFE( st_ivas, output_frame, output );
            }
#ifndef FIX_272_COV
            else if ( st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV || st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
            {
                ivas_binaural_cldfb( st_ivas, output );
                ivas_binaural_add_LFE( st_ivas, output_frame, output );
            }
#endif
            else if ( st_ivas->renderer_type == RENDERER_MC )
            {
                ivas_ls_setup_conversion( st_ivas, output_frame, output );
+3 −1
Original line number Diff line number Diff line
@@ -807,8 +807,9 @@ void ivas_binaural_add_LFE(
}


#ifdef DEBUGGING
/*-------------------------------------------------------------------------*
 * ivas_binRenderer_cldfb()
 * ivas_binaural_cldfb()
 *
 * Perform CLDFB analysis, fastconv binaural rendering and CLDFB synthesis
 *-------------------------------------------------------------------------*/
@@ -880,6 +881,7 @@ void ivas_binaural_cldfb(

    return;
}
#endif


/*-------------------------------------------------------------------------