#include "modules/rtp_rtcp/source/rtp_util.h"
#include <cstddef>
#include <cstdint>
#include "api/array_view.h"
#include "modules/rtp_rtcp/source/byte_io.h"
#include "rtc_base/checks.h"
namespace webrtc {
namespace {
constexpr uint8_t kRtpVersion = …;
constexpr size_t kMinRtpPacketLen = …;
constexpr size_t kMinRtcpPacketLen = …;
bool HasCorrectRtpVersion(rtc::ArrayView<const uint8_t> packet) { … }
bool PayloadTypeIsReservedForRtcp(uint8_t payload_type) { … }
}
bool IsRtpPacket(rtc::ArrayView<const uint8_t> packet) { … }
bool IsRtcpPacket(rtc::ArrayView<const uint8_t> packet) { … }
int ParseRtpPayloadType(rtc::ArrayView<const uint8_t> rtp_packet) { … }
uint16_t ParseRtpSequenceNumber(rtc::ArrayView<const uint8_t> rtp_packet) { … }
uint32_t ParseRtpSsrc(rtc::ArrayView<const uint8_t> rtp_packet) { … }
}