OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/common/gpu/media/vp9_decoder.h" |
| 6 |
| 7 #include <memory> |
| 8 |
5 #include "base/logging.h" | 9 #include "base/logging.h" |
6 #include "content/common/gpu/media/vp9_decoder.h" | |
7 #include "media/base/limits.h" | 10 #include "media/base/limits.h" |
8 | 11 |
9 namespace content { | 12 namespace content { |
10 | 13 |
11 VP9Decoder::VP9Accelerator::VP9Accelerator() {} | 14 VP9Decoder::VP9Accelerator::VP9Accelerator() {} |
12 | 15 |
13 VP9Decoder::VP9Accelerator::~VP9Accelerator() {} | 16 VP9Decoder::VP9Accelerator::~VP9Accelerator() {} |
14 | 17 |
15 VP9Decoder::VP9Decoder(VP9Accelerator* accelerator) | 18 VP9Decoder::VP9Decoder(VP9Accelerator* accelerator) |
16 : state_(kNeedStreamMetadata), accelerator_(accelerator) { | 19 : state_(kNeedStreamMetadata), accelerator_(accelerator) { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 return pic_size_; | 173 return pic_size_; |
171 } | 174 } |
172 | 175 |
173 size_t VP9Decoder::GetRequiredNumOfPictures() const { | 176 size_t VP9Decoder::GetRequiredNumOfPictures() const { |
174 // kMaxVideoFrames to keep higher level media pipeline populated, +2 for the | 177 // kMaxVideoFrames to keep higher level media pipeline populated, +2 for the |
175 // pictures being parsed and decoded currently. | 178 // pictures being parsed and decoded currently. |
176 return media::limits::kMaxVideoFrames + media::kVp9NumRefFrames + 2; | 179 return media::limits::kMaxVideoFrames + media::kVp9NumRefFrames + 2; |
177 } | 180 } |
178 | 181 |
179 } // namespace content | 182 } // namespace content |
OLD | NEW |