#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/parsers/vp9_uncompressed_header_parser.h"
#include <type_traits>
#include "base/logging.h"
namespace media {
namespace {
Vp9FrameContext kVp9DefaultFrameContext = …;
int GetMinLog2TileCols(int sb64_cols) { … }
int GetMaxLog2TileCols(int sb64_cols) { … }
}
Vp9UncompressedHeaderParser::Vp9UncompressedHeaderParser(
Vp9Parser::Context* context)
: … { … }
const Vp9FrameContext&
Vp9UncompressedHeaderParser::GetVp9DefaultFrameContextForTesting() const { … }
uint8_t Vp9UncompressedHeaderParser::ReadProfile() { … }
bool Vp9UncompressedHeaderParser::VerifySyncCode() { … }
bool Vp9UncompressedHeaderParser::ReadColorConfig(Vp9FrameHeader* fhdr) { … }
void Vp9UncompressedHeaderParser::ReadFrameSize(Vp9FrameHeader* fhdr) { … }
void Vp9UncompressedHeaderParser::ReadRenderSize(Vp9FrameHeader* fhdr) { … }
bool Vp9UncompressedHeaderParser::ReadFrameSizeFromRefs(Vp9FrameHeader* fhdr) { … }
Vp9InterpolationFilter Vp9UncompressedHeaderParser::ReadInterpolationFilter() { … }
void Vp9UncompressedHeaderParser::SetupPastIndependence(Vp9FrameHeader* fhdr) { … }
void Vp9UncompressedHeaderParser::ReadLoopFilterParams() { … }
void Vp9UncompressedHeaderParser::ReadQuantizationParams(
Vp9QuantizationParams* quants) { … }
int8_t Vp9UncompressedHeaderParser::ReadDeltaQ() { … }
bool Vp9UncompressedHeaderParser::ReadSegmentationParams() { … }
uint8_t Vp9UncompressedHeaderParser::ReadProb() { … }
bool Vp9UncompressedHeaderParser::ReadTileInfo(Vp9FrameHeader* fhdr) { … }
void Vp9UncompressedHeaderParser::ResetLoopfilter() { … }
bool Vp9UncompressedHeaderParser::Parse(const uint8_t* stream,
off_t frame_size,
Vp9FrameHeader* fhdr) { … }
}