Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Multithreading in WMF using ID3D10Multithread

$
0
0

Hi everybody,

At our company we are currently working on a real time video processing / rendering project. We are using Windows Media Foundation (WMF) for video input. One reason is the capability to decode videos on GPU using DirectX, because we are targeting 4K video resolutions which is quite calculation power consuming.

Since the product will be used in a professional video editing context, it is very important for us to have a good understanding of any impacts on performance that we may cause.

Now the question: In every code sample demonstrating the WMF usage there is one call to the function SetMultithreadProtected of ID3D10Multithread interface, setting the multithread protection to true. The documentation of this function is quite vague, so we do not understand the implications of using that function. Our understanding was, that the DirectX 11 API (which is used in the samples) is thread safe with the exception of the Immediate Context returned by the GetImmediateContext function of the ID3D11Device. So what is that additional multithread protection for? Does it impact performance, for example by heavily using locking / unlocking operations?

It would be nice to get some hints or some additional documentation / knowledge base.

Kind regards,

Michael


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>