[MPlayer-dev-eng] [PATCH] pc2tv/tv2pc conversion

Michael Niedermayer michaelni at gmx.at
Thu Jul 8 02:36:32 CEST 2004


Hi

On Wednesday 07 July 2004 19:53, Nico Sabbi wrote:
> This patch extends vf_yuvcsp.c to rescale luma and chroma when
> converting from tv->pc and viceversa.
>
> Now the filter accepts an optional parameter which can be "pc2tv",
> "tv2pc" or "clamp" (the default, old algorithm).
>
> It's implemented as a LUT for performance reasons.
>
> As far as I understand how CCIR601 works, this code seems to be correct,
> but I wish someone more familiar with colorspace conversions will give
> it a look.
did u look at the tables? dont u think the pc2tv tables look strange?

btw, ideally the code should do some dithering instead of rounding each sample 
to the nearest color, because this introduces systematically duplicate / 
missing colors, which is vissible if the gamma correction is broken for 
example

[...]
-- 
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