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 <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void Read(const ReadCB& callback) OVERRIDE; | 66 virtual void Read(const ReadCB& callback) OVERRIDE; |
67 virtual const gfx::Size& natural_size() OVERRIDE; | 67 virtual const gfx::Size& natural_size() OVERRIDE; |
68 virtual bool HasAlpha() const OVERRIDE; | 68 virtual bool HasAlpha() const OVERRIDE; |
69 | 69 |
70 // VideoDecodeAccelerator::Client implementation. | 70 // VideoDecodeAccelerator::Client implementation. |
71 virtual void NotifyInitializeDone() OVERRIDE; | 71 virtual void NotifyInitializeDone() OVERRIDE; |
72 virtual void ProvidePictureBuffers(uint32 count, | 72 virtual void ProvidePictureBuffers(uint32 count, |
73 const gfx::Size& size) OVERRIDE; | 73 const gfx::Size& size) OVERRIDE; |
74 virtual void DismissPictureBuffer(int32 id) OVERRIDE; | 74 virtual void DismissPictureBuffer(int32 id) OVERRIDE; |
75 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 75 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
76 virtual void NotifyEndOfStream() OVERRIDE; | |
77 virtual void NotifyEndOfBitstreamBuffer(int32 id) OVERRIDE; | 76 virtual void NotifyEndOfBitstreamBuffer(int32 id) OVERRIDE; |
78 virtual void NotifyFlushDone() OVERRIDE; | 77 virtual void NotifyFlushDone() OVERRIDE; |
79 virtual void NotifyResetDone() OVERRIDE; | 78 virtual void NotifyResetDone() OVERRIDE; |
80 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; | 79 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; |
81 | 80 |
82 private: | 81 private: |
83 enum State { | 82 enum State { |
84 kNormal, | 83 kNormal, |
85 // Avoid the use of "flush" in these enums because the term is overloaded: | 84 // Avoid the use of "flush" in these enums because the term is overloaded: |
86 // Filter::Flush() means drop pending data on the floor, but | 85 // Filter::Flush() means drop pending data on the floor, but |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; | 189 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; |
191 int64 next_picture_buffer_id_; | 190 int64 next_picture_buffer_id_; |
192 int64 next_bitstream_buffer_id_; | 191 int64 next_bitstream_buffer_id_; |
193 | 192 |
194 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 193 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
195 }; | 194 }; |
196 | 195 |
197 } // namespace media | 196 } // namespace media |
198 | 197 |
199 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 198 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
OLD | NEW |