This is a preparation for landing cl
https://webrtc-review.googlesource.com/c/src/+/83161, which needs to
be done in multiple steps:
1. Add the new spatial_index_ member and accessor methods to
EncodedImage (this cl).
2. Update downstream encoders to assign spatial index and simulcast index
in EncodedImage, in addition to the old members of
CodecSpecificInfo.
3. Land main cl, converting webrtc code to use the spatial index from
EncodedImage. Ignore the old fields in CodecSpecificInfo, but
leave them in place in respective structs.
4. Delete downstream code accessing old fields.
5. Delete old fields in webrtc.
Bug: webrtc:9378
Change-Id: Ic132daf71f1cbbd57fb3b44f74ae94b921733f7a
Reviewed-on: https://webrtc-review.googlesource.com/90248
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Marco Paniconi <marpan@google.com>
Reviewed-by: Marco Paniconi <marpan@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24093}