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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/interface/audio_encoder_isac.h

Issue 1208923002: iSAC: Functions for importing and exporting bandwidth est. info (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review comments Created 5 years, 5 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) 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
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 WebRtcIsac_EncoderInit(inst, coding_mode); 62 return WebRtcIsac_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 WebRtcIsac_EncSampRate(inst); 65 return WebRtcIsac_EncSampRate(inst);
66 } 66 }
67 67
68 static inline int16_t Free(instance_type* inst) { 68 static inline int16_t Free(instance_type* inst) {
69 return WebRtcIsac_Free(inst); 69 return WebRtcIsac_Free(inst);
70 } 70 }
71 static inline void GetBandwidthInfo(instance_type* inst,
72 IsacBandwidthInfo* bwinfo) {
73 WebRtcIsac_GetBandwidthInfo(inst, bwinfo);
74 }
71 static inline int16_t GetErrorCode(instance_type* inst) { 75 static inline int16_t GetErrorCode(instance_type* inst) {
72 return WebRtcIsac_GetErrorCode(inst); 76 return WebRtcIsac_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 WebRtcIsac_GetNewFrameLen(inst); 80 return WebRtcIsac_GetNewFrameLen(inst);
77 } 81 }
78 82 static inline void SetBandwidthInfo(instance_type* inst,
83 const IsacBandwidthInfo* bwinfo) {
84 WebRtcIsac_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 return WebRtcIsac_SetDecSampRate(inst, sample_rate_hz); 88 return WebRtcIsac_SetDecSampRate(inst, sample_rate_hz);
82 } 89 }
83 static inline int16_t SetEncSampRate(instance_type* inst, 90 static inline int16_t SetEncSampRate(instance_type* inst,
84 uint16_t sample_rate_hz) { 91 uint16_t sample_rate_hz) {
85 return WebRtcIsac_SetEncSampRate(inst, sample_rate_hz); 92 return WebRtcIsac_SetEncSampRate(inst, sample_rate_hz);
86 } 93 }
87 static inline int16_t UpdateBwEstimate(instance_type* inst, 94 static inline int16_t UpdateBwEstimate(instance_type* inst,
88 const uint8_t* encoded, 95 const uint8_t* encoded,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 int ErrorCode() override; 146 int ErrorCode() override;
140 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; 147 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
141 int PacketDurationRedundant(const uint8_t* encoded, 148 int PacketDurationRedundant(const uint8_t* encoded,
142 size_t encoded_len) const override; 149 size_t encoded_len) const override;
143 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; 150 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override;
144 size_t Channels() const override; 151 size_t Channels() const override;
145 }; 152 };
146 153
147 } // namespace webrtc 154 } // namespace webrtc
148 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_AUDIO_ENCODER_ ISAC_H_ 155 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_AUDIO_ENCODER_ ISAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698