| 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 <string.h> |
| 6 |
| 5 #include <algorithm> | 7 #include <algorithm> |
| 6 | 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 9 #include "content/common/gpu/media/h264_dpb.h" | 11 #include "content/common/gpu/media/h264_dpb.h" |
| 10 | 12 |
| 11 namespace content { | 13 namespace content { |
| 12 | 14 |
| 13 H264Picture::H264Picture() | 15 H264Picture::H264Picture() |
| 14 : pic_order_cnt_type(0), | 16 : pic_order_cnt_type(0), |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 166 } |
| 165 | 167 |
| 166 void H264DPB::GetLongTermRefPicsAppending(H264Picture::Vector* out) { | 168 void H264DPB::GetLongTermRefPicsAppending(H264Picture::Vector* out) { |
| 167 for (const auto& pic : pics_) { | 169 for (const auto& pic : pics_) { |
| 168 if (pic->ref && pic->long_term) | 170 if (pic->ref && pic->long_term) |
| 169 out->push_back(pic); | 171 out->push_back(pic); |
| 170 } | 172 } |
| 171 } | 173 } |
| 172 | 174 |
| 173 } // namespace content | 175 } // namespace content |
| OLD | NEW |