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 #include "media/capture/video/mac/video_capture_device_mac.h" | 5 #include "media/capture/video/mac/video_capture_device_mac.h" |
6 | 6 |
7 #include <IOKit/IOCFPlugIn.h> | 7 #include <IOKit/IOCFPlugIn.h> |
8 #include <IOKit/usb/IOUSBLib.h> | 8 #include <IOKit/usb/IOUSBLib.h> |
9 #include <IOKit/usb/USBSpec.h> | 9 #include <IOKit/usb/USBSpec.h> |
| 10 #include <stddef.h> |
10 #include <stdint.h> | 11 #include <stdint.h> |
11 | 12 |
12 #include <limits> | 13 #include <limits> |
13 | 14 |
14 #include "base/bind.h" | 15 #include "base/bind.h" |
15 #include "base/location.h" | 16 #include "base/location.h" |
16 #include "base/logging.h" | 17 #include "base/logging.h" |
17 #include "base/mac/scoped_ioobject.h" | 18 #include "base/mac/scoped_ioobject.h" |
18 #include "base/mac/scoped_ioplugininterface.h" | 19 #include "base/mac/scoped_ioplugininterface.h" |
| 20 #include "base/macros.h" |
19 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
20 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
21 #include "base/thread_task_runner_handle.h" | 23 #include "base/thread_task_runner_handle.h" |
22 #include "base/time/time.h" | 24 #include "base/time/time.h" |
23 #import "media/base/mac/avfoundation_glue.h" | 25 #import "media/base/mac/avfoundation_glue.h" |
24 #include "media/base/timestamp_constants.h" | 26 #include "media/base/timestamp_constants.h" |
25 #import "media/capture/video/mac/platform_video_capturing_mac.h" | 27 #import "media/capture/video/mac/platform_video_capturing_mac.h" |
26 #import "media/capture/video/mac/video_capture_device_avfoundation_mac.h" | 28 #import "media/capture/video/mac/video_capture_device_avfoundation_mac.h" |
27 #import "media/capture/video/mac/video_capture_device_qtkit_mac.h" | 29 #import "media/capture/video/mac/video_capture_device_qtkit_mac.h" |
28 #include "ui/gfx/geometry/size.h" | 30 #include "ui/gfx/geometry/size.h" |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 if (![capture_device_ setCaptureHeight:capture_format_.frame_size.height() | 584 if (![capture_device_ setCaptureHeight:capture_format_.frame_size.height() |
583 width:capture_format_.frame_size.width() | 585 width:capture_format_.frame_size.width() |
584 frameRate:capture_format_.frame_rate]) { | 586 frameRate:capture_format_.frame_rate]) { |
585 ReceiveError(FROM_HERE, "Could not configure capture device."); | 587 ReceiveError(FROM_HERE, "Could not configure capture device."); |
586 return false; | 588 return false; |
587 } | 589 } |
588 return true; | 590 return true; |
589 } | 591 } |
590 | 592 |
591 } // namespace media | 593 } // namespace media |
OLD | NEW |