dvdif.idl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. /*
  2. * Copyright (C) 2020 Vijay Kiran Kamuju
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. #if 0
  19. pragma makedep install
  20. #endif
  21. import "unknwn.idl";
  22. import "objidl.idl";
  23. cpp_quote("#include <ddraw.h>")
  24. cpp_quote("#if 0")
  25. interface IGraphBuilder;
  26. cpp_quote("#endif")
  27. typedef enum tagDVD_DOMAIN
  28. {
  29. DVD_DOMAIN_FirstPlay = 1,
  30. DVD_DOMAIN_VideoManagerMenu,
  31. DVD_DOMAIN_VideoTitleSetMenu,
  32. DVD_DOMAIN_Title,
  33. DVD_DOMAIN_Stop
  34. } DVD_DOMAIN;
  35. typedef enum tagDVD_MENU_ID
  36. {
  37. DVD_MENU_Title = 2,
  38. DVD_MENU_Root = 3,
  39. DVD_MENU_Subpicture = 4,
  40. DVD_MENU_Audio = 5,
  41. DVD_MENU_Angle = 6,
  42. DVD_MENU_Chapter = 7
  43. } DVD_MENU_ID;
  44. typedef enum tagDVD_DISC_SIDE
  45. {
  46. DVD_SIDE_A = 1,
  47. DVD_SIDE_B = 2
  48. } DVD_DISC_SIDE;
  49. typedef enum tagDVD_PREFERRED_DISPLAY_MODE
  50. {
  51. DISPLAY_CONTENT_DEFAULT = 0,
  52. DISPLAY_16x9 = 1,
  53. DISPLAY_4x3_PANSCAN_PREFERRED = 2,
  54. DISPLAY_4x3_LETTERBOX_PREFERRED = 3
  55. } DVD_PREFERRED_DISPLAY_MODE;
  56. typedef WORD DVD_REGISTER;
  57. typedef DVD_REGISTER GPRMARRAY[16];
  58. typedef DVD_REGISTER SPRMARRAY[24];
  59. typedef struct tagDVD_ATR
  60. {
  61. ULONG ulCAT;
  62. BYTE pbATRI[768];
  63. } DVD_ATR;
  64. typedef BYTE DVD_VideoATR[2];
  65. typedef BYTE DVD_AudioATR[8];
  66. typedef BYTE DVD_SubpictureATR[6];
  67. typedef enum tagDVD_FRAMERATE
  68. {
  69. DVD_FPS_25 = 1,
  70. DVD_FPS_30NonDrop = 3
  71. } DVD_FRAMERATE;
  72. cpp_quote("typedef struct tagDVD_TIMECODE")
  73. cpp_quote("{")
  74. cpp_quote(" ULONG Hours1 : 4;")
  75. cpp_quote(" ULONG Hours10 : 4;")
  76. cpp_quote(" ULONG Minutes1 : 4;")
  77. cpp_quote(" ULONG Minutes10 : 4;")
  78. cpp_quote(" ULONG Seconds1 : 4;")
  79. cpp_quote(" ULONG Seconds10 : 4;")
  80. cpp_quote(" ULONG Frames1 : 4;")
  81. cpp_quote(" ULONG Frames10 : 2;")
  82. cpp_quote(" ULONG FrameRateCode : 2;")
  83. cpp_quote("} DVD_TIMECODE;")
  84. typedef enum tagDVD_NavCmdType
  85. {
  86. DVD_NavCmdType_Pre = 1,
  87. DVD_NavCmdType_Post = 2,
  88. DVD_NavCmdType_Cell = 3,
  89. DVD_NavCmdType_Button = 4
  90. } DVD_NavCmdType;
  91. typedef enum tagDVD_TIMECODE_FLAGS
  92. {
  93. DVD_TC_FLAG_25fps = 0x00000001,
  94. DVD_TC_FLAG_30fps = 0x00000002,
  95. DVD_TC_FLAG_DropFrame = 0x00000004,
  96. DVD_TC_FLAG_Interpolated = 0x00000008
  97. } DVD_TIMECODE_FLAGS;
  98. typedef struct tagDVD_HMSF_TIMECODE
  99. {
  100. BYTE bHours;
  101. BYTE bMinutes;
  102. BYTE bSeconds;
  103. BYTE bFrames;
  104. } DVD_HMSF_TIMECODE;
  105. typedef struct tagDVD_PLAYBACK_LOCATION2
  106. {
  107. ULONG TitleNum;
  108. ULONG ChapterNum;
  109. DVD_HMSF_TIMECODE TimeCode;
  110. ULONG TimeCodeFlags;
  111. } DVD_PLAYBACK_LOCATION2;
  112. typedef struct tagDVD_PLAYBACK_LOCATION
  113. {
  114. ULONG TitleNum;
  115. ULONG ChapterNum;
  116. ULONG TimeCode;
  117. } DVD_PLAYBACK_LOCATION;
  118. typedef DWORD VALID_UOP_SOMTHING_OR_OTHER;
  119. typedef enum
  120. {
  121. UOP_FLAG_Play_Title_Or_AtTime = 0x00000001,
  122. UOP_FLAG_Play_Chapter = 0x00000002,
  123. UOP_FLAG_Play_Title = 0x00000004,
  124. UOP_FLAG_Stop = 0x00000008,
  125. UOP_FLAG_ReturnFromSubMenu = 0x00000010,
  126. UOP_FLAG_Play_Chapter_Or_AtTime = 0x00000020,
  127. UOP_FLAG_PlayPrev_Or_Replay_Chapter = 0x00000040,
  128. UOP_FLAG_PlayNext_Chapter = 0x00000080,
  129. UOP_FLAG_Play_Forwards = 0x00000100,
  130. UOP_FLAG_Play_Backwards = 0x00000200,
  131. UOP_FLAG_ShowMenu_Title = 0x00000400,
  132. UOP_FLAG_ShowMenu_Root = 0x00000800,
  133. UOP_FLAG_ShowMenu_SubPic = 0x00001000,
  134. UOP_FLAG_ShowMenu_Audio = 0x00002000,
  135. UOP_FLAG_ShowMenu_Angle = 0x00004000,
  136. UOP_FLAG_ShowMenu_Chapter = 0x00008000,
  137. UOP_FLAG_Resume = 0x00010000,
  138. UOP_FLAG_Select_Or_Activate_Button = 0x00020000,
  139. UOP_FLAG_Still_Off = 0x00040000,
  140. UOP_FLAG_Pause_On = 0x00080000,
  141. UOP_FLAG_Select_Audio_Stream = 0x00100000,
  142. UOP_FLAG_Select_SubPic_Stream = 0x00200000,
  143. UOP_FLAG_Select_Angle = 0x00400000,
  144. UOP_FLAG_Select_Karaoke_Audio_Presentation_Mode = 0x00800000,
  145. UOP_FLAG_Select_Video_Mode_Preference = 0x01000000
  146. } VALID_UOP_FLAG;
  147. typedef enum
  148. {
  149. DVD_CMD_FLAG_None = 0x00000000,
  150. DVD_CMD_FLAG_Flush = 0x00000001,
  151. DVD_CMD_FLAG_SendEvents = 0x00000002,
  152. DVD_CMD_FLAG_Block = 0x00000004,
  153. DVD_CMD_FLAG_StartWhenRendered = 0x00000008,
  154. DVD_CMD_FLAG_EndAfterRendered = 0x00000010
  155. } DVD_CMD_FLAGS;
  156. typedef enum
  157. {
  158. DVD_ResetOnStop = 1,
  159. DVD_NotifyParentalLevelChange = 2,
  160. DVD_HMSF_TimeCodeEvents = 3,
  161. DVD_AudioDuringFFwdRew = 4,
  162. DVD_EnableNonblockingAPIs = 5,
  163. DVD_CacheSizeInMB = 6,
  164. DVD_EnablePortableBookmarks = 7,
  165. DVD_EnableExtendedCopyProtectErrors = 8,
  166. DVD_NotifyPositionChange = 9,
  167. DVD_IncreaseOutputControl = 10,
  168. DVD_EnableStreaming = 11,
  169. DVD_EnableESOutput = 12,
  170. DVD_EnableTitleLength = 13,
  171. DVD_DisableStillThrottle = 14,
  172. DVD_EnableLoggingEvents = 15,
  173. DVD_MaxReadBurstInKB = 16,
  174. DVD_ReadBurstPeriodInMS = 17,
  175. DVD_RestartDisc = 18,
  176. DVD_EnableCC = 19
  177. } DVD_OPTION_FLAG;
  178. typedef enum
  179. {
  180. DVD_Relative_Upper = 1,
  181. DVD_Relative_Lower = 2,
  182. DVD_Relative_Left = 3,
  183. DVD_Relative_Right = 4
  184. } DVD_RELATIVE_BUTTON;
  185. typedef enum tagDVD_PARENTAL_LEVEL
  186. {
  187. DVD_PARENTAL_LEVEL_8 = 0x8000,
  188. DVD_PARENTAL_LEVEL_7 = 0x4000,
  189. DVD_PARENTAL_LEVEL_6 = 0x2000,
  190. DVD_PARENTAL_LEVEL_5 = 0x1000,
  191. DVD_PARENTAL_LEVEL_4 = 0x0800,
  192. DVD_PARENTAL_LEVEL_3 = 0x0400,
  193. DVD_PARENTAL_LEVEL_2 = 0x0200,
  194. DVD_PARENTAL_LEVEL_1 = 0x0100
  195. } DVD_PARENTAL_LEVEL;
  196. typedef enum tagDVD_AUDIO_LANG_EXT
  197. {
  198. DVD_AUD_EXT_NotSpecified = 0,
  199. DVD_AUD_EXT_Captions = 1,
  200. DVD_AUD_EXT_VisuallyImpaired = 2,
  201. DVD_AUD_EXT_DirectorComments1 = 3,
  202. DVD_AUD_EXT_DirectorComments2 = 4
  203. } DVD_AUDIO_LANG_EXT;
  204. typedef enum tagDVD_SUBPICTURE_LANG_EXT
  205. {
  206. DVD_SP_EXT_NotSpecified = 0,
  207. DVD_SP_EXT_Caption_Normal = 1,
  208. DVD_SP_EXT_Caption_Big = 2,
  209. DVD_SP_EXT_Caption_Children = 3,
  210. DVD_SP_EXT_CC_Normal = 5,
  211. DVD_SP_EXT_CC_Big = 6,
  212. DVD_SP_EXT_CC_Children = 7,
  213. DVD_SP_EXT_Forced = 9,
  214. DVD_SP_EXT_DirectorComments_Normal = 13,
  215. DVD_SP_EXT_DirectorComments_Big = 14,
  216. DVD_SP_EXT_DirectorComments_Children = 15
  217. } DVD_SUBPICTURE_LANG_EXT;
  218. typedef enum tagDVD_AUDIO_APPMODE
  219. {
  220. DVD_AudioMode_None = 0,
  221. DVD_AudioMode_Karaoke = 1,
  222. DVD_AudioMode_Surround = 2,
  223. DVD_AudioMode_Other = 3
  224. } DVD_AUDIO_APPMODE;
  225. typedef enum tagDVD_AUDIO_FORMAT
  226. {
  227. DVD_AudioFormat_AC3 = 0,
  228. DVD_AudioFormat_MPEG1 = 1,
  229. DVD_AudioFormat_MPEG1_DRC = 2,
  230. DVD_AudioFormat_MPEG2 = 3,
  231. DVD_AudioFormat_MPEG2_DRC = 4,
  232. DVD_AudioFormat_LPCM = 5,
  233. DVD_AudioFormat_DTS = 6,
  234. DVD_AudioFormat_SDDS = 7,
  235. DVD_AudioFormat_Other = 8
  236. } DVD_AUDIO_FORMAT;
  237. typedef enum tagDVD_KARAOKE_DOWNMIX
  238. {
  239. DVD_Mix_0to0 = 0x0001,
  240. DVD_Mix_1to0 = 0x0002,
  241. DVD_Mix_2to0 = 0x0004,
  242. DVD_Mix_3to0 = 0x0008,
  243. DVD_Mix_4to0 = 0x0010,
  244. DVD_Mix_Lto0 = 0x0020,
  245. DVD_Mix_Rto0 = 0x0040,
  246. DVD_Mix_0to1 = 0x0100,
  247. DVD_Mix_1to1 = 0x0200,
  248. DVD_Mix_2to1 = 0x0400,
  249. DVD_Mix_3to1 = 0x0800,
  250. DVD_Mix_4to1 = 0x1000,
  251. DVD_Mix_Lto1 = 0x2000,
  252. DVD_Mix_Rto1 = 0x4000
  253. } DVD_KARAOKE_DOWNMIX;
  254. typedef enum tagDVD_KARAOKE_CONTENTS
  255. {
  256. DVD_Karaoke_GuideVocal1 = 0x0001,
  257. DVD_Karaoke_GuideVocal2 = 0x0002,
  258. DVD_Karaoke_GuideMelody1 = 0x0004,
  259. DVD_Karaoke_GuideMelody2 = 0x0008,
  260. DVD_Karaoke_GuideMelodyA = 0x0010,
  261. DVD_Karaoke_GuideMelodyB = 0x0020,
  262. DVD_Karaoke_SoundEffectA = 0x0040,
  263. DVD_Karaoke_SoundEffectB = 0x0080
  264. } DVD_KARAOKE_CONTENTS;
  265. typedef enum tagDVD_KARAOKE_ASSIGNMENT
  266. {
  267. DVD_Assignment_reserved0 = 0,
  268. DVD_Assignment_reserved1 = 1,
  269. DVD_Assignment_LR = 2,
  270. DVD_Assignment_LRM = 3,
  271. DVD_Assignment_LR1 = 4,
  272. DVD_Assignment_LRM1 = 5,
  273. DVD_Assignment_LR12 = 6,
  274. DVD_Assignment_LRM12 = 7
  275. } DVD_KARAOKE_ASSIGNMENT;
  276. typedef struct tagDVD_MUA_MixingInfo
  277. {
  278. BOOL fMixTo0;
  279. BOOL fMixTo1;
  280. BOOL fMix0InPhase;
  281. BOOL fMix1InPhase;
  282. DWORD dwSpeakerPosition;
  283. } DVD_MUA_MixingInfo;
  284. typedef struct tagDVD_MUA_Coeff
  285. {
  286. double log2_alpha;
  287. double log2_beta;
  288. } DVD_MUA_Coeff;
  289. typedef enum tagDVD_VIDEO_COMPRESSION
  290. {
  291. DVD_VideoCompression_Other = 0,
  292. DVD_VideoCompression_MPEG1 = 1,
  293. DVD_VideoCompression_MPEG2 = 2
  294. } DVD_VIDEO_COMPRESSION;
  295. typedef enum tagDVD_SUBPICTURE_TYPE
  296. {
  297. DVD_SPType_NotSpecified = 0,
  298. DVD_SPType_Language = 1,
  299. DVD_SPType_Other = 2
  300. } DVD_SUBPICTURE_TYPE;
  301. typedef enum tagDVD_SUBPICTURE_CODING
  302. {
  303. DVD_SPCoding_RunLength = 0,
  304. DVD_SPCoding_Extended = 1,
  305. DVD_SPCoding_Other = 2
  306. } DVD_SUBPICTURE_CODING;
  307. typedef enum tagDVD_TITLE_APPMODE
  308. {
  309. DVD_AppMode_Not_Specified = 0,
  310. DVD_AppMode_Karaoke = 1,
  311. DVD_AppMode_Other = 3
  312. } DVD_TITLE_APPMODE;
  313. enum DVD_TextStringType
  314. {
  315. DVD_Struct_Volume = 0x01,
  316. DVD_Struct_Title = 0x02,
  317. DVD_Struct_ParentalID = 0x03,
  318. DVD_Struct_PartOfTitle = 0x04,
  319. DVD_Struct_Cell = 0x05,
  320. DVD_Stream_Audio = 0x10,
  321. DVD_Stream_Subpicture = 0x11,
  322. DVD_Stream_Angle = 0x12,
  323. DVD_Channel_Audio = 0x20,
  324. DVD_General_Name = 0x30,
  325. DVD_General_Comments = 0x31,
  326. DVD_Title_Series = 0x38,
  327. DVD_Title_Movie = 0x39,
  328. DVD_Title_Video = 0x3a,
  329. DVD_Title_Album = 0x3b,
  330. DVD_Title_Song = 0x3c,
  331. DVD_Title_Other = 0x3f,
  332. DVD_Title_Sub_Series = 0x40,
  333. DVD_Title_Sub_Movie = 0x41,
  334. DVD_Title_Sub_Video = 0x42,
  335. DVD_Title_Sub_Album = 0x43,
  336. DVD_Title_Sub_Song = 0x44,
  337. DVD_Title_Sub_Other = 0x47,
  338. DVD_Title_Orig_Series = 0x48,
  339. DVD_Title_Orig_Movie = 0x49,
  340. DVD_Title_Orig_Video = 0x4a,
  341. DVD_Title_Orig_Album = 0x4b,
  342. DVD_Title_Orig_Song = 0x4c,
  343. DVD_Title_Orig_Other = 0x4f,
  344. DVD_Other_Scene = 0x50,
  345. DVD_Other_Cut = 0x51,
  346. DVD_Other_Take = 0x52
  347. };
  348. enum DVD_TextCharSet
  349. {
  350. DVD_CharSet_Unicode = 0,
  351. DVD_CharSet_ISO646 = 1,
  352. DVD_CharSet_JIS_Roman_Kanji = 2,
  353. DVD_CharSet_ISO8859_1 = 3,
  354. DVD_CharSet_ShiftJIS_Kanji_Roman_Katakana = 4
  355. };
  356. typedef struct tagDVD_AudioAttributes
  357. {
  358. DVD_AUDIO_APPMODE AppMode;
  359. BYTE AppModeData;
  360. DVD_AUDIO_FORMAT AudioFormat;
  361. LCID Language;
  362. DVD_AUDIO_LANG_EXT LanguageExtension;
  363. BOOL fHasMultichannelInfo;
  364. DWORD dwFrequency;
  365. BYTE bQuantization;
  366. BYTE bNumberOfChannels;
  367. DWORD dwReserved[2];
  368. } DVD_AudioAttributes;
  369. typedef struct tagDVD_MultichannelAudioAttributes
  370. {
  371. DVD_MUA_MixingInfo Info[8];
  372. DVD_MUA_Coeff Coeff[8];
  373. } DVD_MultichannelAudioAttributes;
  374. typedef struct tagDVD_VideoAttributes
  375. {
  376. BOOL fPanscanPermitted;
  377. BOOL fLetterboxPermitted;
  378. ULONG ulAspectX;
  379. ULONG ulAspectY;
  380. ULONG ulFrameRate;
  381. ULONG ulFrameHeight;
  382. DVD_VIDEO_COMPRESSION Compression;
  383. BOOL fLine21Field1InGOP;
  384. BOOL fLine21Field2InGOP;
  385. ULONG ulSourceResolutionX;
  386. ULONG ulSourceResolutionY;
  387. BOOL fIsSourceLetterboxed;
  388. BOOL fIsFilmMode;
  389. } DVD_VideoAttributes;
  390. typedef struct tagDVD_SubpictureAttributes
  391. {
  392. DVD_SUBPICTURE_TYPE Type;
  393. DVD_SUBPICTURE_CODING CodingMode;
  394. LCID Language;
  395. DVD_SUBPICTURE_LANG_EXT LanguageExtension;
  396. } DVD_SubpictureAttributes;
  397. typedef struct tagDVD_KaraokeAttributes
  398. {
  399. BYTE bVersion;
  400. BOOL fMasterOfCeremoniesInGuideVocal1;
  401. BOOL fDuet;
  402. DVD_KARAOKE_ASSIGNMENT ChannelAssignment;
  403. WORD wChannelContents[8];
  404. } DVD_KaraokeAttributes;
  405. typedef struct tagDVD_TitleMainAttributes
  406. {
  407. union
  408. {
  409. DVD_TITLE_APPMODE AppMode;
  410. DVD_HMSF_TIMECODE TitleLength;
  411. } DUMMYUNIONNAME;
  412. DVD_VideoAttributes VideoAttributes;
  413. ULONG ulNumberOfAudioStreams;
  414. DVD_AudioAttributes AudioAttributes[8];
  415. DVD_MultichannelAudioAttributes MultichannelAudioAttributes[8];
  416. ULONG ulNumberOfSubpictureStreams;
  417. DVD_SubpictureAttributes SubpictureAttributes[32];
  418. } DVD_TitleAttributes;
  419. typedef struct tagDVD_MenuAttributes
  420. {
  421. BOOL fCompatibleRegion[8];
  422. DVD_VideoAttributes VideoAttributes;
  423. BOOL fAudioPresent;
  424. DVD_AudioAttributes AudioAttributes;
  425. BOOL fSubpicturePresent;
  426. DVD_SubpictureAttributes SubpictureAttributes;
  427. } DVD_MenuAttributes;
  428. cpp_quote ("#define DVD_TITLE_MENU 0x000")
  429. cpp_quote ("#define DVD_STREAM_DATA_VMGM 0x400")
  430. cpp_quote ("#define DVD_STREAM_DATA_VTSM 0x401")
  431. cpp_quote ("#define DVD_STREAM_DATA_CURRENT 0x800")
  432. cpp_quote ("#define DVD_DEFAULT_AUDIO_STREAM 0x00f")
  433. cpp_quote ("#define DVD_AUDIO_CAPS_AC3 0x00000001")
  434. cpp_quote ("#define DVD_AUDIO_CAPS_MPEG2 0x00000002")
  435. cpp_quote ("#define DVD_AUDIO_CAPS_LPCM 0x00000004")
  436. cpp_quote ("#define DVD_AUDIO_CAPS_DTS 0x00000008")
  437. cpp_quote ("#define DVD_AUDIO_CAPS_SDDS 0x00000010")
  438. typedef struct tagDVD_DECODER_CAPS
  439. {
  440. DWORD dwSize;
  441. DWORD dwAudioCaps;
  442. double dFwdMaxRateVideo;
  443. double dFwdMaxRateAudio;
  444. double dFwdMaxRateSP;
  445. double dBwdMaxRateVideo;
  446. double dBwdMaxRateAudio;
  447. double dBwdMaxRateSP;
  448. DWORD dwRes1;
  449. DWORD dwRes2;
  450. DWORD dwRes3;
  451. DWORD dwRes4;
  452. } DVD_DECODER_CAPS;
  453. typedef enum _AM_DVD_GRAPH_FLAGS
  454. {
  455. AM_DVD_HWDEC_PREFER = 0x0001,
  456. AM_DVD_HWDEC_ONLY = 0x0002,
  457. AM_DVD_SWDEC_PREFER = 0x0004,
  458. AM_DVD_SWDEC_ONLY = 0x0008,
  459. AM_DVD_NOVPE = 0x0100,
  460. AM_DVD_DO_NOT_CLEAR = 0x0200,
  461. AM_DVD_VMR9_ONLY = 0x0800,
  462. AM_DVD_EVR_ONLY = 0x1000,
  463. AM_DVD_EVR_QOS = 0x2000,
  464. AM_DVD_ADAPT_GRAPH = 0x4000,
  465. AM_DVD_MASK = 0xffff
  466. } AM_DVD_GRAPH_FLAGS;
  467. typedef enum _AM_DVD_STREAM_FLAGS
  468. {
  469. AM_DVD_STREAM_VIDEO = 0x01,
  470. AM_DVD_STREAM_AUDIO = 0x02,
  471. AM_DVD_STREAM_SUBPIC = 0x04
  472. } AM_DVD_STREAM_FLAGS;
  473. typedef struct tagAM_DVD_RENDERSTATUS
  474. {
  475. HRESULT hrVPEStatus;
  476. BOOL bDvdVolInvalid;
  477. BOOL bDvdVolUnknown;
  478. BOOL bNoLine21In;
  479. BOOL bNoLine21Out;
  480. int iNumStreams;
  481. int iNumStreamsFailed;
  482. DWORD dwFailedStreamsFlag;
  483. } AM_DVD_RENDERSTATUS;
  484. [
  485. local,
  486. object,
  487. uuid(a70efe61-e2a3-11d0-a9be-00aa0061be93),
  488. ]
  489. interface IDvdControl : IUnknown
  490. {
  491. HRESULT TitlePlay([in] ULONG title);
  492. HRESULT ChapterPlay([in] ULONG title, [in] ULONG chapter);
  493. HRESULT TimePlay([in] ULONG title, [in] ULONG time);
  494. HRESULT StopForResume();
  495. HRESULT GoUp();
  496. HRESULT TimeSearch([in] ULONG time);
  497. HRESULT ChapterSearch([in] ULONG chapter);
  498. HRESULT PrevPGSearch();
  499. HRESULT TopPGSearch();
  500. HRESULT NextPGSearch();
  501. HRESULT ForwardScan([in] double speed);
  502. HRESULT BackwardScan([in] double speed);
  503. HRESULT MenuCall([in] DVD_MENU_ID id);
  504. HRESULT Resume();
  505. HRESULT UpperButtonSelect();
  506. HRESULT LowerButtonSelect();
  507. HRESULT LeftButtonSelect();
  508. HRESULT RightButtonSelect();
  509. HRESULT ButtonActivate();
  510. HRESULT ButtonSelectActivate([in] ULONG button);
  511. HRESULT StillOff();
  512. HRESULT PauseOn();
  513. HRESULT PauseOff();
  514. HRESULT MenuLanguageSelect([in] LCID language);
  515. HRESULT AudioStreamChange([in] ULONG audio);
  516. HRESULT SubpictureStreamChange([in] ULONG subpicture, [in] BOOL enable);
  517. HRESULT AngleChange([in] ULONG angle);
  518. HRESULT ParentalLevelSelect([in] ULONG level);
  519. HRESULT ParentalCountrySelect([in] WORD country);
  520. HRESULT KaraokeAudioPresentationModeChange([in] ULONG mode);
  521. HRESULT VideoModePreference([in] ULONG mode);
  522. HRESULT SetRoot([in] const WCHAR *path);
  523. HRESULT MouseActivate([in] POINT point);
  524. HRESULT MouseSelect([in] POINT point);
  525. HRESULT ChapterPlayAutoStop([in] ULONG title, [in] ULONG chapter, [in] ULONG count);
  526. }
  527. [
  528. local,
  529. object,
  530. uuid(a70efe60-e2a3-11d0-a9be-00aa0061be93),
  531. ]
  532. interface IDvdInfo : IUnknown
  533. {
  534. HRESULT GetCurrentDomain([out] DVD_DOMAIN *domain);
  535. HRESULT GetCurrentLocation([out] DVD_PLAYBACK_LOCATION *location);
  536. HRESULT GetTotalTitleTime([out] ULONG *time);
  537. HRESULT GetCurrentButton([out] ULONG *count, [out] ULONG *current);
  538. HRESULT GetCurrentAngle([out] ULONG *count, [out] ULONG *current);
  539. HRESULT GetCurrentAudio([out] ULONG *count, [out] ULONG *current);
  540. HRESULT GetCurrentSubpicture([out] ULONG *count, [out] ULONG *current, [out] BOOL *enable);
  541. HRESULT GetCurrentUOPS([out] VALID_UOP_SOMTHING_OR_OTHER *uops);
  542. HRESULT GetAllSPRMs([out] SPRMARRAY *regs);
  543. HRESULT GetAllGPRMs([out] GPRMARRAY *regs);
  544. HRESULT GetAudioLanguage([in] ULONG stream, [out] LCID *language);
  545. HRESULT GetSubpictureLanguage([in] ULONG stream, [out] LCID *language);
  546. HRESULT GetTitleAttributes([in] ULONG title, [out] DVD_ATR *attr);
  547. HRESULT GetVMGAttributes([out] DVD_ATR *attr);
  548. HRESULT GetCurrentVideoAttributes([out] DVD_VideoATR *attr);
  549. HRESULT GetCurrentAudioAttributes([out] DVD_AudioATR *attr);
  550. HRESULT GetCurrentSubpictureAttributes([out] DVD_SubpictureATR *attr);
  551. HRESULT GetCurrentVolumeInfo([out] ULONG *volume_count, [out] ULONG *current, [out] DVD_DISC_SIDE *side, [out] ULONG *title_count);
  552. HRESULT GetDVDTextInfo([out, size_is(size)] BYTE *text_manager, [in] ULONG size, [out] ULONG *ret_size);
  553. HRESULT GetPlayerParentalLevel([out] ULONG *level, [out] ULONG *country_code);
  554. HRESULT GetNumberOfChapters([in] ULONG title, [out] ULONG *count);
  555. HRESULT GetTitleParentalLevels([in] ULONG title, [out] ULONG *levels);
  556. HRESULT GetRoot([out, size_is(size)] char *path, [in] ULONG size, [out] ULONG *ret_size);
  557. }
  558. [
  559. local,
  560. object,
  561. uuid(5a4a97e4-94ee-4a55-9751-74b5643aa27d),
  562. ]
  563. interface IDvdCmd : IUnknown
  564. {
  565. HRESULT WaitForStart();
  566. HRESULT WaitForEnd();
  567. }
  568. [
  569. local,
  570. object,
  571. uuid(86303d6d-1c4a-4087-ab42-f711167048ef),
  572. ]
  573. interface IDvdState : IUnknown
  574. {
  575. HRESULT GetDiscID([out] ULONGLONG *id);
  576. HRESULT GetParentalLevel([out] ULONG *level);
  577. }
  578. [
  579. local,
  580. object,
  581. uuid(33bc7430-eec0-11d2-8201-00a0c9d74842),
  582. ]
  583. interface IDvdControl2 : IUnknown
  584. {
  585. HRESULT PlayTitle([in] ULONG title, [in] DWORD flags, [out] IDvdCmd **cmd);
  586. HRESULT PlayChapterInTitle([in] ULONG title, [in] ULONG chapter, [in] DWORD flags, [out] IDvdCmd **cmd);
  587. HRESULT PlayTimeInTitle([in] ULONG title, [in] DVD_HMSF_TIMECODE *time, [in] DWORD flags, [out] IDvdCmd **cmd);
  588. HRESULT Stop();
  589. HRESULT ReturnFromSubmenu([in] DWORD flags, [out] IDvdCmd **cmd);
  590. HRESULT PlayAtTime([in] DVD_HMSF_TIMECODE *time, [in] DWORD flags, [out] IDvdCmd **cmd);
  591. HRESULT PlayChapter([in] ULONG chapter, [in] DWORD flags, [out] IDvdCmd **cmd);
  592. HRESULT PlayPrevChapter([in] DWORD flags, [out] IDvdCmd **cmd);
  593. HRESULT ReplayChapter([in] DWORD flags, [out] IDvdCmd **cmd);
  594. HRESULT PlayNextChapter([in] DWORD flags, [out] IDvdCmd **cmd);
  595. HRESULT PlayForwards([in] double speed, [in] DWORD flags, [out] IDvdCmd **cmd);
  596. HRESULT PlayBackwards([in] double speed, [in] DWORD flags, [out] IDvdCmd **cmd);
  597. HRESULT ShowMenu([in] DVD_MENU_ID id, [in] DWORD flags, [out] IDvdCmd **cmd);
  598. HRESULT Resume([in] DWORD flags, [out] IDvdCmd **cmd);
  599. HRESULT SelectRelativeButton([in] DVD_RELATIVE_BUTTON button);
  600. HRESULT ActivateButton();
  601. HRESULT SelectButton([in] ULONG button);
  602. HRESULT SelectAndActivateButton([in] ULONG button);
  603. HRESULT StillOff();
  604. HRESULT Pause([in] BOOL enable);
  605. HRESULT SelectAudioStream([in] ULONG stream, [in] DWORD flags, [out] IDvdCmd **cmd);
  606. HRESULT SelectSubpictureStream([in] ULONG stream, [in] DWORD flags, [out] IDvdCmd **cmd);
  607. HRESULT SetSubpictureState([in] BOOL enable, [in] DWORD flags, [out] IDvdCmd **cmd);
  608. HRESULT SelectAngle([in] ULONG angle, [in] DWORD flags, [out] IDvdCmd **cmd);
  609. HRESULT SelectParentalLevel([in] ULONG level);
  610. HRESULT SelectParentalCountry([in] BYTE country[2]);
  611. HRESULT SelectKaraokeAudioPresentationMode([in] ULONG mode);
  612. HRESULT SelectVideoModePreference([in] ULONG mode);
  613. HRESULT SetDVDDirectory([in] const WCHAR *path);
  614. HRESULT ActivateAtPosition([in] POINT point);
  615. HRESULT SelectAtPosition([in] POINT point);
  616. HRESULT PlayChaptersAutoStop([in] ULONG title, [in] ULONG chapter, [in] ULONG count, [in] DWORD flags, [out] IDvdCmd **cmd);
  617. HRESULT AcceptParentalLevelChange([in] BOOL accept);
  618. HRESULT SetOption([in] DVD_OPTION_FLAG flag, [in] BOOL option);
  619. HRESULT SetState([in] IDvdState *state, [in] DWORD flags, [out] IDvdCmd **cmd);
  620. HRESULT PlayPeriodInTitleAutoStop([in] ULONG title, [in] DVD_HMSF_TIMECODE *start_time, [in] DVD_HMSF_TIMECODE *end_time, [in] DWORD flags, [out] IDvdCmd **cmd);
  621. HRESULT SetGRPM([in] ULONG index, [in] WORD value, [in] DWORD flags, [out] IDvdCmd **cmd);
  622. HRESULT SelectDefaultMenuLanguage([in] LCID language);
  623. HRESULT SelectDefaultAudioLanguage([in] LCID language, [in] DVD_AUDIO_LANG_EXT extension);
  624. HRESULT SelectDefaultSubpictureLanguage([in] LCID language, [in] DVD_SUBPICTURE_LANG_EXT extension);
  625. }
  626. [
  627. local,
  628. object,
  629. uuid(34151510-eec0-11d2-8201-00a0c9d74842),
  630. ]
  631. interface IDvdInfo2 : IUnknown
  632. {
  633. HRESULT GetCurrentDomain([out] DVD_DOMAIN *domain);
  634. HRESULT GetCurrentLocation([out] DVD_PLAYBACK_LOCATION2 *location);
  635. HRESULT GetTotalTitleTime([out] DVD_HMSF_TIMECODE *time, [out] ULONG *flags);
  636. HRESULT GetCurrentButton([out] ULONG *count, [out] ULONG *current);
  637. HRESULT GetCurrentAngle([out] ULONG *count, [out] ULONG *current);
  638. HRESULT GetCurrentAudio([out] ULONG *count, [out] ULONG *current);
  639. HRESULT GetCurrentSubpicture([out] ULONG *count, [out] ULONG *current, [out] BOOL *enable);
  640. HRESULT GetCurrentUOPS([out] ULONG *uops);
  641. HRESULT GetAllSPRMs([out] SPRMARRAY *regs);
  642. HRESULT GetAllGPRMs([out] GPRMARRAY *regs);
  643. HRESULT GetAudioLanguage([in] ULONG stream, [out] LCID *language);
  644. HRESULT GetSubpictureLanguage([in] ULONG stream, [out] LCID *language);
  645. HRESULT GetTitleAttributes([in] ULONG index, [out] DVD_MenuAttributes *menu, [out] DVD_TitleAttributes *title);
  646. HRESULT GetVMGAttributes([out] DVD_MenuAttributes *attr);
  647. HRESULT GetVideoAttributes([out] DVD_VideoAttributes *attr);
  648. HRESULT GetAudioAttributes([in] ULONG stream, [out] DVD_AudioAttributes *attr);
  649. HRESULT GetKaraokeAttributes([in] ULONG stream, [out] DVD_KaraokeAttributes *attr);
  650. HRESULT GetSubpictureAttributes([in] ULONG stream, [out] DVD_SubpictureAttributes *attr);
  651. HRESULT GetCurrentVolumeInfo([out] ULONG *volume_count, [out] ULONG *current, [out] DVD_DISC_SIDE *side, [out] ULONG *title_count);
  652. HRESULT GetDVDTextNumberOfLanguages([out] ULONG *count);
  653. HRESULT GetDVDTextLanguageInfo([in] ULONG index, [out] ULONG *string_count, [out] LCID *language, [out] enum DVD_TextCharSet *character_set);
  654. HRESULT GetDVDTextStringAsNative([in] ULONG lang_index, [in] ULONG string_index, [out] BYTE *string, [in] ULONG size, [out] ULONG *ret_size, [out] enum DVD_TextStringType *type);
  655. HRESULT GetDVDTextStringAsUnicode([in] ULONG lang_index, [in] ULONG string_index, [out] WCHAR *string, [in] ULONG size, [out] ULONG *ret_size, [out] enum DVD_TextStringType *type);
  656. HRESULT GetPlayerParentalLevel([out] ULONG *level, [out] BYTE country_code[2]);
  657. HRESULT GetNumberOfChapters([in] ULONG title, [out] ULONG *count);
  658. HRESULT GetTitleParentalLevels([in] ULONG title, [out] ULONG *levels);
  659. HRESULT GetDVDDirectory([out, size_is(size)] WCHAR *path, [in] ULONG size, [out] ULONG *ret_size);
  660. HRESULT IsAudioStreamEnabled([in] ULONG stream, [out] BOOL *enable);
  661. HRESULT GetDiscID([in] const WCHAR *path, [out] ULONGLONG *id);
  662. HRESULT GetState([out] IDvdState **state);
  663. HRESULT GetMenuLanguages([out] LCID *languages, [in] ULONG count, [out] ULONG *ret_count);
  664. HRESULT GetButtonAtPosition([in] POINT point, [out] ULONG *button);
  665. HRESULT GetCmdFromEvent([in] LONG_PTR param, [out] IDvdCmd **cmd);
  666. HRESULT GetDefaultMenuLanguage([out] LCID *language);
  667. HRESULT GetDefaultAudioLanguage([out] LCID *language, [out] DVD_AUDIO_LANG_EXT *extension);
  668. HRESULT SelectDefaultSubpictureLanguage([out] LCID *language, [out] DVD_SUBPICTURE_LANG_EXT *extension);
  669. HRESULT GetDecoderCaps([out] DVD_DECODER_CAPS *caps);
  670. HRESULT GetButtonRect([in] ULONG button, [out] RECT *rect);
  671. HRESULT IsSubpictureStreamEnabled([in] ULONG stream, [out] BOOL *enable);
  672. }
  673. [
  674. local,
  675. object,
  676. uuid(fcc152b6-f372-11d0-8e00-00c04fd7c08b),
  677. ]
  678. interface IDvdGraphBuilder : IUnknown
  679. {
  680. HRESULT GetFiltergraph([out] IGraphBuilder **graph);
  681. HRESULT GetDvdInterface([in] REFIID iid, [out] void **out);
  682. HRESULT RenderDvdVideoVolume([in] const WCHAR *path, [in] DWORD flags, [out] AM_DVD_RENDERSTATUS *status);
  683. }