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 // VideoCaptureDevice is the abstract base class for realizing video capture | 5 // VideoCaptureDevice is the abstract base class for realizing video capture |
6 // device support in Chromium. It provides the interface for OS dependent | 6 // device support in Chromium. It provides the interface for OS dependent |
7 // implementations. | 7 // implementations. |
8 // The class is created and functions are invoked on a thread owned by | 8 // The class is created and functions are invoked on a thread owned by |
9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS | 9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS |
10 // specific implementation. | 10 // specific implementation. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 MEDIA_FOUNDATION, | 47 MEDIA_FOUNDATION, |
48 DIRECT_SHOW, | 48 DIRECT_SHOW, |
49 API_TYPE_UNKNOWN | 49 API_TYPE_UNKNOWN |
50 }; | 50 }; |
51 #endif | 51 #endif |
52 #if defined(OS_MACOSX) | 52 #if defined(OS_MACOSX) |
53 // Mac targets Capture Api type: it can only be set on construction. | 53 // Mac targets Capture Api type: it can only be set on construction. |
54 enum CaptureApiType { | 54 enum CaptureApiType { |
55 AVFOUNDATION, | 55 AVFOUNDATION, |
56 QTKIT, | 56 QTKIT, |
| 57 DECKLINK, |
57 API_TYPE_UNKNOWN | 58 API_TYPE_UNKNOWN |
58 }; | 59 }; |
59 // For AVFoundation Api, identify devices that are built-in or USB. | 60 // For AVFoundation Api, identify devices that are built-in or USB. |
60 enum TransportType { | 61 enum TransportType { |
61 USB_OR_BUILT_IN, | 62 USB_OR_BUILT_IN, |
62 OTHER_TRANSPORT | 63 OTHER_TRANSPORT |
63 }; | 64 }; |
64 #endif | 65 #endif |
65 #if defined(OS_WIN) || defined(OS_MACOSX) | 66 #if defined(OS_WIN) || defined(OS_MACOSX) |
66 Name(const std::string& name, | 67 Name(const std::string& name, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 int GetPowerLineFrequencyForLocation() const; | 259 int GetPowerLineFrequencyForLocation() const; |
259 | 260 |
260 protected: | 261 protected: |
261 static const int kPowerLine50Hz = 50; | 262 static const int kPowerLine50Hz = 50; |
262 static const int kPowerLine60Hz = 60; | 263 static const int kPowerLine60Hz = 60; |
263 }; | 264 }; |
264 | 265 |
265 } // namespace media | 266 } // namespace media |
266 | 267 |
267 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ | 268 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ |
OLD | NEW |