- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
* Product version : MediaSamples 6.0.0.142
* Platform you are building on : Windows Server 2008 R2 + Intel HD Graphics 4600
If multiple graphic adapters are existed in PC and Intel graphic adapter is secondary device, sample_encode prints like below,
Media SDK impl : sw
This is wrong information because sample_encode had the success to initialize a mfxSession with MFX_IMPL_HARDWARE_ANY.
Sample_encode program must print like below,
Media SDK imple : hw
Current sample_encode prints 'hw' if only Intel Graphic adapter is default device. So, I would like to submit this patch. :)
MediaSamples_6.0.0.142/sample_encode/src/pipeline_encode.cpp
@@ -1581,7 +1581,10 @@ void CEncodingPipeline::PrintInfo()
GetFirstSession().QueryIMPL(&impl);const msdk_char* sImpl = (MFX_IMPL_VIA_D3D11 == MFX_IMPL_VIA_MASK(impl)) ? MSDK_STRING("hw_d3d11")
- : (MFX_IMPL_HARDWARE & impl) ? MSDK_STRING("hw")
+ : (MFX_IMPL_HARDWARE & impl) ? MSDK_STRING("hw1")
+ : (MFX_IMPL_HARDWARE2 & impl) ? MSDK_STRING("hw2")
+ : (MFX_IMPL_HARDWARE3 & impl) ? MSDK_STRING("hw3")
+ : (MFX_IMPL_HARDWARE4 & impl) ? MSDK_STRING("hw4")
: MSDK_STRING("sw");
msdk_printf(MSDK_STRING("Media SDK impl\t\t%s\n"), sImpl);
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
Thanks for pointing out the issue, with a solution. Our samples are available on GitHub now(link), where you can submit your changes if you like or we can also take in from here and send your change. Let us know if you will like to submit on your own.
Surbhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see. I will create a pull request to submit my patch.
thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great, we appreciate your inputs. If you find any issues in future, please don't hesitate to bring it forward.
Thanks,
Surbhi
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page