Loading lib_com/basop_proto_func.h +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ void basop_lsf2lsp( const Word16 lsf[], Word16 lsp[] ); void basop_weight_a( const Word16 *a, Word16 *ap, const Word16 gamma ); void basop_weight_a_inv( const Word16 *a, Word16 *ap, const Word16 inv_gamma ); void basop_E_LPC_a_add_tilt( const Word16 *a, Word16 *ap, Word16 gamma ); void basop_reorder_lsf( Word16 *lsf, const Word16 min_dist, const Word16 n, const Word32 fs ); void basop_reorder_lsf( Word16 *lsf, const Word16 min_dist, const Word16 n, const Word32 Fs ); void basop_E_LPC_f_lsp_a_conversion( const Word16 *lsp, Word16 *a, const Word16 m ); /* tcx_utils.c */ Loading lib_com/bits_alloc.c +14 −14 Original line number Diff line number Diff line Loading @@ -525,7 +525,7 @@ ivas_error config_acelp1( const int16_t L_frame, /* i : frame length at internal Fs */ const int16_t GSC_noisy_speech, /* i : GSC on SWB noisy speech flag */ ACELP_config *acelp_cfg, /* i : ACELP bit-allocation */ const int16_t signalling_bits, /* i : number of signalling bits */ const int16_t signaling_bits, /* i : number of signaling bits */ const int16_t coder_type, /* i : coder type */ const int16_t tc_subfr, /* i : TC subfr ID */ const int16_t tc_call, /* i : TC call number (0,1,2,3,5(DEC)) */ Loading Loading @@ -663,7 +663,7 @@ ivas_error config_acelp1( bits += *nBits_es_Pred; /* equalize for 4th signaling bit estimated at the encoder in TC_0_192 */ } /* Subtract signalling bits */ /* Subtract signaling bits */ if ( enc_dec == DEC && idchan == 1 && element_mode > EVS_MONO ) { bits -= TDM_SIGNAL_BITS_READ_FROM_THE_END_OF_BS; Loading @@ -681,13 +681,13 @@ ivas_error config_acelp1( } else { /* Subtract signalling bits */ bits -= signalling_bits; /* Subtract signaling bits */ bits -= signaling_bits; } if ( extl_brate > 0 && ( extl == WB_TBE || extl == SWB_TBE || extl == FB_TBE || extl == WB_BWE || extl == SWB_BWE || extl == FB_BWE ) ) { /* extension layer signalling bit is counted in the extension layer bitbudget */ /* extension layer signaling bit is counted in the extension layer bitbudget */ bits++; } Loading Loading @@ -896,14 +896,14 @@ ivas_error config_acelp1( fix_first = 1; } /* TC signalling */ /* TC signaling */ if ( L_frame == L_FRAME ) { if ( tc_subfr == TC_0_0 ) { if ( enc_dec == ENC ) { bits -= 1; /* TC signalling */ bits -= 1; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -915,7 +915,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 4; /* TC signalling */ bits -= 4; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -927,7 +927,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 4; /* TC signalling */ bits -= 4; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -939,7 +939,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 3; /* TC signalling */ bits -= 3; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -951,7 +951,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 3; /* TC signalling */ bits -= 3; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -963,7 +963,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 4; /* TC signalling */ bits -= 4; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -978,11 +978,11 @@ ivas_error config_acelp1( { if ( tc_subfr <= 2 * L_SUBFR ) { bits -= 2; /* TC signalling */ bits -= 2; /* TC signaling */ } else { bits -= 3; /* TC signalling */ bits -= 3; /* TC signaling */ } } Loading lib_com/bitstream.c +15 −15 Original line number Diff line number Diff line Loading @@ -1244,7 +1244,7 @@ static void dec_prm_core( /*-----------------------------------------------------------------* * decision_matrix_core_dec() * * Read core signalling bits from the bitstream * Read core signaling bits from the bitstream * Set st->core, and st->bwidth if signalled together with the core. *-----------------------------------------------------------------*/ Loading Loading @@ -1291,12 +1291,12 @@ static void decision_matrix_core_dec( } /*-----------------------------------------------------------------* * Read ACELP signalling bits from the bitstream * Read ACELP signaling bits from the bitstream *-----------------------------------------------------------------*/ if ( st->core == ACELP_CORE ) { /* find the section in the ACELP signalling table corresponding to bitrate */ /* find the section in the ACELP signaling table corresponding to bitrate */ start_idx = 0; while ( acelp_sig_tbl[start_idx] != st->total_brate ) { Loading @@ -1312,11 +1312,11 @@ static void decision_matrix_core_dec( /* retrieve the number of bits */ nBits = (int16_t) acelp_sig_tbl[start_idx++]; /* retrieve the signalling indice */ /* retrieve the signaling indice */ ind = acelp_sig_tbl[start_idx + get_next_indice( st, nBits )]; st->bwidth = ( ind >> 3 ) & 0x7; /* convert signalling indice into signalling information */ /* convert signaling indice into signaling information */ if ( ( ind & 0x7 ) == LR_MDCT ) { st->core = HQ_CORE; Loading @@ -1324,7 +1324,7 @@ static void decision_matrix_core_dec( } /*-----------------------------------------------------------------* * Read HQ signalling bits from the bitstream * Read HQ signaling bits from the bitstream * Set HQ core type *-----------------------------------------------------------------*/ Loading Loading @@ -1849,7 +1849,7 @@ ivas_error preview_indices( break; case SID_ISM: st_ivas->ivas_format = ISM_FORMAT; /* temporary hack to make mode signalling work with the current 1-object ISM DTX: read padding bits */ /* temporary hack to make mode signaling work with the current 1-object ISM DTX: read padding bits */ /* Todo: how to apply this here? maybe pt_stream += ... would work? */ /* st->bit_stream += ( IVAS_SID_4k4 - SID_2k40 ) / FRAMES_PER_SEC - SID_FORMAT_NBITS; */ break; Loading Loading @@ -2507,7 +2507,7 @@ static void get_rfFlag( /* check for rf_flag in the packet and extract the rf_frame_type and rf_fec_offset */ if ( st->total_brate == ACELP_13k20 && ( st->bfi == FRAMEMODE_NORMAL || st->bfi == FRAMEMODE_FUTURE ) ) { /* find the section in the ACELP signalling table corresponding to bitrate */ /* find the section in the ACELP signaling table corresponding to bitrate */ start_idx = 0; while ( acelp_sig_tbl[start_idx] != st->total_brate ) { Loading @@ -2521,10 +2521,10 @@ static void get_rfFlag( /* retrieve the number of bits */ nBits_tmp = (int16_t) acelp_sig_tbl[start_idx++]; /* retrieve the signalling indice */ /* retrieve the signaling indice */ ind_tmp = acelp_sig_tbl[start_idx + get_indice( st, 0, nBits_tmp )]; /* convert signalling indice into RF flag. */ /* convert signaling indice into RF flag. */ *rf_flag = ( ind_tmp >> 7 ) & 0x1; if ( ind ) Loading Loading @@ -2627,7 +2627,7 @@ static void get_rfTargetBits( /*-------------------------------------------------------------------* * berCheck() * * Check for bit errors in channel aware signalling. * Check for bit errors in channel aware signaling. *-------------------------------------------------------------------*/ static void berCheck( Loading Loading @@ -2750,7 +2750,7 @@ void get_NextCoderType( tmp += bit_stream[k]; } /* retrieve the signalling indice */ /* retrieve the signaling indice */ *next_coder_type = acelp_sig_tbl[start_idx + tmp] & 0x7; return; Loading Loading @@ -2926,7 +2926,7 @@ void evs_dec_previewFrame( if ( total_brate == ACELP_13k20 ) { /* find the section in the ACELP signalling table corresponding to bitrate */ /* find the section in the ACELP signaling table corresponding to bitrate */ start_idx = 0; while ( acelp_sig_tbl[start_idx] != total_brate ) { Loading @@ -2939,10 +2939,10 @@ void evs_dec_previewFrame( /* retrieve the number of bits */ nBits = (int16_t) acelp_sig_tbl[start_idx++]; /* retrieve the signalling indice */ /* retrieve the signaling indice */ ind = acelp_sig_tbl[start_idx + get_indice_preview( bitstream, bitstreamSize, 0, nBits )]; /* convert signalling indice into RF flag. */ /* convert signaling indice into RF flag. */ rf_flag = ( ind >> 7 ) & 0x1; if ( rf_flag != 0 ) { Loading lib_com/cnst.h +1 −1 Original line number Diff line number Diff line Loading @@ -550,7 +550,7 @@ enum #define L_MDCT_OVLP_MAX_CORE_FS L_NEXT_MAX_32k /* 280, 2/3 * L_MDCT_OVLP_MAX */ #define L_MDCT_HALF_OVLP_MAX_CORE_FS 2 * ( L_MDCT_HALF_OVLP_MAX ) / 3 /* 2/3 * L_MDCT_HALF_OVLP_MAX */ #define L_MDCT_MIN_OVLP_MAX_CORE_FS 2 * ( L_MDCT_MIN_OVLP_MAX ) / 3 /* 2/3 * L_MDCT_MIN_OVLP_MAX */ #define L_ALDO_WIN1_MAX_CORE_FS 460 /* ALDO1 maximum window length for max core fs */ #define L_ALDO_WIN1_MAX_CORE_FS 460 /* ALDO1 maximum window length for max core Fs */ #define L_ALDO_WIN1_FB_MAX 690 /* ALDO1 maximum window length */ /*----------------------------------------------------------------------------------* Loading lib_com/core_com_config.c +2 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ /*! r: flag indicating a valid bitrate */ int16_t is_EVS_bitrate( const int32_t ivas_total_brate, /* i : EVS total bitrate */ const int32_t ivas_total_brate, /* i : IVAS total bitrate */ int16_t *Opt_AMR_WB /* i : AMR-WB IO flag */ ) { Loading Loading
lib_com/basop_proto_func.h +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ void basop_lsf2lsp( const Word16 lsf[], Word16 lsp[] ); void basop_weight_a( const Word16 *a, Word16 *ap, const Word16 gamma ); void basop_weight_a_inv( const Word16 *a, Word16 *ap, const Word16 inv_gamma ); void basop_E_LPC_a_add_tilt( const Word16 *a, Word16 *ap, Word16 gamma ); void basop_reorder_lsf( Word16 *lsf, const Word16 min_dist, const Word16 n, const Word32 fs ); void basop_reorder_lsf( Word16 *lsf, const Word16 min_dist, const Word16 n, const Word32 Fs ); void basop_E_LPC_f_lsp_a_conversion( const Word16 *lsp, Word16 *a, const Word16 m ); /* tcx_utils.c */ Loading
lib_com/bits_alloc.c +14 −14 Original line number Diff line number Diff line Loading @@ -525,7 +525,7 @@ ivas_error config_acelp1( const int16_t L_frame, /* i : frame length at internal Fs */ const int16_t GSC_noisy_speech, /* i : GSC on SWB noisy speech flag */ ACELP_config *acelp_cfg, /* i : ACELP bit-allocation */ const int16_t signalling_bits, /* i : number of signalling bits */ const int16_t signaling_bits, /* i : number of signaling bits */ const int16_t coder_type, /* i : coder type */ const int16_t tc_subfr, /* i : TC subfr ID */ const int16_t tc_call, /* i : TC call number (0,1,2,3,5(DEC)) */ Loading Loading @@ -663,7 +663,7 @@ ivas_error config_acelp1( bits += *nBits_es_Pred; /* equalize for 4th signaling bit estimated at the encoder in TC_0_192 */ } /* Subtract signalling bits */ /* Subtract signaling bits */ if ( enc_dec == DEC && idchan == 1 && element_mode > EVS_MONO ) { bits -= TDM_SIGNAL_BITS_READ_FROM_THE_END_OF_BS; Loading @@ -681,13 +681,13 @@ ivas_error config_acelp1( } else { /* Subtract signalling bits */ bits -= signalling_bits; /* Subtract signaling bits */ bits -= signaling_bits; } if ( extl_brate > 0 && ( extl == WB_TBE || extl == SWB_TBE || extl == FB_TBE || extl == WB_BWE || extl == SWB_BWE || extl == FB_BWE ) ) { /* extension layer signalling bit is counted in the extension layer bitbudget */ /* extension layer signaling bit is counted in the extension layer bitbudget */ bits++; } Loading Loading @@ -896,14 +896,14 @@ ivas_error config_acelp1( fix_first = 1; } /* TC signalling */ /* TC signaling */ if ( L_frame == L_FRAME ) { if ( tc_subfr == TC_0_0 ) { if ( enc_dec == ENC ) { bits -= 1; /* TC signalling */ bits -= 1; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -915,7 +915,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 4; /* TC signalling */ bits -= 4; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -927,7 +927,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 4; /* TC signalling */ bits -= 4; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -939,7 +939,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 3; /* TC signalling */ bits -= 3; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -951,7 +951,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 3; /* TC signalling */ bits -= 3; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -963,7 +963,7 @@ ivas_error config_acelp1( { if ( enc_dec == ENC ) { bits -= 4; /* TC signalling */ bits -= 4; /* TC signaling */ } if ( acelp_cfg->ltf_mode == NORMAL_OPERATION ) Loading @@ -978,11 +978,11 @@ ivas_error config_acelp1( { if ( tc_subfr <= 2 * L_SUBFR ) { bits -= 2; /* TC signalling */ bits -= 2; /* TC signaling */ } else { bits -= 3; /* TC signalling */ bits -= 3; /* TC signaling */ } } Loading
lib_com/bitstream.c +15 −15 Original line number Diff line number Diff line Loading @@ -1244,7 +1244,7 @@ static void dec_prm_core( /*-----------------------------------------------------------------* * decision_matrix_core_dec() * * Read core signalling bits from the bitstream * Read core signaling bits from the bitstream * Set st->core, and st->bwidth if signalled together with the core. *-----------------------------------------------------------------*/ Loading Loading @@ -1291,12 +1291,12 @@ static void decision_matrix_core_dec( } /*-----------------------------------------------------------------* * Read ACELP signalling bits from the bitstream * Read ACELP signaling bits from the bitstream *-----------------------------------------------------------------*/ if ( st->core == ACELP_CORE ) { /* find the section in the ACELP signalling table corresponding to bitrate */ /* find the section in the ACELP signaling table corresponding to bitrate */ start_idx = 0; while ( acelp_sig_tbl[start_idx] != st->total_brate ) { Loading @@ -1312,11 +1312,11 @@ static void decision_matrix_core_dec( /* retrieve the number of bits */ nBits = (int16_t) acelp_sig_tbl[start_idx++]; /* retrieve the signalling indice */ /* retrieve the signaling indice */ ind = acelp_sig_tbl[start_idx + get_next_indice( st, nBits )]; st->bwidth = ( ind >> 3 ) & 0x7; /* convert signalling indice into signalling information */ /* convert signaling indice into signaling information */ if ( ( ind & 0x7 ) == LR_MDCT ) { st->core = HQ_CORE; Loading @@ -1324,7 +1324,7 @@ static void decision_matrix_core_dec( } /*-----------------------------------------------------------------* * Read HQ signalling bits from the bitstream * Read HQ signaling bits from the bitstream * Set HQ core type *-----------------------------------------------------------------*/ Loading Loading @@ -1849,7 +1849,7 @@ ivas_error preview_indices( break; case SID_ISM: st_ivas->ivas_format = ISM_FORMAT; /* temporary hack to make mode signalling work with the current 1-object ISM DTX: read padding bits */ /* temporary hack to make mode signaling work with the current 1-object ISM DTX: read padding bits */ /* Todo: how to apply this here? maybe pt_stream += ... would work? */ /* st->bit_stream += ( IVAS_SID_4k4 - SID_2k40 ) / FRAMES_PER_SEC - SID_FORMAT_NBITS; */ break; Loading Loading @@ -2507,7 +2507,7 @@ static void get_rfFlag( /* check for rf_flag in the packet and extract the rf_frame_type and rf_fec_offset */ if ( st->total_brate == ACELP_13k20 && ( st->bfi == FRAMEMODE_NORMAL || st->bfi == FRAMEMODE_FUTURE ) ) { /* find the section in the ACELP signalling table corresponding to bitrate */ /* find the section in the ACELP signaling table corresponding to bitrate */ start_idx = 0; while ( acelp_sig_tbl[start_idx] != st->total_brate ) { Loading @@ -2521,10 +2521,10 @@ static void get_rfFlag( /* retrieve the number of bits */ nBits_tmp = (int16_t) acelp_sig_tbl[start_idx++]; /* retrieve the signalling indice */ /* retrieve the signaling indice */ ind_tmp = acelp_sig_tbl[start_idx + get_indice( st, 0, nBits_tmp )]; /* convert signalling indice into RF flag. */ /* convert signaling indice into RF flag. */ *rf_flag = ( ind_tmp >> 7 ) & 0x1; if ( ind ) Loading Loading @@ -2627,7 +2627,7 @@ static void get_rfTargetBits( /*-------------------------------------------------------------------* * berCheck() * * Check for bit errors in channel aware signalling. * Check for bit errors in channel aware signaling. *-------------------------------------------------------------------*/ static void berCheck( Loading Loading @@ -2750,7 +2750,7 @@ void get_NextCoderType( tmp += bit_stream[k]; } /* retrieve the signalling indice */ /* retrieve the signaling indice */ *next_coder_type = acelp_sig_tbl[start_idx + tmp] & 0x7; return; Loading Loading @@ -2926,7 +2926,7 @@ void evs_dec_previewFrame( if ( total_brate == ACELP_13k20 ) { /* find the section in the ACELP signalling table corresponding to bitrate */ /* find the section in the ACELP signaling table corresponding to bitrate */ start_idx = 0; while ( acelp_sig_tbl[start_idx] != total_brate ) { Loading @@ -2939,10 +2939,10 @@ void evs_dec_previewFrame( /* retrieve the number of bits */ nBits = (int16_t) acelp_sig_tbl[start_idx++]; /* retrieve the signalling indice */ /* retrieve the signaling indice */ ind = acelp_sig_tbl[start_idx + get_indice_preview( bitstream, bitstreamSize, 0, nBits )]; /* convert signalling indice into RF flag. */ /* convert signaling indice into RF flag. */ rf_flag = ( ind >> 7 ) & 0x1; if ( rf_flag != 0 ) { Loading
lib_com/cnst.h +1 −1 Original line number Diff line number Diff line Loading @@ -550,7 +550,7 @@ enum #define L_MDCT_OVLP_MAX_CORE_FS L_NEXT_MAX_32k /* 280, 2/3 * L_MDCT_OVLP_MAX */ #define L_MDCT_HALF_OVLP_MAX_CORE_FS 2 * ( L_MDCT_HALF_OVLP_MAX ) / 3 /* 2/3 * L_MDCT_HALF_OVLP_MAX */ #define L_MDCT_MIN_OVLP_MAX_CORE_FS 2 * ( L_MDCT_MIN_OVLP_MAX ) / 3 /* 2/3 * L_MDCT_MIN_OVLP_MAX */ #define L_ALDO_WIN1_MAX_CORE_FS 460 /* ALDO1 maximum window length for max core fs */ #define L_ALDO_WIN1_MAX_CORE_FS 460 /* ALDO1 maximum window length for max core Fs */ #define L_ALDO_WIN1_FB_MAX 690 /* ALDO1 maximum window length */ /*----------------------------------------------------------------------------------* Loading
lib_com/core_com_config.c +2 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ /*! r: flag indicating a valid bitrate */ int16_t is_EVS_bitrate( const int32_t ivas_total_brate, /* i : EVS total bitrate */ const int32_t ivas_total_brate, /* i : IVAS total bitrate */ int16_t *Opt_AMR_WB /* i : AMR-WB IO flag */ ) { Loading