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

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

Issue 1225093005: Split iSAC encoder/decoder: Test more cases (and make sure they work) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 WebRtcIsac_SetBandwidthInfo(inst, bwinfo); 84 WebRtcIsac_SetBandwidthInfo(inst, bwinfo);
85 } 85 }
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 return WebRtcIsac_SetDecSampRate(inst, sample_rate_hz); 88 return WebRtcIsac_SetDecSampRate(inst, sample_rate_hz);
89 } 89 }
90 static inline int16_t SetEncSampRate(instance_type* inst, 90 static inline int16_t SetEncSampRate(instance_type* inst,
91 uint16_t sample_rate_hz) { 91 uint16_t sample_rate_hz) {
92 return WebRtcIsac_SetEncSampRate(inst, sample_rate_hz); 92 return WebRtcIsac_SetEncSampRate(inst, sample_rate_hz);
93 } 93 }
94 static inline void SetEncSampRateInDecoder(instance_type* inst,
95 uint16_t sample_rate_hz) {
96 WebRtcIsac_SetEncSampRateInDecoder(inst, sample_rate_hz);
97 }
98 static inline void SetInitialBweBottleneck(
99 instance_type* inst,
100 int bottleneck_bits_per_second) {
101 WebRtcIsac_SetInitialBweBottleneck(inst, bottleneck_bits_per_second);
102 }
94 static inline int16_t UpdateBwEstimate(instance_type* inst, 103 static inline int16_t UpdateBwEstimate(instance_type* inst,
95 const uint8_t* encoded, 104 const uint8_t* encoded,
96 int32_t packet_size, 105 int32_t packet_size,
97 uint16_t rtp_seq_number, 106 uint16_t rtp_seq_number,
98 uint32_t send_ts, 107 uint32_t send_ts,
99 uint32_t arr_ts) { 108 uint32_t arr_ts) {
100 return WebRtcIsac_UpdateBwEstimate(inst, encoded, packet_size, 109 return WebRtcIsac_UpdateBwEstimate(inst, encoded, packet_size,
101 rtp_seq_number, send_ts, arr_ts); 110 rtp_seq_number, send_ts, arr_ts);
102 } 111 }
103 static inline int16_t SetMaxPayloadSize(instance_type* inst, 112 static inline int16_t SetMaxPayloadSize(instance_type* inst,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 int ErrorCode() override; 155 int ErrorCode() override;
147 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override; 156 int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
148 int PacketDurationRedundant(const uint8_t* encoded, 157 int PacketDurationRedundant(const uint8_t* encoded,
149 size_t encoded_len) const override; 158 size_t encoded_len) const override;
150 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override; 159 bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override;
151 size_t Channels() const override; 160 size_t Channels() const override;
152 }; 161 };
153 162
154 } // namespace webrtc 163 } // namespace webrtc
155 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_AUDIO_ENCODER_ ISAC_H_ 164 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_AUDIO_ENCODER_ ISAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698