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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Tells the encoder what the projected packet loss rate is. The rate is in | 133 // Tells the encoder what the projected packet loss rate is. The rate is in |
134 // the range [0.0, 1.0]. The encoder would typically use this information to | 134 // the range [0.0, 1.0]. The encoder would typically use this information to |
135 // adjust channel coding efforts, such as FEC. The default implementation | 135 // adjust channel coding efforts, such as FEC. The default implementation |
136 // does nothing. | 136 // does nothing. |
137 virtual void SetProjectedPacketLossRate(double fraction); | 137 virtual void SetProjectedPacketLossRate(double fraction); |
138 | 138 |
139 // Tells the encoder what average bitrate we'd like it to produce. The | 139 // Tells the encoder what average bitrate we'd like it to produce. The |
140 // encoder is free to adjust or disregard the given bitrate (the default | 140 // encoder is free to adjust or disregard the given bitrate (the default |
141 // implementation does the latter). | 141 // implementation does the latter). |
142 virtual void SetTargetBitrate(int target_bps); | 142 virtual void SetTargetBitrate(int target_bps); |
143 | |
144 // Sets the maximum bitrate which must not be exceeded for any packet. The | |
145 // encoder is free to adjust or disregard this value (the default | |
146 // implementation does the latter). | |
147 virtual void SetMaxBitrate(int max_bps); | |
148 | |
149 // Sets an upper limit on the size of packet payloads produced by the | |
150 // encoder. The encoder is free to adjust or disregard this value (the | |
151 // default implementation does the latter). | |
152 virtual void SetMaxPayloadSize(int max_payload_size_bytes); | |
153 }; | 143 }; |
154 } // namespace webrtc | 144 } // namespace webrtc |
155 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_ | 145 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_ |
OLD | NEW |