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

Unified Diff: extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.h

Issue 1903823003: [chrome.displaySource] Add AVC Video profile and level enumerations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.h
diff --git a/extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.h b/extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.h
index c149af851f81ac557e0168f576ccde5efb8f1cc8..204a9e41c3be6e8482dd94b1e70473177f8ea3c3 100644
--- a/extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.h
+++ b/extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.h
@@ -57,13 +57,25 @@ class WiFiDisplayElementaryStreamDescriptor {
// AVC (Advanced Video Coding) video descriptor provides basic coding
// parameters for a video stream.
struct AVCVideo {
+ enum Level : uint8_t {
+ LEVEL_3_1 = 31u,
+ LEVEL_3_2 = 32u,
+ LEVEL_4 = 40u,
+ LEVEL_4_1 = 41u,
+ LEVEL_4_2 = 42u
+ };
+ enum Profile : uint8_t {
+ PROFILE_BASELINE = 66u,
+ PROFILE_MAIN = 77u,
+ PROFILE_HIGH = 100u
+ };
static WiFiDisplayElementaryStreamDescriptor Create(
- uint8_t profile_idc,
+ Profile profile_idc,
bool constraint_set0_flag,
bool constraint_set1_flag,
bool constraint_set2_flag,
uint8_t avc_compatible_flags,
- uint8_t level_idc,
+ Level level_idc,
bool avc_still_present);
};
« no previous file with comments | « no previous file | extensions/renderer/api/display_source/wifi_display/wifi_display_elementary_stream_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698