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

Side by Side Diff: media/cast/rtp_common/rtp_defines.h

Issue 112133002: Cast:Moving netwrok sender related code to a designated folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moving const' to .cc Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_CAST_RTP_COMMON_RTP_DEFINES_H_
6 #define MEDIA_CAST_RTP_COMMON_RTP_DEFINES_H_
7
8 #include "base/basictypes.h"
9 #include "media/cast/cast_config.h"
10 #include "media/cast/rtcp/rtcp_defines.h"
11 #include "third_party/webrtc/modules/interface/module_common_types.h"
12
13 namespace media {
14 namespace cast {
15
16 const uint8 kRtpMarkerBitMask = 0x80;
17
18 struct RtpCastHeader {
19 RtpCastHeader() {
20 is_key_frame = false;
21 frame_id = 0;
22 packet_id = 0;
23 max_packet_id = 0;
24 is_reference = false;
25 reference_frame_id = 0;
26 }
27 webrtc::WebRtcRTPHeader webrtc;
28 bool is_key_frame;
29 uint32 frame_id;
30 uint16 packet_id;
31 uint16 max_packet_id;
32 bool is_reference; // Set to true if the previous frame is not available,
33 // and the reference frame id is available.
34 uint32 reference_frame_id;
35 };
36
37 class RtpPayloadFeedback {
38 public:
39 virtual void CastFeedback(const RtcpCastMessage& cast_feedback) = 0;
40
41 protected:
42 virtual ~RtpPayloadFeedback() {}
43 };
44
45 } // namespace cast
46 } // namespace media
47
48 #endif // MEDIA_CAST_RTP_COMMON_RTP_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/rtp_common/mock_rtp_payload_feedback.cc ('k') | media/cast/rtp_receiver/mock_rtp_payload_feedback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698