| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "media/cast/net/rtcp/rtcp_defines.h" | 10 #include "media/cast/net/rtcp/rtcp_defines.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Cast RTP extensions. | 28 // Cast RTP extensions. |
| 29 static const uint8_t kCastRtpExtensionAdaptiveLatency = 1; | 29 static const uint8_t kCastRtpExtensionAdaptiveLatency = 1; |
| 30 | 30 |
| 31 struct RtpCastHeader { | 31 struct RtpCastHeader { |
| 32 RtpCastHeader(); | 32 RtpCastHeader(); |
| 33 // Elements from RTP packet header. | 33 // Elements from RTP packet header. |
| 34 bool marker; | 34 bool marker; |
| 35 uint8_t payload_type; | 35 uint8_t payload_type; |
| 36 uint16_t sequence_number; | 36 uint16_t sequence_number; |
| 37 uint32_t rtp_timestamp; | 37 RtpTimeTicks rtp_timestamp; |
| 38 uint32_t sender_ssrc; | 38 uint32_t sender_ssrc; |
| 39 uint8_t num_csrcs; | 39 uint8_t num_csrcs; |
| 40 | 40 |
| 41 // Elements from Cast header (at beginning of RTP payload). | 41 // Elements from Cast header (at beginning of RTP payload). |
| 42 bool is_key_frame; | 42 bool is_key_frame; |
| 43 bool is_reference; | 43 bool is_reference; |
| 44 uint32_t frame_id; | 44 uint32_t frame_id; |
| 45 uint16_t packet_id; | 45 uint16_t packet_id; |
| 46 uint16_t max_packet_id; | 46 uint16_t max_packet_id; |
| 47 uint32_t reference_frame_id; | 47 uint32_t reference_frame_id; |
| 48 uint16_t new_playout_delay_ms; | 48 uint16_t new_playout_delay_ms; |
| 49 uint8_t num_extensions; | 49 uint8_t num_extensions; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 class RtpPayloadFeedback { | 52 class RtpPayloadFeedback { |
| 53 public: | 53 public: |
| 54 virtual void CastFeedback(const RtcpCastMessage& cast_feedback) = 0; | 54 virtual void CastFeedback(const RtcpCastMessage& cast_feedback) = 0; |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 virtual ~RtpPayloadFeedback(); | 57 virtual ~RtpPayloadFeedback(); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace cast | 60 } // namespace cast |
| 61 } // namespace media | 61 } // namespace media |
| 62 | 62 |
| 63 #endif // MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ | 63 #endif // MEDIA_CAST_NET_RTP_RTP_DEFINES_H_ |
| OLD | NEW |