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_WIN_H_ | 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ |
10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ | 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ |
11 #pragma once | |
12 | 11 |
13 // Avoid including strsafe.h via dshow as it will cause build warnings. | 12 // Avoid including strsafe.h via dshow as it will cause build warnings. |
14 #define NO_DSHOW_STRSAFE | 13 #define NO_DSHOW_STRSAFE |
15 #include <dshow.h> | 14 #include <dshow.h> |
16 | 15 |
17 #include <map> | 16 #include <map> |
18 #include <string> | 17 #include <string> |
19 | 18 |
20 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
21 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 83 |
85 // Map of all capabilities this device support. | 84 // Map of all capabilities this device support. |
86 CapabilityMap capabilities_; | 85 CapabilityMap capabilities_; |
87 | 86 |
88 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); | 87 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); |
89 }; | 88 }; |
90 | 89 |
91 } // namespace media | 90 } // namespace media |
92 | 91 |
93 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ | 92 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ |
OLD | NEW |