[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [PATCH] New image loader (Softimage PIC)
From: Bongani Hlope <bhlope () mweb ! co ! za>
Date: 2007-08-28 7:42:57
Message-ID: 200708280942.57787.bhlope () mweb ! co ! za
[Download RAW message or body]
On Tuesday 28 August 2007 09:30:25 Ruben Lopez wrote:
> Hi,
>
> I have contacted Halfdan Ingvarsson <hingvars@softimage.com> (the
> original GIMP PIC author) to agree the relicensing for our modified
> plugin. Attached you will find his answer giving permission to do the
> relicense.
>
> I am also attaching the new LGPL relicensed code.
>
> Please, tell me if you need any other change to meet the kdelibs
> requirements.
>
> It is actually a KImageIO plugin, and I thought that the best place
> would be kdelibs because it is where other similar plugins are
> distributed. If I should contact the kdegraphics team instead, please,
> let me know.
>
> Thanks in advance.
>
> Alexander Neundorf wrote:
> > On Monday 27 August 2007 08:53, Ruben Lopez wrote:
> >> Hi,
> >>
> >> At Bren Entertainment we have just ended a new image loader that should
> >> be very welcome by the animation industry. It is a loader for the
> >> Softimage PIC format. This is the default output format for the
> >> Softimage|XSI animation software.
> >
> > Very cool that you decided to contribute this to the community ! :-)
> > Not all companies do this but many keep their stuff internal :-/
> >
> > Now we just have to make sure it meets all the requirements as others
> > have pointed out.
> >
> > Bye
> > Alex
The code bellow should be called convertABGRtoRGA, becaus that is what it
does. In RGBA, red is the highest nibble so to get red you need (pixel >>
24) & 0xFF
inline unsigned convertRGBAtoABGR(unsigned pixel)
{
unsigned char r = pixel & 0xFF;
unsigned char g = (pixel >> 8) & 0xFF;
unsigned char b = (pixel >> 16) & 0xFF;
unsigned char a = (pixel >> 24) & 0xFF;
return a | (b << 8) | (g << 16) | (r << 24);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic