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

Side by Side Diff: webrtc/media/base/constants.h

Issue 1750593002: Rename constants files in webrtc/{media,p2p} (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed cricket naming Created 4 years, 9 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 | « webrtc/media/base/codec.h ('k') | webrtc/media/base/constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MEDIA_BASE_CONSTANTS_H_
12 #define WEBRTC_MEDIA_BASE_CONSTANTS_H_
13
14 #include <string>
15
16 // This file contains constants related to media.
17
18 namespace cricket {
19
20 extern const int kVideoCodecClockrate;
21 extern const int kDataCodecClockrate;
22 extern const int kDataMaxBandwidth; // bps
23
24 // Default CPU thresholds.
25 extern const float kHighSystemCpuThreshold;
26 extern const float kLowSystemCpuThreshold;
27 extern const float kProcessCpuThreshold;
28
29 extern const char kRtxCodecName[];
30 extern const char kRedCodecName[];
31 extern const char kUlpfecCodecName[];
32
33 // Codec parameters
34 extern const char kCodecParamAssociatedPayloadType[];
35
36 extern const char kOpusCodecName[];
37 extern const char kIsacCodecName[];
38 extern const char kL16CodecName[];
39 extern const char kG722CodecName[];
40 extern const char kIlbcCodecName[];
41 extern const char kPcmuCodecName[];
42 extern const char kPcmaCodecName[];
43 extern const char kCnCodecName[];
44 extern const char kDtmfCodecName[];
45
46 // Attribute parameters
47 extern const char kCodecParamPTime[];
48 extern const char kCodecParamMaxPTime[];
49 // fmtp parameters
50 extern const char kCodecParamMinPTime[];
51 extern const char kCodecParamSPropStereo[];
52 extern const char kCodecParamStereo[];
53 extern const char kCodecParamUseInbandFec[];
54 extern const char kCodecParamUseDtx[];
55 extern const char kCodecParamMaxAverageBitrate[];
56 extern const char kCodecParamMaxPlaybackRate[];
57 extern const char kCodecParamSctpProtocol[];
58 extern const char kCodecParamSctpStreams[];
59
60 extern const char kParamValueTrue[];
61 // Parameters are stored as parameter/value pairs. For parameters who do not
62 // have a value, |kParamValueEmpty| should be used as value.
63 extern const char kParamValueEmpty[];
64
65 // opus parameters.
66 // Default value for maxptime according to
67 // http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03
68 extern const int kOpusDefaultMaxPTime;
69 extern const int kOpusDefaultPTime;
70 extern const int kOpusDefaultMinPTime;
71 extern const int kOpusDefaultSPropStereo;
72 extern const int kOpusDefaultStereo;
73 extern const int kOpusDefaultUseInbandFec;
74 extern const int kOpusDefaultUseDtx;
75 extern const int kOpusDefaultMaxPlaybackRate;
76
77 // Prefered values in this code base. Note that they may differ from the default
78 // values in http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03
79 // Only frames larger or equal to 10 ms are currently supported in this code
80 // base.
81 extern const int kPreferredMaxPTime;
82 extern const int kPreferredMinPTime;
83 extern const int kPreferredSPropStereo;
84 extern const int kPreferredStereo;
85 extern const int kPreferredUseInbandFec;
86
87 // rtcp-fb messages according to RFC 4585
88 extern const char kRtcpFbParamNack[];
89 extern const char kRtcpFbNackParamPli[];
90 // rtcp-fb messages according to
91 // http://tools.ietf.org/html/draft-alvestrand-rmcat-remb-00
92 extern const char kRtcpFbParamRemb[];
93 // rtcp-fb messages according to
94 // https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-0 1
95 extern const char kRtcpFbParamTransportCc[];
96 // ccm submessages according to RFC 5104
97 extern const char kRtcpFbParamCcm[];
98 extern const char kRtcpFbCcmParamFir[];
99 // Google specific parameters
100 extern const char kCodecParamMaxBitrate[];
101 extern const char kCodecParamMinBitrate[];
102 extern const char kCodecParamStartBitrate[];
103 extern const char kCodecParamMaxQuantization[];
104 extern const char kCodecParamPort[];
105
106 // We put the data codec names here so callers of
107 // DataEngine::CreateChannel don't have to import rtpdataengine.h or
108 // sctpdataengine.h to get the codec names they want to pass in.
109 extern const int kGoogleRtpDataCodecId;
110 extern const char kGoogleRtpDataCodecName[];
111
112 // TODO(pthatcher): Find an id that won't conflict with anything. On
113 // the other hand, it really shouldn't matter since the id won't be
114 // used on the wire.
115 extern const int kGoogleSctpDataCodecId;
116 extern const char kGoogleSctpDataCodecName[];
117
118 extern const char kComfortNoiseCodecName[];
119
120 // Header extension for audio levels, as defined in
121 // http://tools.ietf.org/html/draft-ietf-avtext-client-to-mixer-audio-level-03
122 extern const int kRtpAudioLevelHeaderExtensionDefaultId;
123 extern const char kRtpAudioLevelHeaderExtension[];
124
125 // Header extension for RTP timestamp offset, see RFC 5450 for details:
126 // http://tools.ietf.org/html/rfc5450
127 extern const int kRtpTimestampOffsetHeaderExtensionDefaultId;
128 extern const char kRtpTimestampOffsetHeaderExtension[];
129
130 // Header extension for absolute send time, see url for details:
131 // http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
132 extern const int kRtpAbsoluteSenderTimeHeaderExtensionDefaultId;
133 extern const char kRtpAbsoluteSenderTimeHeaderExtension[];
134
135 // Header extension for coordination of video orientation, see url for details:
136 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/
137 // ts_126114v120700p.pdf
138 extern const int kRtpVideoRotationHeaderExtensionDefaultId;
139 extern const char kRtpVideoRotationHeaderExtension[];
140 // We don't support 6 bit CVO. Added here for testing purpose.
141 extern const char kRtpVideoRotation6BitsHeaderExtensionForTesting[];
142
143 // Header extension for transport sequence number, see url for details:
144 // http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions
145 extern const int kRtpTransportSequenceNumberHeaderExtensionDefaultId;
146 extern const char kRtpTransportSequenceNumberHeaderExtension[];
147
148 extern const char kVp8CodecName[];
149 extern const char kVp9CodecName[];
150 extern const char kH264CodecName[];
151
152 extern const int kDefaultVp8PlType;
153 extern const int kDefaultVp9PlType;
154 extern const int kDefaultH264PlType;
155 extern const int kDefaultRedPlType;
156 extern const int kDefaultUlpfecType;
157 extern const int kDefaultRtxVp8PlType;
158 extern const int kDefaultRtxVp9PlType;
159 extern const int kDefaultRtxRedPlType;
160 extern const int kDefaultRtxH264PlType;
161
162 extern const int kDefaultVideoMaxWidth;
163 extern const int kDefaultVideoMaxHeight;
164 extern const int kDefaultVideoMaxFramerate;
165 } // namespace cricket
166
167 #endif // WEBRTC_MEDIA_BASE_CONSTANTS_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/codec.h ('k') | webrtc/media/base/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698