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

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

Issue 1520283006: Move Rent-A-Codec out of CodecManager (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@rac0
Patch Set: review comments Created 5 years 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 const rtc::scoped_ptr<CriticalSectionWrapper> acm_crit_sect_; 243 const rtc::scoped_ptr<CriticalSectionWrapper> acm_crit_sect_;
244 rtc::Buffer encode_buffer_ GUARDED_BY(acm_crit_sect_); 244 rtc::Buffer encode_buffer_ GUARDED_BY(acm_crit_sect_);
245 int id_; // TODO(henrik.lundin) Make const. 245 int id_; // TODO(henrik.lundin) Make const.
246 uint32_t expected_codec_ts_ GUARDED_BY(acm_crit_sect_); 246 uint32_t expected_codec_ts_ GUARDED_BY(acm_crit_sect_);
247 uint32_t expected_in_ts_ GUARDED_BY(acm_crit_sect_); 247 uint32_t expected_in_ts_ GUARDED_BY(acm_crit_sect_);
248 ACMResampler resampler_ GUARDED_BY(acm_crit_sect_); 248 ACMResampler resampler_ GUARDED_BY(acm_crit_sect_);
249 AcmReceiver receiver_; // AcmReceiver has it's own internal lock. 249 AcmReceiver receiver_; // AcmReceiver has it's own internal lock.
250 ChangeLogger bitrate_logger_ GUARDED_BY(acm_crit_sect_); 250 ChangeLogger bitrate_logger_ GUARDED_BY(acm_crit_sect_);
251 CodecManager codec_manager_ GUARDED_BY(acm_crit_sect_); 251 CodecManager codec_manager_ GUARDED_BY(acm_crit_sect_);
252 RentACodec rent_a_codec_ GUARDED_BY(acm_crit_sect_);
252 253
253 // This is to keep track of CN instances where we can send DTMFs. 254 // This is to keep track of CN instances where we can send DTMFs.
254 uint8_t previous_pltype_ GUARDED_BY(acm_crit_sect_); 255 uint8_t previous_pltype_ GUARDED_BY(acm_crit_sect_);
255 256
256 // Used when payloads are pushed into ACM without any RTP info 257 // Used when payloads are pushed into ACM without any RTP info
257 // One example is when pre-encoded bit-stream is pushed from 258 // One example is when pre-encoded bit-stream is pushed from
258 // a file. 259 // a file.
259 // IMPORTANT: this variable is only used in IncomingPayload(), therefore, 260 // IMPORTANT: this variable is only used in IncomingPayload(), therefore,
260 // no lock acquired when interacting with this variable. If it is going to 261 // no lock acquired when interacting with this variable. If it is going to
261 // be used in other methods, locks need to be taken. 262 // be used in other methods, locks need to be taken.
(...skipping 11 matching lines...) Expand all
273 const rtc::scoped_ptr<CriticalSectionWrapper> callback_crit_sect_; 274 const rtc::scoped_ptr<CriticalSectionWrapper> callback_crit_sect_;
274 AudioPacketizationCallback* packetization_callback_ 275 AudioPacketizationCallback* packetization_callback_
275 GUARDED_BY(callback_crit_sect_); 276 GUARDED_BY(callback_crit_sect_);
276 ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_); 277 ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_);
277 }; 278 };
278 279
279 } // namespace acm2 280 } // namespace acm2
280 } // namespace webrtc 281 } // namespace webrtc
281 282
282 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_AUDIO_CODING_MODULE_IMPL_H_ 283 #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