1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24

media / cast / encoding / vpx_quantizer_parser.h [blame]

// 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.

#ifndef MEDIA_CAST_ENCODING_VPX_QUANTIZER_PARSER_H_
#define MEDIA_CAST_ENCODING_VPX_QUANTIZER_PARSER_H_

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

#include "base/containers/span.h"
#include "media/cast/cast_config.h"

namespace media {
namespace cast {

// Partially parse / skip data in the header and the first partition,
// and return the base quantizer in the range [0,63], or -1 on parse error.
int ParseVpxHeaderQuantizer(base::span<const uint8_t> data);

}  // namespace cast
}  // namespace media

#endif  // MEDIA_CAST_ENCODING_VPX_QUANTIZER_PARSER_H_