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