Mercurial > mplayer.hg
comparison loader/qtx/qtxload.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | 3ff0da40013d |
children | 008338d7679f |
comparison
equal
deleted
inserted
replaced
29262:7d545a6b8aff | 29263:0f1b5b68af32 |
---|---|
25 void* LoadLibraryA(char* name); | 25 void* LoadLibraryA(char* name); |
26 void* GetProcAddress(void* handle,char* func); | 26 void* GetProcAddress(void* handle,char* func); |
27 | 27 |
28 #define __stdcall __attribute__((__stdcall__)) | 28 #define __stdcall __attribute__((__stdcall__)) |
29 #define __cdecl __attribute__((__cdecl__)) | 29 #define __cdecl __attribute__((__cdecl__)) |
30 #define APIENTRY | 30 #define APIENTRY |
31 | 31 |
32 unsigned int* x_table[0x00001837]; | 32 unsigned int* x_table[0x00001837]; |
33 | 33 |
34 static OSErr (*InitializeQTML)(long flags); | 34 static OSErr (*InitializeQTML)(long flags); |
35 | 35 |
58 compcall = GetProcAddress(handler, "CallComponent"); | 58 compcall = GetProcAddress(handler, "CallComponent"); |
59 compcallws = GetProcAddress(handler, "CallComponentFunctionWithStorage"); | 59 compcallws = GetProcAddress(handler, "CallComponentFunctionWithStorage"); |
60 | 60 |
61 InitializeQTML = 0x6299e590;//GetProcAddress(handler, "InitializeQTML"); | 61 InitializeQTML = 0x6299e590;//GetProcAddress(handler, "InitializeQTML"); |
62 InitializeQTML(6+16); | 62 InitializeQTML(6+16); |
63 | 63 |
64 printf("loading svq3\n"); | 64 printf("loading svq3\n"); |
65 handler2= LoadLibraryA("/root/.wine/fake_windows/Windows/System/QuickTime/QuickTimeEssentials.qtx"); | 65 handler2= LoadLibraryA("/root/.wine/fake_windows/Windows/System/QuickTime/QuickTimeEssentials.qtx"); |
66 printf("done\n"); | 66 printf("done\n"); |
67 dispatcher = GetProcAddress(handler2, "SMD_ComponentDispatch"); | 67 dispatcher = GetProcAddress(handler2, "SMD_ComponentDispatch"); |
68 // handler = expLoadLibraryA("/usr/local/lib/codecs/On2_VP3.qtx"); | 68 // handler = expLoadLibraryA("/usr/local/lib/codecs/On2_VP3.qtx"); |
80 desc.componentType=0; | 80 desc.componentType=0; |
81 desc.componentSubType=0; | 81 desc.componentSubType=0; |
82 desc.componentManufacturer=0; | 82 desc.componentManufacturer=0; |
83 desc.componentFlags=0; | 83 desc.componentFlags=0; |
84 desc.componentFlagsMask=0; | 84 desc.componentFlagsMask=0; |
85 | 85 |
86 params = malloc(sizeof(ComponentParameters)+2048); | 86 params = malloc(sizeof(ComponentParameters)+2048); |
87 | 87 |
88 params->flags = 0; | 88 params->flags = 0; |
89 params->paramSize = 4; | 89 params->paramSize = 4; |
90 params->what = kComponentOpenSelect; | 90 params->what = kComponentOpenSelect; |