Add support for VideoLayersAllocation for Vp9 scv/ksvc and none scalable
VideoCodecInitializer::VideoEncoderConfigToVideoCodec is modified to always set correct frame rate, width and height on spatial layer 0 so the rest of the code does not need to differentiate between scalable/none scalable codecs. Bug: webrtc:12000 Change-Id: I5a068b98ca2038621205f55e4024f949ab51587a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/198540 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32890}
This commit is contained in:

committed by
Commit Bot

parent
167ecc9bc5
commit
f86cf4c2de
@ -148,6 +148,12 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
video_codec.maxBitrate = kEncoderMinBitrateKbps;
|
||||
|
||||
video_codec.maxFramerate = max_framerate;
|
||||
video_codec.spatialLayers[0] = {0};
|
||||
video_codec.spatialLayers[0].width = video_codec.width;
|
||||
video_codec.spatialLayers[0].height = video_codec.height;
|
||||
video_codec.spatialLayers[0].maxFramerate = max_framerate;
|
||||
video_codec.spatialLayers[0].numberOfTemporalLayers =
|
||||
streams[0].num_temporal_layers.value_or(1);
|
||||
|
||||
// Set codec specific options
|
||||
if (config.encoder_specific_settings)
|
||||
|
Reference in New Issue
Block a user