#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/av1_builder.h"
#include "base/check_op.h"
namespace media {
namespace {
constexpr int kPrimaryReferenceNone = …;
}
AV1BitstreamBuilder::AV1BitstreamBuilder() = default;
AV1BitstreamBuilder::~AV1BitstreamBuilder() = default;
AV1BitstreamBuilder::AV1BitstreamBuilder(AV1BitstreamBuilder&&) = default;
AV1BitstreamBuilder AV1BitstreamBuilder::BuildSequenceHeaderOBU(
const SequenceHeader& seq_hdr) { … }
AV1BitstreamBuilder AV1BitstreamBuilder::BuildFrameHeaderOBU(
const SequenceHeader& seq_hdr,
const FrameHeader& pic_hdr) { … }
void AV1BitstreamBuilder::Write(uint64_t val, int num_bits) { … }
void AV1BitstreamBuilder::WriteBool(bool val) { … }
std::vector<uint8_t> AV1BitstreamBuilder::Flush() && { … }
void AV1BitstreamBuilder::PutAlignBits() { … }
void AV1BitstreamBuilder::PutTrailingBits() { … }
void AV1BitstreamBuilder::WriteOBUHeader(libgav1::ObuType type,
bool extension_flag,
bool has_size) { … }
void AV1BitstreamBuilder::WriteValueInLeb128(uint32_t value,
std::optional<int> fixed_size) { … }
void AV1BitstreamBuilder::AppendBitstreamBuffer(AV1BitstreamBuilder buffer) { … }
}