| OLD | NEW |
| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 size_t max_encoded_bytes, | 55 size_t max_encoded_bytes, |
| 56 uint8_t* encoded) override { | 56 uint8_t* encoded) override { |
| 57 CriticalSectionScoped cs(encoder_lock_.get()); | 57 CriticalSectionScoped cs(encoder_lock_.get()); |
| 58 return encoder_->EncodeInternal(rtp_timestamp, audio, max_encoded_bytes, | 58 return encoder_->EncodeInternal(rtp_timestamp, audio, max_encoded_bytes, |
| 59 encoded); | 59 encoded); |
| 60 } | 60 } |
| 61 int SampleRateHz() const override { | 61 int SampleRateHz() const override { |
| 62 CriticalSectionScoped cs(encoder_lock_.get()); | 62 CriticalSectionScoped cs(encoder_lock_.get()); |
| 63 return encoder_->SampleRateHz(); | 63 return encoder_->SampleRateHz(); |
| 64 } | 64 } |
| 65 int NumChannels() const override { | 65 size_t NumChannels() const override { |
| 66 CriticalSectionScoped cs(encoder_lock_.get()); | 66 CriticalSectionScoped cs(encoder_lock_.get()); |
| 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(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |