I have recently compiled ffmpeg on windows and have it running inside of a .Net application, decoding mpeg frames.

After decoding a frame, I end up with an RGB byte array (RGB 24BPP). What is the highest performance way to get this image onto the screen?

Can anyone point me to some sample code which (for example) creates a DirectX overlay surface and dumps the byte array directly onto it?

What I want to avoid is any pixel by pixel conversion / pumping the image data onto the screen surface….


Thanks, and help would be MUCH appreciated!


 - Adam