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 { |
| 19 | int width; |
| 20 | int height; |
| 21 | float maxFramerate; // fps. |
| 22 | unsigned char numberOfTemporalLayers; |
| 23 | unsigned int maxBitrate; // kilobits/sec. |
| 24 | unsigned int targetBitrate; // kilobits/sec. |
| 25 | unsigned int minBitrate; // kilobits/sec. |
| 26 | unsigned int qpMax; // minimum quality |
| 27 | bool active; // encoded and sent. |
| 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_ |