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.

Using ExternalThreads

Anthony_M_
Beginner
403 Views

Hi,

I am trying to use the ExternalTreads parameter of mfxInitParam structure (set to 1).

When I call MfxinitEx, it returns MFX_ERR_UNSUPPORTED.

The detected API version is 1.19.

Is there any other parameters to set ?

[System]
  OS : Windows 10 Professional
  CPU : i7-7700
  Graphic : Intel(R) HD Graphics 630 (driver version : 21.20.16.4664, date : 2017-03-05)
  Memory : DDR3 8G x 2 (Total 16G)
  SDK : Intel(R) Media SDK 2016 R2
  Compiler : Visual Studio 2010

Here is the code :

	mfxInitParam initPar;
	MSDK_ZERO_MEMORY(initPar);
	
	initPar.Version.Major = 1;
	initPar.Version.Minor = 14;
	initPar.Implementation = MFX_IMPL_HARDWARE_ANY;
	initPar.GPUCopy = MFX_GPUCOPY_ON;
	initPar.ExternalThreads = 1;

	MFXVideoSession * pmfxSession = new MFXVideoSession;
	MSDK_CHECK_POINTER(pmfxSession, MFX_ERR_MEMORY_ALLOC);  

	mfxStatus sts = pmfxSession->InitEx(initPar);
	// MSDK API version may not support multiple adapters - then try initialize on the default
	if (MFX_ERR_NONE != sts)
	{
		initPar.Implementation = (initPar.Implementation & !MFX_IMPL_HARDWARE_ANY) | MFX_IMPL_HARDWARE;
		sts = pmfxSession->InitEx(initPar);
	}       
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

Thanks

 

0 Kudos
2 Replies
Anthony_M_
Beginner
403 Views

Hi,

Does anyone have use this parameter ?

Is this parameter obsolete ?

Thanks

0 Kudos
Artem_S_Intel
Employee
403 Views

Hi Anthony, unfortunatelly it is missed from Media SDK release notes, but mfxExtThreadsParam not supported on windows.

0 Kudos
Reply