Make vaapi decoder compatible with latest libva changes
Rework the vaapi implementation
Add vaapi encoder
Add common api which enables sharing of surfaces and a common initialization
Workaround strange first-line-flickering
Hack-Fix flickering