[VP9] Shift spatial layers on RTP level to always start from 0.

This CL uses |width| and |height| in RTPVideoHeaderVP9 to pass information
about enabled layers from encoder to packetizer.

Bug: webrtc:11319
Change-Id: Idc1c337f8dfb3f7631506acb784d2a634b41b955
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/167724
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30428}
This commit is contained in:
Ilya Nikolaevskiy
2020-01-29 16:21:51 +01:00
committed by Commit Bot
parent 670af2692e
commit 2e73a3d1e9
6 changed files with 91 additions and 1 deletions

View File

@ -69,6 +69,7 @@ struct CodecSpecificInfoVP9 {
// SS data.
size_t num_spatial_layers; // Always populated.
size_t first_active_layer;
bool spatial_layer_resolution_present;
uint16_t width[kMaxVp9NumberOfSpatialLayers];
uint16_t height[kMaxVp9NumberOfSpatialLayers];