[MPlayer-dev-eng] [PATCH] altivec color space conversion codes

Michael Niedermayer michaelni at gmx.at
Mon May 10 17:14:14 CEST 2004


Hi

On Monday 10 May 2004 14:35, Marc Hoffman wrote:
> should I just do the constant calcs as a preamble to the loop?  And pre
> multiply the Y's and you will be happy?
it is up to u how to implement it, as long as its approximately correct, 
correct here means that u use the coefficients and offsets calculated in 
sws_setColorspaceDetails(), that means if the user selects the common YCbCr 
colorspace with Y=16..235 then black is Y=16 not 0, and if the level is 
different due to brightness and contrast settings this must be followed

>
> Now I still have the set of static globals which need to be moved
> SwScale structure Michael can you give me some very a hole to stick
> them into.  

> Can I just add these 6 elements to the SwsContext 
> structure, 
yes

[...]

-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list