I am decoding video frames from a stream and sws_scale gives me a buffer of decoded RGB image data (PIX_FMT_RGB24). I have an existing front-end application that requires the input be DIB. So I need to know how to convert this buffer to DIB?
From what I understand DIB on windows is BGR and bottom to top and requires a header. Rather than do that manually, I'm hoping this problem has already been solved. I'm also wondering maybe sws_scale can do it natively.