Mercurial > mplayer.hg
comparison loader/dshow/guids.h @ 1545:da26060c81ef
big avifile sync - from now we have common code
author | arpi |
---|---|
date | Thu, 16 Aug 2001 00:50:02 +0000 |
parents | bdc4a8fc04d8 |
children | ce45cce7f7a5 |
comparison
equal
deleted
inserted
replaced
1544:558c1b03b8d0 | 1545:da26060c81ef |
---|---|
1 #ifndef GUIDS_H | 1 #ifndef GUIDS_H |
2 #define GUIDS_H | 2 #define GUIDS_H |
3 //#include <loader.h> | 3 |
4 //#include <wine/winbase.h> | |
5 #include <com.h> | 4 #include <com.h> |
6 #include <formats.h> | 5 #include <wine/winbase.h> |
6 #include <wine/windef.h> | |
7 #include <wine/winuser.h> | |
8 #include <wine/vfw.h> | |
9 //#include <formats.h> | |
7 extern int DSHOW_DEBUG; | 10 extern int DSHOW_DEBUG; |
8 #define Debug if(DSHOW_DEBUG) | 11 #define Debug if(DSHOW_DEBUG) |
9 | 12 |
10 struct IUnknown; | 13 struct IUnknown; |
11 typedef struct _MediaType | 14 typedef struct _MediaType |
18 GUID formattype; //0x2c | 21 GUID formattype; //0x2c |
19 IUnknown *pUnk; //0x3c | 22 IUnknown *pUnk; //0x3c |
20 unsigned long cbFormat; //0x40 | 23 unsigned long cbFormat; //0x40 |
21 char *pbFormat; //0x44 | 24 char *pbFormat; //0x44 |
22 } AM_MEDIA_TYPE; | 25 } AM_MEDIA_TYPE; |
26 | |
23 typedef enum | 27 typedef enum |
24 { | 28 { |
25 PINDIR_INPUT = 0, | 29 PINDIR_INPUT = 0, |
26 PINDIR_OUTPUT = PINDIR_INPUT + 1 | 30 PINDIR_OUTPUT = PINDIR_INPUT + 1 |
27 } PIN_DIRECTION; | 31 } PIN_DIRECTION; |
32 | |
28 typedef long long REFERENCE_TIME; | 33 typedef long long REFERENCE_TIME; |
29 //typedef long long LONGLONG; | 34 |
30 struct RECT32 | 35 struct RECT32 |
31 { | 36 { |
32 int left, top, right, bottom; | 37 int left, top, right, bottom; |
33 }; | 38 }; |
39 | |
34 typedef struct tagVIDEOINFOHEADER { | 40 typedef struct tagVIDEOINFOHEADER { |
35 | 41 |
36 RECT32 rcSource; // The bit we really want to use | 42 RECT32 rcSource; // The bit we really want to use |
37 RECT32 rcTarget; // Where the video should go | 43 RECT32 rcTarget; // Where the video should go |
38 unsigned long dwBitRate; // Approximate bit data rate | 44 unsigned long dwBitRate; // Approximate bit data rate |
39 unsigned long dwBitErrorRate; // Bit error rate for this stream | 45 unsigned long dwBitErrorRate; // Bit error rate for this stream |
40 REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units) | 46 REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units) |
47 BITMAPINFOHEADER bmiHeader; | |
48 } VIDEOINFOHEADER; | |
41 | 49 |
42 BITMAPINFOHEADER bmiHeader; | |
43 | |
44 } VIDEOINFOHEADER; | |
45 typedef struct _AllocatorProperties | 50 typedef struct _AllocatorProperties |
46 { | 51 { |
47 long cBuffers; | 52 long cBuffers; |
48 long cbBuffer; | 53 long cbBuffer; |
49 long cbAlign; | 54 long cbAlign; |
50 long cbPrefix; | 55 long cbPrefix; |
51 } ALLOCATOR_PROPERTIES; | 56 } ALLOCATOR_PROPERTIES; |
57 | |
52 struct IBaseFilter; | 58 struct IBaseFilter; |
59 | |
53 typedef struct _PinInfo | 60 typedef struct _PinInfo |
54 { | 61 { |
55 IBaseFilter *pFilter; | 62 IBaseFilter *pFilter; |
56 PIN_DIRECTION dir; | 63 PIN_DIRECTION dir; |
57 unsigned short achName[ 128 ]; | 64 unsigned short achName[128]; |
58 } PIN_INFO; | 65 } PIN_INFO; |
59 | |
60 | 66 |
61 extern GUID IID_IBaseFilter; | 67 extern GUID IID_IBaseFilter; |
62 extern GUID IID_IEnumPins; | 68 extern GUID IID_IEnumPins; |
63 extern GUID IID_IEnumMediaTypes; | 69 extern GUID IID_IEnumMediaTypes; |
64 extern GUID IID_IMemInputPin; | 70 extern GUID IID_IMemInputPin; |