priv->job_type = job_type;
priv->hardware = hardware;
- priv->session = msdk_open_session (hardware);
+ priv->session =
+ msdk_open_session (hardware ? MFX_IMPL_HARDWARE_ANY : MFX_IMPL_SOFTWARE);
if (!priv->session)
goto failed;
}
mfxSession
-msdk_open_session (gboolean hardware)
+msdk_open_session (mfxIMPL impl)
{
mfxSession session = NULL;
mfxVersion version = { {1, 1}
"HARDWARE3", "HARDWARE4", "RUNTIME"
};
- status = MFXInit (hardware ? MFX_IMPL_HARDWARE_ANY : MFX_IMPL_SOFTWARE,
- &version, &session);
+ status = MFXInit (impl, &version, &session);
if (status != MFX_ERR_NONE) {
GST_ERROR ("Intel Media SDK not available (%s)",
msdk_status_to_string (status));
gboolean
msdk_is_available (void)
{
- mfxSession session = msdk_open_session (FALSE);
+ mfxSession session = msdk_open_session (MFX_IMPL_AUTO_ANY);
if (!session) {
return FALSE;
}
G_BEGIN_DECLS
-mfxSession msdk_open_session (gboolean hardware);
+mfxSession msdk_open_session (mfxIMPL impl);
void msdk_close_session (mfxSession session);
gboolean msdk_is_available (void);