[Mplayer-cvslog] CVS: main dec_video.c,1.105,1.106
Nick Kurshev
nick at mplayer.dev.hu
Sun Feb 17 16:55:00 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv18396/main
Modified Files:
dec_video.c
Log Message:
Allow using direct rendering with any HW pitches (even on matrox g400).
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- dec_video.c 17 Feb 2002 12:22:00 -0000 1.105
+++ dec_video.c 17 Feb 2002 15:54:58 -0000 1.106
@@ -783,11 +783,19 @@
static bes_da_t bda;
void init_video_vaa( unsigned width )
{
+ unsigned adp;
memset(&bda,0,sizeof(bes_da_t));
if(vo_vaa.query_bes_da)
use_dr = vo_vaa.query_bes_da(&bda) ? 0 : 1;
if(!vaa_use_dr) use_dr = 0;
- use_dr_422 = use_dr && bda.dest.pitch.y == 16 && (width*2+15)&~15 == width*2;
+ if(use_dr)
+ {
+ uint32_t sstride,dstride;
+ sstride=width*2;
+ adp = bda.dest.pitch.y-1;
+ dstride=(width*2+adp)&~adp;
+ if(sstride == dstride) use_dr_422 = 1;
+ }
}
#ifdef USE_LIBVO2
More information about the MPlayer-cvslog
mailing list