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