[MPlayer-dev-eng] [PATCH] support for video codecs from Vanguard

Andreas Hess jaska at gmx.net
Mon Apr 7 21:23:36 CEST 2003


Hi,

I came across some codecs from Vanguard (http://vsofts.com/solutions.html)
today. I've added them to the codecs.conf and they need a currently not
implemented API call to access the registry, so I've added a dummy function
to implement it too. (Maybe there is a better solution?) Two of the 3 codecs
are working, the other one can't find a function, that is in an other dll.

The codecs and sample files can be found at http://vsofts.com/solutions.html .


Andreas
-------------- next part --------------
Index: etc/codecs.conf
===================================================================
RCS file: /cvsroot/mplayer/main/etc/codecs.conf,v
retrieving revision 1.269
diff -u -r1.269 codecs.conf
--- etc/codecs.conf	7 Apr 2003 10:14:06 -0000	1.269
+++ etc/codecs.conf	7 Apr 2003 19:25:56 -0000
@@ -1141,6 +1141,32 @@
   driver qtvideo
   dll "QuickTime.qts"
   out YVU9
+
+; VSS codecs (http://vsofts.com/solutions.html):
+
+videocodec vsslight
+  info "VSS Codec Light"
+  status working
+  fourcc VSSV
+  driver vfw
+  dll "vsslight.dll"
+  out BGR24 flip
+
+videocodec vssh264
+  info "VSS H.264"
+  status buggy
+  fourcc VSSH
+  driver vfw
+  dll "vssh264.dll"
+  out BGR24 flip
+
+videocodec vsswlt
+  info "VSS Wavelet Video Codec"
+  status working
+  fourcc VSSW
+  driver vfw
+  dll "vsswlt.dll"
+  out BGR24 flip
 
 ; buggy codecs:  (any volunteers for native rewrite?)
 
Index: loader/win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.77
diff -u -r1.77 win32.c
--- loader/win32.c	15 Mar 2003 15:46:32 -0000	1.77
+++ loader/win32.c	7 Apr 2003 19:26:19 -0000
@@ -1871,6 +1871,17 @@
 }
 
 /*
+ * dummy function for codecs that call RegQueryInfoKeyA(), so that they don't crash
+ */
+static DWORD WINAPI expRegQueryInfoKeyA( HKEY hkey, LPSTR class, LPDWORD class_len, LPDWORD reserved,
+                                         LPDWORD subkeys, LPDWORD max_subkey, LPDWORD max_class,
+                                         LPDWORD values, LPDWORD max_value, LPDWORD max_data,
+                                         LPDWORD security, FILETIME *modif )
+{
+    return;
+}
+
+/*
  * return CPU clock (in kHz), using linux's /proc filesystem (/proc/cpuinfo)
  */
 static double linux_cpuinfo_freq()
@@ -4869,6 +4880,7 @@
     FF(RegOpenKeyExA, -1)
     FF(RegQueryValueExA, -1)
     FF(RegSetValueExA, -1)
+    FF(RegQueryInfoKeyA, -1)
 };
 struct exports exp_gdi32[]={
     FF(CreateCompatibleDC, -1)


More information about the MPlayer-dev-eng mailing list