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/base/video_capture_types.h" | 5 #include "media/base/video_capture_types.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
9 #include "media/base/limits.h" | 10 #include "media/base/limits.h" |
10 #include "media/base/video_frame.h" | 11 #include "media/base/video_frame.h" |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 // This list is ordered by precedence of use. | 15 // This list is ordered by precedence of use. |
15 static VideoPixelFormat const kSupportedCapturePixelFormats[] = { | 16 static VideoPixelFormat const kSupportedCapturePixelFormats[] = { |
16 PIXEL_FORMAT_I420, | 17 PIXEL_FORMAT_I420, |
17 PIXEL_FORMAT_YV12, | 18 PIXEL_FORMAT_YV12, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 114 |
114 bool VideoCaptureParams::IsValid() const { | 115 bool VideoCaptureParams::IsValid() const { |
115 return requested_format.IsValid() && | 116 return requested_format.IsValid() && |
116 resolution_change_policy >= RESOLUTION_POLICY_FIXED_RESOLUTION && | 117 resolution_change_policy >= RESOLUTION_POLICY_FIXED_RESOLUTION && |
117 resolution_change_policy <= RESOLUTION_POLICY_LAST && | 118 resolution_change_policy <= RESOLUTION_POLICY_LAST && |
118 power_line_frequency >= PowerLineFrequency::FREQUENCY_DEFAULT && | 119 power_line_frequency >= PowerLineFrequency::FREQUENCY_DEFAULT && |
119 power_line_frequency <= PowerLineFrequency::FREQUENCY_MAX; | 120 power_line_frequency <= PowerLineFrequency::FREQUENCY_MAX; |
120 } | 121 } |
121 | 122 |
122 } // namespace media | 123 } // namespace media |
OLD | NEW |