OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // require lock protection. | 22 // require lock protection. |
23 | 23 |
24 #ifndef WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ | 24 #ifndef WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ |
25 #define WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ | 25 #define WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ |
26 | 26 |
27 #include <map> | 27 #include <map> |
28 #include <vector> | 28 #include <vector> |
29 | 29 |
30 #include "webrtc/base/sigslotrepeater.h" | 30 #include "webrtc/base/sigslotrepeater.h" |
31 #include "webrtc/base/thread_checker.h" | 31 #include "webrtc/base/thread_checker.h" |
| 32 #include "webrtc/media/base/capturerenderadapter.h" |
32 #include "webrtc/media/base/videocommon.h" | 33 #include "webrtc/media/base/videocommon.h" |
33 #include "webrtc/media/base/videocapturer.h" | |
34 #include "webrtc/media/base/videosinkinterface.h" | |
35 | 34 |
36 namespace cricket { | 35 namespace cricket { |
37 | 36 |
38 class VideoFrame; | 37 class VideoCapturer; |
| 38 class VideoRenderer; |
39 class VideoCapturerState; | 39 class VideoCapturerState; |
40 | 40 |
41 class CaptureManager : public sigslot::has_slots<> { | 41 class CaptureManager : public sigslot::has_slots<> { |
42 public: | 42 public: |
43 enum RestartOptions { | 43 enum RestartOptions { |
44 kRequestRestart, | 44 kRequestRestart, |
45 kForceRestart | 45 kForceRestart |
46 }; | 46 }; |
47 | 47 |
48 CaptureManager(); | 48 CaptureManager(); |
(...skipping 24 matching lines...) Expand all Loading... |
73 typedef std::map<VideoCapturer*, VideoCapturerState*> CaptureStates; | 73 typedef std::map<VideoCapturer*, VideoCapturerState*> CaptureStates; |
74 | 74 |
75 bool IsCapturerRegistered(VideoCapturer* video_capturer) const; | 75 bool IsCapturerRegistered(VideoCapturer* video_capturer) const; |
76 bool RegisterVideoCapturer(VideoCapturer* video_capturer); | 76 bool RegisterVideoCapturer(VideoCapturer* video_capturer); |
77 void UnregisterVideoCapturer(VideoCapturerState* capture_state); | 77 void UnregisterVideoCapturer(VideoCapturerState* capture_state); |
78 | 78 |
79 bool StartWithBestCaptureFormat(VideoCapturerState* capture_info, | 79 bool StartWithBestCaptureFormat(VideoCapturerState* capture_info, |
80 VideoCapturer* video_capturer); | 80 VideoCapturer* video_capturer); |
81 | 81 |
82 VideoCapturerState* GetCaptureState(VideoCapturer* video_capturer) const; | 82 VideoCapturerState* GetCaptureState(VideoCapturer* video_capturer) const; |
| 83 CaptureRenderAdapter* GetAdapter(VideoCapturer* video_capturer) const; |
83 | 84 |
84 rtc::ThreadChecker thread_checker_; | 85 rtc::ThreadChecker thread_checker_; |
85 CaptureStates capture_states_; | 86 CaptureStates capture_states_; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace cricket | 89 } // namespace cricket |
89 | 90 |
90 #endif // WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ | 91 #endif // WEBRTC_MEDIA_BASE_CAPTUREMANAGER_H_ |
OLD | NEW |