#include "modules/rtp_rtcp/source/rtp_video_layers_allocation_extension.h"
#include <stddef.h>
#include <stdint.h>
#include "absl/algorithm/container.h"
#include "api/video/video_layers_allocation.h"
#include "modules/rtp_rtcp/source/byte_io.h"
#include "modules/rtp_rtcp/source/leb128.h"
#include "rtc_base/checks.h"
namespace webrtc {
constexpr RTPExtensionType RtpVideoLayersAllocationExtension::kId;
namespace {
constexpr int kMaxNumRtpStreams = …;
bool AllocationIsValid(const VideoLayersAllocation& allocation) { … }
struct SpatialLayersBitmasks { … };
SpatialLayersBitmasks SpatialLayersBitmasksPerRtpStream(
const VideoLayersAllocation& allocation) { … }
}
bool RtpVideoLayersAllocationExtension::Write(
rtc::ArrayView<uint8_t> data,
const VideoLayersAllocation& allocation) { … }
bool RtpVideoLayersAllocationExtension::Parse(
rtc::ArrayView<const uint8_t> data,
VideoLayersAllocation* allocation) { … }
size_t RtpVideoLayersAllocationExtension::ValueSize(
const VideoLayersAllocation& allocation) { … }
}