2001-03-20 00:05:27 +00:00
|
|
|
#ifndef GUIDS_H
|
|
|
|
#define GUIDS_H
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-10-04 02:21:47 +00:00
|
|
|
#include "com.h"
|
2001-12-11 23:29:24 +00:00
|
|
|
#include "wine/module.h"
|
|
|
|
#include "wine/windef.h"
|
2001-10-04 02:21:47 +00:00
|
|
|
#include "wine/vfw.h"
|
|
|
|
|
2001-03-20 00:05:27 +00:00
|
|
|
extern int DSHOW_DEBUG;
|
|
|
|
#define Debug if(DSHOW_DEBUG)
|
|
|
|
|
2001-12-11 23:29:24 +00:00
|
|
|
typedef struct __attribute__((__packed__)) _MediaType
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
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
|
2001-12-11 23:29:24 +00:00
|
|
|
char* pbFormat; //0x44
|
2001-03-20 00:05:27 +00:00
|
|
|
} AM_MEDIA_TYPE;
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-03-20 00:05:27 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
2001-12-11 23:29:24 +00:00
|
|
|
PINDIR_INPUT = 0,
|
|
|
|
PINDIR_OUTPUT
|
2001-03-20 00:05:27 +00:00
|
|
|
} PIN_DIRECTION;
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-03-20 00:05:27 +00:00
|
|
|
typedef long long REFERENCE_TIME;
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-12-11 23:29:24 +00:00
|
|
|
typedef struct __attribute__((__packed__)) RECT32
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
|
|
|
int left, top, right, bottom;
|
2001-11-21 19:12:39 +00:00
|
|
|
} RECT32;
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-12-11 23:29:24 +00:00
|
|
|
typedef struct __attribute__((__packed__)) tagVIDEOINFOHEADER {
|
2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
RECT32 rcSource; // The bit we really want to use
|
|
|
|
RECT32 rcTarget; // Where the video should go
|
|
|
|
unsigned long dwBitRate; // Approximate bit data rate
|
|
|
|
unsigned long dwBitErrorRate; // Bit error rate for this stream
|
2001-08-16 00:50:02 +00:00
|
|
|
REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units)
|
2001-12-11 23:29:24 +00:00
|
|
|
BITMAPINFOHEADER bmiHeader;
|
|
|
|
//int reserved[3];
|
2001-03-20 00:05:27 +00:00
|
|
|
} VIDEOINFOHEADER;
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-03-20 00:05:27 +00:00
|
|
|
typedef struct _AllocatorProperties
|
|
|
|
{
|
|
|
|
long cBuffers;
|
|
|
|
long cbBuffer;
|
|
|
|
long cbAlign;
|
|
|
|
long cbPrefix;
|
2001-08-16 00:50:02 +00:00
|
|
|
} ALLOCATOR_PROPERTIES;
|
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
typedef struct _IBaseFilter IBaseFilter;
|
2001-03-20 00:05:27 +00:00
|
|
|
typedef struct _PinInfo
|
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
IBaseFilter* pFilter;
|
2001-03-20 00:05:27 +00:00
|
|
|
PIN_DIRECTION dir;
|
2001-08-16 00:50:02 +00:00
|
|
|
unsigned short achName[128];
|
|
|
|
} PIN_INFO;
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
|
2001-03-20 00:05:27 +00:00
|
|
|
extern GUID IID_IBaseFilter;
|
|
|
|
extern GUID IID_IEnumPins;
|
|
|
|
extern GUID IID_IEnumMediaTypes;
|
|
|
|
extern GUID IID_IMemInputPin;
|
|
|
|
extern GUID IID_IMemAllocator;
|
|
|
|
extern GUID IID_IMediaSample;
|
|
|
|
extern GUID IID_DivxHidden;
|
|
|
|
extern GUID IID_Iv50Hidden;
|
|
|
|
extern GUID CLSID_DivxDecompressorCF;
|
2001-11-21 19:12:39 +00:00
|
|
|
extern GUID IID_IDivxFilterInterface;
|
2001-03-20 00:05:27 +00:00
|
|
|
extern GUID CLSID_IV50_Decoder;
|
|
|
|
extern GUID CLSID_MemoryAllocator;
|
|
|
|
extern GUID MEDIATYPE_Video;
|
|
|
|
extern GUID GUID_NULL;
|
|
|
|
extern GUID FORMAT_VideoInfo;
|
|
|
|
extern GUID MEDIASUBTYPE_RGB565;
|
|
|
|
extern GUID MEDIASUBTYPE_RGB555;
|
|
|
|
extern GUID MEDIASUBTYPE_RGB24;
|
|
|
|
extern GUID MEDIASUBTYPE_RGB32;
|
|
|
|
extern GUID MEDIASUBTYPE_YUYV;
|
|
|
|
extern GUID MEDIASUBTYPE_IYUV;
|
|
|
|
extern GUID MEDIASUBTYPE_YVU9;
|
|
|
|
extern GUID MEDIASUBTYPE_Y411;
|
|
|
|
extern GUID MEDIASUBTYPE_Y41P;
|
|
|
|
extern GUID MEDIASUBTYPE_YUY2;
|
|
|
|
extern GUID MEDIASUBTYPE_YVYU;
|
|
|
|
extern GUID MEDIASUBTYPE_UYVY;
|
|
|
|
extern GUID MEDIASUBTYPE_Y211;
|
|
|
|
extern GUID MEDIASUBTYPE_YV12;
|
2002-06-23 16:03:08 +00:00
|
|
|
extern GUID MEDIASUBTYPE_I420;
|
2001-03-20 00:05:27 +00:00
|
|
|
|
|
|
|
#endif
|