diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-09 18:20:27 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-09 18:20:27 +0000 |
commit | 87c9f64a935cc155539c5dfa2ab307ca61035494 (patch) | |
tree | 32942fcbaaa08e481bd42a231778d7f59c5ff767 /libmpcodecs | |
parent | 8b8956b503da057c21b859dc3dad605d89ab55b2 (diff) | |
download | mpv-87c9f64a935cc155539c5dfa2ab307ca61035494.tar.bz2 mpv-87c9f64a935cc155539c5dfa2ab307ca61035494.tar.xz |
win32 dll support (non-working)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6361 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_real.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libmpcodecs/vd_real.c b/libmpcodecs/vd_real.c index 4e8b832719..fc0df97e79 100644 --- a/libmpcodecs/vd_real.c +++ b/libmpcodecs/vd_real.c @@ -1,3 +1,5 @@ +//#define USE_WIN32_REAL_CODECS + #include <stdio.h> #include <stdlib.h> @@ -59,6 +61,8 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){ return CONTROL_UNKNOWN; } +#ifndef USE_WIN32_REAL_CODECS + /* exits program when failure */ int load_syms(char *path) { void *handle; @@ -100,6 +104,30 @@ int load_syms(char *path) { 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 { short unk1; |