[MPlayer-dev-eng] [PATCH] allow highly experimental negative panscan values

Reimar D?ffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Jun 27 15:29:13 CEST 2007


Hello,
what do you think about attached patch? It allows to "zoom out" with
some vos (gl works almost fine except that for too large values it flips
the video, xv crashes or gives errors with too large but works mostly,
breaks switching out of fullscreen for gl2, others not tested).

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: cfg-mplayer.h
===================================================================
--- cfg-mplayer.h	(revision 23676)
+++ cfg-mplayer.h	(working copy)
@@ -233,7 +233,7 @@
 	// wait for v-sync (vesa)
 	{"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 	{"novsync", &vo_vsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},
-	{"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL},
+	{"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL},
 	{"panscanrange", &vo_panscanrange, CONF_TYPE_FLOAT, CONF_RANGE, -19.0, 99.0, NULL},
 
 	{"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
Index: DOCS/man/en/mplayer.1
===================================================================
--- DOCS/man/en/mplayer.1	(revision 23676)
+++ DOCS/man/en/mplayer.1	(working copy)
@@ -2954,6 +2954,10 @@
 The range controls how much of the image is cropped.
 Only works with the xv, xmga, mga, gl, gl2, quartz, macosx and xvidix
 video output drivers.
+.br
+.I NOTE:
+Values between -1 and 0 are allowed as well, but highly experimental
+and may crash or worse. Use at your own risk!
 .
 .TP
 .B \-panscanrange <-19.0\-99.0> (experimental)


More information about the MPlayer-dev-eng mailing list