question

MichaelChourdakis-9912 avatar image
0 Votes"
MichaelChourdakis-9912 asked XiaopoYang-MSFT edited

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.




windows-apic++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XiaopoYang-MSFT avatar image
0 Votes"
XiaopoYang-MSFT answered XiaopoYang-MSFT edited

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.