From 7c4e867c4d0cf9f99d0f613111d73c49e68ecddb Mon Sep 17 00:00:00 2001 From: rtogni Date: Sun, 20 Apr 2008 21:13:17 +0000 Subject: Support for MSU SCLS (Screen Capture Lossless Codec) with SCLS.DLL codecs.conf patch by AsSlowAsHell |asslowashell | g m a i l| win32.c patch by me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26476 b3059339-0415-0410-9bf9-f77b7e298cf2 --- etc/codecs.conf | 8 ++++++++ loader/win32.c | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/etc/codecs.conf b/etc/codecs.conf index 61744e2f63..d9403c65a2 100644 --- a/etc/codecs.conf +++ b/etc/codecs.conf @@ -362,6 +362,14 @@ videocodec theora ;WIN32: +videocodec msuscls + info "MSU Screen Capture Lossless Codec" + status working + fourcc SCLS + driver vfw + dll "SCLS.DLL" + out BGR32,BGR24,BGR16 flip + videocodec cram info "Microsoft Video 1" comment "-vf palette required for 8bpp" diff --git a/loader/win32.c b/loader/win32.c index 2533d45ac5..5f96b85f72 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -4837,6 +4837,22 @@ static int exp_decode_pointer(void *ptr) return 0; } +/* Fake implementation of sdt::_Lockit::_Lockit(void) from msvcp60.dll + Needed by SCLS.DLL */ +static int exp_0Lockit_dummy(void) +{ + dbgprintf("0Lockit_dummy (??0_Lockit@std@@QAE@XZ)\n"); + return 0; +} + +/* Fake implementation of sdt::_Lockit::~_Lockit(void) from msvcp60.dll + Needed by SCLS.DLL */ +static int exp_1Lockit_dummy(void) +{ + dbgprintf("1Lockit_dummy (??1_Lockit@std@@QAE@XZ)\n"); + return 0; +} + struct exports { char name[64]; @@ -5276,6 +5292,11 @@ struct exports exp_msvcr80[]={ FF(_decode_pointer, -1) }; +struct exports exp_msvcp60[]={ + {"??0_Lockit@std@@QAE@XZ", -1, exp_0Lockit_dummy}, + {"??1_Lockit@std@@QAE@XZ", -1, exp_1Lockit_dummy} +}; + #define LL(X) \ {#X".dll", sizeof(exp_##X)/sizeof(struct exports), exp_##X}, @@ -5302,6 +5323,7 @@ struct libs libraries[]={ LL(comdlg32) LL(shlwapi) LL(msvcr80) + LL(msvcp60) }; static WIN_BOOL WINAPI ext_stubs(void) -- cgit v1.2.3