Commit 4bf5b15b authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch 'main' into float-1342-proper-flush-in-sr

parents 20efb0f4 3882460b
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -171,7 +171,6 @@
/* any switch which is non-be wrt. TS 26.258 V3.0 */

#define FIX_1576_LCLD_CRASH_DIFFERENT_CODEC_ISAR_FRAME_SIZE  /* Dolby: float issue 1576: fix for crash in LCLD mode when codec frame size is less than isar frame size */
#define FIX_BASOP_2612_RESET_DECIM_MEM                  /* FhG: BASOP #2612: reset (zero) the 16k resampler memory of the secondary channel on DFT->TD stereo switch (otherwise -> fx overshoot) */
#define FIX_FLOAT_1600_OMASA_WRONG_RENDER_PATH          /* Nokia: float issue 1600: fix initialization condition of stereo type detection for OMASA */

/* ##################### End NON-BE switches ########################### */
+1 −1
Original line number Diff line number Diff line
@@ -1294,7 +1294,7 @@ void reset_metadata_spatial(
#endif
                    hMetaData->nb_bits_tot += hMetaData->ind_list[j].nb_bits;
                    hMetaData->ind_list[i].nb_bits = -1;
#ifdef DBG_BISTREAM_ANALYSIS
#if defined( DEBUGGING ) && defined( DBG_BITSTREAM_ANALYSIS )
                    sprintf( hMetaData->ind_list[i].function_name, "RESET in reset_metadata_spatial" );
#endif
                }
+0 −2
Original line number Diff line number Diff line
@@ -755,9 +755,7 @@ void stereo_switching_enc(

        /* no secondary channel in the previous frame -> memory resets */
        set_zero( sts[1]->old_inp_12k8, L_INP_MEM );
#ifdef FIX_BASOP_2612_RESET_DECIM_MEM
        set_zero( sts[1]->mem_decim16k, 2 * L_FILT_MAX );
#endif
        set_zero( sts[1]->mem_decim, 2 * L_FILT_MAX );
        sts[1]->mem_preemph = 0;

+14 −10
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ def main(args):
        rng = result.columns[3:]  # Whole history
    else:
        rng = result.columns[-days:]
    result = result.dropna(subset=rng)
    result = result.dropna(subset=rng, how="all")
    result = result.reset_index(drop=True)

    ratio = result.copy()
@@ -87,11 +87,15 @@ def main(args):
        currdate = dates[-(days - i)]  # Make robust for shorter history
        prevdate = dates[-(days - i + 1)]

        idx = ratio.groupby("format")[currdate].idxmax()
        # Get max ratio per format, skip formats with no data on this date
        col = ratio[["format", currdate]].dropna()
        if not col.empty:            
            idx = col.groupby("format")[currdate].idxmax()
            all_indices.extend(idx.tolist())

            # Store worst case per format for plotting
            for f in formats: 
                if f in idx.index:
                    plotdata.loc[f, currdate] = ratio.iloc[idx[f]][currdate]
                    plottext.loc[f, currdate] = (
                        f"Job: {result.iloc[idx[f]]['job']}<br>Testcase: {result.iloc[idx[f]]['testcase']} <br>Max {measure} ratio: {ratio.iloc[idx[f]][currdate]:.2f}<br>Date: {currdate}"