[vlc-devel] [PATCH 03/18] libvlc: make the OpenGL host tell the rendering colorimetry it's using

Rémi Denis-Courmont remi at remlab.net
Tue Feb 4 19:52:29 CET 2020


Le tiistaina 4. helmikuuta 2020, 17.25.58 EET Steve Lhomme a écrit :
> diff --git a/include/vlc/libvlc_media_player.h
> b/include/vlc/libvlc_media_player.h index 70970f8c104..940059f044d 100644
> --- a/include/vlc/libvlc_media_player.h
> +++ b/include/vlc/libvlc_media_player.h
> @@ -521,15 +521,29 @@ typedef bool (*libvlc_video_setup_cb)(void* opaque);
>   */
>  typedef void (*libvlc_video_cleanup_cb)(void* opaque);
> 
> +typedef struct
> +{
> +    int surface_format;  /** the rendering DXGI_FORMAT for \ref
> libvlc_video_direct3d_engine_d3d11,
> +                          D3DFORMAT
> for \ref libvlc_video_direct3d_engine_d3d9, +                         
> GL_RGBA or GL_RGB for \ref libvlc_video_engine_opengl and +                
>          for \ref libvlc_video_engine_gles2 */

How do we know that 'int' works for all rendering APIs?

-- 
Реми Дёни-Курмон
http://www.remlab.net/





More information about the vlc-devel mailing list