iLBC: Some const annotations

NOTRY=true
BUG=chromium:617124

Review-Url: https://codereview.webrtc.org/2293843002
Cr-Commit-Position: refs/heads/master@{#13972}
This commit is contained in:
kwiberg
2016-08-30 05:36:56 -07:00
committed by Commit bot
parent 131c958187
commit c31446f49e
4 changed files with 25 additions and 24 deletions

View File

@ -27,13 +27,12 @@
*---------------------------------------------------------------*/
bool WebRtcIlbcfix_CbConstruct(
int16_t *decvector, /* (o) Decoded vector */
int16_t *index, /* (i) Codebook indices */
int16_t *gain_index, /* (i) Gain quantization indices */
int16_t *mem, /* (i) Buffer for codevector construction */
int16_t* decvector, /* (o) Decoded vector */
const int16_t* index, /* (i) Codebook indices */
const int16_t* gain_index, /* (i) Gain quantization indices */
int16_t* mem, /* (i) Buffer for codevector construction */
size_t lMem, /* (i) Length of buffer */
size_t veclen /* (i) Length of vector */
){
size_t veclen) { /* (i) Length of vector */
size_t j;
int16_t gain[CB_NSTAGES];
/* Stack based */

View File

@ -29,8 +29,8 @@
// Returns true on success, false on failure.
bool WebRtcIlbcfix_CbConstruct(
int16_t* decvector, /* (o) Decoded vector */
int16_t* index, /* (i) Codebook indices */
int16_t* gain_index, /* (i) Gain quantization indices */
const int16_t* index, /* (i) Codebook indices */
const int16_t* gain_index, /* (i) Gain quantization indices */
int16_t* mem, /* (i) Buffer for codevector construction */
size_t lMem, /* (i) Length of buffer */
size_t veclen /* (i) Length of vector */

View File

@ -26,13 +26,14 @@
*----------------------------------------------------------------*/
void WebRtcIlbcfix_CreateAugmentedVec(
size_t index, /* (i) Index for the augmented vector to be created */
int16_t *buffer, /* (i) Pointer to the end of the codebook memory that
is used for creation of the augmented codebook */
int16_t *cbVec /* (o) The constructed codebook vector */
) {
size_t index, /* (i) Index for the augmented vector to be
created */
const int16_t* buffer, /* (i) Pointer to the end of the codebook memory
that is used for creation of the augmented
codebook */
int16_t* cbVec) { /* (o) The constructed codebook vector */
size_t ilow;
int16_t *ppo, *ppi;
const int16_t *ppo, *ppi;
int16_t cbVecTmp[4];
/* Interpolation starts 4 elements before cbVec+index, but must not start
outside |cbVec|; clamping interp_len to stay within |cbVec|.

View File

@ -27,10 +27,11 @@
*----------------------------------------------------------------*/
void WebRtcIlbcfix_CreateAugmentedVec(
size_t index, /* (i) Index for the augmented vector to be created */
int16_t *buffer, /* (i) Pointer to the end of the codebook memory that
is used for creation of the augmented codebook */
int16_t *cbVec /* (o) The construced codebook vector */
);
size_t index, /* (i) Index for the augmented vector to be
created */
const int16_t* buffer, /* (i) Pointer to the end of the codebook memory
that is used for creation of the augmented
codebook */
int16_t* cbVec); /* (o) The construced codebook vector */
#endif