ホーム › Media.DirectShow › IMemInputPin
IMemInputPin
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetAllocator(IMemAllocator** ppAllocator)
| ppAllocator | IMemAllocator** | out | この入力ピンが使用するメモリアロケータを受け取る出力先。 |
vtbl 4 HRESULT NotifyAllocator(IMemAllocator* pAllocator, BOOL bReadOnly)
| pAllocator | IMemAllocator* | in | 上流ピンが使用するよう通知するアロケータを指定する。 |
| bReadOnly | BOOL | in | バッファが読み取り専用であるか否かを示す真偽値。 |
vtbl 5 HRESULT GetAllocatorRequirements(ALLOCATOR_PROPERTIES* pProps)
| pProps | ALLOCATOR_PROPERTIES* | out | この入力ピンが要求するアロケータ要件(ALLOCATOR_PROPERTIES)を受け取る出力先。 |
vtbl 6 HRESULT Receive(IMediaSample* pSample)
| pSample | IMediaSample* | in | 上流から渡されるメディアサンプルを指定する入力。 |
vtbl 7 HRESULT ReceiveMultiple(IMediaSample** pSamples, INT nSamples, INT* nSamplesProcessed)
| pSamples | IMediaSample** | in | 渡す複数のメディアサンプルへのポインタ配列。 |
| nSamples | INT | in | pSamples配列に含まれるサンプル数。 |
| nSamplesProcessed | INT* | out | 実際に受理されたサンプル数を受け取る出力先。 |
vtbl 8 HRESULT ReceiveCanBlock()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMemInputPin "{56A8689D-0AD4-11CE-B03A-0020AF0BA770}" #usecom global IMemInputPin IID_IMemInputPin "{}" #comfunc global IMemInputPin_GetAllocator 3 sptr #comfunc global IMemInputPin_NotifyAllocator 4 sptr,int #comfunc global IMemInputPin_GetAllocatorRequirements 5 var #comfunc global IMemInputPin_Receive 6 sptr #comfunc global IMemInputPin_ReceiveMultiple 7 sptr,int,var #comfunc global IMemInputPin_ReceiveCanBlock 8 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMemInputPin "{56A8689D-0AD4-11CE-B03A-0020AF0BA770}" #usecom global IMemInputPin IID_IMemInputPin "{}" #comfunc global IMemInputPin_GetAllocator 3 sptr #comfunc global IMemInputPin_NotifyAllocator 4 sptr,int #comfunc global IMemInputPin_GetAllocatorRequirements 5 sptr #comfunc global IMemInputPin_Receive 6 sptr #comfunc global IMemInputPin_ReceiveMultiple 7 sptr,int,sptr #comfunc global IMemInputPin_ReceiveCanBlock 8 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。