Commit 5638ae64 authored by Committed by Luca Barbato
Add struct FrameMotionVectors
The motion vectors were stored in a Vec<Vec<MotionVector>>. The innermost Vec contains a flatten matrix (fi.w_in_b x fi.h_in_b) of MotionVectors, and there are REF_FRAMES instances of them (the outermost Vec). Introduce a typed structure to replace the innermost Vec: - this improves readability; - this allows to expose it as a 2D array, thanks to Index and IndexMut traits; - this will allow to split it into (non-overlapping) tiled views, containing only the motion vectors for a bounded region of the plane (see <https://github.com/xiph/rav1e/pull/1126>).
Showing with 52 additions and 14 deletions