Refactor encoder-complexity param in VideoCodec w/backward compatibility
Move complexity parameter to the main VideoCodec class to enable additional video codecs to use the parameter without creating a new codec-specific structure. Bug: webrtc:13694 Change-Id: Icb7cf640b178875d799f39ade8b5084e3222bb1c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/251921 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Michael Horowitz <mhoro@google.com> Cr-Commit-Position: refs/heads/main@{#36040}
This commit is contained in:
@ -104,7 +104,6 @@ std::string CodecSpecificToString(const VideoCodec& codec) {
|
||||
rtc::SimpleStringBuilder ss(buf);
|
||||
switch (codec.codecType) {
|
||||
case kVideoCodecVP8:
|
||||
ss << "complexity: " << static_cast<int>(codec.VP8().complexity);
|
||||
ss << "\nnum_temporal_layers: "
|
||||
<< static_cast<int>(codec.VP8().numberOfTemporalLayers);
|
||||
ss << "\ndenoising: " << codec.VP8().denoisingOn;
|
||||
@ -113,7 +112,6 @@ std::string CodecSpecificToString(const VideoCodec& codec) {
|
||||
ss << "\nkey_frame_interval: " << codec.VP8().keyFrameInterval;
|
||||
break;
|
||||
case kVideoCodecVP9:
|
||||
ss << "complexity: " << static_cast<int>(codec.VP9().complexity);
|
||||
ss << "\nnum_temporal_layers: "
|
||||
<< static_cast<int>(codec.VP9().numberOfTemporalLayers);
|
||||
ss << "\nnum_spatial_layers: "
|
||||
@ -302,6 +300,8 @@ std::string VideoCodecTestFixtureImpl::Config::ToString() const {
|
||||
ss << "\nnum_simulcast_streams: "
|
||||
<< static_cast<int>(codec_settings.numberOfSimulcastStreams);
|
||||
ss << "\n\n--> codec_settings." << codec_type;
|
||||
ss << "complexity: "
|
||||
<< static_cast<int>(codec_settings.GetVideoEncoderComplexity());
|
||||
ss << "\n" << CodecSpecificToString(codec_settings);
|
||||
if (codec_settings.numberOfSimulcastStreams > 1) {
|
||||
for (int i = 0; i < codec_settings.numberOfSimulcastStreams; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user