ホーム › Media.DirectShow › IDDrawExclModeVideo
IDDrawExclModeVideo
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetDDrawObject(IDirectDraw* pDDrawObject)
| pDDrawObject | IDirectDraw* | in | 排他モード描画に使用するIDirectDrawオブジェクトへのポインタ。 |
vtbl 4 HRESULT GetDDrawObject(IDirectDraw** ppDDrawObject, BOOL* pbUsingExternal)
| ppDDrawObject | IDirectDraw** | out | 現在使用中のIDirectDrawオブジェクトを受け取る出力ポインタ。 |
| pbUsingExternal | BOOL* | out | 外部から設定されたDirectDrawオブジェクトを使用中か否かを受け取るBOOLへのポインタ。 |
vtbl 5 HRESULT SetDDrawSurface(IDirectDrawSurface* pDDrawSurface)
| pDDrawSurface | IDirectDrawSurface* | in | 映像描画先として使用するIDirectDrawSurfaceへのポインタ。 |
vtbl 6 HRESULT GetDDrawSurface(IDirectDrawSurface** ppDDrawSurface, BOOL* pbUsingExternal)
| ppDDrawSurface | IDirectDrawSurface** | out | 現在使用中のIDirectDrawSurfaceを受け取る出力ポインタ。 |
| pbUsingExternal | BOOL* | out | 外部から設定されたサーフェスを使用中か否かを受け取るBOOLへのポインタ。 |
| prcSource | RECT* | in | ソース映像から切り出す矩形領域を指定するRECT構造体へのポインタ。 |
| prcTarget | RECT* | in | 描画先サーフェス上の出力矩形領域を指定するRECT構造体へのポインタ。 |
vtbl 8 HRESULT GetNativeVideoProps(DWORD* pdwVideoWidth, DWORD* pdwVideoHeight, DWORD* pdwPictAspectRatioX, DWORD* pdwPictAspectRatioY)
| pdwVideoWidth | DWORD* | out | ネイティブ映像の幅(ピクセル)を受け取るDWORDへのポインタ。 |
| pdwVideoHeight | DWORD* | out | ネイティブ映像の高さ(ピクセル)を受け取るDWORDへのポインタ。 |
| pdwPictAspectRatioX | DWORD* | out | 表示アスペクト比の水平成分を受け取るDWORDへのポインタ。 |
| pdwPictAspectRatioY | DWORD* | out | 表示アスペクト比の垂直成分を受け取るDWORDへのポインタ。 |
vtbl 9 HRESULT SetCallbackInterface(IDDrawExclModeVideoCallback* pCallback, DWORD dwFlags)
| pCallback | IDDrawExclModeVideoCallback* | in | 排他モード映像の通知を受けるIDDrawExclModeVideoCallbackへのポインタ。NULLで解除。 |
| dwFlags | DWORD | in | コールバック動作を制御するフラグ。通常は0を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDDrawExclModeVideo "{153ACC21-D83B-11D1-82BF-00A0C9696C8F}" #usecom global IDDrawExclModeVideo IID_IDDrawExclModeVideo "{}" #comfunc global IDDrawExclModeVideo_SetDDrawObject 3 sptr #comfunc global IDDrawExclModeVideo_GetDDrawObject 4 sptr,var #comfunc global IDDrawExclModeVideo_SetDDrawSurface 5 sptr #comfunc global IDDrawExclModeVideo_GetDDrawSurface 6 sptr,var #comfunc global IDDrawExclModeVideo_SetDrawParameters 7 var,var #comfunc global IDDrawExclModeVideo_GetNativeVideoProps 8 var,var,var,var #comfunc global IDDrawExclModeVideo_SetCallbackInterface 9 sptr,int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDDrawExclModeVideo "{153ACC21-D83B-11D1-82BF-00A0C9696C8F}" #usecom global IDDrawExclModeVideo IID_IDDrawExclModeVideo "{}" #comfunc global IDDrawExclModeVideo_SetDDrawObject 3 sptr #comfunc global IDDrawExclModeVideo_GetDDrawObject 4 sptr,sptr #comfunc global IDDrawExclModeVideo_SetDDrawSurface 5 sptr #comfunc global IDDrawExclModeVideo_GetDDrawSurface 6 sptr,sptr #comfunc global IDDrawExclModeVideo_SetDrawParameters 7 sptr,sptr #comfunc global IDDrawExclModeVideo_GetNativeVideoProps 8 sptr,sptr,sptr,sptr #comfunc global IDDrawExclModeVideo_SetCallbackInterface 9 sptr,int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。