| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "media/video/capture/mac/video_capture_device_factory_mac.h" | 5 #include "media/video/capture/mac/video_capture_device_factory_mac.h" |
| 6 | 6 |
| 7 #import <IOKit/audio/IOAudioTypes.h> | 7 #import <IOKit/audio/IOAudioTypes.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/profiler/scoped_tracker.h" | 11 #include "base/profiler/scoped_tracker.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
| 14 #import "media/base/mac/avfoundation_glue.h" | 14 #import "media/base/mac/avfoundation_glue.h" |
| 15 #import "media/video/capture/mac/video_capture_device_avfoundation_mac.h" | 15 #import "media/video/capture/mac/video_capture_device_avfoundation_mac.h" |
| 16 #import "media/video/capture/mac/video_capture_device_decklink_mac.h" |
| 16 #include "media/video/capture/mac/video_capture_device_mac.h" | 17 #include "media/video/capture/mac/video_capture_device_mac.h" |
| 17 #import "media/video/capture/mac/video_capture_device_decklink_mac.h" | |
| 18 #import "media/video/capture/mac/video_capture_device_qtkit_mac.h" | 18 #import "media/video/capture/mac/video_capture_device_qtkit_mac.h" |
| 19 | 19 |
| 20 namespace media { | 20 namespace media { |
| 21 | 21 |
| 22 // In QTKit API, some devices are known to crash if VGA is requested, for them | 22 // In QTKit API, some devices are known to crash if VGA is requested, for them |
| 23 // HD is the only supported resolution (see http://crbug.com/396812). In the | 23 // HD is the only supported resolution (see http://crbug.com/396812). In the |
| 24 // AVfoundation case, we skip enumerating them altogether. These devices are | 24 // AVfoundation case, we skip enumerating them altogether. These devices are |
| 25 // identified by a characteristic trailing substring of uniqueId. At the moment | 25 // identified by a characteristic trailing substring of uniqueId. At the moment |
| 26 // these are just Blackmagic devices. | 26 // these are just Blackmagic devices. |
| 27 const struct NameAndVid { | 27 const struct NameAndVid { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 } | 205 } |
| 206 | 206 |
| 207 // static | 207 // static |
| 208 VideoCaptureDeviceFactory* | 208 VideoCaptureDeviceFactory* |
| 209 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory( | 209 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory( |
| 210 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | 210 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { |
| 211 return new VideoCaptureDeviceFactoryMac(ui_task_runner); | 211 return new VideoCaptureDeviceFactoryMac(ui_task_runner); |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace media | 214 } // namespace media |
| OLD | NEW |