| 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // cricket::VideoCapturer implementation. | 29 // cricket::VideoCapturer implementation. |
| 30 // These methods are accessed from a libJingle thread. | 30 // These methods are accessed from a libJingle thread. |
| 31 virtual cricket::CaptureState Start( | 31 virtual cricket::CaptureState Start( |
| 32 const cricket::VideoFormat& capture_format) OVERRIDE; | 32 const cricket::VideoFormat& capture_format) OVERRIDE; |
| 33 virtual void Stop() OVERRIDE; | 33 virtual void Stop() OVERRIDE; |
| 34 virtual bool IsRunning() OVERRIDE; | 34 virtual bool IsRunning() OVERRIDE; |
| 35 virtual bool GetPreferredFourccs(std::vector<uint32>* fourccs) OVERRIDE; | 35 virtual bool GetPreferredFourccs(std::vector<uint32>* fourccs) OVERRIDE; |
| 36 virtual bool GetBestCaptureFormat(const cricket::VideoFormat& desired, | 36 virtual bool GetBestCaptureFormat(const cricket::VideoFormat& desired, |
| 37 cricket::VideoFormat* best_format) OVERRIDE; | 37 cricket::VideoFormat* best_format) OVERRIDE; |
| 38 virtual bool IsScreencast() OVERRIDE; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 // Frame captured callback method. | 41 // Frame captured callback method. |
| 41 virtual void OnFrameCaptured( | 42 virtual void OnFrameCaptured( |
| 42 const media::VideoCapture::VideoFrameBuffer& frame); | 43 const media::VideoCapture::VideoFrameBuffer& frame); |
| 43 | 44 |
| 44 scoped_refptr<RtcVideoCaptureDelegate> delegate_; | 45 scoped_refptr<RtcVideoCaptureDelegate> delegate_; |
| 45 video_capture::State state_; | 46 video_capture::State state_; |
| 46 base::Time start_time_; | 47 base::Time start_time_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(RtcVideoCapturer); | 49 DISALLOW_COPY_AND_ASSIGN(RtcVideoCapturer); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ | 52 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ |
| OLD | NEW |