OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_VIDEO_CONTENT_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/renderer/media/media_stream_constraints_util.h" | 11 #include "content/renderer/media/media_stream_constraints_util.h" |
12 #include "third_party/webrtc/base/optional.h" | 12 #include "third_party/webrtc/base/optional.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 class WebMediaConstraints; | 15 class WebMediaConstraints; |
16 } | 16 } |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 CONTENT_EXPORT extern const int kDefaultScreenCastWidth; | 20 CONTENT_EXPORT extern const int kDefaultScreenCastWidth; |
21 CONTENT_EXPORT extern const int kDefaultScreenCastHeight; | 21 CONTENT_EXPORT extern const int kDefaultScreenCastHeight; |
| 22 CONTENT_EXPORT extern const double kDefaultScreenCastAspectRatio; |
22 CONTENT_EXPORT extern const double kDefaultScreenCastFrameRate; | 23 CONTENT_EXPORT extern const double kDefaultScreenCastFrameRate; |
23 CONTENT_EXPORT extern const int kMinScreenCastDimension; | 24 CONTENT_EXPORT extern const int kMinScreenCastDimension; |
24 CONTENT_EXPORT extern const int kMaxScreenCastDimension; | 25 CONTENT_EXPORT extern const int kMaxScreenCastDimension; |
25 | 26 |
26 // This function performs source, source-settings and track-settings selection | 27 // This function performs source, source-settings and track-settings selection |
27 // for content video capture based on the given |constraints|. | 28 // for content video capture based on the given |constraints|. |
28 VideoCaptureSettings CONTENT_EXPORT SelectSettingsVideoContentCapture( | 29 VideoCaptureSettings CONTENT_EXPORT SelectSettingsVideoContentCapture( |
29 const blink::WebMediaConstraints& constraints); | 30 const blink::WebMediaConstraints& constraints); |
30 | 31 |
31 } // namespace content | 32 } // namespace content |
32 | 33 |
33 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ | 34 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_ |
OLD | NEW |