Commit 19c0c55b authored by Jan Kiene's avatar Jan Kiene
Browse files

accept FIX_578_PARAMMC_ILD_BS

parent 0f0b21cc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -158,7 +158,6 @@
#define FIX_559_EXTL_IGF_MISMATCH                       /* VA: issue 559: fix mismatch between st->extl and st->igf observed as crash in PlanarSBA bitrate switching */
#define FIX_571_REVERB_NOT_ACTIVATED_ISM                /* Philips: Issue 571: Reverb not activated for discrete and parametric ISM */
#define FIX_QMETA_SID_5k2                               /* Nokia: Issue 137: enable using full 5.2k bitrate in MASA SID */
#define FIX_578_PARAMMC_ILD_BS                          /* FhG: Issue 578: transmitt also center ILD in band 0 when LFE is active in 3TC ParamMC */
#define FIX_UNCLR_ISSUE                                 /* VoiceAge: issue 574: Fix UNCLR mis-classifications in noisy speech stereo */
#define FIX_TCX_LOWRATE_LIMITATION                      /* VA: issue 577: TCX bitrate limitation only when DEBUGGING is active */
#define FIX_575_LOW_OVERLAP_PLC_RECOVERY                /* FhG: Issue 575 fix for PLC and transistion to TCX5*/
+0 −10
Original line number Diff line number Diff line
@@ -3090,19 +3090,13 @@ static void ivas_param_mc_bs_decode_parameter_values(
    int16_t i, j, k;
    float dequant_seq[PARAM_MC_MAX_PARAMETER_BANDS * PARAM_MC_MAX_VAL_MAP_SIZE];
    float dequant_ordered[PARAM_MC_MAX_PARAMETER_BANDS * PARAM_MC_MAX_VAL_MAP_SIZE];
#ifdef FIX_578_PARAMMC_ILD_BS
    int16_t n_lfe_idx;
#endif

    range_coding = bit_buffer[( *bit_pos )++];

    /* Decoding the sequence */
#ifdef FIX_578_PARAMMC_ILD_BS
    n_lfe_idx = map_size - map_size_wo_lfe;
    sz_seq = num_param_bands * ( map_size_wo_lfe ) + num_lfe_bands * n_lfe_idx;
#else
    sz_seq = num_param_bands * ( map_size_wo_lfe ) + num_lfe_bands;
#endif

    set_s( idx, 0, PARAM_MC_MAX_PARAMETER_BANDS * PARAM_MC_MAX_VAL_MAP_SIZE );
    set_zero( dequant_ordered, PARAM_MC_MAX_PARAMETER_BANDS * PARAM_MC_MAX_VAL_MAP_SIZE );
@@ -3163,14 +3157,10 @@ static void ivas_param_mc_bs_decode_parameter_values(

    for ( i = 0; i < num_lfe_bands; i++ )
    {
#ifdef FIX_578_PARAMMC_ILD_BS
        for ( j = 0; j < n_lfe_idx; j++ )
        {
            dequant_ordered[map_size - n_lfe_idx + j + i * map_size] = dequant_seq[k++];
        }
#else
        dequant_ordered[map_size - 1 + i * map_size] = dequant_seq[k++];
#endif
    }

    if ( !( *BER_detect ) )
+0 −8
Original line number Diff line number Diff line
@@ -1734,7 +1734,6 @@ static void ivas_param_mc_encode_parameter(
            if ( hMetadataPMC->bAttackPresent || hMetadataPMC->param_frame_idx == hMetadataPMC->coding_band_mapping[i] )
            {
                /* LFE ICC/ILDs are always the last ones in coding band 0 */
#ifdef FIX_578_PARAMMC_ILD_BS
                int16_t n_lfe_idx, k;
                n_lfe_idx = map_size - map_size_wo_lfe;
                for ( k = 0; k < n_lfe_idx; k++ )
@@ -1745,13 +1744,6 @@ static void ivas_param_mc_encode_parameter(
                    idx_prev = idx;
                    sz_seq++;
                }
#else
                idx = quant_idx[( i + 1 ) * map_size - 1];
                seq[sz_seq] = idx;
                seq_delta[sz_seq] = idx - idx_prev + idx_offset;
                idx_prev = idx;
                sz_seq++;
#endif
            }
        }
    }