ホーム › Media.KernelStreaming › IKsAllocator
IKsAllocator
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HANDLE KsGetAllocatorHandle()
vtbl 4 KSALLOCATORMODE KsGetAllocatorMode()
vtbl 5 HRESULT KsGetAllocatorStatus(KSSTREAMALLOCATOR_STATUS* AllocatorStatus)
| AllocatorStatus | KSSTREAMALLOCATOR_STATUS* | out | アロケータのフレーム数や状態を受け取る KSSTREAMALLOCATOR_STATUS 構造体ポインタ。 |
vtbl 6 void KsSetAllocatorMode(KSALLOCATORMODE Mode)
| Mode | KSALLOCATORMODE | in | アロケータの動作モードを表す KSALLOCATORMODE 列挙値を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IKsAllocator "{8DA64899-C0D9-11D0-8413-0000F822FE8A}" #usecom global IKsAllocator IID_IKsAllocator "{}" #comfunc global IKsAllocator_KsGetAllocatorHandle 3 #comfunc global IKsAllocator_KsGetAllocatorMode 4 #comfunc global IKsAllocator_KsGetAllocatorStatus 5 var #comfunc global IKsAllocator_KsSetAllocatorMode 6 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IKsAllocator "{8DA64899-C0D9-11D0-8413-0000F822FE8A}" #usecom global IKsAllocator IID_IKsAllocator "{}" #comfunc global IKsAllocator_KsGetAllocatorHandle 3 #comfunc global IKsAllocator_KsGetAllocatorMode 4 #comfunc global IKsAllocator_KsGetAllocatorStatus 5 sptr #comfunc global IKsAllocator_KsSetAllocatorMode 6 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。