chromium/third_party/openscreen/src/cast/streaming/impl/rtp_packetizer.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/rtp_packetizer.h"

#include <algorithm>
#include <limits>
#include <random>

#include "cast/streaming/impl/packet_util.h"
#include "platform/api/time.h"
#include "util/big_endian.h"
#include "util/integer_division.h"
#include "util/osp_logging.h"

namespace openscreen::cast {

namespace {

// Returns a random sequence number to start with. The reason for using a random
// number instead of zero is unclear, but this has existed both in several
// versions of the Cast Streaming spec and in other implementations for many
// years.
uint16_t GenerateRandomSequenceNumberStart() {}

}  // namespace

RtpPacketizer::RtpPacketizer(RtpPayloadType payload_type,
                             Ssrc sender_ssrc,
                             int max_packet_size)
    :{}

RtpPacketizer::~RtpPacketizer() = default;

ByteBuffer RtpPacketizer::GeneratePacket(const EncryptedFrame& frame,
                                         FramePacketId packet_id,
                                         ByteBuffer buffer) {}

int RtpPacketizer::ComputeNumberOfPackets(const EncryptedFrame& frame) const {}

}  // namespace openscreen::cast