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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // SelectClosestPointToIdeal are rounded to the nearest int. For more details, | 232 // SelectClosestPointToIdeal are rounded to the nearest int. For more details, |
233 // see the documentation for ResolutionSet::SelectClosestPointToIdeal. | 233 // see the documentation for ResolutionSet::SelectClosestPointToIdeal. |
234 // Note that this function ignores the min/max/exact values from | 234 // Note that this function ignores the min/max/exact values from |
235 // |basic_constraint_set|. Only its ideal values are used. | 235 // |basic_constraint_set|. Only its ideal values are used. |
236 // This function has undefined behavior if any of |resolution_set| or | 236 // This function has undefined behavior if any of |resolution_set| or |
237 // |frame_rate_set| are empty. | 237 // |frame_rate_set| are empty. |
238 VideoTrackAdapterSettings CONTENT_EXPORT SelectVideoTrackAdapterSettings( | 238 VideoTrackAdapterSettings CONTENT_EXPORT SelectVideoTrackAdapterSettings( |
239 const blink::WebMediaTrackConstraintSet& basic_constraint_set, | 239 const blink::WebMediaTrackConstraintSet& basic_constraint_set, |
240 const ResolutionSet& resolution_set, | 240 const ResolutionSet& resolution_set, |
241 const NumericRangeSet<double>& frame_rate_set, | 241 const NumericRangeSet<double>& frame_rate_set, |
242 const media::VideoCaptureFormat& source_format); | 242 const media::VideoCaptureFormat& source_format, |
| 243 bool expect_source_native_size); |
243 | 244 |
244 } // namespace content | 245 } // namespace content |
245 | 246 |
246 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ | 247 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_H_ |
OLD | NEW |