Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c

Issue 2297873003: WebRtcIlbcfix_EnhancerInterface: Let input array be const (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c b/webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c
index 61b9d2606a3f1132917ec301a23c52cd41858f76..1bd4b266bd0326da081bba48df0ba1941e3e5b5c 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c
@@ -30,11 +30,11 @@
* interface for enhancer
*---------------------------------------------------------------*/
-size_t WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */
- int16_t *out, /* (o) enhanced signal */
- int16_t *in, /* (i) unenhanced signal */
- IlbcDecoder *iLBCdec_inst /* (i) buffers etc */
- ){
+size_t // (o) Estimated lag in end of in[]
+ WebRtcIlbcfix_EnhancerInterface(
+ int16_t* out, // (o) enhanced signal
+ const int16_t* in, // (i) unenhanced signal
+ IlbcDecoder* iLBCdec_inst) { // (i) buffers etc
size_t iblock;
size_t lag=20, tlag=20;
size_t inLen=iLBCdec_inst->blockl+120;
@@ -54,7 +54,7 @@ size_t WebRtcIlbcfix_EnhancerInterface( /* (o) Estimated lag in end of in[] */
int16_t *tmpW16ptr;
size_t startPos;
int16_t *plc_pred;
- int16_t *target, *regressor;
+ const int16_t *target, *regressor;
int16_t max16;
int shifts;
int32_t ener;
« no previous file with comments | « webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698