Niels Möller | c0a9f35 | 2022-05-20 13:38:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2022 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 | #ifndef API_VIDEO_CODECS_SIMULCAST_STREAM_H_ |
| 12 | #define API_VIDEO_CODECS_SIMULCAST_STREAM_H_ |
| 13 | |
Niels Möller | c0a9f35 | 2022-05-20 13:38:49 +0200 | [diff] [blame] | 14 | namespace webrtc { |
| 15 | |
| 16 | // TODO(bugs.webrtc.org/6883): Unify with struct VideoStream, part of |
| 17 | // VideoEncoderConfig. |
Niels Möller | c4b5f4d | 2022-05-20 15:18:21 +0200 | [diff] [blame] | 18 | struct SimulcastStream { |
Niels Möller | 865e45d | 2022-07-04 17:16:52 +0200 | [diff] [blame^] | 19 | int width = 0; |
| 20 | int height = 0; |
| 21 | float maxFramerate = 0; // fps. |
| 22 | unsigned char numberOfTemporalLayers = 1; |
| 23 | unsigned int maxBitrate = 0; // kilobits/sec. |
| 24 | unsigned int targetBitrate = 0; // kilobits/sec. |
| 25 | unsigned int minBitrate = 0; // kilobits/sec. |
| 26 | unsigned int qpMax = 0; // minimum quality |
| 27 | bool active = false; // encoded and sent. |
Niels Möller | c4b5f4d | 2022-05-20 15:18:21 +0200 | [diff] [blame] | 28 | }; |
Niels Möller | c0a9f35 | 2022-05-20 13:38:49 +0200 | [diff] [blame] | 29 | |
| 30 | } // namespace webrtc |
| 31 | #endif // API_VIDEO_CODECS_SIMULCAST_STREAM_H_ |