MediaStreamSample: Add way to create sample from Direct3D Surface
It is possible for us to get a D3DDevice from MediaStreamSource, as indicated by admins here:
I can verify that this works. But unfortunately it is not possible to create a MediaStreamSample from D3D Surface. So while we can use D3D to do hardware accelerated video decoding, it is not possible to pass the decoded samples (in a surface) to the MF pipeline through MediaStreamSource.
Please add an overload to create a MediaStreamSample from a D3D Surface. This will allow us to do full hardware accelerated video decoding.