Community
cancel
Showing results for 
Search instead for 
Did you mean: 
olivierp_eboo
Beginner
60 Views

H.264 Decoder DirectShow Filter and MFX_IMPL

Jump to solution
Hello,

As the title of my post suggests, I'm looking for some tips to check and possibly to change the implementation selected by the H264 DS filter.
I have read that it's possible if I use the Media SDK directly without Direct Show, for instance:
[bash]mfxSession session;
MFXInit(MFX_IMPL_AUTO, 0, &session);
mfxIMPL impl;
MFXQueryIMPL(session, &impl);
if (impl==MFX_IMPL_SOFTWARE) printf(Software Implementation\n);
if (impl==MFX_IMPL_HARDWARE) printf(Hardware implementation\n);
MFXClose(session);[/bash]
Is there any interface to query wich implementation is used ?

Regards,

OP
0 Kudos
1 Solution
Nina_K_Intel
Employee
60 Views
There is no actual interface on DShow sample filter which methods can be called. But filters write a flag IsHWMfxLibin the Windows registry underHKEY_CURRENT_USER\Software\Intel\Media SDK Sample FiltersIsHWMfxLib. The flag is set to 1 if hw Media SDK library was used. Additionally there is a flagIsEncode(Decode)PartiallyAccelerated which is set to 1 if a software fallback code path was working inside hw library.

Hope this is sufficient for you.

Regards,
Nina

View solution in original post

3 Replies
Nina_K_Intel
Employee
61 Views
There is no actual interface on DShow sample filter which methods can be called. But filters write a flag IsHWMfxLibin the Windows registry underHKEY_CURRENT_USER\Software\Intel\Media SDK Sample FiltersIsHWMfxLib. The flag is set to 1 if hw Media SDK library was used. Additionally there is a flagIsEncode(Decode)PartiallyAccelerated which is set to 1 if a software fallback code path was working inside hw library.

Hope this is sufficient for you.

Regards,
Nina

View solution in original post

olivierp_eboo
Beginner
60 Views
Thanks Nina.

I have found the registry key and it is indeed set to FALSE (so I have no doubt about why the decoding performances were low).

I have post another thread about where is the dll used to the hardware decoding (I have only found the one for software decoding and maybe this is link to the IsHWMFxLib value).

Thanks again,


cheers

OP
Nina_K_Intel
Employee
60 Views
Hi Olivier,


Regards,
Nina
Reply