- June 10, 2008
- 24
- 8
I have written a custom directshow source filter, which outputs an bitmap with alpha channel with the text "Hello world!" rendered in a subtitle kind of way. By connecting the decoder (MPCVideoDec with DXVA enabled) to pin 1 on the VMR9 filter and my custom filter on pin 2, I get that text rendered over the video. By both running with DXVA enabled and disabled and watching CPU usage, I can confirm that my method works in combination with DXVA enabled.
This could form the basic for a directshow filter that converts a subtitle stream into bitmaps with alpha channel with the subtitles rendered in those. That way we could have DXVA enabled and subtitles. Since it is a directshow filter, it could be used by many different players.
This could form the basic for a directshow filter that converts a subtitle stream into bitmaps with alpha channel with the subtitles rendered in those. That way we could have DXVA enabled and subtitles. Since it is a directshow filter, it could be used by many different players.