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

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

Issue 1967503002: Audio codec usage statistics (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Moved logging to AudioCodingModuleImpl Created 4 years, 7 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) 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 18 matching lines...) Expand all
29 class AudioCodingImpl; 29 class AudioCodingImpl;
30 30
31 namespace acm2 { 31 namespace acm2 {
32 32
33 struct EncoderFactory; 33 struct EncoderFactory;
34 34
35 class AudioCodingModuleImpl final : public AudioCodingModule { 35 class AudioCodingModuleImpl final : public AudioCodingModule {
36 public: 36 public:
37 friend webrtc::AudioCodingImpl; 37 friend webrtc::AudioCodingImpl;
38 38
39 static constexpr size_t kMaxAudioCodecNames = 64;
ossu 2016/05/12 12:50:14 Maybe include something about logging in this name
kwiberg-webrtc 2016/05/12 13:01:51 In case some compiler (such as Visual Studio) comp
aleloi 2016/05/12 13:25:47 Added explaining comment and changed name to kMaxL
40
39 explicit AudioCodingModuleImpl(const AudioCodingModule::Config& config); 41 explicit AudioCodingModuleImpl(const AudioCodingModule::Config& config);
40 ~AudioCodingModuleImpl() override; 42 ~AudioCodingModuleImpl() override;
41 43
42 ///////////////////////////////////////// 44 /////////////////////////////////////////
43 // Sender 45 // Sender
44 // 46 //
45 47
46 // Can be called multiple times for Codec, CNG, RED. 48 // Can be called multiple times for Codec, CNG, RED.
47 int RegisterSendCodec(const CodecInst& send_codec) override; 49 int RegisterSendCodec(const CodecInst& send_codec) override;
48 50
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 bool first_10ms_data_ GUARDED_BY(acm_crit_sect_); 290 bool first_10ms_data_ GUARDED_BY(acm_crit_sect_);
289 291
290 bool first_frame_ GUARDED_BY(acm_crit_sect_); 292 bool first_frame_ GUARDED_BY(acm_crit_sect_);
291 uint32_t last_timestamp_ GUARDED_BY(acm_crit_sect_); 293 uint32_t last_timestamp_ GUARDED_BY(acm_crit_sect_);
292 uint32_t last_rtp_timestamp_ GUARDED_BY(acm_crit_sect_); 294 uint32_t last_rtp_timestamp_ GUARDED_BY(acm_crit_sect_);
293 295
294 rtc::CriticalSection callback_crit_sect_; 296 rtc::CriticalSection callback_crit_sect_;
295 AudioPacketizationCallback* packetization_callback_ 297 AudioPacketizationCallback* packetization_callback_
296 GUARDED_BY(callback_crit_sect_); 298 GUARDED_BY(callback_crit_sect_);
297 ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_); 299 ACMVADCallback* vad_callback_ GUARDED_BY(callback_crit_sect_);
300
301 size_t codec_histogram_bins_log[kMaxAudioCodecNames];
hlundin-webrtc 2016/05/12 12:23:39 Trailing underscore on member variables.
aleloi 2016/05/12 12:52:18 Done.
302 size_t number_of_consecutive_empty_packets;
hlundin-webrtc 2016/05/12 12:23:39 And here.
aleloi 2016/05/12 12:52:18 Done.
kwiberg-webrtc 2016/05/12 13:01:51 1. Please document these. (As a rule of thumb, it'
298 }; 303 };
299 304
300 } // namespace acm2 305 } // namespace acm2
301 } // namespace webrtc 306 } // namespace webrtc
302 307
303 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_AUDIO_CODING_MODULE_IMPL_H_ 308 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_AUDIO_CODING_MODULE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698