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

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_encoder.h

Issue 1311533010: Remove AudioEncoder methods SetMaxBitrate and SetMaxPayloadSize (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ifc-merge-2
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/audio_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/audio_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698