Re-work the VAAPI common infrastructure to avoid code duplication between filters. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>