vaapi_encode: Refactor slightly to allow easier setting of global options