OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h" | 10 #include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h" |
11 | 11 |
12 #include "webrtc/base/bitbuffer.h" | 12 #include "webrtc/rtc_base/bitbuffer.h" |
13 #include "webrtc/base/logging.h" | 13 #include "webrtc/rtc_base/logging.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 | 16 |
17 #define RETURN_FALSE_IF_ERROR(x) \ | 17 #define RETURN_FALSE_IF_ERROR(x) \ |
18 if (!(x)) { \ | 18 if (!(x)) { \ |
19 return false; \ | 19 return false; \ |
20 } | 20 } |
21 | 21 |
22 namespace vp9 { | 22 namespace vp9 { |
23 namespace { | 23 namespace { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Base QP. | 263 // Base QP. |
264 uint8_t base_q0; | 264 uint8_t base_q0; |
265 RETURN_FALSE_IF_ERROR(br.ReadUInt8(&base_q0)); | 265 RETURN_FALSE_IF_ERROR(br.ReadUInt8(&base_q0)); |
266 *qp = base_q0; | 266 *qp = base_q0; |
267 return true; | 267 return true; |
268 } | 268 } |
269 | 269 |
270 } // namespace vp9 | 270 } // namespace vp9 |
271 | 271 |
272 } // namespace webrtc | 272 } // namespace webrtc |
OLD | NEW |