[MPlayer-dev-eng] -xpos -ypos

Peter McNeil pmcneil at eenvoy.com.au
Mon Feb 10 00:09:36 CET 2003


G'day,

We've been using MPlayer in an automated script for multimedia displays
and need x and y positioning on the screen. We noticed most vo driveers
support it and have added -xpos -ypos options and appropriate mods for
xv and x11 drivers (see attached diff on 0.90rc3). please consider
adding these options to your CVS tree. We'd be happy to apply to other
vo drivers if req.

Cheers,
Peter.

-- 
Peter McNeil
Engineering Manager
Newton Pty Ltd
http://www.newton.com.au
Ph : +61 2 6247 3544
Fax: +61 2 6247 3533

-------------- next part --------------

diff -r MPlayer-0.90rc3/cfg-mplayer.h MPlayer-0.90rc3-newton/cfg-mplayer.h
69a70,73
> 
> extern int opt_screen_pos_x; //newton mod for positioning x
> extern int opt_screen_pos_y; //newton mod for positioning y
> 
261a266,269
> 	//newton mods for positioning
> 	{"xpos", &opt_screen_pos_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},
> 	{"ypos", &opt_screen_pos_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},
> 

diff -r MPlayer-0.90rc3/libvo/vo_x11.c MPlayer-0.90rc3-newton/libvo/vo_x11.c
85a86,88
> extern int opt_screen_pos_x; //--- newton options for window position on screen
> extern int opt_screen_pos_y; //--- newton options for window position on screen
> 
246c249,256
<  vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
---
>  if (opt_screen_pos_x || opt_screen_pos_y){ //newton change for x,y positioning of image
>    vo_dx=opt_screen_pos_x;
>    vo_dy=opt_screen_pos_y;
>  }
>  else {
> 	 vo_dx=( vo_screenwidth - d_width ) / 2; 
> 	 vo_dy=( vo_screenheight - d_height ) / 2;
>  }
248c258
<  
---
>   

diff -r MPlayer-0.90rc3/libvo/vo_xv.c MPlayer-0.90rc3-newton/libvo/vo_xv.c
89a90,92
> int opt_screen_pos_x=0; //--- newton options for window position on screen
> int opt_screen_pos_y=0; //--- newton options for window position on screen
> 
283,284c286,293
< 
<  vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
---
> if (opt_screen_pos_x || opt_screen_pos_y){ //newton change for x,y position options
>    vo_dx=opt_screen_pos_x;
>    vo_dy=opt_screen_pos_y;
>  }
>  else {
>    vo_dx=( vo_screenwidth - d_width ) / 2; 
>    vo_dy=( vo_screenheight - d_height ) / 2;
>  }


More information about the MPlayer-dev-eng mailing list