Index: webrtc/common_types.h |
diff --git a/webrtc/common_types.h b/webrtc/common_types.h |
index 07faf6aefcfbcbd37bc5eead6d3b7a7c9768bf40..048485fa2fc89f99483230cb2f0b5f479acb7ed0 100644 |
--- a/webrtc/common_types.h |
+++ b/webrtc/common_types.h |
@@ -547,6 +547,7 @@ enum RawVideoType |
enum { kConfigParameterSize = 128}; |
enum { kPayloadNameSize = 32}; |
enum { kMaxSimulcastStreams = 4}; |
+enum { kMaxSpatialLayers = 5 }; |
enum { kMaxTemporalStreams = 4}; |
enum VideoCodecComplexity |
@@ -676,6 +677,13 @@ struct SimulcastStream { |
} |
}; |
+struct SpatialLayer { |
+ int scaling_factor_num; |
+ int scaling_factor_den; |
+ int target_bitrate_bps; |
+ // TODO(ivica): Add max_quantizer and min_quantizer? |
+}; |
+ |
enum VideoCodecMode { |
kRealtimeVideo, |
kScreensharing |
@@ -702,6 +710,7 @@ struct VideoCodec { |
unsigned int qpMax; |
unsigned char numberOfSimulcastStreams; |
SimulcastStream simulcastStream[kMaxSimulcastStreams]; |
+ SpatialLayer spatialLayers[kMaxSpatialLayers]; |
VideoCodecMode mode; |