Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: webrtc/modules/video_coding/utility/vp9_uncomp_header_parser.h

Issue 2891803003: Add vp9 QP parser. (Closed)
Patch Set: Fix compile warnings. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_VP9_UNCOMP_HEADER_PARSER_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_UTILITY_VP9_UNCOMP_HEADER_PARSER_H_
13
14 #include <stdint.h>
15 #include <stdio.h>
brandtr 2017/05/19 14:10:27 Do you need this?
jianj1 2017/05/19 21:20:56 size_t will need it. I changed it to <stddef.h>
16
17 namespace webrtc {
18
19 namespace vp9 {
20
21 typedef struct VP9BitReader VP9BitReader;
brandtr 2017/05/19 14:10:27 Don't think you would need this in C++.
jianj1 2017/05/19 21:20:56 Done.
22 struct VP9BitReader {
23 const uint8_t *buf_;
brandtr 2017/05/19 14:10:27 Although the style guide allows it, we typically p
jianj1 2017/05/19 21:20:57 Done.
24 const uint8_t *buf_end_;
25 size_t offset_;
26 };
27
28 // Gets the QP, QP range: [0, 255].
29 // Returns true on success, false otherwise.
30 bool GetQp(const uint8_t *buf, size_t length, int *qp);
brandtr 2017/05/19 14:10:27 const uint8_t*
jianj1 2017/05/19 21:20:56 Done.
31
32 } // namespace vp9
33
34 } // namespace webrtc
35
36 #endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_VP9_UNCOMP_HEADER_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698