Mercurial > mplayer.hg
annotate loader/wineacm.h @ 28422:f7ba65621809
Add checks that a D3D device is available before attempting rendering.
We may have lost the device e.g. because it became uncooperative e.g.
when using remote desktop or Vista's UAC is activated.
Patch by Georgi Petrov [gogothebee gmail com]
author | reimar |
---|---|
date | Tue, 03 Feb 2009 11:00:09 +0000 |
parents | a8ea87c71d18 |
children | 26f673ba0675 |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_WINEACM_H |
2 #define MPLAYER_WINEACM_H | |
1 | 3 /* -*- tab-width: 8; c-basic-offset: 4 -*- */ |
4 | |
5 /*********************************************************************** | |
6 * Wine specific - Win32 | |
7 */ | |
7386 | 8 |
9 | |
10 #include "wine/msacmdrv.h" | |
11 | |
12 #ifdef __cplusplus | |
13 extern "C" { | |
14 #endif /* defined(__cplusplus) */ | |
15 | |
16 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
7386
diff
changeset
|
17 typedef struct WINE_ACMDRIVERID *PWINE_ACMDRIVERID; |
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
7386
diff
changeset
|
18 typedef struct WINE_ACMDRIVER *PWINE_ACMDRIVER; |
1 | 19 |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
7386
diff
changeset
|
20 typedef struct WINE_ACMOBJ |
1 | 21 { |
22 PWINE_ACMDRIVERID pACMDriverID; | |
23 } WINE_ACMOBJ, *PWINE_ACMOBJ; | |
24 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
7386
diff
changeset
|
25 typedef struct WINE_ACMDRIVER |
1 | 26 { |
27 WINE_ACMOBJ obj; | |
28 HDRVR hDrvr; | |
29 DRIVERPROC pfnDriverProc; | |
30 PWINE_ACMDRIVER pNextACMDriver; | |
7386 | 31 int iUsage; |
1 | 32 } WINE_ACMDRIVER; |
33 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
7386
diff
changeset
|
34 typedef struct WINE_ACMSTREAM |
1 | 35 { |
36 WINE_ACMOBJ obj; | |
37 PWINE_ACMDRIVER pDrv; | |
38 ACMDRVSTREAMINSTANCE drvInst; | |
39 HACMDRIVER hAcmDriver; | |
40 } WINE_ACMSTREAM, *PWINE_ACMSTREAM; | |
41 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
7386
diff
changeset
|
42 typedef struct WINE_ACMDRIVERID |
1 | 43 { |
44 LPSTR pszFileName; | |
7386 | 45 WORD wFormatTag; |
1 | 46 HINSTANCE hInstModule; /* NULL if global */ |
47 DWORD dwProcessID; /* ID of process which installed a local driver */ | |
48 WIN_BOOL bEnabled; | |
49 PWINE_ACMDRIVER pACMDriverList; | |
50 PWINE_ACMDRIVERID pNextACMDriverID; | |
51 PWINE_ACMDRIVERID pPrevACMDriverID; | |
52 } WINE_ACMDRIVERID; | |
53 | |
54 /* From internal.c */ | |
55 extern HANDLE MSACM_hHeap; | |
56 extern PWINE_ACMDRIVERID MSACM_pFirstACMDriverID; | |
57 extern PWINE_ACMDRIVERID MSACM_pLastACMDriverID; | |
7386 | 58 |
59 PWINE_ACMDRIVERID MSACM_RegisterDriver(const char* pszFileName, | |
60 WORD wFormatTag, | |
2069 | 61 HINSTANCE hinstModule); |
1 | 62 PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p); |
63 void MSACM_UnregisterAllDrivers(void); | |
64 PWINE_ACMDRIVERID MSACM_GetDriverID(HACMDRIVERID hDriverID); | |
65 PWINE_ACMDRIVER MSACM_GetDriver(HACMDRIVER hDriver); | |
66 PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj); | |
67 | |
7386 | 68 #ifdef __cplusplus |
69 } /* extern "C" */ | |
70 #endif /* defined(__cplusplus) */ | |
71 | |
26045 | 72 #endif /* MPLAYER_WINEACM_H */ |