Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2935 Discussions

Is there any initialization API to achieve high performance depending on the processor type?

Amol_A_
Beginner
104 Views

Hi ,

Is there any initialization API to achieve high performance depending on the processor type in intel media SDK?

Just as in IPP, we use ippinit() api which detects the processor type used in the system to initialize processor specific static code, similarly is there any such API in Intel Media SDK or not?

Regards

Amol

0 Kudos
2 Replies
OTorg
New Contributor III
104 Views

Processor type and processor-specific code branches are automatically detected/applied by IMSDK.

CPU/GPU-implementation selecting is the responsibility of the programmer.

Jeffrey_M_Intel1
Employee
104 Views

Just to add a little to dj_alek's excellent response, the session implementation enum used in MFXInit (or Init from the MFXVideoSession class) is similar to ippInit.  If you specify MFX_IMPL_AUTO_ANY the session will use GPU HW acceleration if available on any any adapter, software if not.  In general, HW acceleration will be better performance than the SW implementation.  As with ippInitCpu, more control is there if you want it -- for example to force running in software even when the processor is capable of HW acceleration.  Within the CPU implementation processor-specific optimizations are chosen automatically.  However, the biggest performance "switch" is HW vs. SW.

Reply