vda: Add hwaccel1.2 support

The global context setup are proper av_ namespaced functions,
the frames are properly refcounted and the output is fixed to
UYVY.