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

Side by Side Diff: webrtc/api/audio_codecs/opus/audio_encoder_opus_config.h

Issue 3011943002: Move optional.h to webrtc/api/ (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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
11 #ifndef WEBRTC_API_AUDIO_CODECS_OPUS_AUDIO_ENCODER_OPUS_CONFIG_H_ 11 #ifndef WEBRTC_API_AUDIO_CODECS_OPUS_AUDIO_ENCODER_OPUS_CONFIG_H_
12 #define WEBRTC_API_AUDIO_CODECS_OPUS_AUDIO_ENCODER_OPUS_CONFIG_H_ 12 #define WEBRTC_API_AUDIO_CODECS_OPUS_AUDIO_ENCODER_OPUS_CONFIG_H_
13 13
14 #include <stddef.h> 14 #include <stddef.h>
15 15
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/rtc_base/optional.h" 18 #include "webrtc/api/optional.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 // NOTE: This struct is still under development and may change without notice. 22 // NOTE: This struct is still under development and may change without notice.
23 struct AudioEncoderOpusConfig { 23 struct AudioEncoderOpusConfig {
24 static constexpr int kDefaultFrameSizeMs = 20; 24 static constexpr int kDefaultFrameSizeMs = 20;
25 25
26 // Opus API allows a min bitrate of 500bps, but Opus documentation suggests 26 // Opus API allows a min bitrate of 500bps, but Opus documentation suggests
27 // bitrate should be in the range of 6000 to 510000, inclusive. 27 // bitrate should be in the range of 6000 to 510000, inclusive.
28 static constexpr int kMinBitrateBps = 6000; 28 static constexpr int kMinBitrateBps = 6000;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int uplink_bandwidth_update_interval_ms; 64 int uplink_bandwidth_update_interval_ms;
65 65
66 // NOTE: This member isn't necessary, and will soon go away. See 66 // NOTE: This member isn't necessary, and will soon go away. See
67 // https://bugs.chromium.org/p/webrtc/issues/detail?id=7847 67 // https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
68 int payload_type; 68 int payload_type;
69 }; 69 };
70 70
71 } // namespace webrtc 71 } // namespace webrtc
72 72
73 #endif // WEBRTC_API_AUDIO_CODECS_OPUS_AUDIO_ENCODER_OPUS_CONFIG_H_ 73 #endif // WEBRTC_API_AUDIO_CODECS_OPUS_AUDIO_ENCODER_OPUS_CONFIG_H_
OLDNEW
« no previous file with comments | « webrtc/api/audio_codecs/opus/audio_decoder_opus.h ('k') | webrtc/api/mediaconstraintsinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698