Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: media/cast/net/rtp/rtp_defines.h

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/net/rtp/receiver_stats_unittest.cc ('k') | media/cast/net/rtp/rtp_defines.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/cast/net/rtp/receiver_stats_unittest.cc ('k') | media/cast/net/rtp/rtp_defines.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698