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 #include "media/cast/transport/cast_transport_config.h" | 5 #include "media/cast/transport/cast_transport_config.h" |
6 | 6 |
7 namespace media { | 7 namespace media { |
8 namespace cast { | 8 namespace cast { |
9 namespace transport { | 9 namespace transport { |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 CastTransportVideoConfig::~CastTransportVideoConfig() {} | 34 CastTransportVideoConfig::~CastTransportVideoConfig() {} |
35 | 35 |
36 EncodedFrame::EncodedFrame() | 36 EncodedFrame::EncodedFrame() |
37 : dependency(UNKNOWN_DEPENDENCY), | 37 : dependency(UNKNOWN_DEPENDENCY), |
38 frame_id(0), | 38 frame_id(0), |
39 referenced_frame_id(0), | 39 referenced_frame_id(0), |
40 rtp_timestamp(0) {} | 40 rtp_timestamp(0) {} |
41 | 41 |
42 EncodedFrame::~EncodedFrame() {} | 42 EncodedFrame::~EncodedFrame() {} |
43 | 43 |
| 44 void EncodedFrame::CopyMetadataTo(EncodedFrame* dest) const { |
| 45 DCHECK(dest); |
| 46 dest->dependency = this->dependency; |
| 47 dest->frame_id = this->frame_id; |
| 48 dest->referenced_frame_id = this->referenced_frame_id; |
| 49 dest->rtp_timestamp = this->rtp_timestamp; |
| 50 dest->reference_time = this->reference_time; |
| 51 } |
| 52 |
44 RtcpSenderInfo::RtcpSenderInfo() | 53 RtcpSenderInfo::RtcpSenderInfo() |
45 : ntp_seconds(0), | 54 : ntp_seconds(0), |
46 ntp_fraction(0), | 55 ntp_fraction(0), |
47 rtp_timestamp(0), | 56 rtp_timestamp(0), |
48 send_packet_count(0), | 57 send_packet_count(0), |
49 send_octet_count(0) {} | 58 send_octet_count(0) {} |
50 RtcpSenderInfo::~RtcpSenderInfo() {} | 59 RtcpSenderInfo::~RtcpSenderInfo() {} |
51 | 60 |
52 RtcpReportBlock::RtcpReportBlock() | 61 RtcpReportBlock::RtcpReportBlock() |
53 : remote_ssrc(0), | 62 : remote_ssrc(0), |
(...skipping 10 matching lines...) Expand all Loading... |
64 : last_rr(0), delay_since_last_rr(0) {} | 73 : last_rr(0), delay_since_last_rr(0) {} |
65 RtcpDlrrReportBlock::~RtcpDlrrReportBlock() {} | 74 RtcpDlrrReportBlock::~RtcpDlrrReportBlock() {} |
66 | 75 |
67 SendRtcpFromRtpSenderData::SendRtcpFromRtpSenderData() | 76 SendRtcpFromRtpSenderData::SendRtcpFromRtpSenderData() |
68 : packet_type_flags(0), sending_ssrc(0) {} | 77 : packet_type_flags(0), sending_ssrc(0) {} |
69 SendRtcpFromRtpSenderData::~SendRtcpFromRtpSenderData() {} | 78 SendRtcpFromRtpSenderData::~SendRtcpFromRtpSenderData() {} |
70 | 79 |
71 } // namespace transport | 80 } // namespace transport |
72 } // namespace cast | 81 } // namespace cast |
73 } // namespace media | 82 } // namespace media |
OLD | NEW |