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

Unified Diff: media/capture/video/win/video_capture_device_mf_win.h

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/win/video_capture_device_mf_win.h
diff --git a/media/capture/video/win/video_capture_device_mf_win.h b/media/capture/video/win/video_capture_device_mf_win.h
deleted file mode 100644
index 971b5378cf7bf0dcd70c7cc419e73e5c1024273a..0000000000000000000000000000000000000000
--- a/media/capture/video/win/video_capture_device_mf_win.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Windows specific implementation of VideoCaptureDevice.
-// DirectShow is used for capturing. DirectShow provide its own threads
-// for capturing.
-
-#ifndef MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
-#define MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
-
-#include <mfidl.h>
-#include <mfreadwrite.h>
-#include <stdint.h>
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/synchronization/lock.h"
-#include "base/threading/non_thread_safe.h"
-#include "base/win/scoped_comptr.h"
-#include "media/capture/capture_export.h"
-#include "media/capture/video/video_capture_device.h"
-
-interface IMFSourceReader;
-
-namespace tracked_objects {
-class Location;
-} // namespace tracked_objects
-
-namespace media {
-
-class MFReaderCallback;
-
-const DWORD kFirstVideoStream =
- static_cast<DWORD>(MF_SOURCE_READER_FIRST_VIDEO_STREAM);
-
-class CAPTURE_EXPORT VideoCaptureDeviceMFWin : public base::NonThreadSafe,
- public VideoCaptureDevice {
- public:
- static bool FormatFromGuid(const GUID& guid, VideoPixelFormat* format);
-
- explicit VideoCaptureDeviceMFWin(const Name& device_name);
- ~VideoCaptureDeviceMFWin() override;
-
- // Opens the device driver for this device.
- bool Init(const base::win::ScopedComPtr<IMFMediaSource>& source);
-
- // VideoCaptureDevice implementation.
- void AllocateAndStart(
- const VideoCaptureParams& params,
- std::unique_ptr<VideoCaptureDevice::Client> client) override;
- void StopAndDeAllocate() override;
-
- // Captured new video data.
- void OnIncomingCapturedData(const uint8_t* data,
- int length,
- int rotation,
- base::TimeTicks reference_time,
- base::TimeDelta timestamp);
-
- private:
- void OnError(const tracked_objects::Location& from_here, HRESULT hr);
-
- Name name_;
- base::win::ScopedComPtr<IMFActivate> device_;
- scoped_refptr<MFReaderCallback> callback_;
-
- base::Lock lock_; // Used to guard the below variables.
- std::unique_ptr<VideoCaptureDevice::Client> client_;
- base::win::ScopedComPtr<IMFSourceReader> reader_;
- VideoCaptureFormat capture_format_;
- bool capture_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin);
-};
-
-} // namespace media
-
-#endif // MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
« no previous file with comments | « media/capture/video/win/video_capture_device_factory_win.cc ('k') | media/capture/video/win/video_capture_device_mf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698