Index: webrtc/common_video/h264/profile_level_id.h |
diff --git a/webrtc/common_video/h264/profile_level_id.h b/webrtc/common_video/h264/profile_level_id.h |
index 44292631cb51212c55d86d598d738d9c276c9c8e..f69b7f6cdcd27dee0cd409f5a79b7c0769ca9c76 100644 |
--- a/webrtc/common_video/h264/profile_level_id.h |
+++ b/webrtc/common_video/h264/profile_level_id.h |
@@ -60,6 +60,12 @@ struct ProfileLevelId { |
// profile level id. |
rtc::Optional<ProfileLevelId> ParseProfileLevelId(const char* str); |
+// Given that a decoder supports up to a given frame size (in pixels) at up to a |
+// given number of frames per second, return the highest H.264 level where it |
+// can guarantee that it will be able to support all valid encoded streams that |
+// are within that level. |
+rtc::Optional<Level> SupportedLevel(int max_frame_pixel_count, float max_fps); |
+ |
// Returns canonical string representation as three hex bytes of the profile |
// level id, or returns nothing for invalid profile level ids. |
rtc::Optional<std::string> ProfileLevelIdToString( |