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

Side by Side Diff: media/cast/net/rtp/rtp_header_parser.cc

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/net/rtp/rtp_header_parser.h ('k') | media/cast/net/rtp/rtp_packet_builder.h » ('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 2013 The Chromium Authors. All rights reserved. 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 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 #include "media/cast/transport/rtp_sender/rtp_packetizer/test/rtp_header_parser. h" 5 #include "media/cast/net/rtp/rtp_header_parser.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/big_endian.h" 9 #include "base/big_endian.h"
10 10
11 namespace media { 11 namespace media {
12 namespace cast { 12 namespace cast {
13 namespace transport {
14 13
15 static const uint8 kCastKeyFrameBitMask = 0x80; 14 static const uint8 kCastKeyFrameBitMask = 0x80;
16 static const uint8 kCastReferenceFrameIdBitMask = 0x40; 15 static const uint8 kCastReferenceFrameIdBitMask = 0x40;
17 static const size_t kRtpCommonHeaderLength = 12; 16 static const size_t kRtpCommonHeaderLength = 12;
18 static const size_t kRtpCastHeaderLength = 12; 17 static const size_t kRtpCastHeaderLength = 12;
19 18
20 RtpCastTestHeader::RtpCastTestHeader() 19 RtpCastTestHeader::RtpCastTestHeader()
21 : is_key_frame(false), 20 : is_key_frame(false),
22 frame_id(0), 21 frame_id(0),
23 packet_id(0), 22 packet_id(0),
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 big_endian_reader.ReadU16(&parsed_packet->packet_id); 92 big_endian_reader.ReadU16(&parsed_packet->packet_id);
94 big_endian_reader.ReadU16(&parsed_packet->max_packet_id); 93 big_endian_reader.ReadU16(&parsed_packet->max_packet_id);
95 94
96 if (parsed_packet->is_reference) { 95 if (parsed_packet->is_reference) {
97 parsed_packet->reference_frame_id = 96 parsed_packet->reference_frame_id =
98 reference_frame_id_wrap_helper_.MapTo32bitsFrameId(data[6]); 97 reference_frame_id_wrap_helper_.MapTo32bitsFrameId(data[6]);
99 } 98 }
100 return true; 99 return true;
101 } 100 }
102 101
103 } // namespace transport
104 } // namespace cast 102 } // namespace cast
105 } // namespace media 103 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/rtp/rtp_header_parser.h ('k') | media/cast/net/rtp/rtp_packet_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698