[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.33,1.34
Atmosfear
atmos4 at mplayer.dev.hu
Mon Oct 1 17:58:34 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main cfg-mplayer.h,1.81,1.82 dec_video.c,1.41,1.42 stheader.h,1.15,1.16 cfgparser.c,1.26,1.27
- Next message: [Mplayer-cvslog] CVS: main/DOCS documentation.html,1.61,1.62
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv30934/libvo
Modified Files:
vo_xv.c
Log Message:
New aspect prescale code, parses aspect value from mpeg sequence header or commandline.
Removed X11_FULLSCREEN hack from mplayer.c and moved it to libvo/vo_xv.c.
Added support for nominator[:/]denominator float values in cfg-parser, thanks for the code by Steve Davies.
All around thanks to Steve for helping me understanding the whole stuff :)
Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- vo_xv.c 20 Sep 2001 10:26:22 -0000 1.33
+++ vo_xv.c 1 Oct 2001 15:58:31 -0000 1.34
@@ -158,6 +158,25 @@
{
hint.width=vo_screenwidth;
hint.height=vo_screenheight;
+ /* this code replaces X11_FULLSCREEN hack in mplayer.c
+ * with libvo2 this should be unified among vo plugins
+ * besides zooming should only be done with -zoom,
+ * but I leave the old -fs behaviour so users don't get
+ * irritated for now (and send lots o' mails ;) ::atmos
+ */
+
+#ifdef X11_FULLSCREEN
+ d_height=(int)((float)vo_screenwidth/(float)dwidth*(float)dheight);
+ d_height+=d_height%2; // round
+ d_width=vo_screenwidth;
+ if(dheight>vo_screenheight){
+ d_width=(int)((float)vo_screenheight/(float)dheight*(float)dwidth);
+ d_width+=d_width%2; // round
+ d_height=vo_screenheight;
+ }
+ dwidth=d_width; dheight=d_height;
+#endif
+
}
hint.flags = PPosition | PSize;
XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &attribs);
- Previous message: [Mplayer-cvslog] CVS: main cfg-mplayer.h,1.81,1.82 dec_video.c,1.41,1.42 stheader.h,1.15,1.16 cfgparser.c,1.26,1.27
- Next message: [Mplayer-cvslog] CVS: main/DOCS documentation.html,1.61,1.62
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list