OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ | 5 #ifndef MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ |
6 #define MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ | 6 #define MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "media/cast/net/rtcp/rtcp_defines.h" | 9 #include "media/cast/net/rtcp/rtcp_defines.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // Cast RTP extensions. | 27 // Cast RTP extensions. |
28 static const uint8 kCastRtpExtensionAdaptiveLatency = 1; | 28 static const uint8 kCastRtpExtensionAdaptiveLatency = 1; |
29 | 29 |
30 struct RtpCastHeader { | 30 struct RtpCastHeader { |
31 RtpCastHeader(); | 31 RtpCastHeader(); |
32 // Elements from RTP packet header. | 32 // Elements from RTP packet header. |
33 bool marker; | 33 bool marker; |
34 uint8 payload_type; | 34 uint8 payload_type; |
35 uint16 sequence_number; | 35 uint16 sequence_number; |
36 uint32 rtp_timestamp; | 36 RtpTimeTicks rtp_timestamp; |
37 uint32 sender_ssrc; | 37 uint32 sender_ssrc; |
38 uint8 num_csrcs; | 38 uint8 num_csrcs; |
39 | 39 |
40 // Elements from Cast header (at beginning of RTP payload). | 40 // Elements from Cast header (at beginning of RTP payload). |
41 bool is_key_frame; | 41 bool is_key_frame; |
42 bool is_reference; | 42 bool is_reference; |
43 uint32 frame_id; | 43 uint32 frame_id; |
44 uint16 packet_id; | 44 uint16 packet_id; |
45 uint16 max_packet_id; | 45 uint16 max_packet_id; |
46 uint32 reference_frame_id; | 46 uint32 reference_frame_id; |
47 uint16 new_playout_delay_ms; | 47 uint16 new_playout_delay_ms; |
48 uint8 num_extensions; | 48 uint8 num_extensions; |
49 }; | 49 }; |
50 | 50 |
51 class RtpPayloadFeedback { | 51 class RtpPayloadFeedback { |
52 public: | 52 public: |
53 virtual void CastFeedback(const RtcpCastMessage& cast_feedback) = 0; | 53 virtual void CastFeedback(const RtcpCastMessage& cast_feedback) = 0; |
54 | 54 |
55 protected: | 55 protected: |
56 virtual ~RtpPayloadFeedback(); | 56 virtual ~RtpPayloadFeedback(); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace cast | 59 } // namespace cast |
60 } // namespace media | 60 } // namespace media |
61 | 61 |
62 #endif // MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ | 62 #endif // MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ |
OLD | NEW |