| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static inline int16_t EncoderInit(instance_type* inst, int16_t coding_mode) { | 61 static inline int16_t EncoderInit(instance_type* inst, int16_t coding_mode) { |
| 62 return WebRtcIsacfix_EncoderInit(inst, coding_mode); | 62 return WebRtcIsacfix_EncoderInit(inst, coding_mode); |
| 63 } | 63 } |
| 64 static inline uint16_t EncSampRate(instance_type* inst) { | 64 static inline uint16_t EncSampRate(instance_type* inst) { |
| 65 return kFixSampleRate; | 65 return kFixSampleRate; |
| 66 } | 66 } |
| 67 | 67 |
| 68 static inline int16_t Free(instance_type* inst) { | 68 static inline int16_t Free(instance_type* inst) { |
| 69 return WebRtcIsacfix_Free(inst); | 69 return WebRtcIsacfix_Free(inst); |
| 70 } | 70 } |
| 71 static inline void GetBandwidthInfo(instance_type* inst, |
| 72 IsacBandwidthInfo* bwinfo) { |
| 73 WebRtcIsacfix_GetBandwidthInfo(inst, bwinfo); |
| 74 } |
| 71 static inline int16_t GetErrorCode(instance_type* inst) { | 75 static inline int16_t GetErrorCode(instance_type* inst) { |
| 72 return WebRtcIsacfix_GetErrorCode(inst); | 76 return WebRtcIsacfix_GetErrorCode(inst); |
| 73 } | 77 } |
| 74 | 78 |
| 75 static inline int16_t GetNewFrameLen(instance_type* inst) { | 79 static inline int16_t GetNewFrameLen(instance_type* inst) { |
| 76 return WebRtcIsacfix_GetNewFrameLen(inst); | 80 return WebRtcIsacfix_GetNewFrameLen(inst); |
| 77 } | 81 } |
| 78 | 82 static inline void SetBandwidthInfo(instance_type* inst, |
| 83 const IsacBandwidthInfo* bwinfo) { |
| 84 WebRtcIsacfix_SetBandwidthInfo(inst, bwinfo); |
| 85 } |
| 79 static inline int16_t SetDecSampRate(instance_type* inst, | 86 static inline int16_t SetDecSampRate(instance_type* inst, |
| 80 uint16_t sample_rate_hz) { | 87 uint16_t sample_rate_hz) { |
| 81 DCHECK_EQ(sample_rate_hz, kFixSampleRate); | 88 DCHECK_EQ(sample_rate_hz, kFixSampleRate); |
| 82 return 0; | 89 return 0; |
| 83 } | 90 } |
| 84 static inline int16_t SetEncSampRate(instance_type* inst, | 91 static inline int16_t SetEncSampRate(instance_type* inst, |
| 85 uint16_t sample_rate_hz) { | 92 uint16_t sample_rate_hz) { |
| 86 DCHECK_EQ(sample_rate_hz, kFixSampleRate); | 93 DCHECK_EQ(sample_rate_hz, kFixSampleRate); |
| 87 return 0; | 94 return 0; |
| 88 } | 95 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 int ErrorCode() override; | 148 int ErrorCode() override; |
| 142 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; | 149 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; |
| 143 int PacketDurationRedundant(const uint8_t* encoded, | 150 int PacketDurationRedundant(const uint8_t* encoded, |
| 144 size_t encoded_len) const override; | 151 size_t encoded_len) const override; |
| 145 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; | 152 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; |
| 146 size_t Channels() const override; | 153 size_t Channels() const override; |
| 147 }; | 154 }; |
| 148 | 155 |
| 149 } // namespace webrtc | 156 } // namespace webrtc |
| 150 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_INTERFACE_AUDIO_ENCODER_I
SACFIX_H_ | 157 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_INTERFACE_AUDIO_ENCODER_I
SACFIX_H_ |
| OLD | NEW |