annotate loader/dshow/guids.h @ 1597:37b81a811cb2

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