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
3 // found in the LICENSE file.
5 #include "media/cast/rtcp/rtcp_defines.h"
7 #include "media/cast/logging/logging_defines.h"
12 RtcpCastMessage::RtcpCastMessage(uint32 media_ssrc
)
13 : media_ssrc_(media_ssrc
), ack_frame_id_(0u), target_delay_ms_(0) {}
14 RtcpCastMessage::~RtcpCastMessage() {}
16 void RtcpCastMessage::Copy(const RtcpCastMessage
& cast_message
) {
17 media_ssrc_
= cast_message
.media_ssrc_
;
18 ack_frame_id_
= cast_message
.ack_frame_id_
;
19 target_delay_ms_
= cast_message
.target_delay_ms_
;
20 missing_frames_and_packets_
= cast_message
.missing_frames_and_packets_
;
23 RtcpReceiverEventLogMessage::RtcpReceiverEventLogMessage()
24 : type(UNKNOWN
), packet_id(0u) {}
25 RtcpReceiverEventLogMessage::~RtcpReceiverEventLogMessage() {}
27 RtcpReceiverFrameLogMessage::RtcpReceiverFrameLogMessage(uint32 timestamp
)
28 : rtp_timestamp_(timestamp
) {}
29 RtcpReceiverFrameLogMessage::~RtcpReceiverFrameLogMessage() {}
31 RtcpRpsiMessage::RtcpRpsiMessage()
32 : remote_ssrc(0u), payload_type(0u), picture_id(0u) {}
33 RtcpRpsiMessage::~RtcpRpsiMessage() {}
35 RtcpNackMessage::RtcpNackMessage() : remote_ssrc(0u) {}
36 RtcpNackMessage::~RtcpNackMessage() {}
38 RtcpRembMessage::RtcpRembMessage() : remb_bitrate(0u) {}
39 RtcpRembMessage::~RtcpRembMessage() {}
41 RtcpReceiverReferenceTimeReport::RtcpReceiverReferenceTimeReport()
42 : remote_ssrc(0u), ntp_seconds(0u), ntp_fraction(0u) {}
43 RtcpReceiverReferenceTimeReport::~RtcpReceiverReferenceTimeReport() {}
45 RtcpEvent::RtcpEvent() : type(UNKNOWN
), packet_id(0u) {}
46 RtcpEvent::~RtcpEvent() {}