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

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

Issue 2772773002: Adding cbr support for Opus (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 extern const char kDtmfCodecName[]; 47 extern const char kDtmfCodecName[];
48 48
49 // Attribute parameters 49 // Attribute parameters
50 extern const char kCodecParamPTime[]; 50 extern const char kCodecParamPTime[];
51 extern const char kCodecParamMaxPTime[]; 51 extern const char kCodecParamMaxPTime[];
52 // fmtp parameters 52 // fmtp parameters
53 extern const char kCodecParamMinPTime[]; 53 extern const char kCodecParamMinPTime[];
54 extern const char kCodecParamSPropStereo[]; 54 extern const char kCodecParamSPropStereo[];
55 extern const char kCodecParamStereo[]; 55 extern const char kCodecParamStereo[];
56 extern const char kCodecParamUseInbandFec[]; 56 extern const char kCodecParamUseInbandFec[];
57 extern const char kCodecParamUseCbr[];
57 extern const char kCodecParamUseDtx[]; 58 extern const char kCodecParamUseDtx[];
58 extern const char kCodecParamMaxAverageBitrate[]; 59 extern const char kCodecParamMaxAverageBitrate[];
59 extern const char kCodecParamMaxPlaybackRate[]; 60 extern const char kCodecParamMaxPlaybackRate[];
60 extern const char kCodecParamSctpProtocol[]; 61 extern const char kCodecParamSctpProtocol[];
61 extern const char kCodecParamSctpStreams[]; 62 extern const char kCodecParamSctpStreams[];
62 63
63 extern const char kParamValueTrue[]; 64 extern const char kParamValueTrue[];
64 // Parameters are stored as parameter/value pairs. For parameters who do not 65 // Parameters are stored as parameter/value pairs. For parameters who do not
65 // have a value, |kParamValueEmpty| should be used as value. 66 // have a value, |kParamValueEmpty| should be used as value.
66 extern const char kParamValueEmpty[]; 67 extern const char kParamValueEmpty[];
67 68
68 // opus parameters. 69 // opus parameters.
69 // Default value for maxptime according to 70 // Default value for maxptime according to
70 // http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03 71 // http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03
71 extern const int kOpusDefaultMaxPTime; 72 extern const int kOpusDefaultMaxPTime;
72 extern const int kOpusDefaultPTime; 73 extern const int kOpusDefaultPTime;
73 extern const int kOpusDefaultMinPTime; 74 extern const int kOpusDefaultMinPTime;
74 extern const int kOpusDefaultSPropStereo; 75 extern const int kOpusDefaultSPropStereo;
75 extern const int kOpusDefaultStereo; 76 extern const int kOpusDefaultStereo;
76 extern const int kOpusDefaultUseInbandFec; 77 extern const int kOpusDefaultUseInbandFec;
77 extern const int kOpusDefaultUseDtx; 78 extern const int kOpusDefaultUseDtx;
79 extern const int kOpusDefaultUseCbr;
minyue-webrtc 2017/03/29 20:45:26 nit: if you place Cbr before Dtx everywhere else,
78 extern const int kOpusDefaultMaxPlaybackRate; 80 extern const int kOpusDefaultMaxPlaybackRate;
79 81
80 // Prefered values in this code base. Note that they may differ from the default 82 // Prefered values in this code base. Note that they may differ from the default
81 // values in http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03 83 // values in http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03
82 // Only frames larger or equal to 10 ms are currently supported in this code 84 // Only frames larger or equal to 10 ms are currently supported in this code
83 // base. 85 // base.
84 extern const int kPreferredMaxPTime; 86 extern const int kPreferredMaxPTime;
85 extern const int kPreferredMinPTime; 87 extern const int kPreferredMinPTime;
86 extern const int kPreferredSPropStereo; 88 extern const int kPreferredSPropStereo;
87 extern const int kPreferredStereo; 89 extern const int kPreferredStereo;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 extern const char kH264FmtpProfileLevelId[]; 130 extern const char kH264FmtpProfileLevelId[];
129 extern const char kH264FmtpLevelAsymmetryAllowed[]; 131 extern const char kH264FmtpLevelAsymmetryAllowed[];
130 extern const char kH264FmtpPacketizationMode[]; 132 extern const char kH264FmtpPacketizationMode[];
131 extern const char kH264FmtpSpropParameterSets[]; 133 extern const char kH264FmtpSpropParameterSets[];
132 extern const char kH264ProfileLevelConstrainedBaseline[]; 134 extern const char kH264ProfileLevelConstrainedBaseline[];
133 135
134 extern const int kDefaultVideoMaxFramerate; 136 extern const int kDefaultVideoMaxFramerate;
135 } // namespace cricket 137 } // namespace cricket
136 138
137 #endif // WEBRTC_MEDIA_BASE_MEDIACONSTANTS_H_ 139 #endif // WEBRTC_MEDIA_BASE_MEDIACONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698