ホーム › Media.DirectShow › IVMRAspectRatioControl9
IVMRAspectRatioControl9
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| lpdwARMode | DWORD* | out | 現在のアスペクト比保持モードを受け取るDWORDへのポインタ。 |
| dwARMode | DWORD | in | 適用するアスペクト比保持モード(VMR9_ARMODE)。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IVMRAspectRatioControl9 "{00D96C29-BBDE-4EFC-9901-BB5036392146}" #usecom global IVMRAspectRatioControl9 IID_IVMRAspectRatioControl9 "{}" #comfunc global IVMRAspectRatioControl9_GetAspectRatioMode 3 var #comfunc global IVMRAspectRatioControl9_SetAspectRatioMode 4 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IVMRAspectRatioControl9 "{00D96C29-BBDE-4EFC-9901-BB5036392146}" #usecom global IVMRAspectRatioControl9 IID_IVMRAspectRatioControl9 "{}" #comfunc global IVMRAspectRatioControl9_GetAspectRatioMode 3 sptr #comfunc global IVMRAspectRatioControl9_SetAspectRatioMode 4 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。