The default values are zero, for consistency with the memset of VideoCodec. Except for numberOfTemporalLayers; This cl sets numberOfTemporalLayers to 1 by default. The intention is to be able to delete exlpicit setting of .numberOfTemporalLayers = 1 in downstream code, to ease replacing it with a scalability mode. Bug: webrtc:11607 Change-Id: I9de442f1893d474ea360f9b33364a00627f6c3be Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267662 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37430}
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef API_VIDEO_CODECS_SIMULCAST_STREAM_H_
|
|
#define API_VIDEO_CODECS_SIMULCAST_STREAM_H_
|
|
|
|
namespace webrtc {
|
|
|
|
// TODO(bugs.webrtc.org/6883): Unify with struct VideoStream, part of
|
|
// VideoEncoderConfig.
|
|
struct SimulcastStream {
|
|
int width = 0;
|
|
int height = 0;
|
|
float maxFramerate = 0; // fps.
|
|
unsigned char numberOfTemporalLayers = 1;
|
|
unsigned int maxBitrate = 0; // kilobits/sec.
|
|
unsigned int targetBitrate = 0; // kilobits/sec.
|
|
unsigned int minBitrate = 0; // kilobits/sec.
|
|
unsigned int qpMax = 0; // minimum quality
|
|
bool active = false; // encoded and sent.
|
|
};
|
|
|
|
} // namespace webrtc
|
|
#endif // API_VIDEO_CODECS_SIMULCAST_STREAM_H_
|