Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make convert_slice_2d() use raw pointers
The util function convert_slice_2d() operates on a slice with stride information. It will become incompatible with PlaneSlice which will not expose a multi-rows slice anymore (see <xiph#631 (comment)>). To keep it generic enough, we don't want to use a PlaneSlice wrapper for every call, so make the function use raw pointers (and unsafe). Note: this commit changes indentation for unsafe blocks, so the diff is more understable with "git show -b".
- Loading branch information