Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3044 Discussions

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

Amol_A_
Beginner
179 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
179 Views

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

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

0 Kudos
Jeffrey_M_Intel1
Employee
179 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.

0 Kudos
Reply