chromium/media/parsers/vp8_parser.h

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file contains an implementation of a VP8 raw stream parser,
// as defined in RFC 6386.

#ifndef MEDIA_PARSERS_VP8_PARSER_H_
#define MEDIA_PARSERS_VP8_PARSER_H_

#include <stddef.h>
#include <stdint.h>

#include "base/memory/raw_ptr.h"
#include "media/base/media_export.h"
#include "media/parsers/vp8_bool_decoder.h"

namespace media {

// See spec for definitions of values/fields.
const size_t kMaxMBSegments =;
const size_t kNumMBFeatureTreeProbs =;

// Member of Vp8FrameHeader and will be 0-initialized
// in Vp8FrameHeader's constructor.
struct Vp8SegmentationHeader {};

const size_t kNumBlockContexts =;

// Member of Vp8FrameHeader and will be 0-initialized
// in Vp8FrameHeader's constructor.
struct Vp8LoopFilterHeader {};

// Member of Vp8FrameHeader and will be 0-initialized
// in Vp8FrameHeader's constructor.
struct Vp8QuantizationHeader {};

const size_t kNumBlockTypes =;
const size_t kNumCoeffBands =;
const size_t kNumPrevCoeffContexts =;
const size_t kNumEntropyNodes =;

const size_t kNumMVContexts =;
const size_t kNumMVProbs =;

const size_t kNumYModeProbs =;
const size_t kNumUVModeProbs =;

// Member of Vp8FrameHeader and will be 0-initialized
// in Vp8FrameHeader's constructor.
struct Vp8EntropyHeader {};

const size_t kMaxDCTPartitions =;
const size_t kNumVp8ReferenceBuffers =;

enum Vp8RefType : size_t {};

struct MEDIA_EXPORT Vp8FrameHeader {};

// A parser for raw VP8 streams as specified in RFC 6386.
class MEDIA_EXPORT Vp8Parser {};

}  // namespace media

#endif  // MEDIA_PARSERS_VP8_PARSER_H_