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 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 int32 bitstream_buffer_id; | 211 int32 bitstream_buffer_id; |
212 base::TimeDelta timestamp; | 212 base::TimeDelta timestamp; |
213 gfx::Rect visible_rect; | 213 gfx::Rect visible_rect; |
214 gfx::Size natural_size; | 214 gfx::Size natural_size; |
215 }; | 215 }; |
216 std::list<BufferData> input_buffer_data_; | 216 std::list<BufferData> input_buffer_data_; |
217 | 217 |
218 // picture_buffer_id and the frame wrapping the corresponding Picture, for | 218 // picture_buffer_id and the frame wrapping the corresponding Picture, for |
219 // frames that have been decoded but haven't been requested by a Read() yet. | 219 // frames that have been decoded but haven't been requested by a Read() yet. |
220 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; | 220 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; |
221 int64 next_picture_buffer_id_; | 221 int32 next_picture_buffer_id_; |
222 int64 next_bitstream_buffer_id_; | 222 int32 next_bitstream_buffer_id_; |
223 | 223 |
224 // Indicates decoding error occurred. | 224 // Indicates decoding error occurred. |
225 bool error_occured_; | 225 bool error_occured_; |
226 | 226 |
227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
228 }; | 228 }; |
229 | 229 |
230 } // namespace media | 230 } // namespace media |
231 | 231 |
232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
OLD | NEW |