source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/mpeg2data.h@ 1194

Last change on this file since 1194 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 6.2 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef __INC_MPEG2DATA__
7#define __INC_MPEG2DATA__
8
9#include <objbase.h>
10
11typedef WORD PID;
12typedef BYTE TID;
13
14typedef struct _ATSC_FILTER_OPTIONS {
15 WINBOOL fSpecifyEtmId;
16 DWORD EtmId;
17} ATSC_FILTER_OPTIONS;
18
19#include <mpeg2structs.h>
20
21#ifndef __ISectionList_FWD_DEFINED__
22#define __ISectionList_FWD_DEFINED__
23typedef struct ISectionList ISectionList;
24#endif
25
26#ifndef __IMpeg2Data_FWD_DEFINED__
27#define __IMpeg2Data_FWD_DEFINED__
28typedef struct IMpeg2Data IMpeg2Data;
29#endif
30
31#ifndef __IMpeg2Stream_FWD_DEFINED__
32#define __IMpeg2Stream_FWD_DEFINED__
33typedef struct IMpeg2Stream IMpeg2Stream;
34#endif
35
36#undef INTERFACE
37#define INTERFACE ISectionList
38#ifdef __GNUC__
39#warning COM interfaces layout in this header has not been verified.
40#warning COM interfaces with incorrect layout may not work at all.
41__MINGW_BROKEN_INTERFACE(INTERFACE)
42#endif
43DECLARE_INTERFACE_(ISectionList,IUnknown)
44{
45 BEGIN_INTERFACE
46
47 /* IUnknown methods */
48 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
49 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
50 STDMETHOD_(ULONG, Release)(THIS) PURE;
51
52 /* ISectionList methods */
53 STDMETHOD_(HRESULT,CancelPendingRequest)(THIS) PURE;
54 STDMETHOD_(HRESULT,GetNumberOfSections)(THIS_ WORD *pCount) PURE;
55 STDMETHOD_(HRESULT,GetProgramIdentifier)(THIS_ PID *pPid) PURE;
56 STDMETHOD_(HRESULT,GetSectionData)(THIS_ WORD sectionNumber,DWORD *pdwRawPacketLength,PSECTION *ppSection) PURE;
57 STDMETHOD_(HRESULT,GetTableIdentifier)(THIS_ TID *pTableId) PURE;
58 STDMETHOD_(HRESULT,Initialize)(THIS_ MPEG_REQUEST_TYPE requestType,IMpeg2Data *pMpeg2Data,PMPEG_CONTEXT pContext,PID pid,TID tid,PMPEG2_FILTER pFilter,DWORD timeout,HANDLE hDoneEvent) PURE;
59 STDMETHOD_(HRESULT,InitializeWithRawSections)(THIS_ PMPEG_PACKET_LIST pmplSections) PURE;
60
61 END_INTERFACE
62};
63#ifdef COBJMACROS
64#define ISectionList_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
65#define ISectionList_AddRef(This) (This)->lpVtbl->AddRef(This)
66#define ISectionList_Release(This) (This)->lpVtbl->Release(This)
67#define ISectionList_CancelPendingRequest() (This)->lpVtbl->CancelPendingRequest(This)
68#define ISectionList_GetNumberOfSections(This,pCount) (This)->lpVtbl->GetNumberOfSections(This,pCount)
69#define ISectionList_GetProgramIdentifier(This,pPid) (This)->lpVtbl->GetProgramIdentifier(This,pPid)
70#define ISectionList_GetSectionData(This,sectionNumber,pdwRawPacketLength,ppSection) (This)->lpVtbl->GetSectionData(This,sectionNumber,pdwRawPacketLength,ppSection)
71#define ISectionList_GetTableIdentifier(This,pTableId) (This)->lpVtbl->GetTableIdentifier(This,pTableId)
72#define ISectionList_Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,timeout,hDoneEvent) (This)->lpVtbl->Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,timeout,hDoneEvent)
73#define ISectionList_InitializeWithRawSections(This,pmplSections) (This)->lpVtbl->InitializeWithRawSections(This,pmplSections)
74#endif /*COBJMACROS*/
75
76#undef INTERFACE
77#define INTERFACE IMpeg2Data
78#ifdef __GNUC__
79#warning COM interfaces layout in this header has not been verified.
80#warning COM interfaces with incorrect layout may not work at all.
81__MINGW_BROKEN_INTERFACE(INTERFACE)
82#endif
83DECLARE_INTERFACE_(IMpeg2Data,IUnknown)
84{
85 BEGIN_INTERFACE
86
87 /* IUnknown methods */
88 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
89 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
90 STDMETHOD_(ULONG, Release)(THIS) PURE;
91
92 /* IMpeg2Data methods */
93 STDMETHOD_(HRESULT,GetSection)(THIS_ PID pid,TID tid,PMPEG2_FILTER pFilter,DWORD dwTimeout,ISectionList **ppSectionList) PURE;
94 STDMETHOD_(HRESULT,GetStreamOfSections)(THIS_ PID pid,TID tid,PMPEG2_FILTER pFilter,HANDLE hDataReadyEvent,IMpeg2Stream **ppMpegStream) PURE;
95 STDMETHOD_(HRESULT,GetTable)(THIS_ PID pid,TID tid,PMPEG2_FILTER pFilter,DWORD dwTimeout,ISectionList **ppSectionList) PURE;
96
97 END_INTERFACE
98};
99#ifdef COBJMACROS
100#define IMpeg2Data_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
101#define IMpeg2Data_AddRef(This) (This)->lpVtbl->AddRef(This)
102#define IMpeg2Data_Release(This) (This)->lpVtbl->Release(This)
103#define IMpeg2Data_GetSection(This,pid,tid,pFilter,dwTimeout,ppSectionList) (This)->lpVtbl->GetSection(This,pid,tid,pFilter,dwTimeout,ppSectionList)
104#define IMpeg2Data_GetStreamOfSections(This,pid,tid,pFilter,hDataReadyEvent,ppMpegStream) (This)->lpVtbl->GetStreamOfSections(This,pid,tid,pFilter,hDataReadyEvent,ppMpegStream)
105#define IMpeg2Data_GetTable(This,pid,tid,pFilter,dwTimeout,ppSectionList) (This)->lpVtbl->GetTable(This,pid,tid,pFilter,dwTimeout,ppSectionList)
106#endif /*COBJMACROS*/
107
108#undef INTERFACE
109#define INTERFACE IMpeg2Stream
110#ifdef __GNUC__
111#warning COM interfaces layout in this header has not been verified.
112#warning COM interfaces with incorrect layout may not work at all.
113__MINGW_BROKEN_INTERFACE(INTERFACE)
114#endif
115DECLARE_INTERFACE_(IMpeg2Stream,IUnknown)
116{
117 BEGIN_INTERFACE
118
119 /* IUnknown methods */
120 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
121 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
122 STDMETHOD_(ULONG, Release)(THIS) PURE;
123
124 /* IMpeg2Stream methods */
125 STDMETHOD_(HRESULT,Initialize)(THIS_ MPEG_REQUEST_TYPE requestType,IMpeg2Data *pMpeg2Data,PMPEG_CONTEXT pContext,PID pid,TID tid,PMPEG2_FILTER pFilter,HANDLE hDataReadyEvent) PURE;
126 STDMETHOD_(HRESULT,SupplyDataBuffer)(THIS_ PMPEG_STREAM_BUFFER pStreamBuffer) PURE;
127
128 END_INTERFACE
129};
130#ifdef COBJMACROS
131#define IMpeg2Stream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
132#define IMpeg2Stream_AddRef(This) (This)->lpVtbl->AddRef(This)
133#define IMpeg2Stream_Release(This) (This)->lpVtbl->Release(This)
134#define IMpeg2Stream_Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,hDataReadyEvent) (This)->lpVtbl->Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,hDataReadyEvent)
135#define IMpeg2Stream_SupplyDataBuffer(This,pStreamBuffer) (This)->lpVtbl->SupplyDataBuffer(This,pStreamBuffer)
136#endif /*COBJMACROS*/
137
138#endif /*__INC_MPEG2DATA__*/
Note: See TracBrowser for help on using the repository browser.