[MPlayer-dev-eng] [PATCH] nvidia_vid update

Dmitry Baryshkov mitya at school.ioffe.ru
Tue Jan 6 20:50:49 CET 2004


Hello,
On Tue, Jan 06, 2004 at 07:56:23PM +0100, Sascha Sommer wrote:
> > It's to get panning work. Under X11 lower resolution (not by XRandR
> > extension, but with Ctrl-Alt-Plus), Move your desktop down. Now overlaying
> > point is wrong :(
> > Horizontal moving of desktop works, but not vertical, because bps isn't
> > correct in such modes.
> >
> > This part of patch corrects this. Now, if you have doublebuffering
> > enabled, it automagically works.
> >
> 
> In the original code it looks like this
> window->x -= (pan % overlay->buffer.bytesperline) * 8 /
> overlay->buffer.depth;
> window->y -= (pan / overlay->buffer.bytesperline);
> 
> The question is does it work with info->pitch? Or is this buffer the
> entire screen?

info->pitch = overlay->buffer.bytesperline

> Can you post some values for info->chip.PGRAPH[0x00000670/4];
> They are always 2 or 4 times the screenwidth for me.

it's the size of one line (in bytes). So in "panning" mode (I don't know
better name for it. It's that, what I described (start X11, change
resolution...)) it's not the "displaying width"*bytesperpixel, but
"virtual desktop resolution" * bpp. So it's not info->screen_x *
(info->bpp+1)/8, but info->chip.PGRAPH[0x00000670/4].

-- 
With best wishes
Dmitry Baryshkov




More information about the MPlayer-dev-eng mailing list