[MPlayer-dev-eng] mplayer -screenw -screenh patch

Tomi Ollila Tomi.Ollila at iki.fi
Mon Oct 22 15:44:28 CEST 2001


Monday Oct 22 14:30:02 +0200 2001 Felix Buenemann <atmosfear at users.sourceforge.net> wrote:

> what should it be good for? screenh and screenw is only needed for drivers 
> that don't know about screenheight and width, x11 drivers know themselves,m 
> so it's useless.

It is useful for something I wrote a week or 2 before:

My normal fullscreen resolution is  1024x768  at home

However, my Voodoo3 3000 TV -out  requires that the
display resolution is 800x600 at maximum.

So. my /etc/X11/XF86Config-4 contains:

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

ModeLine "640x480PAL"   29.50       640  675  678  944  480  530  535  625
ModeLine "800x600PAL"   36.00       800  818  820  960  600  653  655  750

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

and

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

        SubSection "Display"
                Depth     16
                Modes    "1024x768" "800x600PAL"
        EndSubSection

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

( There is also some lm-sensors trickery needed to get it working --
  I've written document of needed steps if anyone interested )

...

After my patch, running mplayer -fs -screenw 800 -screenh 600
I have borderless window located at topleft corner of the
screen -- after pressing ctrl-alt-num_keypad+ the 800x600 portion
of the desktop shows on my Television set and it is easy to position
the 800x600 sized mplayer window to cover the whole TV display.

I remember there is some other display card, where only part
of whole desktop is visible through TV-out connector of the card...
... Hey! I found the article from my XMAME archives.

" I've got an ATI rage 128 card with a TV out. The TV out works at any "
" resolution. However you can only have the "fullscreen" at 800x600 and "
" 640x480. With higher resolution, you only see a part of the screen onthe "
" TV and it scrolls automatically when the mouse pointer approach the border. "


...So, at least I think the feature here is very useful, and hope
similar feature is implemented either this way, or some other way.


> > Tomi
> >
> >
> > $ diff -c MPlayer-20011022-orig/libvo/x11_common.c
> [snip]
> -- 
> Best Regards,
> 	Atmos


Tomi



More information about the MPlayer-dev-eng mailing list