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 // This file contains an implementation of an H.264 Decoded Picture Buffer | 5 // This file contains an implementation of an H.264 Decoded Picture Buffer |
6 // used in H264 decoders. | 6 // used in H264 decoders. |
7 | 7 |
8 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 int pic_order_cnt_msb; | 34 int pic_order_cnt_msb; |
35 int pic_order_cnt_lsb; | 35 int pic_order_cnt_lsb; |
36 | 36 |
37 int pic_num; | 37 int pic_num; |
38 int long_term_pic_num; | 38 int long_term_pic_num; |
39 int frame_num; // from slice header | 39 int frame_num; // from slice header |
40 int frame_num_offset; | 40 int frame_num_offset; |
41 int frame_num_wrap; | 41 int frame_num_wrap; |
42 int long_term_frame_idx; | 42 int long_term_frame_idx; |
43 | 43 |
| 44 media::H264SliceHeader::Type type; |
44 bool idr; // IDR picture? | 45 bool idr; // IDR picture? |
45 bool ref; // reference picture? | 46 bool ref; // reference picture? |
46 bool long_term; // long term reference picture? | 47 bool long_term; // long term reference picture? |
47 bool outputted; | 48 bool outputted; |
48 // Does memory management op 5 needs to be executed after this | 49 // Does memory management op 5 needs to be executed after this |
49 // picture has finished decoding? | 50 // picture has finished decoding? |
50 bool mem_mgmt_5; | 51 bool mem_mgmt_5; |
51 | 52 |
52 Field field; | 53 Field field; |
53 | 54 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 private: | 129 private: |
129 Pictures pics_; | 130 Pictures pics_; |
130 size_t max_num_pics_; | 131 size_t max_num_pics_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(H264DPB); | 133 DISALLOW_COPY_AND_ASSIGN(H264DPB); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace content | 136 } // namespace content |
136 | 137 |
137 #endif // CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ | 138 #endif // CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ |
OLD | NEW |