[vlc-devel] [PATCH] vout: add an OpenGL ES 2.0 vout display module for Android.
Rémi Denis-Courmont
remi at remlab.net
Tue Jan 7 20:30:15 CET 2014
Le mardi 7 janvier 2014, 19:19:46 Felix Abecassis a écrit :
> 2014/1/7 Rémi Denis-Courmont <remi at remlab.net>:
> > Uh? Obviously events generated by the windowing system from outside VLC
> > are
> > sent by the windowing system *to* the display plugin or window plugin, and
> > from the plugin to the core, not the other way around. I don't see how
> > that
> > would make any sense.
>
> I'm not sure I understand what you mean when you say the event is
> passed from the plugin to the "core". Let me describe the process from
> my understanding and tell me if it is flawed or if we don't have the
> same vocabulary.
Sorry I can't follow you.
Events like window resize are generated by the windowing system. That's how
things are. VLC has no say in this. This stuff gets passed onto VLC by
platform-specific mechanism. In Android, that is made with the JNI calls; in
X11, with X11 events on the X11 socket. The plugin translate it those events
into the VLC abstraction, before the VLC core handles them in whatever way.
There are also "events" coming *from* the core to the plugins. But usually,
these take the form of a callback invocation, notably pf_control(), and we do
not refer to them as events.
Point being, catching and translating windowing system events should be the
role of the vout window plugins, instead now of the vout display plugins.
Reason is, those events are dependent on the windowing API, not the rendering
API.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list