It seems IMFVideoProcessorControl2::EnableHardwareEffects enables effects that were implemented with ID3D11VideoContext::VideoProcessorBlt.
Here is sample which could indicate the proper time calling EnableHardwareEffects.
Best Regards
Media Foundation IMFVideoProcessorControl2 example usage
In trying IMFVideoProcessorControl it works as expected, auto rotating the IMFSample* I receive from the source reader etc.
Now I want to try IMFVideoProcessorControl2 which, according to the site, has some hardware effect support.
However no example of that exists, for example ::EnableHardwareEffects when I call it, it returns 0xc00d36b2 : The request is invalid in the current state. Also, presumably I can enable stabilization, edge detection etc, how do I do all that.
There's also an undocumented IMFVideoProcessorControl3 inside the .h files which is also unclear if and how to use it.
-
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
2021-11-23T02:01:38.48+00:00