Loading lib_enc/ivas_mct_enc_fx.c +6 −6 Original line number Diff line number Diff line Loading @@ -239,11 +239,11 @@ ivas_error ivas_mct_enc_fx( { Word32 cp_bitrate; // cp_bitrate = ivas_total_brate / hMCT->nchan_out_woLFE * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[hMCT->nchan_out_woLFE * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[hMCT->nchan_out_woLFE] ); IF( EQ_32( st_ivas->ism_mode, ISM_SBA_MODE_DISC ) ) { // cp_bitrate = ivas_total_brate / st_ivas->nchan_transport * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[st_ivas->nchan_transport * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[st_ivas->nchan_transport] ); } IF( st_ivas->hCPE[0]->hCoreCoder[0]->igf ) Loading Loading @@ -565,12 +565,12 @@ ivas_error create_mct_enc_fx( } // cp_bitrate = ivas_total_brate / hMCT->nchan_out_woLFE * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[hMCT->nchan_out_woLFE * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[hMCT->nchan_out_woLFE] ); IF( EQ_16( st_ivas->ism_mode, ISM_SBA_MODE_DISC ) ) { // cp_bitrate = ivas_total_brate / st_ivas->nchan_transport * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[st_ivas->nchan_transport * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[st_ivas->nchan_transport] ); } FOR( cpe_id = 0; cpe_id < st_ivas->nCPE; cpe_id++ ) Loading Loading @@ -709,11 +709,11 @@ ivas_error mct_enc_reconfigure_fx( } // cp_bitrate = ivas_total_brate / hMCT->nchan_out_woLFE * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[hMCT->nchan_out_woLFE * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[hMCT->nchan_out_woLFE] ); IF( EQ_16( st_ivas->ism_mode, ISM_SBA_MODE_DISC ) ) { // cp_bitrate = ivas_total_brate / st_ivas->nchan_transport * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[st_ivas->nchan_transport * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[st_ivas->nchan_transport] ); } FOR( cpe_id = 0; cpe_id < st_ivas->nCPE; cpe_id++ ) Loading Loading
lib_enc/ivas_mct_enc_fx.c +6 −6 Original line number Diff line number Diff line Loading @@ -239,11 +239,11 @@ ivas_error ivas_mct_enc_fx( { Word32 cp_bitrate; // cp_bitrate = ivas_total_brate / hMCT->nchan_out_woLFE * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[hMCT->nchan_out_woLFE * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[hMCT->nchan_out_woLFE] ); IF( EQ_32( st_ivas->ism_mode, ISM_SBA_MODE_DISC ) ) { // cp_bitrate = ivas_total_brate / st_ivas->nchan_transport * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[st_ivas->nchan_transport * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[st_ivas->nchan_transport] ); } IF( st_ivas->hCPE[0]->hCoreCoder[0]->igf ) Loading Loading @@ -565,12 +565,12 @@ ivas_error create_mct_enc_fx( } // cp_bitrate = ivas_total_brate / hMCT->nchan_out_woLFE * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[hMCT->nchan_out_woLFE * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[hMCT->nchan_out_woLFE] ); IF( EQ_16( st_ivas->ism_mode, ISM_SBA_MODE_DISC ) ) { // cp_bitrate = ivas_total_brate / st_ivas->nchan_transport * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[st_ivas->nchan_transport * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[st_ivas->nchan_transport] ); } FOR( cpe_id = 0; cpe_id < st_ivas->nCPE; cpe_id++ ) Loading Loading @@ -709,11 +709,11 @@ ivas_error mct_enc_reconfigure_fx( } // cp_bitrate = ivas_total_brate / hMCT->nchan_out_woLFE * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[hMCT->nchan_out_woLFE * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[hMCT->nchan_out_woLFE] ); IF( EQ_16( st_ivas->ism_mode, ISM_SBA_MODE_DISC ) ) { // cp_bitrate = ivas_total_brate / st_ivas->nchan_transport * CPE_CHANNELS; cp_bitrate = Mpy_32_32_r( ivas_total_brate, one_by_q_level[st_ivas->nchan_transport * CPE_CHANNELS] ); cp_bitrate = Mpy_32_32_r( L_shl( ivas_total_brate, 1 ), one_by_q_level[st_ivas->nchan_transport] ); } FOR( cpe_id = 0; cpe_id < st_ivas->nCPE; cpe_id++ ) Loading