ホーム › Media.MediaFoundation › ID3D12VideoMotionEstimator
ID3D12VideoMotionEstimator
COM公式ドキュメント
このインターフェイスは、ビデオモーション推定操作のコンテキストを保持します。
解説(Remarks)
このインターフェイスの新しいインスタンスは、ID3D12VideoDevice1::CreateVideoMotionEstimator を呼び出して作成します。
このインターフェイスは、ID3D12VideoEncodeCommandList::EstimateMotion の呼び出しに渡されます。
メソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 8 D3D12_VIDEO_MOTION_ESTIMATOR_DESC GetDesc()
ID3D12VideoMotionEstimator の作成時に ID3D12VideoDevice1::CreateVideoMotionEstimator に渡された D3D12_VIDEO_MOTION_ESTIMATOR_DESC 構造体を取得します。
戻り値
このメソッドは D3D12_VIDEO_MOTION_ESTIMATOR_DESC 構造体を返します。
vtbl 9 HRESULT GetProtectedResourceSession(GUID* riid, void** ppProtectedSession)
ID3D12VideoMotionEstimator の作成時に ID3D12VideoDevice1::CreateVideoMotionEstimator に渡された ID3D12ProtectedResourceSession を取得します。
| riid | GUID* | in | ID3D12ProtectedResourceSession インターフェイスのグローバル一意識別子 (GUID)。 |
| ppProtectedSession | void** | outoptional | ID3D12ProtectedResourceSession インターフェイスを表す void ポインターを受け取ります。 |
戻り値
このメソッドは HRESULT を返します。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D12VideoMotionEstimator "{33FDAE0E-098B-428F-87BB-34B695DE08F8}" #usecom global ID3D12VideoMotionEstimator IID_ID3D12VideoMotionEstimator "{}" #comfunc global ID3D12VideoMotionEstimator_GetDesc 8 #comfunc global ID3D12VideoMotionEstimator_GetProtectedResourceSession 9 var,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ID3D12VideoMotionEstimator "{33FDAE0E-098B-428F-87BB-34B695DE08F8}" #usecom global ID3D12VideoMotionEstimator IID_ID3D12VideoMotionEstimator "{}" #comfunc global ID3D12VideoMotionEstimator_GetDesc 8 #comfunc global ID3D12VideoMotionEstimator_GetProtectedResourceSession 9 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。