168
|
1 #ifndef GUIDS_H
|
|
2 #define GUIDS_H
|
1545
|
3
|
168
|
4 #include <com.h>
|
1545
|
5 #include <wine/winbase.h>
|
|
6 #include <wine/windef.h>
|
|
7 #include <wine/winuser.h>
|
|
8 #include <wine/vfw.h>
|
|
9 //#include <formats.h>
|
168
|
10 extern int DSHOW_DEBUG;
|
|
11 #define Debug if(DSHOW_DEBUG)
|
|
12
|
|
13 struct IUnknown;
|
|
14 typedef struct _MediaType
|
|
15 {
|
|
16 GUID majortype; //0x0
|
|
17 GUID subtype; //0x10
|
|
18 int bFixedSizeSamples; //0x20
|
|
19 int bTemporalCompression; //0x24
|
|
20 unsigned long lSampleSize; //0x28
|
|
21 GUID formattype; //0x2c
|
|
22 IUnknown *pUnk; //0x3c
|
|
23 unsigned long cbFormat; //0x40
|
|
24 char *pbFormat; //0x44
|
|
25 } AM_MEDIA_TYPE;
|
1545
|
26
|
168
|
27 typedef enum
|
|
28 {
|
|
29 PINDIR_INPUT = 0,
|
|
30 PINDIR_OUTPUT = PINDIR_INPUT + 1
|
|
31 } PIN_DIRECTION;
|
1545
|
32
|
168
|
33 typedef long long REFERENCE_TIME;
|
1545
|
34
|
168
|
35 struct RECT32
|
|
36 {
|
|
37 int left, top, right, bottom;
|
|
38 };
|
1545
|
39
|
168
|
40 typedef struct tagVIDEOINFOHEADER {
|
|
41
|
|
42 RECT32 rcSource; // The bit we really want to use
|
|
43 RECT32 rcTarget; // Where the video should go
|
|
44 unsigned long dwBitRate; // Approximate bit data rate
|
|
45 unsigned long dwBitErrorRate; // Bit error rate for this stream
|
1545
|
46 REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units)
|
168
|
47 BITMAPINFOHEADER bmiHeader;
|
1545
|
48 } VIDEOINFOHEADER;
|
168
|
49
|
|
50 typedef struct _AllocatorProperties
|
|
51 {
|
|
52 long cBuffers;
|
|
53 long cbBuffer;
|
|
54 long cbAlign;
|
|
55 long cbPrefix;
|
1545
|
56 } ALLOCATOR_PROPERTIES;
|
|
57
|
168
|
58 struct IBaseFilter;
|
1545
|
59
|
168
|
60 typedef struct _PinInfo
|
|
61 {
|
|
62 IBaseFilter *pFilter;
|
|
63 PIN_DIRECTION dir;
|
1545
|
64 unsigned short achName[128];
|
|
65 } PIN_INFO;
|
168
|
66
|
|
67 extern GUID IID_IBaseFilter;
|
|
68 extern GUID IID_IEnumPins;
|
|
69 extern GUID IID_IEnumMediaTypes;
|
|
70 extern GUID IID_IMemInputPin;
|
|
71 extern GUID IID_IMemAllocator;
|
|
72 extern GUID IID_IMediaSample;
|
|
73 extern GUID IID_DivxHidden;
|
|
74 extern GUID IID_Iv50Hidden;
|
|
75 extern GUID CLSID_DivxDecompressorCF;
|
|
76 extern GUID CLSID_IV50_Decoder;
|
|
77 extern GUID CLSID_MemoryAllocator;
|
|
78 extern GUID MEDIATYPE_Video;
|
|
79 extern GUID GUID_NULL;
|
|
80 extern GUID FORMAT_VideoInfo;
|
|
81 extern GUID MEDIASUBTYPE_RGB565;
|
|
82 extern GUID MEDIASUBTYPE_RGB555;
|
|
83 extern GUID MEDIASUBTYPE_RGB24;
|
|
84 extern GUID MEDIASUBTYPE_RGB32;
|
|
85 extern GUID MEDIASUBTYPE_YUYV;
|
|
86 extern GUID MEDIASUBTYPE_IYUV;
|
|
87 extern GUID MEDIASUBTYPE_YVU9;
|
|
88 extern GUID MEDIASUBTYPE_Y411;
|
|
89 extern GUID MEDIASUBTYPE_Y41P;
|
|
90 extern GUID MEDIASUBTYPE_YUY2;
|
|
91 extern GUID MEDIASUBTYPE_YVYU;
|
|
92 extern GUID MEDIASUBTYPE_UYVY;
|
|
93 extern GUID MEDIASUBTYPE_Y211;
|
|
94 extern GUID MEDIASUBTYPE_YV12;
|
|
95
|
|
96 #endif
|