Remove const for plain data types in common_audio/

BUG=1644
R=tina.legrand@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1464005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4019 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org
2013-05-14 09:24:49 +00:00
parent 9213521ea9
commit 8e3b594831
6 changed files with 14 additions and 14 deletions

View File

@ -879,13 +879,13 @@ void WebRtcSpl_ResetResample8khzTo22khz(WebRtcSpl_State8khzTo22khz* state);
******************************************************************/ ******************************************************************/
void WebRtcSpl_Resample48khzTo32khz(const int32_t* In, int32_t* Out, void WebRtcSpl_Resample48khzTo32khz(const int32_t* In, int32_t* Out,
const int32_t K); int32_t K);
void WebRtcSpl_Resample32khzTo24khz(const int32_t* In, int32_t* Out, void WebRtcSpl_Resample32khzTo24khz(const int32_t* In, int32_t* Out,
const int32_t K); int32_t K);
void WebRtcSpl_Resample44khzTo32khz(const int32_t* In, int32_t* Out, void WebRtcSpl_Resample44khzTo32khz(const int32_t* In, int32_t* Out,
const int32_t K); int32_t K);
/******************************************************************* /*******************************************************************
* resample_48khz.c * resample_48khz.c
@ -955,7 +955,7 @@ void WebRtcSpl_ResetResample8khzTo48khz(WebRtcSpl_State8khzTo48khz* state);
* *
******************************************************************/ ******************************************************************/
void WebRtcSpl_DownsampleBy2(const int16_t* in, const int16_t len, void WebRtcSpl_DownsampleBy2(const int16_t* in, int16_t len,
int16_t* out, int32_t* filtState); int16_t* out, int32_t* filtState);
void WebRtcSpl_UpsampleBy2(const int16_t* in, int16_t len, void WebRtcSpl_UpsampleBy2(const int16_t* in, int16_t len,

View File

@ -20,10 +20,10 @@
// Declaration of internally used functions // Declaration of internally used functions
static void WebRtcSpl_32khzTo22khzIntToShort(const int32_t *In, int16_t *Out, static void WebRtcSpl_32khzTo22khzIntToShort(const int32_t *In, int16_t *Out,
const int32_t K); int32_t K);
void WebRtcSpl_32khzTo22khzIntToInt(const int32_t *In, int32_t *Out, void WebRtcSpl_32khzTo22khzIntToInt(const int32_t *In, int32_t *Out,
const int32_t K); int32_t K);
// interpolation coefficients // interpolation coefficients
static const int16_t kCoefficients32To22[5][9] = { static const int16_t kCoefficients32To22[5][9] = {
@ -421,7 +421,7 @@ static void WebRtcSpl_DotProdIntToShort(const int32_t* in1, const int32_t* in2,
void WebRtcSpl_32khzTo22khzIntToInt(const int32_t* In, void WebRtcSpl_32khzTo22khzIntToInt(const int32_t* In,
int32_t* Out, int32_t* Out,
const int32_t K) int32_t K)
{ {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Filter operation: // Filter operation:
@ -463,7 +463,7 @@ void WebRtcSpl_32khzTo22khzIntToInt(const int32_t* In,
void WebRtcSpl_32khzTo22khzIntToShort(const int32_t *In, void WebRtcSpl_32khzTo22khzIntToShort(const int32_t *In,
int16_t *Out, int16_t *Out,
const int32_t K) int32_t K)
{ {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Filter operation: // Filter operation:

View File

@ -67,7 +67,7 @@ static const uint16_t kResampleAllpass2[3] = {12199, 37471, 60255};
// decimator // decimator
#if !defined(MIPS32_LE) #if !defined(MIPS32_LE)
void WebRtcSpl_DownsampleBy2(const int16_t* in, const int16_t len, void WebRtcSpl_DownsampleBy2(const int16_t* in, int16_t len,
int16_t* out, int32_t* filtState) { int16_t* out, int32_t* filtState) {
int32_t tmp1, tmp2, diff, in32, out32; int32_t tmp1, tmp2, diff, in32, out32;
int16_t i; int16_t i;

View File

@ -29,7 +29,7 @@ static const uint16_t kResampleAllpass2[3] = {12199, 37471, 60255};
// decimator // decimator
void WebRtcSpl_DownsampleBy2(const int16_t* in, void WebRtcSpl_DownsampleBy2(const int16_t* in,
const int16_t len, int16_t len,
int16_t* out, int16_t* out,
int32_t* filtState) { int32_t* filtState) {
int32_t out32; int32_t out32;

View File

@ -42,7 +42,7 @@ static const int16_t kCoefficients44To32[4][9] = {
// K: number of blocks // K: number of blocks
void WebRtcSpl_Resample48khzTo32khz(const int32_t *In, int32_t *Out, void WebRtcSpl_Resample48khzTo32khz(const int32_t *In, int32_t *Out,
const int32_t K) int32_t K)
{ {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Filter operation: // Filter operation:
@ -88,7 +88,7 @@ void WebRtcSpl_Resample48khzTo32khz(const int32_t *In, int32_t *Out,
// K: number of blocks // K: number of blocks
void WebRtcSpl_Resample32khzTo24khz(const int32_t *In, int32_t *Out, void WebRtcSpl_Resample32khzTo24khz(const int32_t *In, int32_t *Out,
const int32_t K) int32_t K)
{ {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Filter operation: // Filter operation:
@ -197,7 +197,7 @@ static void WebRtcSpl_ResampDotProduct(const int32_t *in1, const int32_t *in2,
// K: number of blocks // K: number of blocks
void WebRtcSpl_Resample44khzTo32khz(const int32_t *In, int32_t *Out, void WebRtcSpl_Resample44khzTo32khz(const int32_t *In, int32_t *Out,
const int32_t K) int32_t K)
{ {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Filter operation: // Filter operation:

View File

@ -43,7 +43,7 @@ static const uint16_t WebRtcSpl_kAllPassFilter2[3] = {21333, 49062, 63010};
// |data_length| // |data_length|
// //
void WebRtcSpl_AllPassQMF(int32_t* in_data, const int16_t data_length, void WebRtcSpl_AllPassQMF(int32_t* in_data, int16_t data_length,
int32_t* out_data, const uint16_t* filter_coefficients, int32_t* out_data, const uint16_t* filter_coefficients,
int32_t* filter_state) int32_t* filter_state)
{ {