Thanks tourettes for the information.
When the output pin from my test filter is connected to the input pin of another filter I do the following:
- Get the filter of the input pin I am connecting to.
- Try to get the IBasicVideo interface from the filter. If it does not support that interface I fail.
- Query the video width and height from IBasicVideo.
- Use that width and height to play the whole GetMediaType, CheckMediaType, etc. game.
So now I have my test filter indeed rendering at the same resolution as the video itself.
My test filter is a source filter that creates an alpha bitmap with the background some transparent blue and some text that changes over time (long live the Lorem Ipsum generators on the internet for creating some nonsense text ). Because the video is still showing, but with a blue transparent window over it with some non-transparent text, I know the thing is working. Checking the CPU usage between DXVA enabled and disabled I can also verify that DXVA works.
I would really like this feature and it seems that you are already on the right track to get this done
Many, many in advance!!!