summaryrefslogtreecommitdiffstats
path: root/loader/dshow/mediatype.h
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-13 16:13:37 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-13 16:13:37 +0000
commit4357e135eb0d26b876fad0557683d80bc7714e0e (patch)
tree334787952d83cb53b03c9d0eaf9b6645842a8e7a /loader/dshow/mediatype.h
parent429b15b71bbe9971a11b02fb8045560c748a243f (diff)
downloadmpv-4357e135eb0d26b876fad0557683d80bc7714e0e.tar.bz2
mpv-4357e135eb0d26b876fad0557683d80bc7714e0e.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24448 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/mediatype.h')
-rw-r--r--loader/dshow/mediatype.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/loader/dshow/mediatype.h b/loader/dshow/mediatype.h
index d59cb36837..9ed36eec43 100644
--- a/loader/dshow/mediatype.h
+++ b/loader/dshow/mediatype.h
@@ -7,6 +7,19 @@
#define DS_MEDIATYPE_H
#include "guids.h"
+typedef struct __attribute__((__packed__)) _MediaType
+{
+ GUID majortype; //0x0
+ GUID subtype; //0x10
+ int bFixedSizeSamples; //0x20
+ int bTemporalCompression; //0x24
+ unsigned long lSampleSize; //0x28
+ GUID formattype; //0x2c
+ IUnknown* pUnk; //0x3c
+ unsigned long cbFormat; //0x40
+ char* pbFormat; //0x44
+} AM_MEDIA_TYPE;
+
/**
* \brief print info from AM_MEDIA_TYPE structure
* =param[in] label short lable for media type