2008-02-23 14:50:55 +00:00
|
|
|
#ifndef MPLAYER_INPUTPIN_H
|
|
|
|
#define MPLAYER_INPUTPIN_H
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-03-20 00:05:27 +00:00
|
|
|
#include "interfaces.h"
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
typedef struct CBaseFilter2 CBaseFilter2;
|
|
|
|
struct CBaseFilter2
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
IBaseFilter_vt* vt;
|
2001-11-26 00:56:11 +00:00
|
|
|
DECLARE_IUNKNOWN();
|
2001-11-21 19:12:39 +00:00
|
|
|
IPin* pin;
|
|
|
|
GUID interfaces[5];
|
|
|
|
|
|
|
|
IPin* ( *GetPin )(CBaseFilter2* This);
|
|
|
|
};
|
|
|
|
|
2002-11-26 21:00:20 +00:00
|
|
|
CBaseFilter2* CBaseFilter2Create(void);
|
2001-11-21 19:12:39 +00:00
|
|
|
|
|
|
|
|
2008-01-20 17:16:39 +00:00
|
|
|
typedef struct CBaseFilter CBaseFilter;
|
|
|
|
struct CBaseFilter
|
2001-11-21 19:12:39 +00:00
|
|
|
{
|
|
|
|
IBaseFilter_vt* vt;
|
2001-11-26 00:56:11 +00:00
|
|
|
DECLARE_IUNKNOWN(); // has to match CBaseFilter2 - INHERITANCE!!
|
2001-03-20 00:05:27 +00:00
|
|
|
IPin* pin;
|
|
|
|
IPin* unused_pin;
|
2001-11-21 19:12:39 +00:00
|
|
|
GUID interfaces[2];
|
|
|
|
|
|
|
|
IPin* ( *GetPin )(CBaseFilter* This);
|
|
|
|
IPin* ( *GetUnusedPin )(CBaseFilter* This);
|
2001-03-20 00:05:27 +00:00
|
|
|
};
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
CBaseFilter* CBaseFilterCreate(const AM_MEDIA_TYPE* vhdr, CBaseFilter2* parent);
|
|
|
|
|
|
|
|
|
2002-09-13 19:43:17 +00:00
|
|
|
typedef struct
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
IPin_vt* vt;
|
2001-11-26 00:56:11 +00:00
|
|
|
DECLARE_IUNKNOWN();
|
2001-03-20 00:05:27 +00:00
|
|
|
CBaseFilter* parent;
|
2001-12-11 23:29:24 +00:00
|
|
|
AM_MEDIA_TYPE type;
|
2001-11-21 19:12:39 +00:00
|
|
|
GUID interfaces[1];
|
2002-09-13 19:43:17 +00:00
|
|
|
} CInputPin;
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
CInputPin* CInputPinCreate(CBaseFilter* parent, const AM_MEDIA_TYPE* vhdr);
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2001-08-16 00:50:02 +00:00
|
|
|
|
2002-09-13 19:43:17 +00:00
|
|
|
typedef struct
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
IPin_vt* vt;
|
2001-11-26 00:56:11 +00:00
|
|
|
DECLARE_IUNKNOWN();
|
2001-03-20 00:05:27 +00:00
|
|
|
CBaseFilter* parent;
|
2001-11-21 19:12:39 +00:00
|
|
|
GUID interfaces[1];
|
2001-11-26 00:56:11 +00:00
|
|
|
IPin* remote_pin;
|
2001-11-21 19:12:39 +00:00
|
|
|
} CRemotePin;
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2001-11-21 19:12:39 +00:00
|
|
|
CRemotePin* CRemotePinCreate(CBaseFilter* pt, IPin* rpin);
|
|
|
|
|
|
|
|
|
2002-09-13 19:43:17 +00:00
|
|
|
typedef struct
|
2001-03-20 00:05:27 +00:00
|
|
|
{
|
2001-11-21 19:12:39 +00:00
|
|
|
IPin_vt* vt;
|
2001-11-26 00:56:11 +00:00
|
|
|
DECLARE_IUNKNOWN();
|
2001-03-20 00:05:27 +00:00
|
|
|
CBaseFilter2* parent;
|
2001-11-21 19:12:39 +00:00
|
|
|
GUID interfaces[1];
|
|
|
|
} CRemotePin2;
|
|
|
|
|
|
|
|
CRemotePin2* CRemotePin2Create(CBaseFilter2* parent);
|
2001-03-20 00:05:27 +00:00
|
|
|
|
2008-02-23 14:50:55 +00:00
|
|
|
#endif /* MPLAYER_INPUTPIN_H */
|