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; | |
45 bool idr; // IDR picture? | 44 bool idr; // IDR picture? |
46 bool ref; // reference picture? | 45 bool ref; // reference picture? |
47 bool long_term; // long term reference picture? | 46 bool long_term; // long term reference picture? |
48 bool outputted; | 47 bool outputted; |
49 // Does memory management op 5 needs to be executed after this | 48 // Does memory management op 5 needs to be executed after this |
50 // picture has finished decoding? | 49 // picture has finished decoding? |
51 bool mem_mgmt_5; | 50 bool mem_mgmt_5; |
52 | 51 |
53 Field field; | 52 Field field; |
54 | 53 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 private: | 128 private: |
130 Pictures pics_; | 129 Pictures pics_; |
131 size_t max_num_pics_; | 130 size_t max_num_pics_; |
132 | 131 |
133 DISALLOW_COPY_AND_ASSIGN(H264DPB); | 132 DISALLOW_COPY_AND_ASSIGN(H264DPB); |
134 }; | 133 }; |
135 | 134 |
136 } // namespace content | 135 } // namespace content |
137 | 136 |
138 #endif // CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ | 137 #endif // CONTENT_COMMON_GPU_MEDIA_H264_DPB_H_ |
OLD | NEW |