msdk: Add functions to get data members from MsdkSession

When getting mfxImplDescription, these data members need to
be used.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4177>
This commit is contained in:
Yinhang Liu 2023-04-07 14:26:55 +08:00 committed by GStreamer Marge Bot
parent 6242fca526
commit 34a812a0c0
2 changed files with 14 additions and 0 deletions

View file

@ -650,6 +650,18 @@ gst_msdk_context_get_session (GstMsdkContext * context)
return context->priv->session.session;
}
const mfxLoader *
gst_msdk_context_get_loader (GstMsdkContext * context)
{
return &context->priv->session.loader;
}
mfxU32
gst_msdk_context_get_impl_idx (GstMsdkContext * context)
{
return context->priv->session.impl_idx;
}
gpointer
gst_msdk_context_get_handle (GstMsdkContext * context)
{

View file

@ -99,6 +99,8 @@ GstMsdkContext * gst_msdk_context_new_with_d3d11_device (GstD3D11Device * device
gboolean hardware, GstMsdkContextJobType job_type);
#endif
mfxSession gst_msdk_context_get_session (GstMsdkContext * context);
const mfxLoader * gst_msdk_context_get_loader (GstMsdkContext * context);
mfxU32 gst_msdk_context_get_impl_idx (GstMsdkContext * context);
gpointer gst_msdk_context_get_handle (GstMsdkContext * context);
#ifndef _WIN32