[vlc-commits] vout: update priority rules to account for SPU blending

Rémi Denis-Courmont git at videolan.org
Fri Dec 12 16:31:42 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 12 17:26:55 2014 +0200| [378ac85a61b3d0aed82eae2177287a899699de2b] | committer: Rémi Denis-Courmont

vout: update priority rules to account for SPU blending

This moves Direct3D on Windows (with no effects on actual order) and
OpenGL on Linux/BSD (now exceeding XVideo thanks shaders and blending).

It remains to be decided whether OpenGL should be increased on Windows;
in principles, it should have a higher priority than D2D and DDraw.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=378ac85a61b3d0aed82eae2177287a899699de2b
---

 modules/video_output/README         |    3 ++-
 modules/video_output/gl.c           |    6 +++---
 modules/video_output/msw/direct3d.c |    2 +-
 modules/video_output/xcb/glx.c      |    2 +-
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/video_output/README b/modules/video_output/README
index c4feb1a..cf1d810 100644
--- a/modules/video_output/README
+++ b/modules/video_output/README
@@ -4,13 +4,14 @@ Video output display plugins
 Priority rules
 ---------------
 
-The priorities ranges are as follows since February 2011:
+The priorities ranges are as follows since December 2014:
 
  - less than  20: console (text)
  - less than  50: plain frame buffers
  - less than 100: no embedded windowing
  - less than 150: SW scaling
  - less than 200: SW chroma conversion
+ - less than 250: SW subpicture blending
  - rest: good stuff :-)
 
 No more than one plugin with a given non-zero riority.
diff --git a/modules/video_output/gl.c b/modules/video_output/gl.c
index a2d97a0..392ffa1 100644
--- a/modules/video_output/gl.c
+++ b/modules/video_output/gl.c
@@ -49,7 +49,7 @@ vlc_module_begin ()
 # define MODULE_VARNAME "gles2"
     set_shortname (N_("OpenGL ES2"))
     set_description (N_("OpenGL for Embedded Systems 2 video output"))
-    set_capability ("vout display", /*165*/0)
+    set_capability ("vout display", /*265*/0)
     set_callbacks (Open, Close)
     add_shortcut ("opengles2", "gles2")
     add_module ("gles2", "opengl es2", NULL,
@@ -60,7 +60,7 @@ vlc_module_begin ()
 # define MODULE_VARNAME "gles"
     set_shortname (N_("OpenGL ES"))
     set_description (N_("OpenGL for Embedded Systems video output"))
-    set_capability ("vout display", /*160*/0)
+    set_capability ("vout display", /*260*/0)
     set_callbacks (Open, Close)
     add_shortcut ("opengles", "gles")
     add_module ("gles", "opengl es", NULL,
@@ -72,7 +72,7 @@ vlc_module_begin ()
     set_description (N_("OpenGL video output (experimental)"))
     set_category (CAT_VIDEO)
     set_subcategory (SUBCAT_VIDEO_VOUT)
-    set_capability ("vout display", /*170*/0)
+    set_capability ("vout display", /*270*/0)
     set_callbacks (Open, Close)
     add_shortcut ("opengl", "gl")
     add_module ("gl", "opengl", NULL,
diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 6e141f4..73b0f44 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -89,7 +89,7 @@ vlc_module_begin ()
         change_string_cb(FindShadersCallback)
     add_loadfile("direct3d-shader-file", NULL, PIXEL_SHADER_FILE_TEXT, PIXEL_SHADER_FILE_LONGTEXT, false)
 
-    set_capability("vout display", 240)
+    set_capability("vout display", 280)
     add_shortcut("direct3d")
     set_callbacks(Open, Close)
 
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index ced6a17..bb5c789 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -49,7 +49,7 @@ vlc_module_begin ()
     set_description (N_("OpenGL GLX video output (XCB)"))
     set_category (CAT_VIDEO)
     set_subcategory (SUBCAT_VIDEO_VOUT)
-    set_capability ("vout display", 150)
+    set_capability ("vout display", 250)
     set_callbacks (Open, Close)
 
     add_shortcut ("xcb-glx", "glx", "opengl", "xid")



More information about the vlc-commits mailing list