#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/parsers/vp9_compressed_header_parser.h"
#include "base/logging.h"
namespace media {
namespace {
Vp9Prob InvRemapProb(uint8_t delta_prob, uint8_t prob) { … }
}
Vp9CompressedHeaderParser::Vp9CompressedHeaderParser() = default;
bool Vp9CompressedHeaderParser::ParseNoContext(const uint8_t* stream,
off_t frame_size,
Vp9FrameHeader* fhdr) { … }
void Vp9CompressedHeaderParser::ReadTxMode(Vp9FrameHeader* fhdr) { … }
uint8_t Vp9CompressedHeaderParser::DecodeTermSubexp() { … }
void Vp9CompressedHeaderParser::DiffUpdateProb(Vp9Prob* prob) { … }
template <int N>
void Vp9CompressedHeaderParser::DiffUpdateProbArray(Vp9Prob (&prob_array)[N]) { … }
void Vp9CompressedHeaderParser::ReadTxModeProbs(
Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadCoefProbs(Vp9FrameHeader* fhdr) { … }
void Vp9CompressedHeaderParser::ReadSkipProb(Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadInterModeProbs(
Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadInterpFilterProbs(
Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadIsInterProbs(
Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadFrameReferenceMode(Vp9FrameHeader* fhdr) { … }
void Vp9CompressedHeaderParser::ReadFrameReferenceModeProbs(
Vp9FrameHeader* fhdr) { … }
void Vp9CompressedHeaderParser::ReadYModeProbs(Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadPartitionProbs(
Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::ReadMvProbs(bool allow_high_precision_mv,
Vp9FrameContext* frame_context) { … }
void Vp9CompressedHeaderParser::UpdateMvProb(Vp9Prob* prob) { … }
template <int N>
void Vp9CompressedHeaderParser::UpdateMvProbArray(Vp9Prob (&prob_array)[N]) { … }
bool Vp9CompressedHeaderParser::ParseInternal(const uint8_t* stream,
off_t frame_size,
Vp9FrameHeader* fhdr) { … }
}