#include "modules/rtp_rtcp/source/rtp_format_vp8.h"
#include <stdint.h>
#include <string.h>
#include <vector>
#include "modules/rtp_rtcp/source/rtp_packet_to_send.h"
#include "modules/rtp_rtcp/source/video_rtp_depacketizer_vp8.h"
#include "modules/video_coding/codecs/interface/common_constants.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
namespace webrtc {
namespace {
constexpr int kXBit = …;
constexpr int kNBit = …;
constexpr int kSBit = …;
constexpr int kKeyIdxField = …;
constexpr int kIBit = …;
constexpr int kLBit = …;
constexpr int kTBit = …;
constexpr int kKBit = …;
constexpr int kYBit = …;
bool ValidateHeader(const RTPVideoHeaderVP8& hdr_info) { … }
}
RtpPacketizerVp8::RtpPacketizerVp8(rtc::ArrayView<const uint8_t> payload,
PayloadSizeLimits limits,
const RTPVideoHeaderVP8& hdr_info)
: … { … }
RtpPacketizerVp8::~RtpPacketizerVp8() = default;
size_t RtpPacketizerVp8::NumPackets() const { … }
bool RtpPacketizerVp8::NextPacket(RtpPacketToSend* packet) { … }
RtpPacketizerVp8::RawHeader RtpPacketizerVp8::BuildHeader(
const RTPVideoHeaderVP8& header) { … }
}