ホーム › Media.DirectShow › IVMRSurfaceAllocator
IVMRSurfaceAllocator
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT AllocateSurface(UINT_PTR dwUserID, VMRALLOCATIONINFO* lpAllocInfo, DWORD* lpdwActualBuffers, IDirectDrawSurface7** lplpSurface)
| dwUserID | UINT_PTR | in | アロケータを識別するユーザー定義ID。 |
| lpAllocInfo | VMRALLOCATIONINFO* | in | 必要なサーフェス数や形式を指定するVMRALLOCATIONINFO。 |
| lpdwActualBuffers | DWORD* | inout | 実際に確保されたバッファ数を受け取る入出力先。 |
| lplpSurface | IDirectDrawSurface7** | out | 確保されたDirectDrawサーフェスを受け取る出力先。 |
| dwID | UINT_PTR | in | 解放するサーフェス群を識別するユーザー定義ID。 |
vtbl 5 HRESULT PrepareSurface(UINT_PTR dwUserID, IDirectDrawSurface7* lpSurface, DWORD dwSurfaceFlags)
| dwUserID | UINT_PTR | in | 対象アロケータを識別するユーザー定義ID。 |
| lpSurface | IDirectDrawSurface7* | in | 提示前に準備するDirectDrawサーフェス。 |
| dwSurfaceFlags | DWORD | in | 準備動作を指定するフラグ(インターレース等)。 |
vtbl 6 HRESULT AdviseNotify(IVMRSurfaceAllocatorNotify* lpIVMRSurfAllocNotify)
| lpIVMRSurfAllocNotify | IVMRSurfaceAllocatorNotify* | in | アロケータと連携する通知インターフェイス。NULLで通知解除。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IVMRSurfaceAllocator "{31CE832E-4484-458B-8CCA-F4D7E3DB0B52}" #usecom global IVMRSurfaceAllocator IID_IVMRSurfaceAllocator "{}" #comfunc global IVMRSurfaceAllocator_AllocateSurface 3 sptr,var,var,sptr #comfunc global IVMRSurfaceAllocator_FreeSurface 4 sptr #comfunc global IVMRSurfaceAllocator_PrepareSurface 5 sptr,sptr,int #comfunc global IVMRSurfaceAllocator_AdviseNotify 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IVMRSurfaceAllocator "{31CE832E-4484-458B-8CCA-F4D7E3DB0B52}" #usecom global IVMRSurfaceAllocator IID_IVMRSurfaceAllocator "{}" #comfunc global IVMRSurfaceAllocator_AllocateSurface 3 sptr,sptr,sptr,sptr #comfunc global IVMRSurfaceAllocator_FreeSurface 4 sptr #comfunc global IVMRSurfaceAllocator_PrepareSurface 5 sptr,sptr,int #comfunc global IVMRSurfaceAllocator_AdviseNotify 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。