Commit 6b82ff1d authored by bayers's avatar bayers
Browse files

remove obsolete code and tables for ParamMC

parent 5924d993
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1390,7 +1390,11 @@ typedef enum
#define PARAM_MC_MAX_DECORR_CLDFB_BANDS         20                          /* Maximum number of CLDFB bands with decorrelation */
#define PARAM_MC_MAX_TRANSPORT_CHANS             4                          /* Number of down mix channels */
#define PARAM_MC_MAX_ILD_REF_CHANNELS            2                          /* Maximum number of reference channels for a coded ILD */
#ifdef FIX_901_PARAMMC_DEAD_CODE
#define PARAM_MC_NUM_CONFIGS                    14                          /* Number of available Parametric MC configurations */
#else
#define PARAM_MC_NUM_CONFIGS                    15                          /* Number of available Parametric MC configurations */
#endif
#define PARAM_MC_MAX_BAND_LFE                    1                          /* Number of parameter bands for LFE coding */
#define PARAM_MC_SZ_ICC_MAP                     11                          /* Maximum number of transmitted ICCs per parameter band */
#define PARAM_MC_SZ_ILD_MAP                     12                          /* Maximum number of transmitted channel energies per band*/
+12 −6
Original line number Diff line number Diff line
@@ -128,22 +128,26 @@ void ivas_param_mc_metadata_open(
    {
        assert( 0 && "nbands must be 20 or 14!" );
    }

#ifndef FIX_901_PARAMMC_DEAD_CODE
    /* create map of all possible ICCs */
    ivas_param_mc_create_full_icc_mapping( nchan_setup, lfe_index, hMetadataPMC->icc_map_full, &hMetadataPMC->icc_map_size_full );
#endif
    hMetadataPMC->icc_mapping_conf = ivas_param_mc_conf[config_index].icc_mapping_conf;
    hMetadataPMC->ild_mapping_conf = ivas_param_mc_conf[config_index].ild_mapping_conf;
    hMetadataPMC->ild_factors = ivas_param_mc_conf[config_index].ild_factors;

#ifndef FIX_901_PARAMMC_DEAD_CODE
    /* set default ICC maps */
    for ( i = 0; i < PARAM_MC_PARAMETER_FRAMES; i++ )
    {
        ivas_param_mc_default_icc_map( hMetadataPMC->icc_mapping_conf, hMetadataPMC->icc_mapping[i] );
    }

#endif
    /* init remaining flags and indices */
    hMetadataPMC->param_frame_idx = 0;
#ifndef FIX_901_PARAMMC_DEAD_CODE
    hMetadataPMC->flag_use_adaptive_icc_map = 0;
#endif
    hMetadataPMC->bAttackPresent = 0;
    hMetadataPMC->attackIndex = 0;
    hMetadataPMC->lfe_on = 1;
@@ -198,7 +202,7 @@ void ivas_param_mc_set_coded_bands(
    return;
}


#ifndef FIX_901_PARAMMC_DEAD_CODE
/*-------------------------------------------------------------------------
 * ivas_param_mc_metadata_close()
 *
@@ -223,7 +227,7 @@ void ivas_param_mc_metadata_close(

    return;
}

#endif

/*-------------------------------------------------------------------------
 * ivas_param_mc_getNumTransportChannels()
@@ -247,7 +251,7 @@ int16_t ivas_param_mc_getNumTransportChannels(
    return nchan_transport;
}


#ifndef FIX_901_PARAMMC_DEAD_CODE
/*-------------------------------------------------------------------------
 * ivas_param_mc_create_full_icc_mapping()
 *
@@ -303,7 +307,6 @@ void ivas_param_mc_create_full_icc_mapping(
    return;
}


/*-------------------------------------------------------------------------
 * ivas_param_mc_default_icc_map()
 *
@@ -326,6 +329,7 @@ void ivas_param_mc_default_icc_map(

    return;
}
#endif


/*-------------------------------------------------------------------------
@@ -408,9 +412,11 @@ static int16_t ivas_param_mc_get_num_param_bands(
                case IVAS_128k:
                    num_parameter_bands = 14;
                    break;
#ifndef FIX_901_PARAMMC_DEAD_CODE
                case IVAS_160k:
                    num_parameter_bands = 20;
                    break;
#endif
            }
            break;
        default:
+4 −0
Original line number Diff line number Diff line
@@ -3835,9 +3835,11 @@ void ivas_param_mc_set_coded_bands(
    HANDLE_IVAS_PARAM_MC_METADATA hMetadataPMC                  /* i/o: handle for the Parametric MC parameter coding state */
);

#ifndef FIX_901_PARAMMC_DEAD_CODE
void ivas_param_mc_metadata_close(
    HANDLE_IVAS_PARAM_MC_METADATA hMetadataPMC                  /* i/o: handle for the Parametric MC parameter coding state */
);
#endif

