OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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/vp8_header_parser.h" | 10 #include "webrtc/modules/video_coding/utility/vp8_header_parser.h" |
11 | 11 |
12 #include "webrtc/rtc_base/logging.h" | 12 #include "webrtc/base/logging.h" |
13 | 13 |
14 namespace webrtc { | 14 namespace webrtc { |
15 | 15 |
16 namespace vp8 { | 16 namespace vp8 { |
17 namespace { | 17 namespace { |
18 const size_t kCommonPayloadHeaderLength = 3; | 18 const size_t kCommonPayloadHeaderLength = 3; |
19 const size_t kKeyPayloadHeaderLength = 10; | 19 const size_t kKeyPayloadHeaderLength = 10; |
20 } // namespace | 20 } // namespace |
21 | 21 |
22 static uint32_t BSwap32(uint32_t x) { | 22 static uint32_t BSwap32(uint32_t x) { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 LOG(LS_WARNING) << "Failed to get QP, end of file reached."; | 196 LOG(LS_WARNING) << "Failed to get QP, end of file reached."; |
197 return false; | 197 return false; |
198 } | 198 } |
199 *qp = base_q0; | 199 *qp = base_q0; |
200 return true; | 200 return true; |
201 } | 201 } |
202 | 202 |
203 } // namespace vp8 | 203 } // namespace vp8 |
204 | 204 |
205 } // namespace webrtc | 205 } // namespace webrtc |
OLD | NEW |