[MPlayer-dev-eng] [PATCH] LCL native decoder

Roberto Togni r_togni at libero.it
Sun Sep 1 16:19:27 CEST 2002


Hi all!

This patch adds native decoder for LCL codecs (avizlib and mszh).

MSZH works ok.
ZLIB have a few bugs left: pngfilter for rgb24 has some visual 
artifacts, and i had some troubles with normal compression level (error 
-3 in zlib).

-vc names for the two codecs are mpmszh and mpzlib

The codec is higly unoptimized, but i have no time to fix it now.

If you have any samples not decoded correctly please let me know.

Ciao,
  Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.diff
Type: text/x-makefile
Size: 1614 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020901/83084cb9/attachment.bin>
-------------- next part --------------
--- codec-cfg.c.orig	Sat Aug 31 16:23:15 2002
+++ codec-cfg.c	Sat Aug 31 16:29:49 2002
@@ -270,6 +270,7 @@
 		"svq1",
 		"xvid",
 		"libdv",
+		"lcl",
 		NULL
 	};
         char **drv=audioflag?audiodrv:videodrv;
-------------- next part --------------
--- codecs.conf.orig	Fri Aug 23 21:35:27 2002
+++ codecs.conf	Sun Aug 25 16:57:24 2002
@@ -185,6 +185,20 @@
   out YUY2
   out BGR32,BGR24
 
+videocodec mpmszh
+  info "AVImszh (native codec)"
+  status working
+  fourcc MSZH
+  driver lcl
+  out BGR24
+
+videocodec mpzlib
+  info "AVIzlib (native codec)"
+  status buggy
+  fourcc ZLIB
+  driver lcl
+  out BGR24
+
 ;XAnim (slow):
 
 videocodec cvidxa
-------------- next part --------------
--- vd.c.orig	Sun Aug 18 02:23:11 2002
+++ vd.c	Fri Aug 23 22:48:34 2002
@@ -54,6 +54,7 @@
 extern vd_functions_t mpcodecs_vd_svq1;
 extern vd_functions_t mpcodecs_vd_xvid;
 extern vd_functions_t mpcodecs_vd_libdv;
+extern vd_functions_t mpcodecs_vd_lcl;
 
 vd_functions_t* mpcodecs_vd_drivers[] = {
         &mpcodecs_vd_null,
@@ -109,6 +110,7 @@
 #ifdef HAVE_LIBDV095
   &mpcodecs_vd_libdv,
 #endif
+  &mpcodecs_vd_lcl,
 	NULL
 };
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd_lcl.c
Type: text/x-c
Size: 23910 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020901/83084cb9/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list