[Ffmpeg-devel] Bug in img_convert

Anders Moden ffmpeg
Wed Aug 30 13:20:12 CEST 2006

30 aug 2006 kl. 13.12 skrev Luca Abeni:

> Hi Anders,
> On Tue, 2006-08-29 at 18:42 +0200, Anders Moden wrote:
>> There seems to be no conversion from rgb24 to abgr32.
> You are talking about PIX_FMT_ABGR, right?

yes. I was so eager that I didn't look up the right define. There  
seemes to be some endian stuff in the defines that set ABGR or RGBA.  
Why don't you name the format in byte order in memory ?

> It has been added to libavutil only recently, and no conversion  
> routines
> for it exist yet.
> Conversion from/to PIX_FMT_ABGR will be supported in a short time
> through libswscale.

Great. I saw that libswscale was going LGPL. Does libswscale do a  
better conversion without the interrim steps of rgb24 ? As it is now  
there is a rgb24 image created before the rgb32 is created.

>> When converting from rgb24 to abgr32 the img_convert routine ends up
>> in creating interim images of rgb24 and end up in a endless loop.
> This is obviously a bug; I'll look at it. Thanks for noticing and
> reporting it.

ok. Thanx your self for talking to me. Lots of messages are never  
answered here...

I have a "stretch" routine that enlarges a bitmap (x,y) RGB32 (long  
word) to a (xp,yp) RGB32 bitmap where xp,yp is power of two. Could  
this be of use in libswscale ?


More information about the ffmpeg-devel mailing list