Members - Reputation: 102
Posted 12 March 2012 - 08:43 AM
I have a C++ DLL which uses ffmepg to read a video. When it gets a picture, I transmit AVFrame (and put it to RGB24 format with sws_scale) to C# code thanks to a callback.
I try to display this picture with DirectX (Texture texture = Texture.FromMemory(..) ). When I convert the AVFrame to bmp, it's working but the image loses alpha canal. I would like use directly AVFrame->data but DirectX do not know how manage it !
Is someone knowning how to display an AVFrame in DirectX ?
I would like to display keyframe and the others frame.
Crossbones+ - Reputation: 7022
Posted 13 March 2012 - 12:27 PM
Members - Reputation: 112
Posted 13 March 2012 - 03:37 PM