summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/mediastream/media_stream_constraints_util_video_content.h
blob: 2f4986c266db15dbb37ac22c27f370ac7d22bfe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIASTREAM_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIASTREAM_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_

#include "third_party/blink/public/common/mediastream/media_stream_request.h"
#include "third_party/blink/renderer/modules/modules_export.h"

namespace blink {

class MediaConstraints;
class VideoCaptureSettings;

MODULES_EXPORT extern const int kMinScreenCastDimension;
MODULES_EXPORT extern const int kMaxScreenCastDimension;
MODULES_EXPORT extern const int kDefaultScreenCastWidth;
MODULES_EXPORT extern const int kDefaultScreenCastHeight;

MODULES_EXPORT extern const double kMaxScreenCastFrameRate;
MODULES_EXPORT extern const double kDefaultScreenCastFrameRate;

// This function performs source, source-settings and track-settings selection
// for content video capture based on the given |constraints|.
VideoCaptureSettings MODULES_EXPORT
SelectSettingsVideoContentCapture(const MediaConstraints& constraints,
                                  mojom::MediaStreamType stream_type,
                                  int screen_width,
                                  int screen_height);

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_MODULES_MEDIASTREAM_MEDIA_STREAM_CONSTRAINTS_UTIL_VIDEO_CONTENT_H_