wmcontainer.idl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. cpp_quote("#include <winapifamily.h>")
  6. cpp_quote("")
  7. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  8. import "mfidl.idl";
  9. cpp_quote("")
  10. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_FILE_ID, 0x3de649b4, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  11. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_CREATION_TIME, 0x3de649b6, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  12. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_FLAGS, 0x3de649bb, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  13. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_MAX_PACKET_SIZE, 0x3de649bd, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  14. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_MAX_BITRATE, 0x3de649be, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  15. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_MIN_PACKET_SIZE, 0x3de649bc, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  16. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_PACKETS, 0x3de649b7, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  17. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_PLAY_DURATION, 0x3de649b8, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  18. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_PREROLL, 0x3de649ba, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  19. cpp_quote("EXTERN_GUID(MF_PD_ASF_FILEPROPERTIES_SEND_DURATION, 0x3de649b9, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);")
  20. cpp_quote("EXTERN_GUID(CLSID_WMDRMSystemID, 0x8948BB22, 0x11BD, 0x4796, 0x93, 0xE3, 0x97, 0x4D, 0x1B, 0x57, 0x56, 0x78);")
  21. cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_KEYID, 0x8520fe3e, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
  22. cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_LICENSE_URL, 0x8520fe40, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
  23. cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_SECRET_DATA, 0x8520fe3f, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
  24. cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTION_TYPE, 0x8520fe3d, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);")
  25. cpp_quote("EXTERN_GUID(MF_PD_ASF_CONTENTENCRYPTIONEX_ENCRYPTION_DATA, 0x62508be5, 0xecdf, 0x4924, 0xa3, 0x59, 0x72, 0xba, 0xb3, 0x39, 0x7b, 0x9d);")
  26. cpp_quote("EXTERN_GUID(MF_PD_ASF_LANGLIST, 0xf23de43c, 0x9977, 0x460d, 0xa6, 0xec, 0x32, 0x93, 0x7f, 0x16, 0xf, 0x7d);")
  27. cpp_quote("EXTERN_GUID(MF_PD_ASF_MARKER, 0x5134330e, 0x83a6, 0x475e, 0xa9, 0xd5, 0x4f, 0xb8, 0x75, 0xfb, 0x2e, 0x31);")
  28. cpp_quote("EXTERN_GUID(MF_PD_ASF_SCRIPT, 0xe29cd0d7, 0xd602, 0x4923, 0xa7, 0xfe, 0x73, 0xfd, 0x97, 0xec, 0xc6, 0x50);")
  29. cpp_quote("EXTERN_GUID(MF_PD_ASF_CODECLIST, 0xe4bb3509, 0xc18d, 0x4df1, 0xbb, 0x99, 0x7a, 0x36, 0xb3, 0xcc, 0x41, 0x19);")
  30. cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_IS_VBR, 0x5fc6947a, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
  31. cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_V8_VBRPEAK, 0x5fc6947b, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
  32. cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_V8_BUFFERAVERAGE, 0x5fc6947c, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
  33. cpp_quote("EXTERN_GUID(MF_PD_ASF_METADATA_LEAKY_BUCKET_PAIRS, 0x5fc6947d, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);")
  34. cpp_quote("EXTERN_GUID(MF_PD_ASF_DATA_START_OFFSET, 0xe7d5b3e7, 0x1f29, 0x45d3, 0x88, 0x22, 0x3e, 0x78, 0xfa, 0xe2, 0x72, 0xed);")
  35. cpp_quote("EXTERN_GUID(MF_PD_ASF_DATA_LENGTH, 0xe7d5b3e8, 0x1f29, 0x45d3, 0x88, 0x22, 0x3e, 0x78, 0xfa, 0xe2, 0x72, 0xed);")
  36. cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_LANGUAGE_ID_INDEX, 0x48f8a522, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
  37. cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_AVG_DATA_BITRATE, 0x48f8a523, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
  38. cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_AVG_BUFFERSIZE, 0x48f8a524, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
  39. cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_MAX_DATA_BITRATE, 0x48f8a525, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
  40. cpp_quote("EXTERN_GUID(MF_SD_ASF_EXTSTRMPROP_MAX_BUFFERSIZE, 0x48f8a526, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);")
  41. cpp_quote("EXTERN_GUID(MF_SD_ASF_STREAMBITRATES_BITRATE, 0xa8e182ed, 0xafc8, 0x43d0, 0xb0, 0xd1, 0xf6, 0x5b, 0xad, 0x9d, 0xa5, 0x58);")
  42. cpp_quote("EXTERN_GUID(MF_SD_ASF_METADATA_DEVICE_CONFORMANCE_TEMPLATE, 0x245e929d, 0xc44e, 0x4f7e, 0xbb, 0x3c, 0x77, 0xd4, 0xdf, 0xd2, 0x7f, 0x8a);")
  43. cpp_quote("EXTERN_GUID(MF_PD_ASF_INFO_HAS_AUDIO, 0x80e62295, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);")
  44. cpp_quote("EXTERN_GUID(MF_PD_ASF_INFO_HAS_VIDEO, 0x80e62296, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);")
  45. cpp_quote("EXTERN_GUID(MF_PD_ASF_INFO_HAS_NON_AUDIO_VIDEO, 0x80e62297, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);")
  46. cpp_quote("#if WINVER >= 0x0601")
  47. cpp_quote("EXTERN_GUID(MFASFINDEXER_TYPE_TIMECODE, 0x49815231, 0x6bad, 0x44fd, 0x81, 0xa, 0x3f, 0x60, 0x98, 0x4e, 0xc7, 0xfd);")
  48. cpp_quote("EXTERN_GUID(MF_PD_ASF_LANGLIST_LEGACYORDER, 0xf23de43d, 0x9977, 0x460d, 0xa6, 0xec, 0x32, 0x93, 0x7f, 0x16, 0xf, 0x7d);")
  49. cpp_quote("#endif")
  50. cpp_quote("")
  51. cpp_quote("EXTERN_GUID(MFASFMutexType_Bitrate, 0x72178C2C, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
  52. cpp_quote("EXTERN_GUID(MFASFMutexType_Language, 0x72178C2B, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
  53. cpp_quote("EXTERN_GUID(MFASFMutexType_Presentation, 0x72178C2D, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
  54. cpp_quote("EXTERN_GUID(MFASFMutexType_Unknown, 0x72178C2E, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);")
  55. cpp_quote("EXTERN_GUID(MFASFSampleExtension_ContentType, 0xd590dc20, 0x07bc, 0x436c, 0x9c, 0xf7, 0xf3, 0xbb, 0xfb, 0xf1, 0xa4, 0xdc);")
  56. cpp_quote("EXTERN_GUID(MFASFSampleExtension_Encryption_SampleID, 0x6698B84E, 0x0AFA, 0x4330, 0xAE, 0xB2, 0x1C, 0x0A, 0x98, 0xD7, 0xA4, 0x4D);")
  57. cpp_quote("EXTERN_GUID(MFASFSampleExtension_Encryption_KeyID, 0x76376591, 0x795f, 0x4da1, 0x86, 0xed, 0x9d, 0x46, 0xec, 0xa1, 0x09, 0xa9);")
  58. cpp_quote("EXTERN_GUID(MFASFSampleExtension_FileName, 0xe165ec0e, 0x19ed, 0x45d7, 0xb4, 0xa7, 0x25, 0xcb, 0xd1, 0xe2, 0x8e, 0x9b);")
  59. cpp_quote("EXTERN_GUID(MFASFSampleExtension_OutputCleanPoint, 0xf72a3c6f, 0x6eb4, 0x4ebc, 0xb1, 0x92, 0x9, 0xad, 0x97, 0x59, 0xe8, 0x28);")
  60. cpp_quote("EXTERN_GUID(MFASFSampleExtension_PixelAspectRatio, 0x1b1ee554, 0xf9ea, 0x4bc8, 0x82, 0x1a, 0x37, 0x6b, 0x74, 0xe4, 0xc4, 0xb8);")
  61. cpp_quote("EXTERN_GUID(MFASFSampleExtension_SampleDuration, 0xc6bd9450, 0x867f, 0x4907, 0x83, 0xa3, 0xc7, 0x79, 0x21, 0xb7, 0x33, 0xad);")
  62. cpp_quote("EXTERN_GUID(MFASFSampleExtension_SMPTE, 0x399595ec, 0x8667, 0x4e2d, 0x8f, 0xdb, 0x98, 0x81, 0x4c, 0xe7, 0x6c, 0x1e);")
  63. cpp_quote("EXTERN_GUID(MFASFSPLITTER_PACKET_BOUNDARY, 0xfe584a05, 0xe8d6, 0x42e3, 0xb1, 0x76, 0xf1, 0x21, 0x17, 0x5, 0xfb, 0x6f);")
  64. cpp_quote("EXTERN_GUID(MF_ASFPROFILE_MINPACKETSIZE, 0x22587626, 0x47de, 0x4168, 0x87, 0xf5, 0xb5, 0xaa, 0x9b, 0x12, 0xa8, 0xf0);")
  65. cpp_quote("EXTERN_GUID(MF_ASFPROFILE_MAXPACKETSIZE, 0x22587627, 0x47de, 0x4168, 0x87, 0xf5, 0xb5, 0xaa, 0x9b, 0x12, 0xa8, 0xf0);")
  66. cpp_quote("EXTERN_GUID(MF_ASFSTREAMCONFIG_LEAKYBUCKET1, 0xc69b5901, 0xea1a, 0x4c9b, 0xb6, 0x92, 0xe2, 0xa0, 0xd2, 0x9a, 0x8a, 0xdd);")
  67. cpp_quote("EXTERN_GUID(MF_ASFSTREAMCONFIG_LEAKYBUCKET2, 0xc69b5902, 0xea1a, 0x4c9b, 0xb6, 0x92, 0xe2, 0xa0, 0xd2, 0x9a, 0x8a, 0xdd);")
  68. interface IMFASFProfile;
  69. interface IMFASFStreamConfig;
  70. interface IMFASFMutualExclusion;
  71. interface IMFASFStreamPrioritization;
  72. cpp_quote("#define MFASFINDEXER_PER_ENTRY_BYTES_DYNAMIC 0xffff")
  73. cpp_quote("#define MFASFINDEXER_NO_FIXED_INTERVAL 0xffffffff")
  74. cpp_quote("#define MFASFINDEXER_READ_FOR_REVERSEPLAYBACK_OUTOFDATASEGMENT 0xffffffffffffffffll")
  75. cpp_quote("#define MFASFINDEXER_APPROX_SEEK_TIME_UNKNOWN 0xffffffffffffffffll")
  76. cpp_quote("")
  77. cpp_quote("#define MFASF_MIN_HEADER_BYTES (sizeof (GUID) + sizeof (QWORD))")
  78. cpp_quote("")
  79. cpp_quote("#define MFASF_MAX_STREAM_NUMBER 127")
  80. cpp_quote("#define MFASF_INVALID_STREAM_NUMBER (MFASF_MAX_STREAM_NUMBER + 1)")
  81. cpp_quote("#define MFASF_PAYLOADEXTENSION_MAX_SIZE 0xff")
  82. cpp_quote("#define MFASF_PAYLOADEXTENSION_VARIABLE_SIZE 0xffff")
  83. cpp_quote("#define MFASF_DEFAULT_BUFFER_WINDOW_MS 3000")
  84. cpp_quote("")
  85. typedef enum MFASF_SPLITTERFLAGS {
  86. MFASF_SPLITTER_REVERSE = 0x00000001,
  87. MFASF_SPLITTER_WMDRM = 0x00000002,
  88. } MFASF_SPLITTERFLAGS;
  89. typedef enum ASF_STATUSFLAGS {
  90. ASF_STATUSFLAGS_INCOMPLETE = 0x1
  91. #if WINVER >= 0x0601
  92. ,ASF_STATUSFLAGS_NONFATAL_ERROR = 0x2
  93. #endif
  94. } ASF_STATUSFLAGS;
  95. typedef enum MFASF_MULTIPLEXERFLAGS {
  96. MFASF_MULTIPLEXER_AUTOADJUST_BITRATE = 0x1
  97. } MFASF_MULTIPLEXERFLAGS;
  98. typedef enum MFASF_INDEXERFLAGS {
  99. MFASF_INDEXER_WRITE_NEW_INDEX = 0x1,
  100. MFASF_INDEXER_READ_FOR_REVERSEPLAYBACK = 0x2,
  101. MFASF_INDEXER_WRITE_FOR_LIVEREAD = 0x4
  102. } MFASF_INDEXER_FLAGS;
  103. typedef enum MFASF_STREAMSELECTORFLAGS {
  104. MFASF_STREAMSELECTOR_DISABLE_THINNING = 0x00000001,
  105. MFASF_STREAMSELECTOR_USE_AVERAGE_BITRATE = 0x00000002,
  106. } MFASF_STREAMSELECTOR_FLAGS;
  107. typedef enum ASF_SELECTION_STATUS {
  108. ASF_STATUS_NOTSELECTED = 0,
  109. ASF_STATUS_CLEANPOINTSONLY = 1,
  110. ASF_STATUS_ALLDATAUNITS = 2,
  111. } ASF_SELECTION_STATUS;
  112. typedef enum _MFSINK_WMDRMACTION {
  113. MFSINK_WMDRMACTION_UNDEFINED = 0,
  114. MFSINK_WMDRMACTION_ENCODE = 1,
  115. MFSINK_WMDRMACTION_TRANSCODE = 2,
  116. MFSINK_WMDRMACTION_TRANSCRYPT = 3,
  117. MFSINK_WMDRMACTION_LAST = 3
  118. } MFSINK_WMDRMACTION;
  119. cpp_quote("")
  120. typedef struct ASF_MUX_STATISTICS {
  121. DWORD cFramesWritten;
  122. DWORD cFramesDropped;
  123. } ASF_MUX_STATISTICS;
  124. typedef struct _ASF_INDEX_IDENTIFIER {
  125. GUID guidIndexType;
  126. WORD wStreamNumber;
  127. } ASF_INDEX_IDENTIFIER;
  128. typedef struct _ASF_INDEX_DESCRIPTOR {
  129. ASF_INDEX_IDENTIFIER Identifier;
  130. WORD cPerEntryBytes;
  131. WCHAR szDescription[32];
  132. DWORD dwInterval;
  133. } ASF_INDEX_DESCRIPTOR;
  134. cpp_quote("")
  135. [object, uuid (B1DCA5CD-D5DA-4451-8e9e-DB5C59914EAD), local]
  136. interface IMFASFContentInfo : IUnknown {
  137. HRESULT GetHeaderSize ([in] IMFMediaBuffer *pIStartOfContent,[out] QWORD *cbHeaderSize);
  138. HRESULT ParseHeader ([in] IMFMediaBuffer *pIHeaderBuffer,[in] QWORD cbOffsetWithinHeader);
  139. HRESULT GenerateHeader ([in, out] IMFMediaBuffer *pIHeader,[out] DWORD *pcbHeader);
  140. HRESULT GetProfile ([out] IMFASFProfile **ppIProfile);
  141. HRESULT SetProfile ([in] IMFASFProfile *pIProfile);
  142. HRESULT GeneratePresentationDescriptor ([out] IMFPresentationDescriptor **ppIPresentationDescriptor);
  143. HRESULT GetEncodingConfigurationPropertyStore ([in] WORD wStreamNumber,[out] IPropertyStore **ppIStore);
  144. };
  145. [object, uuid (12558291-E399-11d5-BC2A-00b0d0f3f4ab), local]
  146. interface IMFASFMutualExclusion : IUnknown {
  147. HRESULT GetType ([out] GUID *pguidType);
  148. HRESULT SetType ([in] REFGUID guidType);
  149. HRESULT GetRecordCount ([out] DWORD *pdwRecordCount);
  150. HRESULT GetStreamsForRecord ([in] DWORD dwRecordNumber,[out] WORD *pwStreamNumArray,[in, out] DWORD *pcStreams);
  151. HRESULT AddStreamForRecord ([in] DWORD dwRecordNumber,[in] WORD wStreamNumber);
  152. HRESULT RemoveStreamFromRecord ([in] DWORD dwRecordNumber,[in] WORD wStreamNumber);
  153. HRESULT RemoveRecord ([in] DWORD dwRecordNumber);
  154. HRESULT AddRecord ([out] DWORD *pdwRecordNumber);
  155. HRESULT Clone ([out] IMFASFMutualExclusion **ppIMutex);
  156. };
  157. [object, uuid (699bdc27-bbaf-49ff-8e38-9c39c9b5e088), local]
  158. interface IMFASFStreamPrioritization : IUnknown {
  159. HRESULT GetStreamCount ([out] DWORD *pdwStreamCount);
  160. HRESULT GetStream ([in] DWORD dwStreamIndex,[out] WORD *pwStreamNumber,[out] WORD *pwStreamFlags);
  161. HRESULT AddStream ([in] WORD wStreamNumber,[in] WORD wStreamFlags);
  162. HRESULT RemoveStream ([in] DWORD dwStreamIndex);
  163. HRESULT Clone ([out] IMFASFStreamPrioritization **ppIStreamPrioritization);
  164. };
  165. [object, local, uuid (12558295-E399-11d5-BC2A-00b0d0f3f4ab)]
  166. interface IMFASFSplitter : IUnknown {
  167. HRESULT Initialize ([in] IMFASFContentInfo *pIContentInfo);
  168. HRESULT SetFlags ([in] DWORD dwFlags);
  169. HRESULT GetFlags ([out] DWORD *pdwFlags);
  170. HRESULT SelectStreams ([in] WORD *pwStreamNumbers,[in] WORD wNumStreams);
  171. HRESULT GetSelectedStreams ([out] WORD *pwStreamNumbers,[in, out] WORD *pwNumStreams);
  172. HRESULT ParseData ([in] IMFMediaBuffer *pIBuffer,[in] DWORD cbBufferOffset,[in] DWORD cbLength);
  173. HRESULT GetNextSample ([out] DWORD *pdwStatusFlags,[out] WORD *pwStreamNumber,[out] IMFSample **ppISample);
  174. HRESULT Flush ();
  175. HRESULT GetLastSendTime ([out] DWORD *pdwLastSendTime);
  176. };
  177. [object, local, uuid (57bdd80a-9b38-4838-B737-C58F670D7D4F)]
  178. interface IMFASFMultiplexer : IUnknown {
  179. HRESULT Initialize ([in] IMFASFContentInfo *pIContentInfo);
  180. HRESULT SetFlags ([in] DWORD dwFlags);
  181. HRESULT GetFlags ([out] DWORD *pdwFlags);
  182. HRESULT ProcessSample ([in] WORD wStreamNumber,[in] IMFSample *pISample,[in] LONGLONG hnsTimestampAdjust);
  183. HRESULT GetNextPacket ([out] DWORD *pdwStatusFlags,[out] IMFSample **ppIPacket);
  184. HRESULT Flush ();
  185. HRESULT End ([in, out] IMFASFContentInfo *pIContentInfo);
  186. HRESULT GetStatistics ([in] WORD wStreamNumber,[out] ASF_MUX_STATISTICS *pMuxStats);
  187. HRESULT SetSyncTolerance ([in] DWORD msSyncTolerance);
  188. };
  189. [object, uuid (53590f48-DC3B-4297-813f-787761ad7b3e), local]
  190. interface IMFASFIndexer : IUnknown {
  191. HRESULT SetFlags ([in] DWORD dwFlags);
  192. HRESULT GetFlags ([out] DWORD *pdwFlags);
  193. HRESULT Initialize ([in] IMFASFContentInfo *pIContentInfo);
  194. HRESULT GetIndexPosition ([in] IMFASFContentInfo *pIContentInfo,[out] QWORD *pcbIndexOffset);
  195. HRESULT SetIndexByteStreams ([in] IMFByteStream **ppIByteStreams,[in] DWORD cByteStreams);
  196. HRESULT GetIndexByteStreamCount ([out] DWORD *pcByteStreams);
  197. HRESULT GetIndexStatus ([in] ASF_INDEX_IDENTIFIER *pIndexIdentifier,[out] WINBOOL *pfIsIndexed,[out] BYTE *pbIndexDescriptor,[in, out] DWORD *pcbIndexDescriptor);
  198. HRESULT SetIndexStatus ([in] BYTE *pbIndexDescriptor,[in] DWORD cbIndexDescriptor,[in] WINBOOL fGenerateIndex);
  199. HRESULT GetSeekPositionForValue ([in] const PROPVARIANT *pvarValue,[in] ASF_INDEX_IDENTIFIER *pIndexIdentifier,[out] QWORD *pcbOffsetWithinData,[out, optional] MFTIME *phnsApproxTime,[out, optional] DWORD *pdwPayloadNumberOfStreamWithinPacket);
  200. HRESULT GenerateIndexEntries ([in] IMFSample *pIASFPacketSample);
  201. HRESULT CommitIndex ([in] IMFASFContentInfo *pIContentInfo);
  202. HRESULT GetIndexWriteSpace ([out] QWORD *pcbIndexWriteSpace);
  203. HRESULT GetCompletedIndex ([in] IMFMediaBuffer *pIIndexBuffer,[in] QWORD cbOffsetWithinIndex);
  204. };
  205. [object, uuid (d01bad4a-4fa0-4a60-9349-c27e62da9d41), local]
  206. interface IMFASFStreamSelector : IUnknown {
  207. HRESULT GetStreamCount ([out] DWORD *pcStreams);
  208. HRESULT GetOutputCount ([out] DWORD *pcOutputs);
  209. HRESULT GetOutputStreamCount ([in] DWORD dwOutputNum,[out] DWORD *pcStreams);
  210. HRESULT GetOutputStreamNumbers ([in] DWORD dwOutputNum,[out] WORD *rgwStreamNumbers);
  211. HRESULT GetOutputFromStream ([in] WORD wStreamNum,[out] DWORD *pdwOutput);
  212. HRESULT GetOutputOverride ([in] DWORD dwOutputNum,[out] ASF_SELECTION_STATUS *pSelection);
  213. HRESULT SetOutputOverride ([in] DWORD dwOutputNum,[in] ASF_SELECTION_STATUS Selection);
  214. HRESULT GetOutputMutexCount ([in] DWORD dwOutputNum,[out] DWORD *pcMutexes);
  215. HRESULT GetOutputMutex ([in] DWORD dwOutputNum,[in] DWORD dwMutexNum,[out] IUnknown **ppMutex);
  216. HRESULT SetOutputMutexSelection ([in] DWORD dwOutputNum,[in] DWORD dwMutexNum,[in] WORD wSelectedRecord);
  217. HRESULT GetBandwidthStepCount ([out] DWORD *pcStepCount);
  218. HRESULT GetBandwidthStep ([in] DWORD dwStepNum,[out] DWORD *pdwBitrate,[out] WORD *rgwStreamNumbers,[out] ASF_SELECTION_STATUS *rgSelections);
  219. HRESULT BitrateToStepNumber ([in] DWORD dwBitrate,[out] DWORD *pdwStepNum);
  220. HRESULT SetStreamSelectorFlags ([in] DWORD dwStreamSelectorFlags);
  221. };
  222. cpp_quote("#if WINVER >= 0x0601")
  223. [object, uuid (3d1ff0ea-679a-4190-8d46-7fa69e8c7e15)]
  224. interface IMFDRMNetHelper : IUnknown {
  225. HRESULT ProcessLicenseRequest ([in, size_is (cbLicenseRequest)] BYTE *pLicenseRequest,[in] DWORD cbLicenseRequest,[out, size_is (,*pcbLicenseResponse)] BYTE **ppLicenseResponse,[out] DWORD *pcbLicenseResponse,[out] BSTR *pbstrKID);
  226. HRESULT GetChainedLicenseResponse ([out, size_is (,*pcbLicenseResponse)] BYTE **ppLicenseResponse,[out] DWORD *pcbLicenseResponse);
  227. };
  228. cpp_quote("#endif")
  229. [object, local, uuid (D267BF6A-028b-4e0d-903d-43f0ef82d0d4)]
  230. interface IMFASFProfile : IMFAttributes {
  231. HRESULT GetStreamCount ([out] DWORD *pcStreams);
  232. HRESULT GetStream ([in] DWORD dwStreamIndex,[out] WORD *pwStreamNumber,[out] IMFASFStreamConfig **ppIStream);
  233. HRESULT GetStreamByNumber ([in] WORD wStreamNumber,[out] IMFASFStreamConfig **ppIStream);
  234. HRESULT SetStream ([in] IMFASFStreamConfig *pIStream);
  235. HRESULT RemoveStream ([in] WORD wStreamNumber);
  236. HRESULT CreateStream ([in] IMFMediaType *pIMediaType,[out] IMFASFStreamConfig **ppIStream);
  237. HRESULT GetMutualExclusionCount ([out] DWORD *pcMutexs);
  238. HRESULT GetMutualExclusion ([in] DWORD dwMutexIndex,[out] IMFASFMutualExclusion **ppIMutex);
  239. HRESULT AddMutualExclusion ([in] IMFASFMutualExclusion *pIMutex);
  240. HRESULT RemoveMutualExclusion ([in] DWORD dwMutexIndex);
  241. HRESULT CreateMutualExclusion ([out] IMFASFMutualExclusion **ppIMutex);
  242. HRESULT GetStreamPrioritization ([out] IMFASFStreamPrioritization **ppIStreamPrioritization);
  243. HRESULT AddStreamPrioritization ([in] IMFASFStreamPrioritization *pIStreamPrioritization);
  244. HRESULT RemoveStreamPrioritization ();
  245. HRESULT CreateStreamPrioritization ([out] IMFASFStreamPrioritization **ppIStreamPrioritization);
  246. HRESULT Clone ([out] IMFASFProfile **ppIProfile);
  247. };
  248. [object, local, uuid (9e8ae8d2-DBBD-4200-9aca-06e6df484913)]
  249. interface IMFASFStreamConfig : IMFAttributes {
  250. HRESULT GetStreamType ([out] GUID *pguidStreamType);
  251. WORD GetStreamNumber ();
  252. HRESULT SetStreamNumber ([in] WORD wStreamNum);
  253. HRESULT GetMediaType ([out] IMFMediaType **ppIMediaType);
  254. HRESULT SetMediaType ([in] IMFMediaType *pIMediaType);
  255. HRESULT GetPayloadExtensionCount ([out] WORD *pcPayloadExtensions);
  256. HRESULT GetPayloadExtension ([in] WORD wPayloadExtensionNumber,[out] GUID *pguidExtensionSystemID,[out] WORD *pcbExtensionDataSize,[out, optional, size_is (*pcbExtensionSystemInfo)] BYTE *pbExtensionSystemInfo,[in, out, optional] DWORD *pcbExtensionSystemInfo);
  257. HRESULT AddPayloadExtension ([in] GUID guidExtensionSystemID,[in] WORD cbExtensionDataSize,[in, size_is (cbExtensionSystemInfo)] BYTE *pbExtensionSystemInfo,[in] DWORD cbExtensionSystemInfo);
  258. HRESULT RemoveAllPayloadExtensions ();
  259. HRESULT Clone ([out] IMFASFStreamConfig **ppIStreamConfig);
  260. };
  261. cpp_quote("")
  262. cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFMEDIASINK_BASE_SENDTIME = { { 0xcddcbc82, 0x3411, 0x4119, 0x91, 0x35, 0x84, 0x23, 0xc4, 0x1b, 0x39, 0x57}, 3 };")
  263. cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFMEDIASINK_AUTOADJUST_BITRATE = { { 0xcddcbc82, 0x3411, 0x4119, 0x91, 0x35, 0x84, 0x23, 0xc4, 0x1b, 0x39, 0x57}, 4 };")
  264. cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFMEDIASINK_DRMACTION = { { 0xa1db6f6c, 0x1d0a, 0x4cb6, 0x82, 0x54, 0xcb, 0x36, 0xbe, 0xed, 0xbc, 0x48}, 5 };")
  265. cpp_quote("EXTERN_C const DECLSPEC_SELECTANY PROPERTYKEY MFPKEY_ASFSTREAMSINK_CORRECTED_LEAKYBUCKET = { { 0xa2f152fb, 0x8ad9, 0x4a11, 0xb3, 0x45, 0x2c, 0xe2, 0xfa, 0xd8, 0x72, 0x3d}, 1 };")
  266. cpp_quote("")
  267. cpp_quote("STDAPI MFCreateASFContentInfo(IMFASFContentInfo **ppIContentInfo);")
  268. cpp_quote("STDAPI MFCreateASFIndexer(IMFASFIndexer **ppIIndexer);")
  269. cpp_quote("STDAPI MFCreateASFIndexerByteStream(IMFByteStream *pIContentByteStream, QWORD cbIndexStartOffset, IMFByteStream **pIIndexByteStream);")
  270. cpp_quote("STDAPI MFCreateASFMediaSink(IMFByteStream *pIByteStream, IMFMediaSink **ppIMediaSink);")
  271. cpp_quote("STDAPI MFCreateASFMediaSinkActivate(LPCWSTR pwszFileName, IMFASFContentInfo *pContentInfo, IMFActivate **ppIActivate);")
  272. cpp_quote("STDAPI MFCreateASFMultiplexer(IMFASFMultiplexer **ppIMultiplexer);")
  273. cpp_quote("STDAPI MFCreateASFProfile(IMFASFProfile **ppIProfile);")
  274. cpp_quote("STDAPI MFCreateASFProfileFromPresentationDescriptor(IMFPresentationDescriptor *pIPD, IMFASFProfile **ppIProfile);")
  275. cpp_quote("STDAPI MFCreateASFSplitter(IMFASFSplitter **ppISplitter);")
  276. cpp_quote("STDAPI MFCreateASFStreamingMediaSink(IMFByteStream *pIByteStream, IMFMediaSink **ppIMediaSink);")
  277. cpp_quote("STDAPI MFCreateASFStreamingMediaSinkActivate(IMFActivate *pByteStreamActivate, IMFASFContentInfo *pContentInfo, IMFActivate **ppIActivate);")
  278. cpp_quote("STDAPI MFCreateASFStreamSelector(IMFASFProfile *pIASFProfile, IMFASFStreamSelector **ppSelector);")
  279. cpp_quote("STDAPI MFCreatePresentationDescriptorFromASFProfile(IMFASFProfile *pIProfile, IMFPresentationDescriptor **ppIPD);")
  280. cpp_quote("HRESULT STDMETHODCALLTYPE MFCreateWMVEncoderActivate(IMFMediaType *pMediaType, IPropertyStore *pEncodingConfigurationProperties, IMFActivate **ppActivate);")
  281. cpp_quote("HRESULT STDMETHODCALLTYPE MFCreateWMAEncoderActivate(IMFMediaType *pMediaType, IPropertyStore *pEncodingConfigurationProperties, IMFActivate **ppActivate);")
  282. cpp_quote("#endif")