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?
Processor type and processor-specific code branches are automatically detected/applied by IMSDK.
CPU/GPU-implementation selecting is the responsibility of the programmer.
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.