ilbc: Mark untouched input arrays as const
Review URL: https://webrtc-codereview.appspot.com/662004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2490 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
ddfdfed3b5
commit
01ad75888a
1
AUTHORS
1
AUTHORS
@ -5,3 +5,4 @@ Google Inc.
|
||||
Mozilla Foundation
|
||||
Ben Strong <bstrong@gmail.com>
|
||||
Petar Jovanovic <petarj@mips.com>
|
||||
Martin Storsjo <martin@martin.st>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
||||
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
void WebRtcIlbcfix_EncodeImpl(
|
||||
WebRtc_UWord16 *bytes, /* (o) encoded data bits iLBC */
|
||||
WebRtc_Word16 *block, /* (i) speech vector to encode */
|
||||
const WebRtc_Word16 *block, /* (i) speech vector to encode */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the general encoder
|
||||
state */
|
||||
){
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
||||
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
@ -27,7 +27,7 @@
|
||||
|
||||
void WebRtcIlbcfix_EncodeImpl(
|
||||
WebRtc_UWord16 *bytes, /* (o) encoded data bits iLBC */
|
||||
WebRtc_Word16 *block, /* (i) speech vector to encode */
|
||||
const WebRtc_Word16 *block, /* (i) speech vector to encode */
|
||||
iLBC_Enc_Inst_t *iLBCenc_inst /* (i/o) the general encoder
|
||||
state */
|
||||
);
|
||||
|
@ -84,7 +84,7 @@ WebRtc_Word16 WebRtcIlbcfix_EncoderInit(iLBC_encinst_t *iLBCenc_inst, WebRtc_Wor
|
||||
}
|
||||
}
|
||||
|
||||
WebRtc_Word16 WebRtcIlbcfix_Encode(iLBC_encinst_t *iLBCenc_inst, WebRtc_Word16 *speechIn, WebRtc_Word16 len, WebRtc_Word16 *encoded) {
|
||||
WebRtc_Word16 WebRtcIlbcfix_Encode(iLBC_encinst_t *iLBCenc_inst, const WebRtc_Word16 *speechIn, WebRtc_Word16 len, WebRtc_Word16 *encoded) {
|
||||
|
||||
WebRtc_Word16 pos = 0;
|
||||
WebRtc_Word16 encpos = 0;
|
||||
|
@ -136,9 +136,9 @@ extern "C" {
|
||||
*/
|
||||
|
||||
WebRtc_Word16 WebRtcIlbcfix_Encode(iLBC_encinst_t *iLBCenc_inst,
|
||||
WebRtc_Word16 *speechIn,
|
||||
WebRtc_Word16 len,
|
||||
WebRtc_Word16 *encoded);
|
||||
const WebRtc_Word16 *speechIn,
|
||||
WebRtc_Word16 len,
|
||||
WebRtc_Word16 *encoded);
|
||||
|
||||
/****************************************************************************
|
||||
* WebRtcIlbcfix_DecoderInit(...)
|
||||
|
Loading…
Reference in New Issue
Block a user