Adding VDR grab support for VA-API

This patch adds support for grabbing images from VA-API. The grab is tried first with deriving an image
from surface and if that fails then GetImage -method is tried. Grab fails if neither of the methods are available

Derived surface is then converted from yuv to bgr(a) before passed on to softhddevice for scaling and
jpg/png encoding.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Make sure to only touch VA-API OSD areas softhddevice has memory access to

This should fix crashes when using certain skins (e.g. skinFlatPlus) that for some reason want to
outside the OSD provided by softhddevice.

Signed-off-by: Antti Seppälä <a.sepala@gmail.com>
Implement better putsurface synchronization

This patch should work "in theory" better than the code there was. Earlier code may have been working better in
practice because of buggy vaapi library. Since then extensive GPU hang fixes have been implemented on library
level.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>