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

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

Issue 2347863003: H264 codec: Check profile-level-id when matching (Closed)
Patch Set: Created 4 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) 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const char kGoogleSctpDataCodecName[] = "google-sctp-data"; 90 const char kGoogleSctpDataCodecName[] = "google-sctp-data";
91 91
92 const char kComfortNoiseCodecName[] = "CN"; 92 const char kComfortNoiseCodecName[] = "CN";
93 93
94 const char kVp8CodecName[] = "VP8"; 94 const char kVp8CodecName[] = "VP8";
95 const char kVp9CodecName[] = "VP9"; 95 const char kVp9CodecName[] = "VP9";
96 const char kH264CodecName[] = "H264"; 96 const char kH264CodecName[] = "H264";
97 97
98 // RFC 6184 RTP Payload Format for H.264 video 98 // RFC 6184 RTP Payload Format for H.264 video
99 const char kH264FmtpProfileLevelId[] = "profile-level-id"; 99 const char kH264FmtpProfileLevelId[] = "profile-level-id";
100 // If no profile-level-id is present as a parameter, the Baseline Profile
101 // without additional constraints at Level 1 is implied.
102 const char kH264FmtpDefaultProfileLevelId[] = "66000a";
hta-webrtc 2016/09/19 06:38:36 I don't think this is baseline. Remember that the
magjed_webrtc 2016/09/19 12:40:30 Sorry, it should be 66 in decimal, i.e. 0x42 in he
hta-webrtc 2016/10/05 11:56:29 Yes, I think we should set those 2 flags. They are
100 const char kH264FmtpLevelAsymmetryAllowed[] = "level-asymmetry-allowed"; 103 const char kH264FmtpLevelAsymmetryAllowed[] = "level-asymmetry-allowed";
101 const char kH264FmtpPacketizationMode[] = "packetization-mode"; 104 const char kH264FmtpPacketizationMode[] = "packetization-mode";
102 const char kH264ProfileLevelConstrainedBaseline[] = "42e01f"; 105 const char kH264ProfileLevelConstrainedBaseline[] = "42e01f";
103 106
104 const int kDefaultVp8PlType = 100; 107 const int kDefaultVp8PlType = 100;
105 const int kDefaultVp9PlType = 101; 108 const int kDefaultVp9PlType = 101;
106 const int kDefaultH264PlType = 107; 109 const int kDefaultH264PlType = 107;
107 const int kDefaultRedPlType = 116; 110 const int kDefaultRedPlType = 116;
108 const int kDefaultUlpfecType = 117; 111 const int kDefaultUlpfecType = 117;
109 const int kDefaultRtxVp8PlType = 96; 112 const int kDefaultRtxVp8PlType = 96;
110 const int kDefaultRtxVp9PlType = 97; 113 const int kDefaultRtxVp9PlType = 97;
111 const int kDefaultRtxRedPlType = 98; 114 const int kDefaultRtxRedPlType = 98;
112 const int kDefaultRtxH264PlType = 99; 115 const int kDefaultRtxH264PlType = 99;
113 116
114 const int kDefaultVideoMaxWidth = 640; 117 const int kDefaultVideoMaxWidth = 640;
115 const int kDefaultVideoMaxHeight = 400; 118 const int kDefaultVideoMaxHeight = 400;
116 const int kDefaultVideoMaxFramerate = 30; 119 const int kDefaultVideoMaxFramerate = 30;
117 } // namespace cricket 120 } // namespace cricket
OLDNEW
« webrtc/media/base/codec_unittest.cc ('K') | « webrtc/media/base/mediaconstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698