[vlc-devel] [RFC 2/6] libvlc: handle more than 8 bits output in external D3D rendering

Steve Lhomme robux4 at ycbcr.xyz
Tue Apr 30 11:34:34 CEST 2019


---
 include/vlc/libvlc_media_player.h | 1 +
 lib/media_player.c                | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index 51dd964600..507aee73d3 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -573,6 +573,7 @@ typedef struct
 {
     unsigned width;     /** rendering video width in pixel */
     unsigned height;    /** rendering video height in pixel */
+    unsigned bitdepth;  /** rendering video bit depth in bits per channel */
 } libvlc_video_callback_setup_t;
 
 /**
diff --git a/lib/media_player.c b/lib/media_player.c
index e04f1dab19..ebcaeeeabc 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -2086,5 +2086,6 @@ static_assert(VLC_VIDEO_SURFACE_DEVICE_SETUP       == LIBVLC_VIDEO_DEVICE_SETUP
               VLC_VIDEO_SURFACE_FINISHED_RENDERING == LIBVLC_VIDEO_FINISHED_RENDERING &&
               sizeof(vlc_video_surface_cfg_t)           == sizeof(libvlc_video_callback_setup_t) &&
               offsetof(vlc_video_surface_cfg_t, width)  == offsetof(libvlc_video_callback_setup_t, width) &&
-              offsetof(vlc_video_surface_cfg_t, height) == offsetof(libvlc_video_callback_setup_t, height)
+              offsetof(vlc_video_surface_cfg_t, height) == offsetof(libvlc_video_callback_setup_t, height) &&
+              offsetof(vlc_video_surface_cfg_t, bitdepth)  == offsetof(libvlc_video_callback_setup_t, bitdepth)
               , "video surface mismatch");
-- 
2.17.1



More information about the vlc-devel mailing list