Web lists-archives.com

Re: [MPlayer-dev-eng] [PATCH] libvo: implement fs-borders.




On Thu, Feb 05, 2015 at 04:29:01PM +0100, Nicolas George wrote:
> Allow to specify extra borders in full screen mode.
> This is useful if part of the screen is unusuable,
> for example with a video projector overlapping on the
> furniture.
> ---
>  DOCS/man/en/mplayer.1 | 12 ++++++++++++
>  cfg-mplayer.h         |  4 ++++
>  libvo/video_out.c     |  4 ++++
>  libvo/video_out.h     |  4 ++++
>  libvo/vo_gl.c         |  2 ++
>  libvo/x11_common.c    | 21 ++++++++++++++++++++-
>  6 files changed, 46 insertions(+), 1 deletion(-)
> 
> 
> I have tried to refactor the geometry computation to get this working
> with several VOs directly, but it became too many different changes at once.

Which way did you try this?
I would have assumed that a combination of panscan and border_pos would
have this effect...
In fact, wouldn't (ignoring division by 0, rounding etc.
vo_border_pos_x = vo_fs_border_l / (vo_fs_border_l + vo_fs_border_r)
vo_border_pos_y = vo_fs_border_t / (vo_fs_border_t + vo_fs_border_b)
and
*w -= vo_fs_border_l + vo_fs_border_r;
*h -= vo_fs_border_t + vo_fs_border_b
in get_max_dims (aspect.c)
have the desired effect?
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng