OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ | 5 #ifndef MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ |
6 #define MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ | 6 #define MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 struct Frame { | 95 struct Frame { |
96 explicit Frame(int32_t bitstream_id); | 96 explicit Frame(int32_t bitstream_id); |
97 ~Frame(); | 97 ~Frame(); |
98 | 98 |
99 // Associated bitstream buffer. | 99 // Associated bitstream buffer. |
100 int32_t bitstream_id; | 100 int32_t bitstream_id; |
101 | 101 |
102 // Slice header information. | 102 // Slice header information. |
103 bool has_slice = false; | 103 bool has_slice = false; |
104 bool is_idr = false; | 104 bool is_idr = false; |
| 105 bool has_mmco5 = false; |
105 int32_t pic_order_cnt = 0; | 106 int32_t pic_order_cnt = 0; |
106 int32_t reorder_window = 0; | 107 int32_t reorder_window = 0; |
107 | 108 |
108 // Clean aperture size, as computed by CoreMedia. | 109 // Clean aperture size, as computed by CoreMedia. |
109 gfx::Size image_size; | 110 gfx::Size image_size; |
110 | 111 |
111 // Decoded image, if decoding was successful. | 112 // Decoded image, if decoding was successful. |
112 base::ScopedCFTypeRef<CVImageBufferRef> image; | 113 base::ScopedCFTypeRef<CVImageBufferRef> image; |
113 }; | 114 }; |
114 | 115 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // Declared last to ensure that all weak pointers are invalidated before | 278 // Declared last to ensure that all weak pointers are invalidated before |
278 // other destructors run. | 279 // other destructors run. |
279 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; | 280 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; |
280 | 281 |
281 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); | 282 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); |
282 }; | 283 }; |
283 | 284 |
284 } // namespace media | 285 } // namespace media |
285 | 286 |
286 #endif // MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ | 287 #endif // MEDIA_GPU_VT_VIDEO_DECODE_ACCELERATOR_MAC_H_ |
OLD | NEW |