| 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 // Windows specific implementation of VideoCaptureDevice. | 5 // Windows specific implementation of VideoCaptureDevice. |
| 6 // DirectShow is used for capturing. DirectShow provide its own threads | 6 // DirectShow is used for capturing. DirectShow provide its own threads |
| 7 // for capturing. | 7 // for capturing. |
| 8 | 8 |
| 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ | 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ |
| 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ | 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ |
| 11 | 11 |
| 12 #include <mfidl.h> | 12 #include <mfidl.h> |
| 13 #include <mfreadwrite.h> | 13 #include <mfreadwrite.h> |
| 14 #include <stdint.h> |
| 14 | 15 |
| 15 #include <vector> | 16 #include <vector> |
| 16 | 17 |
| 17 #include "base/macros.h" | 18 #include "base/macros.h" |
| 18 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 19 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
| 20 #include "base/win/scoped_comptr.h" | 21 #include "base/win/scoped_comptr.h" |
| 21 #include "media/base/media_export.h" | 22 #include "media/base/media_export.h" |
| 22 #include "media/capture/video/video_capture_device.h" | 23 #include "media/capture/video/video_capture_device.h" |
| 23 | 24 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 base::win::ScopedComPtr<IMFSourceReader> reader_; | 69 base::win::ScopedComPtr<IMFSourceReader> reader_; |
| 69 VideoCaptureFormat capture_format_; | 70 VideoCaptureFormat capture_format_; |
| 70 bool capture_; | 71 bool capture_; |
| 71 | 72 |
| 72 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin); | 73 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace media | 76 } // namespace media |
| 76 | 77 |
| 77 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ | 78 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ |
| OLD | NEW |