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

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_encoder_mutable_impl.h

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, 3 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return encoder_->NumChannels(); 67 return encoder_->NumChannels();
68 } 68 }
69 size_t MaxEncodedBytes() const override { 69 size_t MaxEncodedBytes() const override {
70 CriticalSectionScoped cs(encoder_lock_.get()); 70 CriticalSectionScoped cs(encoder_lock_.get());
71 return encoder_->MaxEncodedBytes(); 71 return encoder_->MaxEncodedBytes();
72 } 72 }
73 int RtpTimestampRateHz() const override { 73 int RtpTimestampRateHz() const override {
74 CriticalSectionScoped cs(encoder_lock_.get()); 74 CriticalSectionScoped cs(encoder_lock_.get());
75 return encoder_->RtpTimestampRateHz(); 75 return encoder_->RtpTimestampRateHz();
76 } 76 }
77 int Num10MsFramesInNextPacket() const override { 77 size_t Num10MsFramesInNextPacket() const override {
78 CriticalSectionScoped cs(encoder_lock_.get()); 78 CriticalSectionScoped cs(encoder_lock_.get());
79 return encoder_->Num10MsFramesInNextPacket(); 79 return encoder_->Num10MsFramesInNextPacket();
80 } 80 }
81 int Max10MsFramesInAPacket() const override { 81 size_t Max10MsFramesInAPacket() const override {
82 CriticalSectionScoped cs(encoder_lock_.get()); 82 CriticalSectionScoped cs(encoder_lock_.get());
83 return encoder_->Max10MsFramesInAPacket(); 83 return encoder_->Max10MsFramesInAPacket();
84 } 84 }
85 int GetTargetBitrate() const override { 85 int GetTargetBitrate() const override {
86 CriticalSectionScoped cs(encoder_lock_.get()); 86 CriticalSectionScoped cs(encoder_lock_.get());
87 return encoder_->GetTargetBitrate(); 87 return encoder_->GetTargetBitrate();
88 } 88 }
89 void SetTargetBitrate(int bits_per_second) override { 89 void SetTargetBitrate(int bits_per_second) override {
90 CriticalSectionScoped cs(encoder_lock_.get()); 90 CriticalSectionScoped cs(encoder_lock_.get());
91 encoder_->SetTargetBitrate(bits_per_second); 91 encoder_->SetTargetBitrate(bits_per_second);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const rtc::scoped_ptr<CriticalSectionWrapper> encoder_lock_; 124 const rtc::scoped_ptr<CriticalSectionWrapper> encoder_lock_;
125 125
126 private: 126 private:
127 rtc::scoped_ptr<T> encoder_ GUARDED_BY(encoder_lock_); 127 rtc::scoped_ptr<T> encoder_ GUARDED_BY(encoder_lock_);
128 typename T::Config config_ GUARDED_BY(encoder_lock_); 128 typename T::Config config_ GUARDED_BY(encoder_lock_);
129 }; 129 };
130 130
131 } // namespace webrtc 131 } // namespace webrtc
132 132
133 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_MUTABLE_IMPL_H_ 133 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_MUTABLE_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/audio_encoder.h ('k') | webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698