deintrelacing patch

Mikhail Ramendik <[email protected]> Thu, 29 Sep 2005 02:18:49 +0400
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Bjorn,

I have read the Xv source and I think I know how to fix the memory leak. But I 
can not try it, because the patch has failed to apply to the CVS which I have 
pulled yesterday. Perhaps you could just check the patched version into CVS?

My idea would be: don't create a new xv_image on switch. Rather, do the 
following:

xv_image->width = xv_image.width/2;
xv_image->height = xv_image.height*2;

or vice versa, of course.

If this does not work, one can destroy an xv_image using a mere free() call. 
It's allocated by Xmalloc which in turns points to malloc. So, just do a 
temp_xvimage=xv_image before the allocation of the new xv_image, and 
free(temp_xvimage) after that.

Seems like we have a way to a clean (but Xv-dependent) implementation of 
simple deinterlacing in ogle?

-- 
Yours, Mikhail Ramendik