diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-16 00:50:02 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-16 00:50:02 +0000 |
commit | bda27f2adc68d6065d7a7df1e6558c062efe41f1 (patch) | |
tree | 4077a416a09134894f71166eef48f9f39782fc9d /loader/dshow/inputpin.h | |
parent | fda7100c9d34a2c5dccddfd25e87193abe55a152 (diff) | |
download | mpv-bda27f2adc68d6065d7a7df1e6558c062efe41f1.tar.bz2 mpv-bda27f2adc68d6065d7a7df1e6558c062efe41f1.tar.xz |
big avifile sync - from now we have common code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1546 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/inputpin.h')
-rw-r--r-- | loader/dshow/inputpin.h | 125 |
1 files changed, 38 insertions, 87 deletions
diff --git a/loader/dshow/inputpin.h b/loader/dshow/inputpin.h index 027d17fbc6..90d21af123 100644 --- a/loader/dshow/inputpin.h +++ b/loader/dshow/inputpin.h @@ -1,5 +1,6 @@ -#ifndef INPUTPIN_H -#define INPUTPIN_H +#ifndef DS_INPUTPIN_H +#define DS_INPUTPIN_H + #include "interfaces.h" #include "guids.h" #include "iunk.h" @@ -17,61 +18,39 @@ public: IPin* GetPin() {return pin;} IPin* GetUnusedPin() {return unused_pin;} -// static long STDCALL QueryInterface(IUnknown* This, GUID* iid, void** ppv); -// static long STDCALL AddRef(IUnknown* This); -// static long STDCALL Release(IUnknown* This); - static long STDCALL GetClassID ( - IBaseFilter * This, - /* [out] */ CLSID *pClassID); - - static long STDCALL Stop ( - IBaseFilter * This); - - static long STDCALL Pause ( - IBaseFilter * This); - - static long STDCALL Run ( - IBaseFilter * This, - REFERENCE_TIME tStart); - - static long STDCALL GetState ( - IBaseFilter * This, - /* [in] */ unsigned long dwMilliSecsTimeout, -// /* [out] */ FILTER_STATE *State); - void* State); - - static long STDCALL SetSyncSource ( - IBaseFilter * This, - /* [in] */ IReferenceClock *pClock); - - static long STDCALL GetSyncSource ( - IBaseFilter * This, - /* [out] */ IReferenceClock **pClock); - - static long STDCALL EnumPins ( - IBaseFilter * This, - /* [out] */ IEnumPins **ppEnum); - - static long STDCALL FindPin ( - IBaseFilter * This, - /* [string][in] */ const unsigned short* Id, - /* [out] */ IPin **ppPin); - - static long STDCALL QueryFilterInfo ( - IBaseFilter * This, -// /* [out] */ FILTER_INFO *pInfo); - void* pInfo); - - static long STDCALL JoinFilterGraph ( - IBaseFilter * This, - /* [in] */ IFilterGraph *pGraph, - /* [string][in] */ const unsigned short* pName); - - static long STDCALL QueryVendorInfo ( - IBaseFilter * This, - /* [string][out] */ unsigned short* *pVendorInfo); + static long STDCALL GetClassID (IBaseFilter * This, + /* [out] */ CLSID *pClassID); + + static long STDCALL Stop (IBaseFilter * This); + static long STDCALL Pause (IBaseFilter * This); + static long STDCALL Run (IBaseFilter * This, REFERENCE_TIME tStart); + static long STDCALL GetState (IBaseFilter * This, + /* [in] */ unsigned long dwMilliSecsTimeout, + // /* [out] */ FILTER_STATE *State); + void* State); + + static long STDCALL SetSyncSource (IBaseFilter * This, + /* [in] */ IReferenceClock *pClock); + static long STDCALL GetSyncSource (IBaseFilter * This, + /* [out] */ IReferenceClock **pClock); + static long STDCALL EnumPins (IBaseFilter * This, + /* [out] */ IEnumPins **ppEnum); + static long STDCALL FindPin (IBaseFilter * This, + /* [string][in] */ const unsigned short* Id, + /* [out] */ IPin **ppPin); + static long STDCALL QueryFilterInfo (IBaseFilter * This, + ///* [out] */ FILTER_INFO *pInfo); + void* pInfo); + static long STDCALL JoinFilterGraph (IBaseFilter * This, + /* [in] */ IFilterGraph *pGraph, + /* [string][in] */ + const unsigned short* pName); + static long STDCALL QueryVendorInfo (IBaseFilter * This, + /* [string][out] */ + unsigned short* *pVendorInfo); }; + class CInputPin: public IPin { AM_MEDIA_TYPE type; @@ -214,52 +193,24 @@ public: /* [string][out] */ unsigned short* *pVendorInfo); }; -class CRemotePin: public IPin + +struct CRemotePin: public IPin { CBaseFilter* parent; IPin* remote_pin; static GUID interfaces[]; DECLARE_IUNKNOWN(CRemotePin) -public: CRemotePin(CBaseFilter* pt, IPin* rpin); ~CRemotePin(){delete vt;} - -// static long STDCALL QueryInterface(IUnknown* This, GUID* iid, void** ppv); -// static long STDCALL AddRef(IUnknown* This); -// static long STDCALL Release(IUnknown* This); - - static long STDCALL ConnectedTo ( - IPin * This, - /* [out] */ IPin **pPin); - - static long STDCALL QueryDirection ( - IPin * This, - /* [out] */ PIN_DIRECTION *pPinDir); - - static long STDCALL ConnectionMediaType ( - IPin * This, - /* [out] */ AM_MEDIA_TYPE *pmt); - - static long STDCALL QueryPinInfo ( - IPin * This, - /* [out] */ PIN_INFO *pInfo); - }; - -class CRemotePin2: public IPin +struct CRemotePin2: public IPin { CBaseFilter2* parent; static GUID interfaces[]; DECLARE_IUNKNOWN(CRemotePin2) -public: CRemotePin2(CBaseFilter2* parent); ~CRemotePin2(){delete vt;} - - static long STDCALL QueryPinInfo ( - IPin * This, - /* [out] */ PIN_INFO *pInfo); }; - -#endif +#endif /* DS_INPUTPIN_H */ |