lavu: add a framework for handling hwaccel frames