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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/source/decode_bwe.c

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "structs.h" 11 #include "structs.h"
12 #include "bandwidth_estimator.h" 12 #include "bandwidth_estimator.h"
13 #include "entropy_coding.h" 13 #include "entropy_coding.h"
14 #include "codec.h" 14 #include "codec.h"
15 15
16 16
17 int 17 int
18 WebRtcIsac_EstimateBandwidth( 18 WebRtcIsac_EstimateBandwidth(
19 BwEstimatorstr* bwest_str, 19 BwEstimatorstr* bwest_str,
20 Bitstr* streamdata, 20 Bitstr* streamdata,
21 int32_t packet_size, 21 size_t packet_size,
22 uint16_t rtp_seq_number, 22 uint16_t rtp_seq_number,
23 uint32_t send_ts, 23 uint32_t send_ts,
24 uint32_t arr_ts, 24 uint32_t arr_ts,
25 enum IsacSamplingRate encoderSampRate, 25 enum IsacSamplingRate encoderSampRate,
26 enum IsacSamplingRate decoderSampRate) 26 enum IsacSamplingRate decoderSampRate)
27 { 27 {
28 int16_t index; 28 int16_t index;
29 int16_t frame_samples; 29 int16_t frame_samples;
30 uint32_t sendTimestampIn16kHz; 30 uint32_t sendTimestampIn16kHz;
31 uint32_t arrivalTimestampIn16kHz; 31 uint32_t arrivalTimestampIn16kHz;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 (frame_samples * 1000) / FS, sendTim estampIn16kHz, 80 (frame_samples * 1000) / FS, sendTim estampIn16kHz,
81 arrivalTimestampIn16kHz, packet_size ); 81 arrivalTimestampIn16kHz, packet_size );
82 // error check 82 // error check
83 if(err < 0) 83 if(err < 0)
84 { 84 {
85 return err; 85 return err;
86 } 86 }
87 87
88 return 0; 88 return 0;
89 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698