Add per plane reference counting

Merged James Almer requested to merge jamrial/dav1d:film_grain_plane_ref into master

As mentioned in the task list, this removes plane data copies when applying film grain in some scenarios.

Merge request reports