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

Side by Side Diff: webrtc/modules/video_coding/utility/vp8_header_parser.cc

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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698