[vlc-devel] [PATCH 2/4] vgl: expose opengl callbacks through libvlc

Rémi Denis-Courmont remi at remlab.net
Wed Jul 4 10:45:17 CEST 2018


I don't know if the size should be exposed to the backend. But AFAIK, the size can change during the lifetime of the GL backend, so it can probably not be tied to an initialization callback. Also, I would be prepared that the size is not even known yet when the GL is needed.

Le 4 juillet 2018 11:13:57 GMT+03:00, Pierre Lamot <pierre at videolabs.io> a écrit :
>> > + * \param opaque private pointer passed to the @a
>> > libvlc_video_set_opengl_callbacks() [IN]
>> > + * \param enter true before
>> > performing the rendering, false after [IN]
>> > + * \version LibVLC 4.0.0 or
>> > later
>> > + */
>> > +typedef void (*libvlc_gl_render_cb)(void* opaque, bool enter);
>> 
>> I don't really see why this should be different from everything else
>- a post-
>> render swap callback.
>
>The idea was to let the user set up his context before rendering (ie:
>select the right FBO), I thought
>it was easier this way. This might work with a single post render swap,
>I'll try to do it this way.
>
>> In fact, special snowflake callbacks are notorious problems when
>revectoring 
>> the backends.
>
>I can make it two callbacks, but i don't think that's your point.
>
>--
>Pierre Lamot
>
>
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20180704/b2f8db54/attachment.html>


More information about the vlc-devel mailing list