[vlc-devel] [PATCH 1/4] vgl: provide a module to allow rendering in a user defined opengl context

Denis Charmet typx at dinauz.org
Sat Jul 7 17:49:17 CEST 2018


Hi,

On 2018-07-04 10:06, Pierre Lamot wrote:
>> I don't really see why this needs to be exposed here. Virtualized 
>> plugins
>> generally call the initialization and deinitialization callbacks 
>> in-situ.
> 
> AFAIK, opengl modules don't have access to the picture size.
> 

Excuse my general lack of knowledge over the whole direct rendering 
pipeline and opengl but would't getting the dimensions of the picture 
defeat the whole principle of the external context?

If I may use the vmem analogy wouldn't it make more sense to have the 
virtualized plugin actually set define its dimensions to VLC and not the 
way around? If you need an external openGL context, it's usually because 
it's already externaly constrained.

Shouldn't you need 1 callback to get a texture id, one to blit it in 
your backbuffer and one to swap the back and front buffer and finally 
one to free the texture?

Regards,
-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre


More information about the vlc-devel mailing list