changeset 6888:2dde1a1bc03a

Add the input command "change_rectangle" to control the rectangle plugin boundaries.
author kmkaplan
date Sun, 04 Aug 2002 02:22:27 +0000
parents 66427e850216
children a645ecaaa93b
files input/input.c input/input.h mplayer.c
diffstat 3 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sun Aug 04 02:21:50 2002 +0000
+++ b/input/input.c	Sun Aug 04 02:22:27 2002 +0000
@@ -70,6 +70,7 @@
   { MP_CMD_PANSCAN, "panscan",1,  { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
   { MP_CMD_LOADFILE, "loadfile", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
   { MP_CMD_LOADLIST, "loadlist", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
+  { MP_CMD_VF_CHANGE_RECTANGLE, "change_rectangle", 2, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}}}},
 
 #ifdef HAVE_NEW_GUI  
   { MP_CMD_GUI_LOADFILE, "gui_loadfile", 0, { {-1,{0}} } },
--- a/input/input.h	Sun Aug 04 02:21:50 2002 +0000
+++ b/input/input.h	Sun Aug 04 02:22:27 2002 +0000
@@ -30,6 +30,7 @@
 #define MP_CMD_MUTE 25
 #define MP_CMD_LOADFILE 26
 #define MP_CMD_LOADLIST 27
+#define MP_CMD_VF_CHANGE_RECTANGLE 28
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001
--- a/mplayer.c	Sun Aug 04 02:21:50 2002 +0000
+++ b/mplayer.c	Sun Aug 04 02:22:27 2002 +0000
@@ -2615,6 +2615,9 @@
     case MP_CMD_SCREENSHOT :
       if(vo_config_count) video_out->control(VOCTRL_SCREENSHOT, NULL);
       break;
+    case MP_CMD_VF_CHANGE_RECTANGLE:
+	set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i);
+	break;
 #ifdef USE_DVDNAV
     case MP_CMD_DVDNAV_EVENT: {
       dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv);