OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 default: | 1262 default: |
1263 DVLOG(4) << "Skipping NALU type: " << curr_nalu_->nal_unit_type; | 1263 DVLOG(4) << "Skipping NALU type: " << curr_nalu_->nal_unit_type; |
1264 break; | 1264 break; |
1265 } | 1265 } |
1266 | 1266 |
1267 DVLOG(4) << "Dropping nalu"; | 1267 DVLOG(4) << "Dropping nalu"; |
1268 curr_nalu_.reset(); | 1268 curr_nalu_.reset(); |
1269 } | 1269 } |
1270 } | 1270 } |
1271 | 1271 |
| 1272 gfx::Size H264Decoder::GetPicSize() const { |
| 1273 return pic_size_; |
| 1274 } |
| 1275 |
1272 size_t H264Decoder::GetRequiredNumOfPictures() const { | 1276 size_t H264Decoder::GetRequiredNumOfPictures() const { |
1273 return dpb_.max_num_pics() + kPicsInPipeline; | 1277 return dpb_.max_num_pics() + kPicsInPipeline; |
1274 } | 1278 } |
1275 | 1279 |
1276 } // namespace content | 1280 } // namespace content |
OLD | NEW |