| 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 28 matching lines...) Expand all Loading... |
| 39 // VideoCaptureDevice::Create. | 39 // VideoCaptureDevice::Create. |
| 40 class MEDIA_EXPORT Name { | 40 class MEDIA_EXPORT Name { |
| 41 public: | 41 public: |
| 42 Name(); | 42 Name(); |
| 43 Name(const std::string& name, const std::string& id); | 43 Name(const std::string& name, const std::string& id); |
| 44 | 44 |
| 45 #if defined(OS_LINUX) | 45 #if defined(OS_LINUX) |
| 46 // Linux/CrOS targets Capture Api type: it can only be set on construction. | 46 // Linux/CrOS targets Capture Api type: it can only be set on construction. |
| 47 enum CaptureApiType { | 47 enum CaptureApiType { |
| 48 V4L2_SINGLE_PLANE, | 48 V4L2_SINGLE_PLANE, |
| 49 V4L2_SINGLE_PLANE_DMABUF, |
| 49 V4L2_MULTI_PLANE, | 50 V4L2_MULTI_PLANE, |
| 50 API_TYPE_UNKNOWN | 51 API_TYPE_UNKNOWN |
| 51 }; | 52 }; |
| 52 #elif defined(OS_WIN) | 53 #elif defined(OS_WIN) |
| 53 // Windows targets Capture Api type: it can only be set on construction. | 54 // Windows targets Capture Api type: it can only be set on construction. |
| 54 enum CaptureApiType { | 55 enum CaptureApiType { |
| 55 MEDIA_FOUNDATION, | 56 MEDIA_FOUNDATION, |
| 56 DIRECT_SHOW, | 57 DIRECT_SHOW, |
| 57 API_TYPE_UNKNOWN | 58 API_TYPE_UNKNOWN |
| 58 }; | 59 }; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 int GetPowerLineFrequencyForLocation() const; | 297 int GetPowerLineFrequencyForLocation() const; |
| 297 | 298 |
| 298 protected: | 299 protected: |
| 299 static const int kPowerLine50Hz = 50; | 300 static const int kPowerLine50Hz = 50; |
| 300 static const int kPowerLine60Hz = 60; | 301 static const int kPowerLine60Hz = 60; |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 } // namespace media | 304 } // namespace media |
| 304 | 305 |
| 305 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ | 306 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ |
| OLD | NEW |