| 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_ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 public VideoCaptureDevice, | 33 public VideoCaptureDevice, |
| 34 public SinkFilterObserver { | 34 public SinkFilterObserver { |
| 35 public: | 35 public: |
| 36 explicit VideoCaptureDeviceWin(const Name& device_name); | 36 explicit VideoCaptureDeviceWin(const Name& device_name); |
| 37 virtual ~VideoCaptureDeviceWin(); | 37 virtual ~VideoCaptureDeviceWin(); |
| 38 // Opens the device driver for this device. | 38 // Opens the device driver for this device. |
| 39 // This function is used by the static VideoCaptureDevice::Create function. | 39 // This function is used by the static VideoCaptureDevice::Create function. |
| 40 bool Init(); | 40 bool Init(); |
| 41 | 41 |
| 42 // VideoCaptureDevice implementation. | 42 // VideoCaptureDevice implementation. |
| 43 virtual VideoEncodingCapability GetEncodingCapability() OVERRIDE; |
| 44 virtual void TryConfigureEncodedBitstream( |
| 45 const RuntimeVideoEncodingParameters& params) OVERRIDE; |
| 43 virtual void Allocate(int width, | 46 virtual void Allocate(int width, |
| 44 int height, | 47 int height, |
| 45 int frame_rate, | 48 int frame_rate, |
| 46 VideoCaptureDevice::EventHandler* observer) OVERRIDE; | 49 VideoCaptureDevice::EventHandler* observer) OVERRIDE; |
| 47 virtual void Start() OVERRIDE; | 50 virtual void Start() OVERRIDE; |
| 48 virtual void Stop() OVERRIDE; | 51 virtual void Stop() OVERRIDE; |
| 49 virtual void DeAllocate() OVERRIDE; | 52 virtual void DeAllocate() OVERRIDE; |
| 50 virtual const Name& device_name() OVERRIDE; | 53 virtual const Name& device_name() OVERRIDE; |
| 51 | 54 |
| 52 static void GetDeviceNames(Names* device_names); | 55 static void GetDeviceNames(Names* device_names); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 87 |
| 85 // Map of all capabilities this device support. | 88 // Map of all capabilities this device support. |
| 86 CapabilityList capabilities_; | 89 CapabilityList capabilities_; |
| 87 | 90 |
| 88 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); | 91 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace media | 94 } // namespace media |
| 92 | 95 |
| 93 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ | 96 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ |
| OLD | NEW |