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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/source/audio_encoder_isac.cc

Issue 1228793004: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Compile fix 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 CriticalSectionScoped cs(encoder_lock_.get()); 80 CriticalSectionScoped cs(encoder_lock_.get());
81 return encoder()->DecodeRedundant(encoded, encoded_len, sample_rate_hz, 81 return encoder()->DecodeRedundant(encoded, encoded_len, sample_rate_hz,
82 max_decoded_bytes, decoded, speech_type); 82 max_decoded_bytes, decoded, speech_type);
83 } 83 }
84 84
85 bool AudioEncoderDecoderMutableIsacFloat::HasDecodePlc() const { 85 bool AudioEncoderDecoderMutableIsacFloat::HasDecodePlc() const {
86 CriticalSectionScoped cs(encoder_lock_.get()); 86 CriticalSectionScoped cs(encoder_lock_.get());
87 return encoder()->HasDecodePlc(); 87 return encoder()->HasDecodePlc();
88 } 88 }
89 89
90 int AudioEncoderDecoderMutableIsacFloat::DecodePlc(int num_frames, 90 size_t AudioEncoderDecoderMutableIsacFloat::DecodePlc(size_t num_frames,
91 int16_t* decoded) { 91 int16_t* decoded) {
92 CriticalSectionScoped cs(encoder_lock_.get()); 92 CriticalSectionScoped cs(encoder_lock_.get());
93 return encoder()->DecodePlc(num_frames, decoded); 93 return encoder()->DecodePlc(num_frames, decoded);
94 } 94 }
95 95
96 int AudioEncoderDecoderMutableIsacFloat::Init() { 96 int AudioEncoderDecoderMutableIsacFloat::Init() {
97 CriticalSectionScoped cs(encoder_lock_.get()); 97 CriticalSectionScoped cs(encoder_lock_.get());
98 return encoder()->Init(); 98 return encoder()->Init();
99 } 99 }
100 100
101 int AudioEncoderDecoderMutableIsacFloat::IncomingPacket( 101 int AudioEncoderDecoderMutableIsacFloat::IncomingPacket(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 CriticalSectionScoped cs(encoder_lock_.get()); 134 CriticalSectionScoped cs(encoder_lock_.get());
135 return encoder()->PacketHasFec(encoded, encoded_len); 135 return encoder()->PacketHasFec(encoded, encoded_len);
136 } 136 }
137 137
138 size_t AudioEncoderDecoderMutableIsacFloat::Channels() const { 138 size_t AudioEncoderDecoderMutableIsacFloat::Channels() const {
139 CriticalSectionScoped cs(encoder_lock_.get()); 139 CriticalSectionScoped cs(encoder_lock_.get());
140 return encoder()->Channels(); 140 return encoder()->Channels();
141 } 141 }
142 142
143 } // namespace webrtc 143 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698