Index: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h |
index 116aaa6b931eaf86c4ef25ee6a39323ab5233299..547da10dc6631ad22b6c01d5e2479f7fd3cc6720 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h |
@@ -71,5 +71,22 @@ class VideoOrientation { |
static bool Write(uint8_t* data, uint8_t value); |
}; |
+class PlayoutDelayLimits { |
+ public: |
+ static constexpr RTPExtensionType kId = kRtpExtensionPlayoutDelay; |
+ static constexpr uint8_t kValueSizeBytes = 3; |
+ static const char* kName; |
+ static bool IsSupportedFor(MediaType type); |
+ // Playout delay in milliseconds. A playout delay limit (min or max) |
+ // has 12 bits allocated. This allows a range of 0-4095 values which |
+ // translates to a range of 0-40950 in milliseconds. |
+ static constexpr int kGranularityMs = 10; |
+ // Maximum playout delay value in milliseconds. |
+ static constexpr int kMaxMs = 0xfff * kGranularityMs; // 40950. |
+ |
+ static bool Parse(const uint8_t* data, int* min_ms, int* max_ms); |
Irfan
2016/08/16 17:22:14
Parse it into PlayoutDelay variable ?
danilchap
2016/08/17 07:42:38
Done.
|
+ static bool Write(uint8_t* data, int min_ms, int max_ms); |
Irfan
2016/08/16 17:22:13
Similarly, Write a PlayoutDelay variable ?
danilchap
2016/08/17 07:42:38
Done.
|
+}; |
+ |
} // namespace webrtc |
#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |