| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 static inline int16_t SetDecSampRate(instance_type* inst, | 86 static inline int16_t SetDecSampRate(instance_type* inst, |
| 87 uint16_t sample_rate_hz) { | 87 uint16_t sample_rate_hz) { |
| 88 DCHECK_EQ(sample_rate_hz, kFixSampleRate); | 88 DCHECK_EQ(sample_rate_hz, kFixSampleRate); |
| 89 return 0; | 89 return 0; |
| 90 } | 90 } |
| 91 static inline int16_t SetEncSampRate(instance_type* inst, | 91 static inline int16_t SetEncSampRate(instance_type* inst, |
| 92 uint16_t sample_rate_hz) { | 92 uint16_t sample_rate_hz) { |
| 93 DCHECK_EQ(sample_rate_hz, kFixSampleRate); | 93 DCHECK_EQ(sample_rate_hz, kFixSampleRate); |
| 94 return 0; | 94 return 0; |
| 95 } | 95 } |
| 96 static inline void SetEncSampRateInDecoder(instance_type* inst, |
| 97 uint16_t sample_rate_hz) { |
| 98 DCHECK_EQ(sample_rate_hz, kFixSampleRate); |
| 99 } |
| 100 static inline void SetInitialBweBottleneck( |
| 101 instance_type* inst, |
| 102 int bottleneck_bits_per_second) { |
| 103 WebRtcIsacfix_SetInitialBweBottleneck(inst, bottleneck_bits_per_second); |
| 104 } |
| 96 static inline int16_t UpdateBwEstimate(instance_type* inst, | 105 static inline int16_t UpdateBwEstimate(instance_type* inst, |
| 97 const uint8_t* encoded, | 106 const uint8_t* encoded, |
| 98 int32_t packet_size, | 107 int32_t packet_size, |
| 99 uint16_t rtp_seq_number, | 108 uint16_t rtp_seq_number, |
| 100 uint32_t send_ts, | 109 uint32_t send_ts, |
| 101 uint32_t arr_ts) { | 110 uint32_t arr_ts) { |
| 102 return WebRtcIsacfix_UpdateBwEstimate(inst, encoded, packet_size, | 111 return WebRtcIsacfix_UpdateBwEstimate(inst, encoded, packet_size, |
| 103 rtp_seq_number, send_ts, arr_ts); | 112 rtp_seq_number, send_ts, arr_ts); |
| 104 } | 113 } |
| 105 static inline int16_t SetMaxPayloadSize(instance_type* inst, | 114 static inline int16_t SetMaxPayloadSize(instance_type* inst, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 int ErrorCode() override; | 157 int ErrorCode() override; |
| 149 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; | 158 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; |
| 150 int PacketDurationRedundant(const uint8_t* encoded, | 159 int PacketDurationRedundant(const uint8_t* encoded, |
| 151 size_t encoded_len) const override; | 160 size_t encoded_len) const override; |
| 152 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; | 161 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; |
| 153 size_t Channels() const override; | 162 size_t Channels() const override; |
| 154 }; | 163 }; |
| 155 | 164 |
| 156 } // namespace webrtc | 165 } // namespace webrtc |
| 157 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_INTERFACE_AUDIO_ENCODER_I
SACFIX_H_ | 166 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_INTERFACE_AUDIO_ENCODER_I
SACFIX_H_ |
| OLD | NEW |