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" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 // Color space and pixel type. | 185 // Color space and pixel type. |
186 VP8Get(&br); | 186 VP8Get(&br); |
187 VP8Get(&br); | 187 VP8Get(&br); |
188 } | 188 } |
189 ParseSegmentHeader(&br); | 189 ParseSegmentHeader(&br); |
190 ParseFilterHeader(&br); | 190 ParseFilterHeader(&br); |
191 // Number of coefficient data partitions. | 191 // Number of coefficient data partitions. |
192 VP8GetValue(&br, 2); | 192 VP8GetValue(&br, 2); |
193 // Base QP. | 193 // Base QP. |
194 const int base_q0 = VP8GetValue(&br, 7); | 194 const int base_q0 = VP8GetValue(&br, 7); |
195 printf("vp8 parser qp %d\n", base_q0); | |
brandtr
2017/05/19 14:10:27
Remove.
jianj1
2017/05/19 21:20:56
Done.
| |
195 if (br.eof_ == 1) { | 196 if (br.eof_ == 1) { |
196 LOG(LS_WARNING) << "Failed to get QP, end of file reached."; | 197 LOG(LS_WARNING) << "Failed to get QP, end of file reached."; |
197 return false; | 198 return false; |
198 } | 199 } |
199 *qp = base_q0; | 200 *qp = base_q0; |
200 return true; | 201 return true; |
201 } | 202 } |
202 | 203 |
203 } // namespace vp8 | 204 } // namespace vp8 |
204 | 205 |
205 } // namespace webrtc | 206 } // namespace webrtc |
OLD | NEW |