Win32 API 日本語リファレンス
ホームMedia.WindowsMediaFormat › IWMSyncReader2

IWMSyncReader2

COM
IIDfaed3d21-1b6b-4af7-8cb6-3e189bbc187b継承元IWMSyncReader自前メソッド開始 vtbl24

メソッド 6

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 24 HRESULT SetRangeByTimecode(WORD wStreamNum, WMT_TIMECODE_EXTENSION_DATA* pStart, WMT_TIMECODE_EXTENSION_DATA* pEnd)
wStreamNumWORDin範囲を設定する対象ストリーム番号。
pStartWMT_TIMECODE_EXTENSION_DATA*in範囲開始のタイムコードWMT_TIMECODE_EXTENSION_DATAへのポインタ。
pEndWMT_TIMECODE_EXTENSION_DATA*in範囲終了のタイムコードWMT_TIMECODE_EXTENSION_DATAへのポインタ。
vtbl 25 HRESULT SetRangeByFrameEx(WORD wStreamNum, ULONGLONG qwFrameNumber, LONGLONG cFramesToRead, ULONGLONG* pcnsStartTime)
wStreamNumWORDin範囲を設定する対象ストリーム番号。
qwFrameNumberULONGLONGin読み取り開始フレーム番号(0起点)。
cFramesToReadLONGLONGin読み取るフレーム数を指定する。
pcnsStartTimeULONGLONG*out範囲開始に対応する時刻を100ナノ秒単位で受け取る出力先。
vtbl 26 HRESULT SetAllocateForOutput(DWORD dwOutputNum, IWMReaderAllocatorEx* pAllocator)
dwOutputNumDWORDin対象出力の0起点番号を指定する。
pAllocatorIWMReaderAllocatorEx*in出力サンプル確保に用いるIWMReaderAllocatorExへのポインタ。NULLで解除。
vtbl 27 HRESULT GetAllocateForOutput(DWORD dwOutputNum, IWMReaderAllocatorEx** ppAllocator)
dwOutputNumDWORDin対象出力の0起点番号を指定する。
ppAllocatorIWMReaderAllocatorEx**out設定済み出力アロケータを受け取る出力先。要Release。
vtbl 28 HRESULT SetAllocateForStream(WORD wStreamNum, IWMReaderAllocatorEx* pAllocator)
wStreamNumWORDin対象ストリーム番号を指定する。
pAllocatorIWMReaderAllocatorEx*inストリームサンプル確保に用いるIWMReaderAllocatorExへのポインタ。NULLで解除。
vtbl 29 HRESULT GetAllocateForStream(WORD dwSreamNum, IWMReaderAllocatorEx** ppAllocator)
dwSreamNumWORDin対象ストリーム番号を指定する。
ppAllocatorIWMReaderAllocatorEx**out設定済みストリームアロケータを受け取る出力先。要Release。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IWMSyncReader2 "{FAED3D21-1B6B-4AF7-8CB6-3E189BBC187B}"
#usecom global IWMSyncReader2 IID_IWMSyncReader2 "{}"
#comfunc global IWMSyncReader2_SetRangeByTimecode    24 int,var,var
#comfunc global IWMSyncReader2_SetRangeByFrameEx     25 int,int64,int64,var
#comfunc global IWMSyncReader2_SetAllocateForOutput  26 int,sptr
#comfunc global IWMSyncReader2_GetAllocateForOutput  27 int,sptr
#comfunc global IWMSyncReader2_SetAllocateForStream  28 int,sptr
#comfunc global IWMSyncReader2_GetAllocateForStream  29 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。