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

Nico Sabbi nsabbi at tiscali.it
Wed Jul 7 19:53:14 CEST 2004


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.

I also attached the source of the program that I wrote to convert the
values between the two color spaces, so checking is easier.

Thanks,
	Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_yuvcsp.diff
Type: text/x-patch
Size: 9409 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040707/43c1d4a8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CCIR601.c
Type: text/x-c
Size: 1603 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040707/43c1d4a8/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list