Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: webrtc/modules/video_capture/windows/video_capture_mf.h

Issue 2534553002: Replace VideoCaptureDataCallback by VideoSinkInterface. (Closed)
Patch Set: Break overlong lines. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_ 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_
13 13
14 #include "webrtc/modules/video_capture/video_capture_impl.h" 14 #include "webrtc/modules/video_capture/video_capture_impl.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 namespace videocapturemodule { 17 namespace videocapturemodule {
18 18
19 // VideoCapture implementation that uses the Media Foundation API on Windows. 19 // VideoCapture implementation that uses the Media Foundation API on Windows.
20 // This will replace the DirectShow based implementation on Vista and higher. 20 // This will replace the DirectShow based implementation on Vista and higher.
21 // TODO(tommi): Finish implementing and switch out the DS in the factory method 21 // TODO(tommi): Finish implementing and switch out the DS in the factory method
22 // for supported platforms. 22 // for supported platforms.
23 class VideoCaptureMF : public VideoCaptureImpl { 23 class VideoCaptureMF : public VideoCaptureImpl {
24 public: 24 public:
25 explicit VideoCaptureMF(const int32_t id); 25 VideoCaptureMF();
26 26
27 int32_t Init(const int32_t id, const char* device_id); 27 int32_t Init(const char* device_id);
28 28
29 // Overrides from VideoCaptureImpl. 29 // Overrides from VideoCaptureImpl.
30 virtual int32_t StartCapture(const VideoCaptureCapability& capability); 30 virtual int32_t StartCapture(const VideoCaptureCapability& capability);
31 virtual int32_t StopCapture(); 31 virtual int32_t StopCapture();
32 virtual bool CaptureStarted(); 32 virtual bool CaptureStarted();
33 virtual int32_t CaptureSettings( 33 virtual int32_t CaptureSettings(
34 VideoCaptureCapability& settings); // NOLINT 34 VideoCaptureCapability& settings); // NOLINT
35 35
36 protected: 36 protected:
37 virtual ~VideoCaptureMF(); 37 virtual ~VideoCaptureMF();
38 }; 38 };
39 39
40 } // namespace videocapturemodule 40 } // namespace videocapturemodule
41 } // namespace webrtc 41 } // namespace webrtc
42 42
43 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_ 43 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698