dvdnav: Support for image highlights for dvdnav menus.
[mplayer/glamo.git] / loader / qtx / list.c
blobbbf1684b5d93dc83e2a64d80d1461abbd6210da3
1 /*
2 * To compile edit loader/win32.c and change the #if 0 to 1 at line 1326
3 * to enable quicktime fix!
5 * This file is part of MPlayer.
7 * MPlayer is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * MPlayer is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <string.h>
26 #include "qtxsdk/components.h"
27 #include "qtxsdk/select.h"
28 #include "loader/ldt_keeper.h"
29 #include "loader/wine/winbase.h"
31 int main(void) {
32 void *handler;
33 ComponentDescription desc;
34 Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
35 long (*CountComponents)(ComponentDescription* desc);
36 OSErr (*InitializeQTML)(long flags);
37 OSErr (*EnterMovies)(void);
38 OSErr ret;
40 Setup_LDT_Keeper();
41 handler = LoadLibraryA("/usr/local/lib/codecs/qtmlClient.dll");
42 printf("***************************\n");
43 InitializeQTML = 0x1000c870; //GetProcAddress(handler, "InitializeQTML");
44 EnterMovies = 0x10003ac0; //GetProcAddress(handler, "EnterMovies");
45 FindNextComponent = 0x1000d5f0; //GetProcAddress(handler, "FindNextComponent");
46 CountComponents = 0x1000d5d0; //GetProcAddress(handler, "CountComponents");
47 // = GetProcAddress(handler, "");
48 printf("handler: %p, funcs: %p %p %p, %p\n", handler, InitializeQTML, EnterMovies, FindNextComponent,CountComponents);
50 ret=InitializeQTML(0);
51 printf("InitializeQTML->%d\n",ret);
52 ret=EnterMovies();
53 printf("EnterMovies->%d\n",ret);
55 memset(&desc,0,sizeof(desc));
56 desc.componentType= (((unsigned char)'S')<<24)|
57 (((unsigned char)'V')<<16)|
58 (((unsigned char)'Q')<<8)|
59 (((unsigned char)'5'));
60 desc.componentSubType=0;
61 desc.componentManufacturer=0;
62 desc.componentFlags=0;
63 desc.componentFlagsMask=0;
65 printf("Count = %ld\n",CountComponents(&desc));
67 exit(0);