mpeg2data.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. #include <objbase.h>
  9. typedef WORD PID;
  10. typedef BYTE TID;
  11. typedef struct _ATSC_FILTER_OPTIONS {
  12. WINBOOL fSpecifyEtmId;
  13. DWORD EtmId;
  14. } ATSC_FILTER_OPTIONS;
  15. #include <mpeg2structs.h>
  16. #ifndef __ISectionList_FWD_DEFINED__
  17. #define __ISectionList_FWD_DEFINED__
  18. typedef struct ISectionList ISectionList;
  19. #endif
  20. #ifndef __IMpeg2Data_FWD_DEFINED__
  21. #define __IMpeg2Data_FWD_DEFINED__
  22. typedef struct IMpeg2Data IMpeg2Data;
  23. #endif
  24. #ifndef __IMpeg2Stream_FWD_DEFINED__
  25. #define __IMpeg2Stream_FWD_DEFINED__
  26. typedef struct IMpeg2Stream IMpeg2Stream;
  27. #endif
  28. #undef INTERFACE
  29. #define INTERFACE ISectionList
  30. #ifdef __GNUC__
  31. #warning COM interfaces layout in this header has not been verified.
  32. #warning COM interfaces with incorrect layout may not work at all.
  33. __MINGW_BROKEN_INTERFACE(INTERFACE)
  34. #endif
  35. DECLARE_INTERFACE_(ISectionList,IUnknown)
  36. {
  37. BEGIN_INTERFACE
  38. /* IUnknown methods */
  39. STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
  40. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  41. STDMETHOD_(ULONG, Release)(THIS) PURE;
  42. /* ISectionList methods */
  43. STDMETHOD_(HRESULT,CancelPendingRequest)(THIS) PURE;
  44. STDMETHOD_(HRESULT,GetNumberOfSections)(THIS_ WORD *pCount) PURE;
  45. STDMETHOD_(HRESULT,GetProgramIdentifier)(THIS_ PID *pPid) PURE;
  46. STDMETHOD_(HRESULT,GetSectionData)(THIS_ WORD sectionNumber,DWORD *pdwRawPacketLength,PSECTION *ppSection) PURE;
  47. STDMETHOD_(HRESULT,GetTableIdentifier)(THIS_ TID *pTableId) PURE;
  48. 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;
  49. STDMETHOD_(HRESULT,InitializeWithRawSections)(THIS_ PMPEG_PACKET_LIST pmplSections) PURE;
  50. END_INTERFACE
  51. };
  52. #ifdef COBJMACROS
  53. #define ISectionList_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  54. #define ISectionList_AddRef(This) (This)->lpVtbl->AddRef(This)
  55. #define ISectionList_Release(This) (This)->lpVtbl->Release(This)
  56. #define ISectionList_CancelPendingRequest() (This)->lpVtbl->CancelPendingRequest(This)
  57. #define ISectionList_GetNumberOfSections(This,pCount) (This)->lpVtbl->GetNumberOfSections(This,pCount)
  58. #define ISectionList_GetProgramIdentifier(This,pPid) (This)->lpVtbl->GetProgramIdentifier(This,pPid)
  59. #define ISectionList_GetSectionData(This,sectionNumber,pdwRawPacketLength,ppSection) (This)->lpVtbl->GetSectionData(This,sectionNumber,pdwRawPacketLength,ppSection)
  60. #define ISectionList_GetTableIdentifier(This,pTableId) (This)->lpVtbl->GetTableIdentifier(This,pTableId)
  61. #define ISectionList_Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,timeout,hDoneEvent) (This)->lpVtbl->Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,timeout,hDoneEvent)
  62. #define ISectionList_InitializeWithRawSections(This,pmplSections) (This)->lpVtbl->InitializeWithRawSections(This,pmplSections)
  63. #endif /*COBJMACROS*/
  64. #undef INTERFACE
  65. #define INTERFACE IMpeg2Data
  66. #ifdef __GNUC__
  67. #warning COM interfaces layout in this header has not been verified.
  68. #warning COM interfaces with incorrect layout may not work at all.
  69. __MINGW_BROKEN_INTERFACE(INTERFACE)
  70. #endif
  71. DECLARE_INTERFACE_(IMpeg2Data,IUnknown)
  72. {
  73. BEGIN_INTERFACE
  74. /* IUnknown methods */
  75. STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
  76. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  77. STDMETHOD_(ULONG, Release)(THIS) PURE;
  78. /* IMpeg2Data methods */
  79. STDMETHOD_(HRESULT,GetSection)(THIS_ PID pid,TID tid,PMPEG2_FILTER pFilter,DWORD dwTimeout,ISectionList **ppSectionList) PURE;
  80. STDMETHOD_(HRESULT,GetStreamOfSections)(THIS_ PID pid,TID tid,PMPEG2_FILTER pFilter,HANDLE hDataReadyEvent,IMpeg2Stream **ppMpegStream) PURE;
  81. STDMETHOD_(HRESULT,GetTable)(THIS_ PID pid,TID tid,PMPEG2_FILTER pFilter,DWORD dwTimeout,ISectionList **ppSectionList) PURE;
  82. END_INTERFACE
  83. };
  84. #ifdef COBJMACROS
  85. #define IMpeg2Data_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  86. #define IMpeg2Data_AddRef(This) (This)->lpVtbl->AddRef(This)
  87. #define IMpeg2Data_Release(This) (This)->lpVtbl->Release(This)
  88. #define IMpeg2Data_GetSection(This,pid,tid,pFilter,dwTimeout,ppSectionList) (This)->lpVtbl->GetSection(This,pid,tid,pFilter,dwTimeout,ppSectionList)
  89. #define IMpeg2Data_GetStreamOfSections(This,pid,tid,pFilter,hDataReadyEvent,ppMpegStream) (This)->lpVtbl->GetStreamOfSections(This,pid,tid,pFilter,hDataReadyEvent,ppMpegStream)
  90. #define IMpeg2Data_GetTable(This,pid,tid,pFilter,dwTimeout,ppSectionList) (This)->lpVtbl->GetTable(This,pid,tid,pFilter,dwTimeout,ppSectionList)
  91. #endif /*COBJMACROS*/
  92. #undef INTERFACE
  93. #define INTERFACE IMpeg2Stream
  94. #ifdef __GNUC__
  95. #warning COM interfaces layout in this header has not been verified.
  96. #warning COM interfaces with incorrect layout may not work at all.
  97. __MINGW_BROKEN_INTERFACE(INTERFACE)
  98. #endif
  99. DECLARE_INTERFACE_(IMpeg2Stream,IUnknown)
  100. {
  101. BEGIN_INTERFACE
  102. /* IUnknown methods */
  103. STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
  104. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  105. STDMETHOD_(ULONG, Release)(THIS) PURE;
  106. /* IMpeg2Stream methods */
  107. STDMETHOD_(HRESULT,Initialize)(THIS_ MPEG_REQUEST_TYPE requestType,IMpeg2Data *pMpeg2Data,PMPEG_CONTEXT pContext,PID pid,TID tid,PMPEG2_FILTER pFilter,HANDLE hDataReadyEvent) PURE;
  108. STDMETHOD_(HRESULT,SupplyDataBuffer)(THIS_ PMPEG_STREAM_BUFFER pStreamBuffer) PURE;
  109. END_INTERFACE
  110. };
  111. #ifdef COBJMACROS
  112. #define IMpeg2Stream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  113. #define IMpeg2Stream_AddRef(This) (This)->lpVtbl->AddRef(This)
  114. #define IMpeg2Stream_Release(This) (This)->lpVtbl->Release(This)
  115. #define IMpeg2Stream_Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,hDataReadyEvent) (This)->lpVtbl->Initialize(This,requestType,pMpeg2Data,pContext,pid,tid,pFilter,hDataReadyEvent)
  116. #define IMpeg2Stream_SupplyDataBuffer(This,pStreamBuffer) (This)->lpVtbl->SupplyDataBuffer(This,pStreamBuffer)
  117. #endif /*COBJMACROS*/
  118. #endif /*__INC_MPEG2DATA__*/