Remove VideoLayerFrameId::spatial_layer, use EncodedImage::SpatialIndex instead.

Next step is to replace VideoLayerFrameId with int64_t.

Bug: webrtc:12206
Change-Id: I414f491e383acf7f8efd97f7bf93dc55a5194fbf
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/206804
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33245}
This commit is contained in:
philipel
2021-02-11 15:25:08 +01:00
committed by Commit Bot
parent cae4656d4a
commit f109193fba
11 changed files with 88 additions and 163 deletions

View File

@ -39,18 +39,10 @@ class DecodedFramesHistory {
absl::optional<uint32_t> GetLastDecodedFrameTimestamp();
private:
struct LayerHistory {
LayerHistory();
~LayerHistory();
// Cyclic bitset buffer. Stores last known |window_size| bits.
std::vector<bool> buffer;
absl::optional<int64_t> last_picture_id;
};
int PictureIdToIndex(int64_t frame_id) const;
const int window_size_;
std::vector<LayerHistory> layers_;
std::vector<bool> buffer_;
absl::optional<int64_t> last_picture_id_;
absl::optional<VideoLayerFrameId> last_decoded_frame_;
absl::optional<uint32_t> last_decoded_frame_timestamp_;
};