[vlc-devel] [PATCH v2 18/21] opengl: rename "glconv" capability to "glinterop"

Romain Vimont rom1v at videolabs.io
Tue Jan 7 12:41:54 CET 2020


---
 modules/hw/nvdec/nvdec_gl.c                   | 2 +-
 modules/video_output/opengl/interop_android.c | 2 +-
 modules/video_output/opengl/interop_cvpx.c    | 2 +-
 modules/video_output/opengl/interop_vaapi.c   | 2 +-
 modules/video_output/opengl/interop_vdpau.c   | 2 +-
 modules/video_output/opengl/vout_helper.c     | 2 +-
 modules/video_output/opengl/vout_helper.h     | 8 ++++----
 modules/video_output/win32/direct3d9.c        | 2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/hw/nvdec/nvdec_gl.c b/modules/hw/nvdec/nvdec_gl.c
index 5c5773a5c2..d828f6e9b5 100644
--- a/modules/hw/nvdec/nvdec_gl.c
+++ b/modules/hw/nvdec/nvdec_gl.c
@@ -46,7 +46,7 @@ static void Close(vlc_object_t *);
 
 vlc_module_begin ()
     set_description("NVDEC OpenGL surface converter")
-    set_capability("glconv", 2)
+    set_capability("glinterop", 2)
     set_callbacks(Open, Close)
     set_category(CAT_VIDEO)
     set_subcategory(SUBCAT_VIDEO_VOUT)
diff --git a/modules/video_output/opengl/interop_android.c b/modules/video_output/opengl/interop_android.c
index 488b18f36d..7bd00af687 100644
--- a/modules/video_output/opengl/interop_android.c
+++ b/modules/video_output/opengl/interop_android.c
@@ -181,7 +181,7 @@ Open(vlc_object_t *obj)
 
 vlc_module_begin ()
     set_description("Android OpenGL SurfaceTexture converter")
-    set_capability("glconv", 1)
+    set_capability("glinterop", 1)
     set_callbacks(Open, Close)
     set_category(CAT_VIDEO)
     set_subcategory(SUBCAT_VIDEO_VOUT)
diff --git a/modules/video_output/opengl/interop_cvpx.c b/modules/video_output/opengl/interop_cvpx.c
index 6cab856d40..900ec4989d 100644
--- a/modules/video_output/opengl/interop_cvpx.c
+++ b/modules/video_output/opengl/interop_cvpx.c
@@ -290,7 +290,7 @@ error:
 
 vlc_module_begin ()
     set_description("Apple OpenGL CVPX converter")
-    set_capability("glconv", 1)
+    set_capability("glinterop", 1)
     set_callbacks(Open, Close)
     set_category(CAT_VIDEO)
     set_subcategory(SUBCAT_VIDEO_VOUT)
diff --git a/modules/video_output/opengl/interop_vaapi.c b/modules/video_output/opengl/interop_vaapi.c
index a19be79ff3..3ef54130cd 100644
--- a/modules/video_output/opengl/interop_vaapi.c
+++ b/modules/video_output/opengl/interop_vaapi.c
@@ -443,7 +443,7 @@ error:
 
 vlc_module_begin ()
     set_description("VA-API OpenGL surface converter")
-    set_capability("glconv", 1)
+    set_capability("glinterop", 1)
     set_callbacks(Open, Close)
     set_category(CAT_VIDEO)
     set_subcategory(SUBCAT_VIDEO_VOUT)
diff --git a/modules/video_output/opengl/interop_vdpau.c b/modules/video_output/opengl/interop_vdpau.c
index be72632768..8375ba91f2 100644
--- a/modules/video_output/opengl/interop_vdpau.c
+++ b/modules/video_output/opengl/interop_vdpau.c
@@ -239,7 +239,7 @@ DecoderDeviceOpen(vlc_decoder_device *device, vout_window_t *window)
 
 vlc_module_begin ()
     set_description("VDPAU OpenGL surface converter")
-    set_capability("glconv", 2)
+    set_capability("glinterop", 2)
     set_callbacks(Open, Close)
     set_category(CAT_VIDEO)
     set_subcategory(SUBCAT_VIDEO_VOUT)
diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 8adc117fe4..b815d24dd4 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -611,7 +611,7 @@ opengl_init_program(vout_display_opengl_t *vgl, vlc_video_context *context,
         {
             /* Opaque chroma: load a module to handle it */
             interop->vctx = context;
-            interop->module = module_need_var(interop, "glconv", "glconv");
+            interop->module = module_need_var(interop, "glinterop", "glinterop");
         }
 
         if (interop->module != NULL)
diff --git a/modules/video_output/opengl/vout_helper.h b/modules/video_output/opengl/vout_helper.h
index 2910f82001..c5463a9cac 100644
--- a/modules/video_output/opengl/vout_helper.h
+++ b/modules/video_output/opengl/vout_helper.h
@@ -76,12 +76,12 @@
 #define add_glopts_placebo()
 #endif
 
-#define GLCONV_TEXT N_("Open GL/GLES hardware converter")
-#define GLCONV_LONGTEXT N_( \
-    "Force a \"glconv\" module.")
+#define GLINTEROP_TEXT N_("Open GL/GLES hardware interop")
+#define GLINTEROP_LONGTEXT N_( \
+    "Force a \"glinterop\" module.")
 
 #define add_glopts() \
-    add_module("glconv", "glconv", NULL, GLCONV_TEXT, GLCONV_LONGTEXT) \
+    add_module("glinterop", "glinterop", NULL, GLINTEROP_TEXT, GLINTEROP_LONGTEXT) \
     add_glopts_placebo ()
 
 typedef struct vout_display_opengl_t vout_display_opengl_t;
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 709f6de24c..ac61f7977f 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -114,7 +114,7 @@ vlc_module_begin ()
 #ifdef HAVE_GL
     add_submodule()
     set_description("DX OpenGL surface converter for D3D9")
-    set_capability("glconv", 1)
+    set_capability("glinterop", 1)
     set_callbacks(GLConvOpen, GLConvClose)
 #endif
 vlc_module_end ()
-- 
2.25.0.rc0



More information about the vlc-devel mailing list