[vlc-devel] Re: PTZ control module for VLC
sigmunau at stud.ntnu.no
Mon Aug 23 14:02:26 CEST 2004
Video modules allready do convey information on mouse position and clicks.
The coordinates should be relative to the video(and not the window) because
this information is also in use by dvd-menus etc.
The mouse information is given through the "mouse-moved" and
"mouse-button-down" variables. The usage of these are demonstrated in the
I don't understand what more needs to be corrected for these coordinates.
On Mon, Aug 23, 2004 at 12:48:38PM +0100, Daniel M. Lambea wrote:
> Thanks for your fast reply. I've overlooked at those modules as well
> and as you point out, I think it might be a good starting point for my
> module. My concern is that I don't know how to relate display modules
> with control modules and at the same time keep them both clean and
> Thing is that I need the video-out for the user to see what's going
> on screen. Then, by clicking on the image itself, communicate with the
> PTZ controlling module (that might be running or not, of course) and
> give him the mouse coordinates (relatives to the image, not to the
> window). With that information, the PTZ module can compose a URL to
> send to the camera.
> I've already done some tests by hacking at the X11 display module. I
> can detect the mouse click and issue a msg_Dbg() call with the
> corrected mouse coordinates. "corrected" in the sense that I don't
> need information on clicks outside the real image. Therefore, clicks
> on other parts of the window are simply ignored.
> I think the mouse coordinate correction code should be done in the
> video-out module (since it's the one that is going to show the image
> to click on), and somehow tell the PTZ module that something happened.
> Two observations:
> a) coding that mouse info in the X11 module makes me think that
> other display modules will need the same code as well.
> b) coding that mouse info in the video modules break the "keep them
> clean and separate" goal. Anyways, how can I tell the PTZ module from
> the video module that "something happened"?
> Daniel M. Lambea
> > Look at the gestures module. It has a suitable module-type (and hence api)
> > as well as giving an example on how to access mouse-information.
> > Sigmund
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel