summaryrefslogtreecommitdiff
path: root/chromium/media/cast/encoding/vpx_quantizer_parser.h
blob: 0add62d0509012a5de250099df6ea9971f30b67e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 "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(const uint8_t* data, size_t size);

}  // namespace cast
}  // namespace media

#endif  // MEDIA_CAST_ENCODING_VPX_QUANTIZER_PARSER_H_