8 Jan
2009
8 Jan
'09
7:08 p.m.
Hello, I'm using libswscale to scale and convert pixel format from frames that I capture from the screen. In my windows build the frames that I capture are in DIB format. I'm using FFMPEG SVN rev 16437. Calling sws_scale normally I get the image correctly, except that it's vertically flipped. If I change the srcSliceY from 0 to srcHeight and srcSliceH from srcHeight to 0, I get a grey image (with correct dimensions). If I keep the srcSliceY in 0 and change srcSliceH from srcHeight to -srcHeight, I also get that grey image. Is there a way to make sws_scale flip the image for me ?