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

Side by Side Diff: webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h

Issue 1908923002: Audio Coding Module: Use separate instances for 16 kHz and 32 kHz iSAC decoder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: New test checksums for non-ARM platforms Created 4 years, 8 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
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 AcmReceiver receiver_; // AcmReceiver has it's own internal lock. 261 AcmReceiver receiver_; // AcmReceiver has it's own internal lock.
262 ChangeLogger bitrate_logger_ GUARDED_BY(acm_crit_sect_); 262 ChangeLogger bitrate_logger_ GUARDED_BY(acm_crit_sect_);
263 263
264 std::unique_ptr<EncoderFactory> encoder_factory_ GUARDED_BY(acm_crit_sect_); 264 std::unique_ptr<EncoderFactory> encoder_factory_ GUARDED_BY(acm_crit_sect_);
265 265
266 // Current encoder stack, either obtained from 266 // Current encoder stack, either obtained from
267 // encoder_factory_->rent_a_codec.RentEncoderStack or provided by a call to 267 // encoder_factory_->rent_a_codec.RentEncoderStack or provided by a call to
268 // RegisterEncoder. 268 // RegisterEncoder.
269 std::unique_ptr<AudioEncoder> encoder_stack_ GUARDED_BY(acm_crit_sect_); 269 std::unique_ptr<AudioEncoder> encoder_stack_ GUARDED_BY(acm_crit_sect_);
270 270
271 std::unique_ptr<AudioDecoder> isac_decoder_ GUARDED_BY(acm_crit_sect_); 271 std::unique_ptr<AudioDecoder> isac_decoder_16k_ GUARDED_BY(acm_crit_sect_);
272 std::unique_ptr<AudioDecoder> isac_decoder_32k_ GUARDED_BY(acm_crit_sect_);
272 273
273 // This is to keep track of CN instances where we can send DTMFs. 274 // This is to keep track of CN instances where we can send DTMFs.
274 uint8_t previous_pltype_ GUARDED_BY(acm_crit_sect_); 275 uint8_t previous_pltype_ GUARDED_BY(acm_crit_sect_);
275 276
276 // Used when payloads are pushed into ACM without any RTP info 277 // Used when payloads are pushed into ACM without any RTP info
277 // One example is when pre-encoded bit-stream is pushed from 278 // One example is when pre-encoded bit-stream is pushed from
278 // a file. 279 // a file.
279 // IMPORTANT: this variable is only used in IncomingPayload(), therefore, 280 // IMPORTANT: this variable is only used in IncomingPayload(), therefore,
280 // no lock acquired when interacting with this variable. If it is going to 281 // no lock acquired when interacting with this variable. If it is going to
281 // be used in other methods, locks need to be taken. 282 // be used in other methods, locks need to be taken.
(...skipping 11 matching lines...) Expand all
293 rtc::CriticalSection callback_crit_sect_; 294 rtc::CriticalSection callback_crit_sect_;
294 AudioPacketizationCallback* packetization_callback_ 295 AudioPacketizationCallback* packetization_callback_
295 GUARDED_BY(callback_crit_sect_); 296 GUARDED_BY(callback_crit_sect_);
296 ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_); 297 ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_);
297 }; 298 };
298 299
299 } // namespace acm2 300 } // namespace acm2
300 } // namespace webrtc 301 } // namespace webrtc
301 302
302 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_AUDIO_CODING_MODULE_IMPL_H_ 303 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_AUDIO_CODING_MODULE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698