Loading lib_com/ivas_cnst.h +2 −2 Original line number Diff line number Diff line Loading @@ -119,8 +119,8 @@ typedef enum AUDIO_CONFIG_ISM2, /* ISM2 */ AUDIO_CONFIG_ISM3, /* ISM3 */ AUDIO_CONFIG_ISM4, /* ISM4 */ AUDIO_CONFIG_MASA1, /* MASA1 */ // TODO: seems not to be used AUDIO_CONFIG_MASA2, /* MASA2 */ // TODO: seems not to be used AUDIO_CONFIG_MASA1, /* MASA1 */ AUDIO_CONFIG_MASA2, /* MASA2 */ AUDIO_CONFIG_EXTERNAL /* external renderer */ } AUDIO_CONFIG; Loading lib_com/ivas_masa_com.c +8 −0 Original line number Diff line number Diff line Loading @@ -897,6 +897,10 @@ void reconstruct_ism_ratios( void ivas_omasa_modify_masa_energy_ratios( IVAS_QMETADATA_HANDLE hQMetaData /* i/o: q_metadata handle */ #ifdef FIX_672_NOKIA_TODO , float masa_to_total_energy_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_MAXIMUM_CODING_SUBBANDS] #endif ) { int16_t i, m, d, b; Loading @@ -916,7 +920,11 @@ void ivas_omasa_modify_masa_energy_ratios( { for ( d = 0; d < hQMetaData->no_directions; d++ ) { #ifdef FIX_672_NOKIA_TODO hQMetaData->q_direction[d].band_data[b].energy_ratio[m] = hQMetaData->q_direction[d].band_data[b].energy_ratio[m] * masa_to_total_energy_ratio[i][b]; #else hQMetaData->q_direction[d].band_data[b].energy_ratio[m] = hQMetaData->q_direction[d].band_data[b].energy_ratio[m] * hQMetaData->masa_to_total_energy_ratio[i][b]; #endif } } } Loading lib_com/ivas_prot.h +8 −0 Original line number Diff line number Diff line Loading @@ -5991,7 +5991,11 @@ void ivas_omasa_set_edited_objects( ); #endif void ivas_omasa_encode_masa_to_total( #ifdef FIX_672_NOKIA_TODO float masa_to_total_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS], #else IVAS_QMETADATA_HANDLE hQMetaData, #endif BSTR_ENC_HANDLE hMetaData, const int16_t low_bitrate_mode, const int16_t nbands, Loading @@ -6008,6 +6012,10 @@ void ivas_omasa_decode_masa_to_total( void ivas_omasa_modify_masa_energy_ratios( IVAS_QMETADATA_HANDLE hQMetaData /* i/o: q_metadata handle */ #ifdef FIX_672_NOKIA_TODO , float masa_to_total_energy_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_MAXIMUM_CODING_SUBBANDS] #endif ); #endif Loading lib_com/ivas_stat_com.h +5 −0 Original line number Diff line number Diff line Loading @@ -484,6 +484,9 @@ typedef struct ivas_masa_config_struct uint8_t useCoherence; uint8_t coherencePresent; uint8_t mergeRatiosOverSubframes; #ifdef FIX_672_NOKIA_TODO IVAS_FORMAT input_ivas_format; #endif } MASA_CODEC_CONFIG; Loading Loading @@ -576,9 +579,11 @@ typedef struct ivas_masa_qmetadata_frame_struct int16_t ec_flag; float dir_comp_ratio; uint8_t is_masa_ivas_format; #ifndef FIX_672_NOKIA_TODO #ifdef MASA_AND_OBJECTS float masa_to_total_energy_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS]; /* TODO Nokia: This should be moved to some other place and reserved only when needed. */ #endif #endif } IVAS_QMETADATA, *IVAS_QMETADATA_HANDLE; Loading lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,7 @@ #define FIX_613_DIRAC_NULL_PTR_USAN /* Nokia: Issue #613: USAN in DirAC decoder setup */ #define FIX_647_SILENT_W_PARAMBIN /* Nokia: Issue #647: Fix silent W SH inputs in parametric binauralizer */ #define FIX_672_NOKIA_TODO /* Nokia: Issue #672: Resolve Nokia TODOs */ #define MASA_AND_OBJECTS /* Nokia: Combination of MASA and objects */ #define SBA_AND_OBJECTS Loading Loading
lib_com/ivas_cnst.h +2 −2 Original line number Diff line number Diff line Loading @@ -119,8 +119,8 @@ typedef enum AUDIO_CONFIG_ISM2, /* ISM2 */ AUDIO_CONFIG_ISM3, /* ISM3 */ AUDIO_CONFIG_ISM4, /* ISM4 */ AUDIO_CONFIG_MASA1, /* MASA1 */ // TODO: seems not to be used AUDIO_CONFIG_MASA2, /* MASA2 */ // TODO: seems not to be used AUDIO_CONFIG_MASA1, /* MASA1 */ AUDIO_CONFIG_MASA2, /* MASA2 */ AUDIO_CONFIG_EXTERNAL /* external renderer */ } AUDIO_CONFIG; Loading
lib_com/ivas_masa_com.c +8 −0 Original line number Diff line number Diff line Loading @@ -897,6 +897,10 @@ void reconstruct_ism_ratios( void ivas_omasa_modify_masa_energy_ratios( IVAS_QMETADATA_HANDLE hQMetaData /* i/o: q_metadata handle */ #ifdef FIX_672_NOKIA_TODO , float masa_to_total_energy_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_MAXIMUM_CODING_SUBBANDS] #endif ) { int16_t i, m, d, b; Loading @@ -916,7 +920,11 @@ void ivas_omasa_modify_masa_energy_ratios( { for ( d = 0; d < hQMetaData->no_directions; d++ ) { #ifdef FIX_672_NOKIA_TODO hQMetaData->q_direction[d].band_data[b].energy_ratio[m] = hQMetaData->q_direction[d].band_data[b].energy_ratio[m] * masa_to_total_energy_ratio[i][b]; #else hQMetaData->q_direction[d].band_data[b].energy_ratio[m] = hQMetaData->q_direction[d].band_data[b].energy_ratio[m] * hQMetaData->masa_to_total_energy_ratio[i][b]; #endif } } } Loading
lib_com/ivas_prot.h +8 −0 Original line number Diff line number Diff line Loading @@ -5991,7 +5991,11 @@ void ivas_omasa_set_edited_objects( ); #endif void ivas_omasa_encode_masa_to_total( #ifdef FIX_672_NOKIA_TODO float masa_to_total_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS], #else IVAS_QMETADATA_HANDLE hQMetaData, #endif BSTR_ENC_HANDLE hMetaData, const int16_t low_bitrate_mode, const int16_t nbands, Loading @@ -6008,6 +6012,10 @@ void ivas_omasa_decode_masa_to_total( void ivas_omasa_modify_masa_energy_ratios( IVAS_QMETADATA_HANDLE hQMetaData /* i/o: q_metadata handle */ #ifdef FIX_672_NOKIA_TODO , float masa_to_total_energy_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_MAXIMUM_CODING_SUBBANDS] #endif ); #endif Loading
lib_com/ivas_stat_com.h +5 −0 Original line number Diff line number Diff line Loading @@ -484,6 +484,9 @@ typedef struct ivas_masa_config_struct uint8_t useCoherence; uint8_t coherencePresent; uint8_t mergeRatiosOverSubframes; #ifdef FIX_672_NOKIA_TODO IVAS_FORMAT input_ivas_format; #endif } MASA_CODEC_CONFIG; Loading Loading @@ -576,9 +579,11 @@ typedef struct ivas_masa_qmetadata_frame_struct int16_t ec_flag; float dir_comp_ratio; uint8_t is_masa_ivas_format; #ifndef FIX_672_NOKIA_TODO #ifdef MASA_AND_OBJECTS float masa_to_total_energy_ratio[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS]; /* TODO Nokia: This should be moved to some other place and reserved only when needed. */ #endif #endif } IVAS_QMETADATA, *IVAS_QMETADATA_HANDLE; Loading
lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,7 @@ #define FIX_613_DIRAC_NULL_PTR_USAN /* Nokia: Issue #613: USAN in DirAC decoder setup */ #define FIX_647_SILENT_W_PARAMBIN /* Nokia: Issue #647: Fix silent W SH inputs in parametric binauralizer */ #define FIX_672_NOKIA_TODO /* Nokia: Issue #672: Resolve Nokia TODOs */ #define MASA_AND_OBJECTS /* Nokia: Combination of MASA and objects */ #define SBA_AND_OBJECTS Loading