diff options
Diffstat (limited to 'webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h')
-rw-r--r-- | webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h | 98 |
1 files changed, 31 insertions, 67 deletions
diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h b/webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h index 3dd2311..8bc3d75 100644 --- a/webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h +++ b/webrtc/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h @@ -16,12 +16,11 @@ * */ -#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ENCODE_LPC_SWB_H_ -#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ENCODE_LPC_SWB_H_ +#ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ENCODE_LPC_SWB_H_ +#define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ENCODE_LPC_SWB_H_ -#include "settings.h" -#include "structs.h" -#include "webrtc/typedefs.h" +#include "modules/audio_coding/codecs/isac/main/source/settings.h" +#include "modules/audio_coding/codecs/isac/main/source/structs.h" /****************************************************************************** * WebRtcIsac_RemoveLarMean() @@ -39,9 +38,7 @@ * * */ -int16_t WebRtcIsac_RemoveLarMean( - double* lar, - int16_t bandwidth); +int16_t WebRtcIsac_RemoveLarMean(double* lar, int16_t bandwidth); /****************************************************************************** * WebRtcIsac_DecorrelateIntraVec() @@ -59,11 +56,9 @@ int16_t WebRtcIsac_RemoveLarMean( * Output: * -out : decorrelated LAR vectors. */ -int16_t WebRtcIsac_DecorrelateIntraVec( - const double* inLAR, - double* out, - int16_t bandwidth); - +int16_t WebRtcIsac_DecorrelateIntraVec(const double* inLAR, + double* out, + int16_t bandwidth); /****************************************************************************** * WebRtcIsac_DecorrelateInterVec() @@ -82,11 +77,9 @@ int16_t WebRtcIsac_DecorrelateIntraVec( * Output: * -out : decorrelated LAR vectors. */ -int16_t WebRtcIsac_DecorrelateInterVec( - const double* data, - double* out, - int16_t bandwidth); - +int16_t WebRtcIsac_DecorrelateInterVec(const double* data, + double* out, + int16_t bandwidth); /****************************************************************************** * WebRtcIsac_QuantizeUncorrLar() @@ -102,11 +95,7 @@ int16_t WebRtcIsac_DecorrelateInterVec( * -data : quantized version of the input. * -idx : pointer to quantization indices. */ -double WebRtcIsac_QuantizeUncorrLar( - double* data, - int* idx, - int16_t bandwidth); - +double WebRtcIsac_QuantizeUncorrLar(double* data, int* idx, int16_t bandwidth); /****************************************************************************** * WebRtcIsac_CorrelateIntraVec() @@ -121,11 +110,9 @@ double WebRtcIsac_QuantizeUncorrLar( * Output: * -out : correlated parametrs. */ -int16_t WebRtcIsac_CorrelateIntraVec( - const double* data, - double* out, - int16_t bandwidth); - +int16_t WebRtcIsac_CorrelateIntraVec(const double* data, + double* out, + int16_t bandwidth); /****************************************************************************** * WebRtcIsac_CorrelateInterVec() @@ -140,17 +127,15 @@ int16_t WebRtcIsac_CorrelateIntraVec( * Output: * -out : correlated parametrs. */ -int16_t WebRtcIsac_CorrelateInterVec( - const double* data, - double* out, - int16_t bandwidth); - +int16_t WebRtcIsac_CorrelateInterVec(const double* data, + double* out, + int16_t bandwidth); /****************************************************************************** * WebRtcIsac_AddLarMean() * * This is the inverse of WebRtcIsac_RemoveLarMean() - * + * * Input: * -data : pointer to mean-removed LAR:s. * -bandwidth : indicates if the given LAR vectors belong @@ -159,10 +144,7 @@ int16_t WebRtcIsac_CorrelateInterVec( * Output: * -data : pointer to LARs. */ -int16_t WebRtcIsac_AddLarMean( - double* data, - int16_t bandwidth); - +int16_t WebRtcIsac_AddLarMean(double* data, int16_t bandwidth); /****************************************************************************** * WebRtcIsac_DequantizeLpcParam() @@ -177,11 +159,9 @@ int16_t WebRtcIsac_AddLarMean( * Output: * -out : pointer to quantized values. */ -int16_t WebRtcIsac_DequantizeLpcParam( - const int* idx, - double* out, - int16_t bandwidth); - +int16_t WebRtcIsac_DequantizeLpcParam(const int* idx, + double* out, + int16_t bandwidth); /****************************************************************************** * WebRtcIsac_ToLogDomainRemoveMean() @@ -194,9 +174,7 @@ int16_t WebRtcIsac_DequantizeLpcParam( * Output: * -lpcGain : mean-removed in log domain. */ -int16_t WebRtcIsac_ToLogDomainRemoveMean( - double* lpGains); - +int16_t WebRtcIsac_ToLogDomainRemoveMean(double* lpGains); /****************************************************************************** * WebRtcIsac_DecorrelateLPGain() @@ -210,16 +188,13 @@ int16_t WebRtcIsac_ToLogDomainRemoveMean( * Output: * -out : decorrelated parameters. */ -int16_t WebRtcIsac_DecorrelateLPGain( - const double* data, - double* out); - +int16_t WebRtcIsac_DecorrelateLPGain(const double* data, double* out); /****************************************************************************** * WebRtcIsac_QuantizeLpcGain() * * Quantize the decorrelated log-domain gains. - * + * * Input: * -lpcGain : uncorrelated LPC gains. * @@ -227,10 +202,7 @@ int16_t WebRtcIsac_DecorrelateLPGain( * -idx : quantization indices * -lpcGain : quantized value of the inpt. */ -double WebRtcIsac_QuantizeLpcGain( - double* lpGains, - int* idx); - +double WebRtcIsac_QuantizeLpcGain(double* lpGains, int* idx); /****************************************************************************** * WebRtcIsac_DequantizeLpcGain() @@ -243,10 +215,7 @@ double WebRtcIsac_QuantizeLpcGain( * Output: * -lpcGains : quantized values of the given parametes. */ -int16_t WebRtcIsac_DequantizeLpcGain( - const int* idx, - double* lpGains); - +int16_t WebRtcIsac_DequantizeLpcGain(const int* idx, double* lpGains); /****************************************************************************** * WebRtcIsac_CorrelateLpcGain() @@ -259,10 +228,7 @@ int16_t WebRtcIsac_DequantizeLpcGain( * Output: * -out : correlated parameters. */ -int16_t WebRtcIsac_CorrelateLpcGain( - const double* data, - double* out); - +int16_t WebRtcIsac_CorrelateLpcGain(const double* data, double* out); /****************************************************************************** * WebRtcIsac_AddMeanToLinearDomain() @@ -275,8 +241,6 @@ int16_t WebRtcIsac_CorrelateLpcGain( * Output: * -lpcGain : LPC gain in normal domain. */ -int16_t WebRtcIsac_AddMeanToLinearDomain( - double* lpcGains); - +int16_t WebRtcIsac_AddMeanToLinearDomain(double* lpcGains); -#endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ENCODE_LPC_SWB_H_ +#endif // MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_ENCODE_LPC_SWB_H_ |