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

Unified Diff: webrtc/common_types.h

Issue 2529153002: Reland of Add H264 profile to webrtc::VideoCodecH264 and webrtc::VideoPayload (Closed)
Patch Set: Set profile information in CreatePayloadType for video. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/common_video/h264/profile_level_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_types.h
diff --git a/webrtc/common_types.h b/webrtc/common_types.h
index 4128f13ffa5bb16bd22adbd4a3a57d536e98e07e..3a0d6d8cc544ff4c608e34a8fd04facb2aa59fa8 100644
--- a/webrtc/common_types.h
+++ b/webrtc/common_types.h
@@ -548,6 +548,19 @@ struct VideoCodecVP9 {
bool flexibleMode;
};
+// TODO(magjed): Move this and other H264 related classes out to their own file.
+namespace H264 {
+
+enum Profile {
+ kProfileConstrainedBaseline,
+ kProfileBaseline,
+ kProfileMain,
+ kProfileConstrainedHigh,
+ kProfileHigh,
+};
+
+} // namespace H264
+
// H264 specific.
struct VideoCodecH264 {
bool frameDroppingOn;
@@ -557,6 +570,7 @@ struct VideoCodecH264 {
size_t spsLen;
const uint8_t* ppsData;
size_t ppsLen;
+ H264::Profile profile;
};
// Video codec types
« no previous file with comments | « no previous file | webrtc/common_video/h264/profile_level_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698