xref: /aosp_15_r20/external/webrtc/api/video_track_source_constraints.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1 /*
2  *  Copyright 2021 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 // This file contains interfaces for MediaStream, MediaTrack and MediaSource.
12 // These interfaces are used for implementing MediaStream and MediaTrack as
13 // defined in http://dev.w3.org/2011/webrtc/editor/webrtc.html#stream-api. These
14 // interfaces must be used only with PeerConnection.
15 
16 #ifndef API_VIDEO_TRACK_SOURCE_CONSTRAINTS_H_
17 #define API_VIDEO_TRACK_SOURCE_CONSTRAINTS_H_
18 
19 #include "absl/types/optional.h"
20 
21 namespace webrtc {
22 
23 // This struct definition describes constraints on the video source that may be
24 // set with VideoTrackSourceInterface::ProcessConstraints.
25 struct VideoTrackSourceConstraints {
26   absl::optional<double> min_fps;
27   absl::optional<double> max_fps;
28 };
29 
30 }  // namespace webrtc
31 
32 #endif  // API_VIDEO_TRACK_SOURCE_CONSTRAINTS_H_
33