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> | 5 #include <string.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 pic_order_cnt_lsb(0), | 21 pic_order_cnt_lsb(0), |
22 delta_pic_order_cnt_bottom(0), | 22 delta_pic_order_cnt_bottom(0), |
23 delta_pic_order_cnt0(0), | 23 delta_pic_order_cnt0(0), |
24 delta_pic_order_cnt1(0), | 24 delta_pic_order_cnt1(0), |
25 pic_num(0), | 25 pic_num(0), |
26 long_term_pic_num(0), | 26 long_term_pic_num(0), |
27 frame_num(0), | 27 frame_num(0), |
28 frame_num_offset(0), | 28 frame_num_offset(0), |
29 frame_num_wrap(0), | 29 frame_num_wrap(0), |
30 long_term_frame_idx(0), | 30 long_term_frame_idx(0), |
31 type(media::H264SliceHeader::kPSlice), | 31 type(H264SliceHeader::kPSlice), |
32 nal_ref_idc(0), | 32 nal_ref_idc(0), |
33 idr(false), | 33 idr(false), |
34 idr_pic_id(0), | 34 idr_pic_id(0), |
35 ref(false), | 35 ref(false), |
36 long_term(false), | 36 long_term(false), |
37 outputted(false), | 37 outputted(false), |
38 mem_mgmt_5(false), | 38 mem_mgmt_5(false), |
39 nonexisting(false), | 39 nonexisting(false), |
40 field(FIELD_NONE), | 40 field(FIELD_NONE), |
41 long_term_reference_flag(false), | 41 long_term_reference_flag(false), |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 | 166 |
167 void H264DPB::GetLongTermRefPicsAppending(H264Picture::Vector* out) { | 167 void H264DPB::GetLongTermRefPicsAppending(H264Picture::Vector* out) { |
168 for (const auto& pic : pics_) { | 168 for (const auto& pic : pics_) { |
169 if (pic->ref && pic->long_term) | 169 if (pic->ref && pic->long_term) |
170 out->push_back(pic); | 170 out->push_back(pic); |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 } // namespace media | 174 } // namespace media |
OLD | NEW |