| 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 // If no demuxer read is in flight and no bitstream buffers are in the | 82 // If no demuxer read is in flight and no bitstream buffers are in the |
| 84 // decoder, kick some off demuxing/decoding. | 83 // decoder, kick some off demuxing/decoding. |
| 85 void EnsureDemuxOrDecode(); | 84 void EnsureDemuxOrDecode(); |
| 86 | 85 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; | 176 std::list<scoped_refptr<VideoFrame> > ready_video_frames_; |
| 178 int64 next_picture_buffer_id_; | 177 int64 next_picture_buffer_id_; |
| 179 int64 next_bitstream_buffer_id_; | 178 int64 next_bitstream_buffer_id_; |
| 180 | 179 |
| 181 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 180 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 182 }; | 181 }; |
| 183 | 182 |
| 184 } // namespace media | 183 } // namespace media |
| 185 | 184 |
| 186 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 185 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |