Mercurial > mplayer.hg
comparison loader/dshow/guids.h @ 24428:4691811bd8c7
Move AM_MEDIA_TYPE structure definition to mediatype.h.
Make inclusion of com.h and wine/*.h conditional,
this will allow reusing of mediatype.c code under MinGW
without requirement to include all remaining wine/* stuff.
author | voroshil |
---|---|
date | Thu, 13 Sep 2007 16:13:37 +0000 |
parents | 9533c26c0806 |
children | a8ea87c71d18 |
comparison
equal
deleted
inserted
replaced
24427:50159082a80b | 24428:4691811bd8c7 |
---|---|
1 #ifndef DS_GUIDS_H | 1 #ifndef DS_GUIDS_H |
2 #define DS_GUIDS_H | 2 #define DS_GUIDS_H |
3 | 3 |
4 /* | |
5 this will be defined if <ole2.h> already included before this file | |
6 under MinGW | |
7 */ | |
8 | |
9 #ifndef GUID_DEFINED | |
4 #include "com.h" | 10 #include "com.h" |
11 #endif | |
12 | |
13 #ifndef VFWAPI | |
5 #include "wine/module.h" | 14 #include "wine/module.h" |
6 #include "wine/windef.h" | 15 #include "wine/windef.h" |
7 #include "wine/vfw.h" | 16 #include "wine/vfw.h" |
17 #endif | |
18 | |
19 #include "mediatype.h" | |
8 | 20 |
9 //#define Debug if(1) | 21 //#define Debug if(1) |
10 #define Debug if(0) | 22 #define Debug if(0) |
11 | 23 |
12 typedef struct __attribute__((__packed__)) _MediaType | |
13 { | |
14 GUID majortype; //0x0 | |
15 GUID subtype; //0x10 | |
16 int bFixedSizeSamples; //0x20 | |
17 int bTemporalCompression; //0x24 | |
18 unsigned long lSampleSize; //0x28 | |
19 GUID formattype; //0x2c | |
20 IUnknown* pUnk; //0x3c | |
21 unsigned long cbFormat; //0x40 | |
22 char* pbFormat; //0x44 | |
23 } AM_MEDIA_TYPE; | |
24 | 24 |
25 typedef long long REFERENCE_TIME; | 25 typedef long long REFERENCE_TIME; |
26 | 26 |
27 typedef struct __attribute__((__packed__)) RECT32 | 27 typedef struct __attribute__((__packed__)) RECT32 |
28 { | 28 { |