| 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 | 11 |
| 12 // 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. |
| 13 #define NO_DSHOW_STRSAFE | 13 #define NO_DSHOW_STRSAFE |
| 14 #include <dshow.h> | 14 #include <dshow.h> |
| 15 | 15 |
| 16 #include <map> | 16 #include <map> |
| 17 #include <string> | 17 #include <string> |
| 18 | 18 |
| 19 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
| 21 #include "base/win/scoped_comptr.h" | 21 #include "base/win/scoped_comptr.h" |
| 22 #include "media/base/video_capture_types.h" |
| 22 #include "media/video/capture/video_capture_device.h" | 23 #include "media/video/capture/video_capture_device.h" |
| 23 #include "media/video/capture/video_capture_types.h" | |
| 24 #include "media/video/capture/win/capability_list_win.h" | 24 #include "media/video/capture/win/capability_list_win.h" |
| 25 #include "media/video/capture/win/sink_filter_win.h" | 25 #include "media/video/capture/win/sink_filter_win.h" |
| 26 #include "media/video/capture/win/sink_input_pin_win.h" | 26 #include "media/video/capture/win/sink_input_pin_win.h" |
| 27 | 27 |
| 28 namespace media { | 28 namespace media { |
| 29 | 29 |
| 30 // All the methods in the class can only be run on a COM initialized thread. | 30 // All the methods in the class can only be run on a COM initialized thread. |
| 31 class VideoCaptureDeviceWin | 31 class VideoCaptureDeviceWin |
| 32 : public base::NonThreadSafe, | 32 : public base::NonThreadSafe, |
| 33 public VideoCaptureDevice, | 33 public VideoCaptureDevice, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Map of all capabilities this device support. | 112 // Map of all capabilities this device support. |
| 113 CapabilityList capabilities_; | 113 CapabilityList capabilities_; |
| 114 VideoCaptureFormat capture_format_; | 114 VideoCaptureFormat capture_format_; |
| 115 | 115 |
| 116 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); | 116 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace media | 119 } // namespace media |
| 120 | 120 |
| 121 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ | 121 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ |
| OLD | NEW |