extract vaapiencoder structure to make other encoders possible