blob: 5b58f891e674b6c3b6de0eef72364e7a9e4ba63f [file] [log] [blame]
tommi@webrtc.org81878772012-11-20 13:35:33 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_
12#define WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_
13
pbos@webrtc.orga9b74ad2013-07-12 10:03:52 +000014#include "webrtc/modules/video_capture/video_capture_impl.h"
tommi@webrtc.org81878772012-11-20 13:35:33 +000015
16namespace webrtc {
17namespace videocapturemodule {
18
19// VideoCapture implementation that uses the Media Foundation API on Windows.
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
22// for supported platforms.
23class VideoCaptureMF : public VideoCaptureImpl {
24 public:
nisseb29b9c82016-12-12 00:22:56 -080025 VideoCaptureMF();
tommi@webrtc.org81878772012-11-20 13:35:33 +000026
nisseb29b9c82016-12-12 00:22:56 -080027 int32_t Init(const char* device_id);
tommi@webrtc.org81878772012-11-20 13:35:33 +000028
29 // Overrides from VideoCaptureImpl.
pbos@webrtc.orgdfc5bb92013-04-10 08:23:13 +000030 virtual int32_t StartCapture(const VideoCaptureCapability& capability);
31 virtual int32_t StopCapture();
tommi@webrtc.org81878772012-11-20 13:35:33 +000032 virtual bool CaptureStarted();
pbos@webrtc.orgdfc5bb92013-04-10 08:23:13 +000033 virtual int32_t CaptureSettings(
tommi@webrtc.org81878772012-11-20 13:35:33 +000034 VideoCaptureCapability& settings); // NOLINT
35
36 protected:
37 virtual ~VideoCaptureMF();
38};
39
40} // namespace videocapturemodule
41} // namespace webrtc
42
43#endif // WEBRTC_MODULES_VIDEO_CAPTURE_WINDOWS_VIDEO_CAPTURE_MF_H_