void ivas_param_mc_create_full_icc_mapping(
    const int16_t n_channels,                                   /* i  : number of channels with LFE for the internal setup  */
@@ -3910,10 +3912,12 @@ void ivas_param_mc_dec(
    float *output_f[]                                           /* i/o: synthesized core-coder transport channels/DirAC output  */
);

#ifndef FIX_901_PARAMMC_DEAD_CODE
void ivas_param_mc_default_icc_map(
    const PARAM_MC_ICC_MAPPING * hIccMapping,                   /* i  : handle to ICC mapping configuration                 */
    int16_t icc_map[PARAM_MC_SZ_ICC_MAP][2]                     /* o  : copy of map from the configuration                  */
);
#endif

/*! r: number of cldfb synthesis instances */
int16_t param_mc_get_num_cldfb_syntheses( 
+10 −1
Original line number Diff line number Diff line
@@ -1973,6 +1973,7 @@ const float ivas_param_mc_ild_fac_CICP19_3tc[12] =
    0.5f
};
#ifndef FIX_901_PARAMMC_DEAD_CODE
const float ivas_param_mc_ild_fac_CICP19_4tc[12] =
{
    0.35f,
@@ -1988,6 +1989,7 @@ const float ivas_param_mc_ild_fac_CICP19_4tc[12] =
    0.5f,
    0.2f,
};
#endif
const PARAM_MC_ILD_MAPPING ivas_param_mc_ild_mapping_CICP6_2tc =
{
@@ -2052,6 +2054,7 @@ const PARAM_MC_ILD_MAPPING ivas_param_mc_ild_mapping_CICP19_3tc =
    {{0},{1},{0},{1},{0},{1},{0},{1},{0},{1},{2},{2}}
};
#ifndef FIX_901_PARAMMC_DEAD_CODE
const PARAM_MC_ILD_MAPPING ivas_param_mc_ild_mapping_CICP19_4tc =
{
    11,
@@ -2060,6 +2063,7 @@ const PARAM_MC_ILD_MAPPING ivas_param_mc_ild_mapping_CICP19_4tc =
    {1,1,2,1,1,1,1,1,1,1,1,2},
    {{0},{1},{0,1},{0},{1},{0},{1},{2},{3},{2},{3},{0,1}}
};
#endif
const PARAM_MC_ICC_MAPPING ivas_param_mc_icc_mapping_CICP6_2tc =
{
@@ -2161,6 +2165,7 @@ const PARAM_MC_ICC_MAPPING ivas_param_mc_icc_mapping_CICP19_3tc =
    }  
};
#ifndef FIX_901_PARAMMC_DEAD_CODE
const PARAM_MC_ICC_MAPPING ivas_param_mc_icc_mapping_CICP19_4tc =
{
    8,
@@ -2176,6 +2181,7 @@ const PARAM_MC_ICC_MAPPING ivas_param_mc_icc_mapping_CICP19_4tc =
        { 2, 3 }   /* C/LFE   */
    }  
};
#endif
const PARAM_MC_CONF ivas_param_mc_conf[PARAM_MC_NUM_CONFIGS] = 
{
@@ -2332,7 +2338,9 @@ const PARAM_MC_CONF ivas_param_mc_conf[PARAM_MC_NUM_CONFIGS] =
        &ivas_param_mc_icc_mapping_CICP19_3tc,
        &ivas_param_mc_dmx_fac_CICP19_3tc[0],
        &ivas_param_mc_ild_fac_CICP19_3tc[0]
    },
    }
#ifndef FIX_901_PARAMMC_DEAD_CODE
		,
    /* CICP19 160000 */
    {
        MC_LS_SETUP_7_1_4,
@@ -2344,6 +2352,7 @@ const PARAM_MC_CONF ivas_param_mc_conf[PARAM_MC_NUM_CONFIGS] =
        &ivas_param_mc_dmx_fac_CICP19_4tc[0],
        &ivas_param_mc_ild_fac_CICP19_4tc[0]
    }
			#endif
};
const float ivas_param_mc_quant_ild_5d1_48[PARAM_MC_SZ_ILD_QUANTIZER_4BITS] =
+4 −0
Original line number Diff line number Diff line
@@ -595,11 +595,15 @@ typedef struct ivas_parametric_mc_metadata_struct
{
    const PARAM_MC_ILD_MAPPING *ild_mapping_conf;
    const PARAM_MC_ICC_MAPPING *icc_mapping_conf;
#ifndef FIX_901_PARAMMC_DEAD_CODE
    int16_t icc_mapping[PARAM_MC_PARAMETER_FRAMES][PARAM_MC_SZ_ICC_MAP][2];
    int16_t *icc_map_full[2];
#endif
    int16_t icc_map_size_full;
    int16_t param_frame_idx;
#ifndef FIX_901_PARAMMC_DEAD_CODE
    int16_t flag_use_adaptive_icc_map;
#endif
    const float *ild_factors;
    int16_t coding_band_mapping[PARAM_MC_MAX_PARAMETER_BANDS];
    int16_t nbands_in_param_frame[PARAM_MC_PARAMETER_FRAMES];
Loading