[MPlayer-dev-eng] optimized colorspace for ALTIVEC enabled platforms

Marc Hoffman mmh at pleasantst.com
Tue Mar 9 06:21:21 CET 2004


On Mar 9, 2004, at 12:06 AM, D Richard Felker III wrote:

> On Mon, Mar 08, 2004 at 10:21:55PM -0500, Marc Hoffman wrote:
>> I would like to submit my patch for postproc.
>>
>
>
>>
>>
>
>> /*
>>   marc.hoffman at analog.com    March 8, 2004
>>
>>   Altivec Acceleration for Color Space Conversion revision 0.1
>>
>>   convert I420 YV12 to RGB in various formats,
>>     it rejects images that are not in 420 formats
>>     it rejects images that don't have widths of multiples of 16
>>     it rejects images that don't have heights of multiples of 2
>>   reject defers to C simulation codes.
>
> It shouldn't reject the whole image. Instead just convert the largest
> region it can (simple by playing around with width/height/stride) and
> then call the C version to process the small strips that remain.
>
> Rich
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
Ok I will work on the next version.  I'm thinking i can just pad the 
last block threw the loop and use the same code filling the vector 
register with zeros.  I will spend sometime on this.

Can you put this under CVS while I work out the loose ends?




More information about the MPlayer-dev-eng mailing list