ホーム › Media.DirectShow.Tv › ITSDT
ITSDT
COMメソッド 9
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT Initialize(ISectionList* pSectionList, IMpeg2Data* pMPEGData)
| pSectionList | ISectionList* | in | TSDTを構成するセクション一覧ISectionListへのポインタ。 |
| pMPEGData | IMpeg2Data* | in | データ取得元のIMpeg2Dataインターフェイスへのポインタ。 |
| pbVal | BYTE* | out | TSDTのバージョン番号を受け取るBYTEポインタ。 |
| pdwVal | DWORD* | out | テーブルレベルのディスクリプタ数を受け取るDWORDポインタ。 |
vtbl 6 HRESULT GetTableDescriptorByIndex(DWORD dwIndex, IGenericDescriptor** ppDescriptor)
| dwIndex | DWORD | in | 対象ディスクリプタの0起点インデックスを指定する。 |
| ppDescriptor | IGenericDescriptor** | out | 指定ディスクリプタIGenericDescriptorを受け取るポインタ。 |
vtbl 7 HRESULT GetTableDescriptorByTag(BYTE bTag, DWORD* pdwCookie, IGenericDescriptor** ppDescriptor)
| bTag | BYTE | in | 検索対象のディスクリプタタグを指定する。 |
| pdwCookie | DWORD* | inout | 同一タグの反復検索に用いる位置クッキーを受け渡すDWORDポインタ。 |
| ppDescriptor | IGenericDescriptor** | out | 該当ディスクリプタIGenericDescriptorを受け取るポインタ。 |
| hNextTableAvailable | HANDLE | in | 次バージョンのテーブル到着を通知するイベントのハンドル。 |
| ppTSDT | ITSDT** | out | 次バージョンのTSDTインターフェイスを受け取るポインタ。 |
| hNextTableIsCurrent | HANDLE | in | 次テーブルが現行になった際に通知するイベントのハンドル。 |
vtbl 11 HRESULT ConvertNextToCurrent()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITSDT "{D19BDB43-405B-4A7C-A791-C89110C33165}" #usecom global ITSDT IID_ITSDT "{}" #comfunc global ITSDT_Initialize 3 sptr,sptr #comfunc global ITSDT_GetVersionNumber 4 var #comfunc global ITSDT_GetCountOfTableDescriptors 5 var #comfunc global ITSDT_GetTableDescriptorByIndex 6 int,sptr #comfunc global ITSDT_GetTableDescriptorByTag 7 int,var,sptr #comfunc global ITSDT_RegisterForNextTable 8 sptr #comfunc global ITSDT_GetNextTable 9 sptr #comfunc global ITSDT_RegisterForWhenCurrent 10 sptr #comfunc global ITSDT_ConvertNextToCurrent 11 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITSDT "{D19BDB43-405B-4A7C-A791-C89110C33165}" #usecom global ITSDT IID_ITSDT "{}" #comfunc global ITSDT_Initialize 3 sptr,sptr #comfunc global ITSDT_GetVersionNumber 4 sptr #comfunc global ITSDT_GetCountOfTableDescriptors 5 sptr #comfunc global ITSDT_GetTableDescriptorByIndex 6 int,sptr #comfunc global ITSDT_GetTableDescriptorByTag 7 int,sptr,sptr #comfunc global ITSDT_RegisterForNextTable 8 sptr #comfunc global ITSDT_GetNextTable 9 sptr #comfunc global ITSDT_RegisterForWhenCurrent 10 sptr #comfunc global ITSDT_ConvertNextToCurrent 11 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。