ホーム › Media.DirectShow.Tv › IMpeg2Data
IMpeg2Data
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetSection(WORD pid, BYTE tid, MPEG2_FILTER* pFilter, DWORD dwTimeout, ISectionList** ppSectionList)
| pid | WORD | in | 取得対象セクションのパケット識別子(PID)を指定する。 |
| tid | BYTE | in | 取得対象セクションのテーブル識別子(TID)を指定する。 |
| pFilter | MPEG2_FILTER* | in | セクションを絞り込むMPEG2_FILTER構造体へのポインタ。NULL可。 |
| dwTimeout | DWORD | in | 取得待機のタイムアウトをミリ秒単位で指定する。 |
| ppSectionList | ISectionList** | out | 取得したセクション一覧ISectionListを受け取るポインタ。 |
vtbl 4 HRESULT GetTable(WORD pid, BYTE tid, MPEG2_FILTER* pFilter, DWORD dwTimeout, ISectionList** ppSectionList)
| pid | WORD | in | 取得対象テーブルのパケット識別子(PID)を指定する。 |
| tid | BYTE | in | 取得対象テーブルのテーブル識別子(TID)を指定する。 |
| pFilter | MPEG2_FILTER* | in | テーブルを絞り込むMPEG2_FILTER構造体へのポインタ。NULL可。 |
| dwTimeout | DWORD | in | 取得待機のタイムアウトをミリ秒単位で指定する。 |
| ppSectionList | ISectionList** | out | 取得したセクション一覧ISectionListを受け取るポインタ。 |
vtbl 5 HRESULT GetStreamOfSections(WORD pid, BYTE tid, MPEG2_FILTER* pFilter, HANDLE hDataReadyEvent, IMpeg2Stream** ppMpegStream)
| pid | WORD | in | 取得対象のパケット識別子(PID)を指定する。 |
| tid | BYTE | in | 取得対象のテーブル識別子(TID)を指定する。 |
| pFilter | MPEG2_FILTER* | in | セクションを絞り込むMPEG2_FILTER構造体へのポインタ。NULL可。 |
| hDataReadyEvent | HANDLE | in | データ到着を通知するイベントオブジェクトのハンドル。 |
| ppMpegStream | IMpeg2Stream** | out | 連続取得用のストリームIMpeg2Streamを受け取るポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMpeg2Data "{9B396D40-F380-4E3C-A514-1A82BF6EBFE6}" #usecom global IMpeg2Data IID_IMpeg2Data "{C666E115-BB62-4027-A113-82D643FE2D99}" #comfunc global IMpeg2Data_GetSection 3 int,int,var,int,sptr #comfunc global IMpeg2Data_GetTable 4 int,int,var,int,sptr #comfunc global IMpeg2Data_GetStreamOfSections 5 int,int,var,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMpeg2Data "{9B396D40-F380-4E3C-A514-1A82BF6EBFE6}" #usecom global IMpeg2Data IID_IMpeg2Data "{C666E115-BB62-4027-A113-82D643FE2D99}" #comfunc global IMpeg2Data_GetSection 3 int,int,sptr,int,sptr #comfunc global IMpeg2Data_GetTable 4 int,int,sptr,int,sptr #comfunc global IMpeg2Data_GetStreamOfSections 5 int,int,sptr,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。