#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 {
uint16_t GenerateRandomSequenceNumberStart() { … }
}
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 { … }
}