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