mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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:
parent
6242fca526
commit
34a812a0c0
2 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue