[vlc-commits] KVA: Add VMAN-backend supports

KO Myung-Hun git at videolan.org
Fri Mar 2 16:37:26 CET 2012


vlc/vlc-2.0 | branch: master | KO Myung-Hun <komh78 at gmail.com> | Thu Feb  2 14:03:09 2012 +0900| [79ebe503216e0cf762f24d02e86b052bf087fd36] | committer: Jean-Baptiste Kempf

KVA: Add VMAN-backend supports

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 775a33e104ef7561962bc1fb3e2c7a93c53779bb)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=79ebe503216e0cf762f24d02e86b052bf087fd36
---

 modules/video_output/kva.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 3aaaf05..16a495a 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -57,9 +57,9 @@ static void Close( vlc_object_t * );
     "Select a proper video mode to be used by KVA." )
 
 static const char *const ppsz_kva_video_mode[] = {
-    "auto", "snap", "wo", "dive" };
+    "auto", "snap", "wo", "vman", "dive" };
 static const char *const ppsz_kva_video_mode_text[] = {
-    N_("Auto"), N_("SNAP"), N_("WarpOverlay!"), N_("DIVE") };
+    N_("Auto"), N_("SNAP"), N_("WarpOverlay!"), N_("VMAN"), N_("DIVE") };
 
 vlc_module_begin ()
     set_shortname( "KVA" )
@@ -138,7 +138,8 @@ static MRESULT EXPENTRY WndProc       ( HWND, ULONG, MPARAM, MPARAM );
 #define WM_VLC_FULLSCREEN_CHANGE    ( WM_USER + 2 )
 #define WM_VLC_SIZE_CHANGE          ( WM_USER + 3 )
 
-static const char *psz_video_mode[ 3 ] = {"DIVE", "WarpOverlay!", "SNAP"};
+static const char *psz_video_mode[ 4 ] = {"DIVE", "WarpOverlay!", "SNAP",
+                                          "VMAN"};
 
 static void PMThread( void *arg )
 {
@@ -246,6 +247,8 @@ static void PMThread( void *arg )
         i_kva_mode = KVAM_SNAP;
     else if( strcmp( psz_mode, "wo" ) == 0 )
         i_kva_mode = KVAM_WO;
+    else if( strcmp( psz_mode, "vman" ) == 0 )
+        i_kva_mode = KVAM_VMAN;
     else if( strcmp( psz_mode, "dive" ) == 0 )
         i_kva_mode = KVAM_DIVE;
 



More information about the vlc-commits mailing list