[vlc-devel] [PATCH] - issue with mouse-x/mouse-y on Linux
Rémi Denis-Courmont
rem at videolan.org
Wed Feb 11 19:44:13 CET 2009
Le mercredi 11 février 2009 19:54:06 brezhoneg1, vous avez écrit :
> Now, do we need [ p_vout->fmt_in.i_x_offset,
> p_vout->fmt_in.i_visible_width + p_vout->fmt_in.i_x_offset ] as the
> range of value is another question ? But, if this formula is used, this
> is the segment that results from it.
mouse-x and mouse-y are used by plugins to determine where (in the original
format reference) the user clicks. DVD menus and puzzles are the two users
that I know. IMHO, no matter how you look at it, there is no way to obtain a
general correct formula with non zero offsets. As far as I understand, the
video offsets is nothing but the amount of padding at the beginning of each
scan line and the number of initial unused scan lines.
How that corelates to the original width should not be known. IMHO, this is
just yet another bug in the video filter architecture. The mouse coordinates
should be translated by filters as appropriate. Anyway, that exceeds my
competences already.
--
Rémi Denis-Courmont
http://git.remlab.net/cgi-bin/gitweb.cgi?p=vlc-courmisch.git;a=summary
More information about the vlc-devel
mailing list