Reputation: 1625
I am working on a video processing library in C# and would like to display videos on Windows XP up. For this purpose, I currently use a custom double-buffered UserControl
with overridden OnPaint
that uses Graphics.DrawImageUnscaled
. This works okay, but is not ideal.
Therefore I would like to implement a video display using hardware overlay, like so many other video players.
How do I do this? In C#? Or C/C++?
Any help is appreciated.
Upvotes: 1
Views: 4145
Reputation: 1625
I ended up using OpenGL via the excellent OpenTK library which works on Windows, Linux and Mac OS X. In effect, I copy frames into a texture which is then mapped onto a quad that fills out the entire viewport. Works like an ace.
Thanks for all your suggestions,
Christian.
Upvotes: 2