[vlc-devel] [PATCH 2/8] libvlc: add rendering callbacks for D3D11 and D3D9

Steve Lhomme robux4 at ycbcr.xyz
Tue May 7 08:46:20 CEST 2019


On 2019-05-06 17:08, Rémi Denis-Courmont wrote:
> Le maanantaina 6. toukokuuta 2019, 17.39.51 EEST Thomas Guillem a écrit :
>> + var_SetAddress( mp, "vout-cb-opaque", opaque );
>>> +    var_SetAddress( mp, "vout-cb-setup", setup_cb );
>>> +    var_SetAddress( mp, "vout-cb-cleanup", cleanup_cb );
>>> +    var_SetAddress( mp, "vout-cb-update-output", update_output_cb );
>>> +    var_SetAddress( mp, "vout-cb-swap", swap_cb );
>>> +    var_SetAddress( mp, "vout-cb-make-current", makeCurrent_cb );
>> Are we sure we can do that without doing a transformation from the libvlc
>> struct to the vlc one ?
> No. We cannot. Having the same representation does not provide aliasing in C.

OK, Romain also pointed this out. I could do it the way it's currently 
done with the OpenGL callbacks and use the libvlc prototypes in the 
display module (see vgl.c). We just have to remember that if we change 
things in the display modules we'll have to handle some wrapping there.


More information about the vlc-devel mailing list