lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [MPlayer-dev-eng] [PATCH] Fix packed YUV in dshow vo



On 10/14/08, Sascha Sommer <saschasommer@xxxxxxxxxx> wrote:
> Hi,
>
> On Montag, 6. Oktober 2008, Laurent wrote:
> >
> > Though memcpy_pic is working, it seems that that directx vo also uses
> > mem2agpcpy_pic.
> > Is mem2agpcpy_pic preffered over memcpy_pic for directx?
> >
>
> I don't know what is better. I would suggest to use mem2agpcpy_pic for now so
> that at least this part of vo_directx is consistent ;) We can still convert
> the mem2agpcpy_pic calls to memcpy_pic in a later patch.

Here is the mem2agpcpy_pic version.

Thanks,

>
> Regards
>
> Sascha
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng@xxxxxxxxxxxx
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
Index: libvo/vo_directx.c
===================================================================
--- libvo/vo_directx.c	(revision 27675)
+++ libvo/vo_directx.c	(working copy)
@@ -1276,7 +1276,7 @@
 	}
 	else //packed
 	{
-        fast_memcpy( image, mpi->planes[0], image_height * dstride);
+		mem2agpcpy_pic(image, mpi->planes[0], w * (mpi->bpp / 8), h, dstride, mpi->stride[0]);
 	}
 	return VO_TRUE;
 }
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng