| 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 CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 struct Frame { | 90 struct Frame { |
| 91 explicit Frame(int32_t bitstream_id); | 91 explicit Frame(int32_t bitstream_id); |
| 92 ~Frame(); | 92 ~Frame(); |
| 93 | 93 |
| 94 // ID of the bitstream buffer this Frame will be decoded from. | 94 // ID of the bitstream buffer this Frame will be decoded from. |
| 95 int32_t bitstream_id; | 95 int32_t bitstream_id; |
| 96 | 96 |
| 97 // Relative presentation order of this frame (see AVC spec). | 97 // Relative presentation order of this frame (see AVC spec). |
| 98 int32_t pic_order_cnt; | 98 int32_t pic_order_cnt; |
| 99 | 99 |
| 100 // Nnumber of frames after this one in decode order that can appear before | 100 // Whether this frame is an IDR. |
| 101 bool is_idr; |
| 102 |
| 103 // Number of frames after this one in decode order that can appear before |
| 101 // before it in presentation order. | 104 // before it in presentation order. |
| 102 int32_t reorder_window; | 105 int32_t reorder_window; |
| 103 | 106 |
| 104 // Size of the decoded frame. | 107 // Size of the decoded frame. |
| 105 // TODO(sandersd): visible_rect. | 108 // TODO(sandersd): visible_rect. |
| 106 gfx::Size coded_size; | 109 gfx::Size coded_size; |
| 107 | 110 |
| 108 // VideoToolbox decoded image, if decoding was successful. | 111 // VideoToolbox decoded image, if decoding was successful. |
| 109 base::ScopedCFTypeRef<CVImageBufferRef> image; | 112 base::ScopedCFTypeRef<CVImageBufferRef> image; |
| 110 }; | 113 }; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // Declared last to ensure that all weak pointers are invalidated before | 261 // Declared last to ensure that all weak pointers are invalidated before |
| 259 // other destructors run. | 262 // other destructors run. |
| 260 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; | 263 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; |
| 261 | 264 |
| 262 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); | 265 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); |
| 263 }; | 266 }; |
| 264 | 267 |
| 265 } // namespace content | 268 } // namespace content |
| 266 | 269 |
| 267 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 270 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |