Loading lib_enc/ivas_agc_enc.c +15 −23 Original line number Diff line number Diff line Loading @@ -59,43 +59,35 @@ extern FILE *agcOut; static int16_t ivas_agc_writeBits( FILE *stream, const int16_t n_channels, ivas_agc_enc_state_t *pState ); #endif #ifdef DEBUG_AGC_ENCODER_CMD_OPTION /*-----------------------------------------------------------------------------------------* * Function ivas_agc_enc_get_flag() * * This function determines if AGC should be enabled or disabled. * If agc_configuration is not undefined, then this value decides on the state of * enablement, otherwise AGC is enabled only if there is one transport channel. * * This function determines if AGC is enabled or disabled. *-----------------------------------------------------------------------------------------*/ /*! r: AGC enable flag */ int16_t ivas_agc_enc_get_flag( #ifdef DEBUG_AGC_ENCODER_CMD_OPTION int16_t agc_configuration, /* i : AGC configuration from command-line */ #endif int16_t nchan_transport /* i : number of transport channels */ ) { return (int16_t) ( ( agc_configuration == SBA_AGC_DEFAULT ) ? ( nchan_transport == 1 ) : agc_configuration ); } int16_t agc_flag; #else /*-----------------------------------------------------------------------------------------* * Function ivas_agc_enc_get_flag() * * This function determines if AGC should be enabled or disabled. * AGC is enabled only if there is one transport channel. * *-----------------------------------------------------------------------------------------*/ /* AGC is enabled only if there is one transport channel. */ agc_flag = (int16_t) ( nchan_transport == 1 ); /*! r: AGC enable flag */ int16_t ivas_agc_enc_get_flag( int16_t nchan_transport /* i : number of transport channels */ ) { return (int16_t) ( nchan_transport == 1 ); #ifdef DEBUG_AGC_ENCODER_CMD_OPTION /* If agc_configuration is not undefined, then this value decides on the state of * enablement, otherwise AGC is enabled only if there is one transport channel. */ agc_flag = ( agc_configuration != SBA_AGC_DEFAULT ) ? agc_configuration : agc_flag; #endif return agc_flag; } #endif /*-----------------------------------------------------------------------------------------* * Function ivas_agc_enc_init() Loading Loading
lib_enc/ivas_agc_enc.c +15 −23 Original line number Diff line number Diff line Loading @@ -59,43 +59,35 @@ extern FILE *agcOut; static int16_t ivas_agc_writeBits( FILE *stream, const int16_t n_channels, ivas_agc_enc_state_t *pState ); #endif #ifdef DEBUG_AGC_ENCODER_CMD_OPTION /*-----------------------------------------------------------------------------------------* * Function ivas_agc_enc_get_flag() * * This function determines if AGC should be enabled or disabled. * If agc_configuration is not undefined, then this value decides on the state of * enablement, otherwise AGC is enabled only if there is one transport channel. * * This function determines if AGC is enabled or disabled. *-----------------------------------------------------------------------------------------*/ /*! r: AGC enable flag */ int16_t ivas_agc_enc_get_flag( #ifdef DEBUG_AGC_ENCODER_CMD_OPTION int16_t agc_configuration, /* i : AGC configuration from command-line */ #endif int16_t nchan_transport /* i : number of transport channels */ ) { return (int16_t) ( ( agc_configuration == SBA_AGC_DEFAULT ) ? ( nchan_transport == 1 ) : agc_configuration ); } int16_t agc_flag; #else /*-----------------------------------------------------------------------------------------* * Function ivas_agc_enc_get_flag() * * This function determines if AGC should be enabled or disabled. * AGC is enabled only if there is one transport channel. * *-----------------------------------------------------------------------------------------*/ /* AGC is enabled only if there is one transport channel. */ agc_flag = (int16_t) ( nchan_transport == 1 ); /*! r: AGC enable flag */ int16_t ivas_agc_enc_get_flag( int16_t nchan_transport /* i : number of transport channels */ ) { return (int16_t) ( nchan_transport == 1 ); #ifdef DEBUG_AGC_ENCODER_CMD_OPTION /* If agc_configuration is not undefined, then this value decides on the state of * enablement, otherwise AGC is enabled only if there is one transport channel. */ agc_flag = ( agc_configuration != SBA_AGC_DEFAULT ) ? agc_configuration : agc_flag; #endif return agc_flag; } #endif /*-----------------------------------------------------------------------------------------* * Function ivas_agc_enc_init() Loading