Update of /cvsroot/mplayer/main/libvo In directory mail:/var/tmp.root/cvs-serv3818 Modified Files: vo_svga.c Log Message: new svga driver - support double buffering, fast_memcpy, direct render and HW acceleration Index: vo_svga.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -r1.63 -r1.64 --- vo_svga.c 3 Feb 2003 01:15:45 -0000 1.63 +++ vo_svga.c 20 Mar 2003 01:45:40 -0000 1.64 @@ -1,9 +1,29 @@ /* + Video driver for SVGAlib by Zoltan Mark Vician <se7en@sch.bme.hu> Code started: Mon Apr 1 23:25:47 2001 - Some changes by Matan Ziv-Av <matan@svgalib.org> + Compleat rewrite by Ivan Kalvachev 19 Mar 2003: + +Wrangings: + - 1bpp doesn't work right for me with '-double' and svgalib 1.4.3, [...1430 lines suppressed...] + (mode_capabilities & CAP_LINEAR) ){ + page=page_get_image(); + if(page >= 0){ + mpi->flags |= MP_IMGFLAG_DIRECT; + mpi->stride[0] = mode_stride; + mpi->planes[0] = PageStore[page].vbase + + y_pos*mode_stride + (x_pos*mpi->bpp)/8; + (int)mpi->priv=page; + if(verbose>2) + printf("vo_svga: direct render allocated! page=%d\n",page); + return(VO_TRUE); } - mpi->flags |= MP_IMGFLAG_DIRECT; - - return(VO_TRUE); -} + } + return(VO_FALSE); +}