| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual void Play(const base::Closure& callback) OVERRIDE; | 34 virtual void Play(const base::Closure& callback) OVERRIDE; |
| 35 virtual void Seek(base::TimeDelta time, | 35 virtual void Seek(base::TimeDelta time, |
| 36 const media::FilterStatusCB& cb) OVERRIDE; | 36 const media::FilterStatusCB& cb) OVERRIDE; |
| 37 virtual void Pause(const base::Closure& callback) OVERRIDE; | 37 virtual void Pause(const base::Closure& callback) OVERRIDE; |
| 38 virtual void Flush(const base::Closure& callback) OVERRIDE; | 38 virtual void Flush(const base::Closure& callback) OVERRIDE; |
| 39 virtual void Stop(const base::Closure& callback) OVERRIDE; | 39 virtual void Stop(const base::Closure& callback) OVERRIDE; |
| 40 | 40 |
| 41 // Decoder implementation. | 41 // Decoder implementation. |
| 42 virtual void Initialize( | 42 virtual void Initialize( |
| 43 media::DemuxerStream* demuxer_stream, | 43 media::DemuxerStream* demuxer_stream, |
| 44 const base::Closure& filter_callback, | 44 const media::PipelineStatusCB& filter_callback, |
| 45 const media::StatisticsCallback& stat_callback) OVERRIDE; | 45 const media::StatisticsCallback& stat_callback) OVERRIDE; |
| 46 virtual void Read(const ReadCB& callback) OVERRIDE; | 46 virtual void Read(const ReadCB& callback) OVERRIDE; |
| 47 virtual const gfx::Size& natural_size() OVERRIDE; | 47 virtual const gfx::Size& natural_size() OVERRIDE; |
| 48 | 48 |
| 49 // cricket::VideoRenderer implementation | 49 // cricket::VideoRenderer implementation |
| 50 virtual bool SetSize(int width, int height, int reserved) OVERRIDE; | 50 virtual bool SetSize(int width, int height, int reserved) OVERRIDE; |
| 51 virtual bool RenderFrame(const cricket::VideoFrame* frame) OVERRIDE; | 51 virtual bool RenderFrame(const cricket::VideoFrame* frame) OVERRIDE; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 friend class RTCVideoDecoderTest; | 54 friend class RTCVideoDecoderTest; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 DecoderState state_; | 71 DecoderState state_; |
| 72 ReadCB read_cb_; | 72 ReadCB read_cb_; |
| 73 | 73 |
| 74 // Used for accessing |read_cb_| from another thread. | 74 // Used for accessing |read_cb_| from another thread. |
| 75 base::Lock lock_; | 75 base::Lock lock_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); | 77 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| OLD | NEW |