| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 ~AudioEncoderOpus() override; | 55 ~AudioEncoderOpus() override; |
| 56 | 56 |
| 57 size_t MaxEncodedBytes() const override; | 57 size_t MaxEncodedBytes() const override; |
| 58 int SampleRateHz() const override; | 58 int SampleRateHz() const override; |
| 59 int NumChannels() const override; | 59 int NumChannels() const override; |
| 60 size_t Num10MsFramesInNextPacket() const override; | 60 size_t Num10MsFramesInNextPacket() const override; |
| 61 size_t Max10MsFramesInAPacket() const override; | 61 size_t Max10MsFramesInAPacket() const override; |
| 62 int GetTargetBitrate() const override; | 62 int GetTargetBitrate() const override; |
| 63 | 63 |
| 64 EncodedInfo EncodeInternal(uint32_t rtp_timestamp, | 64 EncodedInfo EncodeInternal(uint32_t rtp_timestamp, |
| 65 const int16_t* audio, | 65 rtc::ArrayView<const int16_t> audio, |
| 66 size_t max_encoded_bytes, | 66 size_t max_encoded_bytes, |
| 67 uint8_t* encoded) override; | 67 uint8_t* encoded) override; |
| 68 | 68 |
| 69 void Reset() override; | 69 void Reset() override; |
| 70 bool SetFec(bool enable) override; | 70 bool SetFec(bool enable) override; |
| 71 | 71 |
| 72 // Set Opus DTX. Once enabled, Opus stops transmission, when it detects voice | 72 // Set Opus DTX. Once enabled, Opus stops transmission, when it detects voice |
| 73 // being inactive. During that, it still sends 2 packets (one for content, one | 73 // being inactive. During that, it still sends 2 packets (one for content, one |
| 74 // for signaling) about every 400 ms. | 74 // for signaling) about every 400 ms. |
| 75 bool SetDtx(bool enable) override; | 75 bool SetDtx(bool enable) override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 93 double packet_loss_rate_; | 93 double packet_loss_rate_; |
| 94 std::vector<int16_t> input_buffer_; | 94 std::vector<int16_t> input_buffer_; |
| 95 OpusEncInst* inst_; | 95 OpusEncInst* inst_; |
| 96 uint32_t first_timestamp_in_buffer_; | 96 uint32_t first_timestamp_in_buffer_; |
| 97 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); | 97 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace webrtc | 100 } // namespace webrtc |
| 101 | 101 |
| 102 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INCLUDE_AUDIO_ENCODER_OPUS_H_ | 102 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INCLUDE_AUDIO_ENCODER_OPUS_H_ |
| OLD | NEW |