OLD | NEW |
| (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 #include "webrtc/media/base/constants.h" | |
12 | |
13 #include <string> | |
14 | |
15 namespace cricket { | |
16 | |
17 const int kVideoCodecClockrate = 90000; | |
18 const int kDataCodecClockrate = 90000; | |
19 const int kDataMaxBandwidth = 30720; // bps | |
20 | |
21 const float kHighSystemCpuThreshold = 0.85f; | |
22 const float kLowSystemCpuThreshold = 0.65f; | |
23 const float kProcessCpuThreshold = 0.10f; | |
24 | |
25 const char kRtxCodecName[] = "rtx"; | |
26 const char kRedCodecName[] = "red"; | |
27 const char kUlpfecCodecName[] = "ulpfec"; | |
28 | |
29 const char kCodecParamAssociatedPayloadType[] = "apt"; | |
30 | |
31 const char kOpusCodecName[] = "opus"; | |
32 const char kIsacCodecName[] = "isac"; | |
33 const char kL16CodecName[] = "l16"; | |
34 const char kG722CodecName[] = "g722"; | |
35 const char kIlbcCodecName[] = "ilbc"; | |
36 const char kPcmuCodecName[] = "pcmu"; | |
37 const char kPcmaCodecName[] = "pcma"; | |
38 const char kCnCodecName[] = "cn"; | |
39 const char kDtmfCodecName[] = "telephone-event"; | |
40 | |
41 // draft-spittka-payload-rtp-opus-03.txt | |
42 const char kCodecParamPTime[] = "ptime"; | |
43 const char kCodecParamMaxPTime[] = "maxptime"; | |
44 const char kCodecParamMinPTime[] = "minptime"; | |
45 const char kCodecParamSPropStereo[] = "sprop-stereo"; | |
46 const char kCodecParamStereo[] = "stereo"; | |
47 const char kCodecParamUseInbandFec[] = "useinbandfec"; | |
48 const char kCodecParamUseDtx[] = "usedtx"; | |
49 const char kCodecParamMaxAverageBitrate[] = "maxaveragebitrate"; | |
50 const char kCodecParamMaxPlaybackRate[] = "maxplaybackrate"; | |
51 | |
52 const char kCodecParamSctpProtocol[] = "protocol"; | |
53 const char kCodecParamSctpStreams[] = "streams"; | |
54 | |
55 const char kParamValueTrue[] = "1"; | |
56 const char kParamValueEmpty[] = ""; | |
57 | |
58 const int kOpusDefaultMaxPTime = 120; | |
59 const int kOpusDefaultPTime = 20; | |
60 const int kOpusDefaultMinPTime = 3; | |
61 const int kOpusDefaultSPropStereo = 0; | |
62 const int kOpusDefaultStereo = 0; | |
63 const int kOpusDefaultUseInbandFec = 0; | |
64 const int kOpusDefaultUseDtx = 0; | |
65 const int kOpusDefaultMaxPlaybackRate = 48000; | |
66 | |
67 const int kPreferredMaxPTime = 60; | |
68 const int kPreferredMinPTime = 10; | |
69 const int kPreferredSPropStereo = 0; | |
70 const int kPreferredStereo = 0; | |
71 const int kPreferredUseInbandFec = 0; | |
72 | |
73 const char kRtcpFbParamNack[] = "nack"; | |
74 const char kRtcpFbNackParamPli[] = "pli"; | |
75 const char kRtcpFbParamRemb[] = "goog-remb"; | |
76 const char kRtcpFbParamTransportCc[] = "transport-cc"; | |
77 | |
78 const char kRtcpFbParamCcm[] = "ccm"; | |
79 const char kRtcpFbCcmParamFir[] = "fir"; | |
80 const char kCodecParamMaxBitrate[] = "x-google-max-bitrate"; | |
81 const char kCodecParamMinBitrate[] = "x-google-min-bitrate"; | |
82 const char kCodecParamStartBitrate[] = "x-google-start-bitrate"; | |
83 const char kCodecParamMaxQuantization[] = "x-google-max-quantization"; | |
84 const char kCodecParamPort[] = "x-google-port"; | |
85 | |
86 const int kGoogleRtpDataCodecId = 101; | |
87 const char kGoogleRtpDataCodecName[] = "google-data"; | |
88 | |
89 const int kGoogleSctpDataCodecId = 108; | |
90 const char kGoogleSctpDataCodecName[] = "google-sctp-data"; | |
91 | |
92 const char kComfortNoiseCodecName[] = "CN"; | |
93 | |
94 const int kRtpAudioLevelHeaderExtensionDefaultId = 1; | |
95 const char kRtpAudioLevelHeaderExtension[] = | |
96 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; | |
97 | |
98 const int kRtpTimestampOffsetHeaderExtensionDefaultId = 2; | |
99 const char kRtpTimestampOffsetHeaderExtension[] = | |
100 "urn:ietf:params:rtp-hdrext:toffset"; | |
101 | |
102 const int kRtpAbsoluteSenderTimeHeaderExtensionDefaultId = 3; | |
103 const char kRtpAbsoluteSenderTimeHeaderExtension[] = | |
104 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; | |
105 | |
106 const int kRtpVideoRotationHeaderExtensionDefaultId = 4; | |
107 const char kRtpVideoRotationHeaderExtension[] = "urn:3gpp:video-orientation"; | |
108 const char kRtpVideoRotation6BitsHeaderExtensionForTesting[] = | |
109 "urn:3gpp:video-orientation:6"; | |
110 | |
111 const int kRtpTransportSequenceNumberHeaderExtensionDefaultId = 5; | |
112 const char kRtpTransportSequenceNumberHeaderExtension[] = | |
113 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions"; | |
114 | |
115 const char kVp8CodecName[] = "VP8"; | |
116 const char kVp9CodecName[] = "VP9"; | |
117 const char kH264CodecName[] = "H264"; | |
118 | |
119 const int kDefaultVp8PlType = 100; | |
120 const int kDefaultVp9PlType = 101; | |
121 const int kDefaultH264PlType = 107; | |
122 const int kDefaultRedPlType = 116; | |
123 const int kDefaultUlpfecType = 117; | |
124 const int kDefaultRtxVp8PlType = 96; | |
125 const int kDefaultRtxVp9PlType = 97; | |
126 const int kDefaultRtxRedPlType = 98; | |
127 const int kDefaultRtxH264PlType = 99; | |
128 | |
129 const int kDefaultVideoMaxWidth = 640; | |
130 const int kDefaultVideoMaxHeight = 400; | |
131 const int kDefaultVideoMaxFramerate = 30; | |
132 } // namespace cricket | |
OLD | NEW |