Mercurial > mplayer.hg
annotate loader/qtx/list.c @ 36320:7129dbdaae8c
If VDPAU is available enable all VDPAU HWACCELs.
author | reimar |
---|---|
date | Fri, 09 Aug 2013 22:09:25 +0000 |
parents | 2a681e243c4c |
children |
rev | line source |
---|---|
30452
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
1 /* |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
2 * To compile edit loader/win32.c and change the #if 0 to 1 at line 1326 |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
3 * to enable quicktime fix! |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
4 * |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
5 * This file is part of MPlayer. |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
6 * |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
7 * MPlayer is free software; you can redistribute it and/or modify |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
10 * (at your option) any later version. |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
11 * |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
12 * MPlayer is distributed in the hope that it will be useful, |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
15 * GNU General Public License for more details. |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
16 * |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
18 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
fee09b258e8a
Add missing license headers to test programs for external libraries.
diego
parents:
30170
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
20 */ |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
21 |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
22 #include <stdio.h> |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
23 #include <stdlib.h> |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
24 #include <string.h> |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
25 |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
26 #include "qtxsdk/components.h" |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
27 #include "qtxsdk/select.h" |
30170
008338d7679f
Drop -Iloader from CPPFLAGS for the loader subdirectory.
diego
parents:
29263
diff
changeset
|
28 #include "loader/ldt_keeper.h" |
31344
5d0b3552ea01
Replace forward declarations by loader/wine/winbase.h #include.
diego
parents:
31342
diff
changeset
|
29 #include "loader/wine/winbase.h" |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
30 |
28599
3ff0da40013d
cosmetics: Replace unused 'argc/argv' in main declarations by 'void'.
diego
parents:
26538
diff
changeset
|
31 int main(void) { |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
32 void *handler; |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
33 ComponentDescription desc; |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
34 Component (*FindNextComponent)(Component prev,ComponentDescription* desc); |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
35 long (*CountComponents)(ComponentDescription* desc); |
5211 | 36 OSErr (*InitializeQTML)(long flags); |
37 OSErr (*EnterMovies)(void); | |
38 OSErr ret; | |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
39 |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
40 Setup_LDT_Keeper(); |
25593 | 41 handler = LoadLibraryA("/usr/local/lib/codecs/qtmlClient.dll"); |
5211 | 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); | |
49 | |
50 ret=InitializeQTML(0); | |
51 printf("InitializeQTML->%d\n",ret); | |
52 ret=EnterMovies(); | |
53 printf("EnterMovies->%d\n",ret); | |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
54 |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
55 memset(&desc,0,sizeof(desc)); |
5211 | 56 desc.componentType= (((unsigned char)'S')<<24)| |
57 (((unsigned char)'V')<<16)| | |
58 (((unsigned char)'Q')<<8)| | |
59 (((unsigned char)'5')); | |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
60 desc.componentSubType=0; |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
61 desc.componentManufacturer=0; |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
62 desc.componentFlags=0; |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
63 desc.componentFlagsMask=0; |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
28599
diff
changeset
|
64 |
26529 | 65 printf("Count = %ld\n",CountComponents(&desc)); |
26538
1b05ff23d572
Remove calls to Restore_LDT_Keeper, exit() is called immediately afterwards
diego
parents:
26537
diff
changeset
|
66 |
5209
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
67 exit(0); |
591e470e805b
simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff
changeset
|
68 } |