Top-posting is frowned upon here. On date Thursday 2009-01-08 20:39:08 -0200, R?mulo Fernandes encoded:
The DIB that I have is basically an BGR array (1 byte per component) with 32-bit alignment per line. And the lines are in reverse order (last line first).
It's something like this:
| Line N | Line N-1 |... |B|G|R|B|G|R|...|B|G|R|Padding|B|G|R|B|G|R|...|B|G|R|Padding|...
The problem is not with the DIB structure, because it works without flipping. The only problem is that I'm being able make sws_scale flip it for me, if it's really possible.
I don't think sws_scale() support vertical flipping, furthermore I don't think libav* supports that kind of video frame, check libavutil/avutil.h for the definition of all the formats supported. And I still don't know how do you set the sws context, that is which source pixel format do you set. But you should be able to easily convert those frames to your favourite pixel format (supported by ffmpeg) with some routine, then use sws_scale() to convert/scale. Or even better you could add support to that format into FFmpeg itself. [...] Regards. -- ffmpeg-user random tip #7 If you're asking about problems with an ffmpeg tool, *always* post the command you're using and the complete output.