chromium/third_party/openscreen/src/cast/streaming/impl/rtcp_common.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cast/streaming/impl/rtcp_common.h"

#include <algorithm>
#include <limits>

#include "cast/streaming/impl/packet_util.h"
#include "util/saturate_cast.h"

namespace openscreen::cast {

RtcpCommonHeader::RtcpCommonHeader() = default;
RtcpCommonHeader::~RtcpCommonHeader() = default;

void RtcpCommonHeader::AppendFields(ByteBuffer& buffer) const {}

// static
std::optional<RtcpCommonHeader> RtcpCommonHeader::Parse(ByteView buffer) {}

RtcpReportBlock::RtcpReportBlock() = default;
RtcpReportBlock::~RtcpReportBlock() = default;

void RtcpReportBlock::AppendFields(ByteBuffer& buffer) const {}

void RtcpReportBlock::SetPacketFractionLostNumerator(
    int64_t num_apparently_sent,
    int64_t num_received) {}

void RtcpReportBlock::SetCumulativePacketsLost(int64_t num_apparently_sent,
                                               int64_t num_received) {}

void RtcpReportBlock::SetDelaySinceLastReport(
    Clock::duration local_clock_delay) {}

// static
std::optional<RtcpReportBlock> RtcpReportBlock::ParseOne(ByteView buffer,
                                                         int report_count,
                                                         Ssrc ssrc) {}

RtcpSenderReport::RtcpSenderReport() = default;
RtcpSenderReport::~RtcpSenderReport() = default;

}  // namespace openscreen::cast