#include "modules/audio_coding/neteq/tools/packet.h"
#include "api/array_view.h"
#include "modules/rtp_rtcp/source/rtp_packet_received.h"
#include "rtc_base/checks.h"
#include "rtc_base/copy_on_write_buffer.h"
namespace webrtc {
namespace test {
Packet::Packet(rtc::CopyOnWriteBuffer packet,
size_t virtual_packet_length_bytes,
double time_ms,
const RtpHeaderExtensionMap* extension_map)
: … { … }
Packet::Packet(const RTPHeader& header,
size_t virtual_packet_length_bytes,
size_t virtual_payload_length_bytes,
double time_ms)
: … { … }
Packet::~Packet() = default;
bool Packet::ExtractRedHeaders(std::list<RTPHeader*>* headers) const { … }
void Packet::DeleteRedHeaders(std::list<RTPHeader*>* headers) { … }
bool Packet::ParseHeader(const RtpHeaderExtensionMap* extension_map) { … }
void Packet::CopyToHeader(RTPHeader* destination) const { … }
}
}