Loading lib_com/bitstream_fx.c +3 −4 Original line number Diff line number Diff line Loading @@ -244,7 +244,7 @@ Word16 rate2EVSmode( * * Push a new indice into the buffer *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_PUSH_BIT void push_indice_fx( BSTR_ENC_HANDLE hBstr, /* i/o: encoder state structure */ Word16 id, /* i : ID of the indice */ Loading Loading @@ -565,8 +565,7 @@ void reset_indices_dec_fx( * * Write the buffer of indices to a file *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_PUSH_BIT void write_indices_fx( Encoder_State *st_fx, /* i/o: encoder state structure */ BSTR_ENC_HANDLE hBstr, /* i/o: encoder state structure */ Loading Loading @@ -670,7 +669,7 @@ void write_indices_fx( * * Write the buffer of indices to a file *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_PUSH_BIT void write_indices_buf_fx( Encoder_State *st_fx, /* i/o: encoder state structure */ BSTR_ENC_HANDLE hBstr, /* i/o: encoder state structure */ Loading lib_enc/igf_enc.c +1 −1 Original line number Diff line number Diff line Loading @@ -2429,7 +2429,7 @@ void IGFEncSetMode_ivas_fx( * * IGF bitstream concatenation for TCX10 modes *-------------------------------------------------------------------*/ #if 0 /* Float code */ #ifndef HARM_PUSH_BIT /* Float code */ void IGFEncConcatenateBitstream( const IGF_ENC_INSTANCE_HANDLE hIGFEnc, /* i : instance handle of IGF Encoder */ const Word16 bsBits, /* i : number of IGF bits written to list of indices */ Loading lib_enc/igf_enc_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -1449,7 +1449,7 @@ hBstr->nb_bits_tot = sub( hBstr->nb_bits_tot, nb_bits_written ); return; } #if 0 /* old bitstream */ #ifndef HARM_PUSH_BIT /* old bitstream */ /**********************************************************************/ /* IGF bitsream concatenation for TCX10 modes **************************************************************************/ Loading lib_enc/init_enc_fx.c +36 −12 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ * * Initialization of state variables *-----------------------------------------------------------------------*/ #if 1 ivas_error init_encoder_fx( Encoder_State *st_fx /* i/o: Encoder static variables structure */ ) Loading Loading @@ -946,6 +947,7 @@ ivas_error init_encoder_fx( move32(); return error; } #endif /*-----------------------------------------------------------------------* * LPDmem_enc_init_fx() * Loading Loading @@ -1498,14 +1500,7 @@ ivas_error init_encoder_ivas_fx( IF( st->element_mode == EVS_MONO ) { /* This is done to as in EVS T_CldfbVadState structure is present in Encoder State */ /* if ( ( st->hVAD_CLDFB = (VAD_CLDFB_HANDLE) malloc( sizeof( T_CldfbVadState ) ) ) == NULL ) { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for CLDFB VAD\n" ) ); } */ st->hVAD_CLDFB = &st->vad_st; vad_init_fx( st->hVAD_CLDFB ); } ELSE Loading Loading @@ -1670,11 +1665,25 @@ ivas_error init_encoder_ivas_fx( test(); IF( ( NE_16( st->element_mode, IVAS_CPE_MDCT ) && idchan == 0 ) || ( EQ_16( st->element_mode, IVAS_CPE_MDCT ) && st->Opt_DTX_ON ) ) { IF( EQ_16( st->element_mode, EVS_MONO ) ) { /* open analysis for input SR */ st->input_frame_fx = extract_l( Mult_32_16( st->input_Fs, 0x0290 ) ); if ( ( error = openCldfb( &st->cldfbAnaEnc, CLDFB_ANALYSIS, CLDFB_getNumChannels( st->input_Fs ), st->input_frame_fx ) ) != IVAS_ERR_OK ) { return error; } } ELSE { IF( ( error = openCldfb_ivas_fx( &st->cldfbAnaEnc, CLDFB_ANALYSIS, st->input_Fs, CLDFB_PROTOTYPE_1_25MS, ENC ) ) != IVAS_ERR_OK ) { return error; } } } ELSE { st->cldfbAnaEnc = NULL; Loading Loading @@ -1784,11 +1793,20 @@ ivas_error init_encoder_ivas_fx( return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for TD BWE\n" ) ); } IF( st->element_mode == EVS_MONO ) { if ( ( error = openCldfb( &st->cldfbSynTd, CLDFB_SYNTHESIS, CLDFB_getNumChannels( 16000 ), L_FRAME16k ) ) != IVAS_ERR_OK ) { return error; } } ELSE { IF( ( error = openCldfb_ivas_fx( &st->cldfbSynTd, CLDFB_SYNTHESIS, 16000, CLDFB_PROTOTYPE_1_25MS, ENC ) ) != IVAS_ERR_OK ) { return error; } } InitSWBencBuffer_ivas_fx( st ); ResetSHBbuffer_Enc_fx( st ); } Loading Loading @@ -2144,7 +2162,13 @@ ivas_error init_encoder_ivas_fx( } ELSE { #ifndef HARM_ENC_INIT InitTransientDetection_ivas_fx( frame_length, NS2SA_FX2( st->input_Fs, DELAY_FIR_RESAMPL_NS ), st->hTranDet, 0 ); #else InitTransientDetection_fx( extract_l( Mult_32_16( st->input_Fs, 0x0290 ) ), NS2SA_FX2( st->input_Fs, DELAY_FIR_RESAMPL_NS ), &st->transientDetection ); #endif } /*-----------------------------------------------------------------* Loading lib_enc/ivas_init_enc_fx.c +4 −3 Original line number Diff line number Diff line Loading @@ -269,7 +269,7 @@ Word16 getNumChanAnalysis_fx( return n; } #ifndef HARM_ENC_INIT /*-------------------------------------------------------------------* * copy_encoder_config_ivas_fx() * Loading Loading @@ -321,6 +321,7 @@ void copy_encoder_config_ivas_fx( return; } #endif /*-------------------------------------------------------------------* * copy_encoder_config_fx() * Loading Loading @@ -463,7 +464,7 @@ void ivas_initialize_handles_enc_fx( * * Initialize IVAS encoder state structure *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_ENC_INIT ivas_error ivas_init_encoder( Encoder_Struct *st_ivas /* i/o: IVAS encoder structure */ ) Loading Loading @@ -1213,7 +1214,7 @@ ivas_error ivas_init_encoder_fx( move16(); test(); IF( NE_32( ( error = create_evs_sce_enc_fx( st_ivas, sce_id, ivas_total_brate ) ), IVAS_ERR_OK ) ) IF( NE_32( ( error = create_sce_enc_fx( st_ivas, sce_id, ivas_total_brate ) ), IVAS_ERR_OK ) ) { return error; } Loading Loading
lib_com/bitstream_fx.c +3 −4 Original line number Diff line number Diff line Loading @@ -244,7 +244,7 @@ Word16 rate2EVSmode( * * Push a new indice into the buffer *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_PUSH_BIT void push_indice_fx( BSTR_ENC_HANDLE hBstr, /* i/o: encoder state structure */ Word16 id, /* i : ID of the indice */ Loading Loading @@ -565,8 +565,7 @@ void reset_indices_dec_fx( * * Write the buffer of indices to a file *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_PUSH_BIT void write_indices_fx( Encoder_State *st_fx, /* i/o: encoder state structure */ BSTR_ENC_HANDLE hBstr, /* i/o: encoder state structure */ Loading Loading @@ -670,7 +669,7 @@ void write_indices_fx( * * Write the buffer of indices to a file *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_PUSH_BIT void write_indices_buf_fx( Encoder_State *st_fx, /* i/o: encoder state structure */ BSTR_ENC_HANDLE hBstr, /* i/o: encoder state structure */ Loading
lib_enc/igf_enc.c +1 −1 Original line number Diff line number Diff line Loading @@ -2429,7 +2429,7 @@ void IGFEncSetMode_ivas_fx( * * IGF bitstream concatenation for TCX10 modes *-------------------------------------------------------------------*/ #if 0 /* Float code */ #ifndef HARM_PUSH_BIT /* Float code */ void IGFEncConcatenateBitstream( const IGF_ENC_INSTANCE_HANDLE hIGFEnc, /* i : instance handle of IGF Encoder */ const Word16 bsBits, /* i : number of IGF bits written to list of indices */ Loading
lib_enc/igf_enc_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -1449,7 +1449,7 @@ hBstr->nb_bits_tot = sub( hBstr->nb_bits_tot, nb_bits_written ); return; } #if 0 /* old bitstream */ #ifndef HARM_PUSH_BIT /* old bitstream */ /**********************************************************************/ /* IGF bitsream concatenation for TCX10 modes **************************************************************************/ Loading
lib_enc/init_enc_fx.c +36 −12 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ * * Initialization of state variables *-----------------------------------------------------------------------*/ #if 1 ivas_error init_encoder_fx( Encoder_State *st_fx /* i/o: Encoder static variables structure */ ) Loading Loading @@ -946,6 +947,7 @@ ivas_error init_encoder_fx( move32(); return error; } #endif /*-----------------------------------------------------------------------* * LPDmem_enc_init_fx() * Loading Loading @@ -1498,14 +1500,7 @@ ivas_error init_encoder_ivas_fx( IF( st->element_mode == EVS_MONO ) { /* This is done to as in EVS T_CldfbVadState structure is present in Encoder State */ /* if ( ( st->hVAD_CLDFB = (VAD_CLDFB_HANDLE) malloc( sizeof( T_CldfbVadState ) ) ) == NULL ) { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for CLDFB VAD\n" ) ); } */ st->hVAD_CLDFB = &st->vad_st; vad_init_fx( st->hVAD_CLDFB ); } ELSE Loading Loading @@ -1670,11 +1665,25 @@ ivas_error init_encoder_ivas_fx( test(); IF( ( NE_16( st->element_mode, IVAS_CPE_MDCT ) && idchan == 0 ) || ( EQ_16( st->element_mode, IVAS_CPE_MDCT ) && st->Opt_DTX_ON ) ) { IF( EQ_16( st->element_mode, EVS_MONO ) ) { /* open analysis for input SR */ st->input_frame_fx = extract_l( Mult_32_16( st->input_Fs, 0x0290 ) ); if ( ( error = openCldfb( &st->cldfbAnaEnc, CLDFB_ANALYSIS, CLDFB_getNumChannels( st->input_Fs ), st->input_frame_fx ) ) != IVAS_ERR_OK ) { return error; } } ELSE { IF( ( error = openCldfb_ivas_fx( &st->cldfbAnaEnc, CLDFB_ANALYSIS, st->input_Fs, CLDFB_PROTOTYPE_1_25MS, ENC ) ) != IVAS_ERR_OK ) { return error; } } } ELSE { st->cldfbAnaEnc = NULL; Loading Loading @@ -1784,11 +1793,20 @@ ivas_error init_encoder_ivas_fx( return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for TD BWE\n" ) ); } IF( st->element_mode == EVS_MONO ) { if ( ( error = openCldfb( &st->cldfbSynTd, CLDFB_SYNTHESIS, CLDFB_getNumChannels( 16000 ), L_FRAME16k ) ) != IVAS_ERR_OK ) { return error; } } ELSE { IF( ( error = openCldfb_ivas_fx( &st->cldfbSynTd, CLDFB_SYNTHESIS, 16000, CLDFB_PROTOTYPE_1_25MS, ENC ) ) != IVAS_ERR_OK ) { return error; } } InitSWBencBuffer_ivas_fx( st ); ResetSHBbuffer_Enc_fx( st ); } Loading Loading @@ -2144,7 +2162,13 @@ ivas_error init_encoder_ivas_fx( } ELSE { #ifndef HARM_ENC_INIT InitTransientDetection_ivas_fx( frame_length, NS2SA_FX2( st->input_Fs, DELAY_FIR_RESAMPL_NS ), st->hTranDet, 0 ); #else InitTransientDetection_fx( extract_l( Mult_32_16( st->input_Fs, 0x0290 ) ), NS2SA_FX2( st->input_Fs, DELAY_FIR_RESAMPL_NS ), &st->transientDetection ); #endif } /*-----------------------------------------------------------------* Loading
lib_enc/ivas_init_enc_fx.c +4 −3 Original line number Diff line number Diff line Loading @@ -269,7 +269,7 @@ Word16 getNumChanAnalysis_fx( return n; } #ifndef HARM_ENC_INIT /*-------------------------------------------------------------------* * copy_encoder_config_ivas_fx() * Loading Loading @@ -321,6 +321,7 @@ void copy_encoder_config_ivas_fx( return; } #endif /*-------------------------------------------------------------------* * copy_encoder_config_fx() * Loading Loading @@ -463,7 +464,7 @@ void ivas_initialize_handles_enc_fx( * * Initialize IVAS encoder state structure *-------------------------------------------------------------------*/ #if 0 #ifndef HARM_ENC_INIT ivas_error ivas_init_encoder( Encoder_Struct *st_ivas /* i/o: IVAS encoder structure */ ) Loading Loading @@ -1213,7 +1214,7 @@ ivas_error ivas_init_encoder_fx( move16(); test(); IF( NE_32( ( error = create_evs_sce_enc_fx( st_ivas, sce_id, ivas_total_brate ) ), IVAS_ERR_OK ) ) IF( NE_32( ( error = create_sce_enc_fx( st_ivas, sce_id, ivas_total_brate ) ), IVAS_ERR_OK ) ) { return error; } Loading