CVS: main/libmpcodecs vd_real.c,1.3,1.4
Update of /cvsroot/mplayer/main/libmpcodecs In directory mail:/var/tmp.root/cvs-serv25913 Modified Files: vd_real.c Log Message: win32 dll support (non-working) Index: vd_real.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_real.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- vd_real.c 9 Jun 2002 13:45:49 -0000 1.3 +++ vd_real.c 9 Jun 2002 18:20:27 -0000 1.4 @@ -1,3 +1,5 @@ +//#define USE_WIN32_REAL_CODECS + #include <stdio.h> #include <stdlib.h> @@ -59,6 +61,8 @@ return CONTROL_UNKNOWN; } +#ifndef USE_WIN32_REAL_CODECS + /* exits program when failure */ int load_syms(char *path) { void *handle; @@ -99,6 +103,30 @@ } return 1; } + +#else + +int load_syms(char *path) { + void *handle; + Setup_LDT_Keeper(); + rv_handle = handle = LoadLibraryA(path); + printf("win32 real codec handle=%p \n",handle); + + rvyuv_custom_message = GetProcAddress(handle, "RV20toYUV420CustomMessage"); + rvyuv_free = GetProcAddress(handle, "RV20toYUV420Free"); + rvyuv_hive_message = GetProcAddress(handle, "RV20toYUV420HiveMessage"); + rvyuv_init = GetProcAddress(handle, "RV20toYUV420Init"); + rvyuv_transform = GetProcAddress(handle, "RV20toYUV420Transform"); + + if(rvyuv_custom_message && + rvyuv_free && + rvyuv_hive_message && + rvyuv_init && + rvyuv_transform) return 1; + return 0; // error +} + +#endif /* we need exact positions */ struct rv_init_t {
participants (1)
-
Arpi of Ize