View Single Post
Old 22nd September 2004, 22:44   #1  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
reinterpolate420 - eliminate chroma jaggyness of PAL-DV

Code:
function reinterpolate420(clip x)
{
	u=x.utoy()
	v=x.vtoy()
	
	u=u.separatefields().separatefields().selectevery(4,1,2).tomsmocomp(1,-1,0).assumefieldbased().weave()
	v=v.separatefields().separatefields().selectevery(4,1,2).tomsmocomp(1,-1,0).assumefieldbased().weave()

	ytouv(u,v,x)
}
this function will only work properly, if your DV-Decoder upsamples the interplaced YUV420 (YV12) Chroma to yuy2 using point-sampling!

the results are IMO very good:



It becomes quite useful, if you intend to deinterlace your PALDV for achieving some kind of Film-Look, for deshaking-pre-processing further filtering etc.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.

Last edited by scharfis_brain; 22nd September 2004 at 22:48.
scharfis_brain is offline   Reply With Quote