OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/video_capture_device.h" | 5 #include "media/capture/video/video_capture_device.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/timezone.h" | 8 #include "base/i18n/timezone.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 #endif | 80 #endif |
81 | 81 |
82 VideoCaptureDevice::Name::~Name() { | 82 VideoCaptureDevice::Name::~Name() { |
83 } | 83 } |
84 | 84 |
85 #if defined(OS_LINUX) | 85 #if defined(OS_LINUX) |
86 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { | 86 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { |
87 switch (capture_api_type()) { | 87 switch (capture_api_type()) { |
88 case V4L2_SINGLE_PLANE: | 88 case V4L2_SINGLE_PLANE: |
89 return "V4L2 SPLANE"; | 89 return "V4L2 SPLANE"; |
90 case V4L2_MULTI_PLANE: | |
91 return "V4L2 MPLANE"; | |
92 default: | 90 default: |
93 NOTREACHED() << "Unknown Video Capture API type!"; | 91 NOTREACHED() << "Unknown Video Capture API type!"; |
94 return "Unknown API"; | 92 return "Unknown API"; |
95 } | 93 } |
96 } | 94 } |
97 #elif defined(OS_WIN) | 95 #elif defined(OS_WIN) |
98 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { | 96 const char* VideoCaptureDevice::Name::GetCaptureApiTypeString() const { |
99 switch (capture_api_type()) { | 97 switch (capture_api_type()) { |
100 case MEDIA_FOUNDATION: | 98 case MEDIA_FOUNDATION: |
101 return "Media Foundation"; | 99 return "Media Foundation"; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 switch (params.power_line_frequency) { | 171 switch (params.power_line_frequency) { |
174 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through | 172 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through |
175 case media::PowerLineFrequency::FREQUENCY_60HZ: | 173 case media::PowerLineFrequency::FREQUENCY_60HZ: |
176 return params.power_line_frequency; | 174 return params.power_line_frequency; |
177 default: | 175 default: |
178 return GetPowerLineFrequencyForLocation(); | 176 return GetPowerLineFrequencyForLocation(); |
179 } | 177 } |
180 } | 178 } |
181 | 179 |
182 } // namespace media | 180 } // namespace media |
OLD | NEW |