PageRenderTime 68ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/univint/src/QuickTimeStreaming.pas

https://github.com/slibre/freepascal
Pascal | 2473 lines | 787 code | 291 blank | 1395 comment | 0 complexity | 38d0058b1c2400cbd3a62b06df9e7d7c MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
  1. {
  2. File: QuickTime/QuickTimeStreaming.h
  3. Contains: QuickTime Interfaces.
  4. Version: QuickTime 7.7.1
  5. Copyright: © 1990-2012 by Apple Inc., all rights reserved
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://www.freepascal.org/bugs.html
  9. }
  10. { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
  11. { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2012 }
  12. {
  13. Modified for use with Free Pascal
  14. Version 308
  15. Please report any bugs to <gpc@microbizz.nl>
  16. }
  17. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  18. {$mode macpas}
  19. {$packenum 1}
  20. {$macro on}
  21. {$inline on}
  22. {$calling mwpascal}
  23. unit QuickTimeStreaming;
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc defined cpu64}
  62. {$setc __LP64__ := 1}
  63. {$elsec}
  64. {$setc __LP64__ := 0}
  65. {$endc}
  66. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  67. {$error Conflicting definitions for __ppc__ and __i386__}
  68. {$endc}
  69. {$ifc defined __ppc__ and __ppc__}
  70. {$setc TARGET_CPU_PPC := TRUE}
  71. {$setc TARGET_CPU_PPC64 := FALSE}
  72. {$setc TARGET_CPU_X86 := FALSE}
  73. {$setc TARGET_CPU_X86_64 := FALSE}
  74. {$setc TARGET_CPU_ARM := FALSE}
  75. {$setc TARGET_OS_MAC := TRUE}
  76. {$setc TARGET_OS_IPHONE := FALSE}
  77. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  78. {$setc TARGET_OS_EMBEDDED := FALSE}
  79. {$elifc defined __ppc64__ and __ppc64__}
  80. {$setc TARGET_CPU_PPC := FALSE}
  81. {$setc TARGET_CPU_PPC64 := TRUE}
  82. {$setc TARGET_CPU_X86 := FALSE}
  83. {$setc TARGET_CPU_X86_64 := FALSE}
  84. {$setc TARGET_CPU_ARM := FALSE}
  85. {$setc TARGET_OS_MAC := TRUE}
  86. {$setc TARGET_OS_IPHONE := FALSE}
  87. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  88. {$setc TARGET_OS_EMBEDDED := FALSE}
  89. {$elifc defined __i386__ and __i386__}
  90. {$setc TARGET_CPU_PPC := FALSE}
  91. {$setc TARGET_CPU_PPC64 := FALSE}
  92. {$setc TARGET_CPU_X86 := TRUE}
  93. {$setc TARGET_CPU_X86_64 := FALSE}
  94. {$setc TARGET_CPU_ARM := FALSE}
  95. {$ifc defined(iphonesim)}
  96. {$setc TARGET_OS_MAC := FALSE}
  97. {$setc TARGET_OS_IPHONE := TRUE}
  98. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  99. {$elsec}
  100. {$setc TARGET_OS_MAC := TRUE}
  101. {$setc TARGET_OS_IPHONE := FALSE}
  102. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  103. {$endc}
  104. {$setc TARGET_OS_EMBEDDED := FALSE}
  105. {$elifc defined __x86_64__ and __x86_64__}
  106. {$setc TARGET_CPU_PPC := FALSE}
  107. {$setc TARGET_CPU_PPC64 := FALSE}
  108. {$setc TARGET_CPU_X86 := FALSE}
  109. {$setc TARGET_CPU_X86_64 := TRUE}
  110. {$setc TARGET_CPU_ARM := FALSE}
  111. {$setc TARGET_OS_MAC := TRUE}
  112. {$setc TARGET_OS_IPHONE := FALSE}
  113. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  114. {$setc TARGET_OS_EMBEDDED := FALSE}
  115. {$elifc defined __arm__ and __arm__}
  116. {$setc TARGET_CPU_PPC := FALSE}
  117. {$setc TARGET_CPU_PPC64 := FALSE}
  118. {$setc TARGET_CPU_X86 := FALSE}
  119. {$setc TARGET_CPU_X86_64 := FALSE}
  120. {$setc TARGET_CPU_ARM := TRUE}
  121. { will require compiler define when/if other Apple devices with ARM cpus ship }
  122. {$setc TARGET_OS_MAC := FALSE}
  123. {$setc TARGET_OS_IPHONE := TRUE}
  124. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  125. {$setc TARGET_OS_EMBEDDED := TRUE}
  126. {$elsec}
  127. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  128. {$endc}
  129. {$ifc defined __LP64__ and __LP64__ }
  130. {$setc TARGET_CPU_64 := TRUE}
  131. {$elsec}
  132. {$setc TARGET_CPU_64 := FALSE}
  133. {$endc}
  134. {$ifc defined FPC_BIG_ENDIAN}
  135. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  136. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  137. {$elifc defined FPC_LITTLE_ENDIAN}
  138. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  139. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  140. {$elsec}
  141. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  142. {$endc}
  143. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  144. {$setc CALL_NOT_IN_CARBON := FALSE}
  145. {$setc OLDROUTINENAMES := FALSE}
  146. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  147. {$setc OPAQUE_UPP_TYPES := TRUE}
  148. {$setc OTCARBONAPPLICATION := TRUE}
  149. {$setc OTKERNEL := FALSE}
  150. {$setc PM_USE_SESSION_APIS := TRUE}
  151. {$setc TARGET_API_MAC_CARBON := TRUE}
  152. {$setc TARGET_API_MAC_OS8 := FALSE}
  153. {$setc TARGET_API_MAC_OSX := TRUE}
  154. {$setc TARGET_CARBON := TRUE}
  155. {$setc TARGET_CPU_68K := FALSE}
  156. {$setc TARGET_CPU_MIPS := FALSE}
  157. {$setc TARGET_CPU_SPARC := FALSE}
  158. {$setc TARGET_OS_UNIX := FALSE}
  159. {$setc TARGET_OS_WIN32 := FALSE}
  160. {$setc TARGET_RT_MAC_68881 := FALSE}
  161. {$setc TARGET_RT_MAC_CFM := FALSE}
  162. {$setc TARGET_RT_MAC_MACHO := TRUE}
  163. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  164. {$setc TYPE_BOOL := FALSE}
  165. {$setc TYPE_EXTENDED := FALSE}
  166. {$setc TYPE_LONGLONG := TRUE}
  167. uses MacTypes,Components,Events,Files,QuickdrawTypes,Movies,ImageCompression,QuickTimeComponents;
  168. {$endc} {not MACOSALLINCLUDE}
  169. {$ifc TARGET_OS_MAC}
  170. {$ALIGN MAC68K}
  171. { QuickTime is not available to 64-bit clients }
  172. {$ifc not TARGET_CPU_64}
  173. const
  174. kQTSInfiniteDuration = $7FFFFFFF;
  175. kQTSUnknownDuration = $00000000;
  176. kQTSNormalForwardRate = $00010000;
  177. kQTSStoppedRate = $00000000;
  178. type
  179. QTSPresentationRecordPtr = ^QTSPresentationRecord;
  180. QTSPresentationRecord = record
  181. data: array [0..1-1] of SIGNEDLONG;
  182. end;
  183. type
  184. QTSPresentation = ^QTSPresentationRecord;
  185. QTSStreamRecordPtr = ^QTSStreamRecord;
  186. QTSStreamRecord = record
  187. data: array [0..1-1] of SIGNEDLONG;
  188. end;
  189. type
  190. QTSStream = ^QTSStreamRecord;
  191. QTSEditEntryPtr = ^QTSEditEntry;
  192. QTSEditEntry = record
  193. presentationDuration: TimeValue64;
  194. streamStartTime: TimeValue64;
  195. streamRate: Fixed;
  196. end;
  197. type
  198. QTSEditList = record
  199. numEdits: SInt32;
  200. edits: array [0..0] of QTSEditEntry;
  201. end;
  202. QTSEditListPtr = ^QTSEditList;
  203. type
  204. QTSEditListHandle = ^QTSEditListPtr;
  205. QTSNotificationProcPtr = function( inErr: ComponentResult; inNotificationType: OSType; inNotificationParams: UnivPtr; inRefCon: UnivPtr ): ComponentResult;
  206. QTSNotificationUPP = QTSNotificationProcPtr;
  207. {-----------------------------------------
  208. Get / Set Info
  209. -----------------------------------------}
  210. const
  211. kQTSGetURLLink = FourCharCode('gull'); { QTSGetURLLinkRecord* }
  212. { get and set }
  213. const
  214. kQTSTargetBufferDurationInfo = FourCharCode('bufr'); { Fixed* in seconds; expected, not actual }
  215. kQTSDurationInfo = FourCharCode('dura'); { QTSDurationAtom* }
  216. kQTSSoundLevelMeteringEnabledInfo = FourCharCode('mtrn'); { Boolean* }
  217. kQTSSoundLevelMeterInfo = FourCharCode('levm'); { LevelMeterInfoPtr }
  218. kQTSSourceTrackIDInfo = FourCharCode('otid'); { UInt32* }
  219. kQTSSourceLayerInfo = FourCharCode('olyr'); { UInt16* }
  220. kQTSSourceLanguageInfo = FourCharCode('olng'); { UInt16* }
  221. kQTSSourceTrackFlagsInfo = FourCharCode('otfl'); { SInt32* }
  222. kQTSSourceDimensionsInfo = FourCharCode('odim'); { QTSDimensionParams* }
  223. kQTSSourceVolumesInfo = FourCharCode('ovol'); { QTSVolumesParams* }
  224. kQTSSourceMatrixInfo = FourCharCode('omat'); { MatrixRecord* }
  225. kQTSSourceClipRectInfo = FourCharCode('oclp'); { Rect* }
  226. kQTSSourceGraphicsModeInfo = FourCharCode('ogrm'); { QTSGraphicsModeParams* }
  227. kQTSSourceScaleInfo = FourCharCode('oscl'); { Point* }
  228. kQTSSourceBoundingRectInfo = FourCharCode('orct'); { Rect* }
  229. kQTSSourceUserDataInfo = FourCharCode('oudt'); { UserData }
  230. kQTSSourceInputMapInfo = FourCharCode('oimp'); { QTAtomContainer }
  231. kQTSInfo_DataProc = FourCharCode('datp'); { QTSDataProcParams* }
  232. kQTSInfo_SendDataExtras = FourCharCode('dext'); { QTSSendDataExtrasParams* }
  233. kQTSInfo_HintTrackID = FourCharCode('htid'); { long* }
  234. kQTSInfo_URL = FourCharCode('url '); { Handle*, cstring in handle }
  235. kQTSInfo_Authentication = FourCharCode('auup'); { QTSAuthenticationParams }
  236. kQTSInfo_MediaPacketizer = FourCharCode('rmpk'); { ComponentInstance }
  237. { get only }
  238. const
  239. kQTSStatisticsInfo = FourCharCode('stat'); { QTSStatisticsParams* }
  240. kQTSMinStatusDimensionsInfo = FourCharCode('mstd'); { QTSDimensionParams* }
  241. kQTSNormalStatusDimensionsInfo = FourCharCode('nstd'); { QTSDimensionParams* }
  242. kQTSTotalDataRateInfo = FourCharCode('drtt'); { UInt32*, add to what's there }
  243. kQTSTotalDataRateInInfo = FourCharCode('drti'); { UInt32*, add to what's there }
  244. kQTSTotalDataRateOutInfo = FourCharCode('drto'); { UInt32*, add to what's there }
  245. kQTSLostPercentInfo = FourCharCode('lpct'); { QTSLostPercentParams*, add to what's there }
  246. kQTSNumViewersInfo = FourCharCode('nviw'); { UInt32* }
  247. kQTSMediaTypeInfo = FourCharCode('mtyp'); { OSType* }
  248. kQTSNameInfo = FourCharCode('name'); { QTSNameParams* }
  249. kQTSCanHandleSendDataType = FourCharCode('chsd'); { QTSCanHandleSendDataTypeParams* }
  250. kQTSAnnotationsInfo = FourCharCode('meta'); { QTAtomContainer }
  251. kQTSRemainingBufferTimeInfo = FourCharCode('btms'); { UInt32* remaining buffer time before playback, in microseconds }
  252. kQTSInfo_SettingsText = FourCharCode('sttx'); { QTSSettingsTextParams* }
  253. kQTSInfo_AverageFrameRate = FourCharCode('fps '); { UnsignedFixed* }
  254. type
  255. QTSAuthenticationParamsPtr = ^QTSAuthenticationParams;
  256. QTSAuthenticationParams = record
  257. flags: SInt32;
  258. userID: ConstCStringPtr; { caller disposes of pointer}
  259. password: ConstCStringPtr; { caller disposes of pointer}
  260. end;
  261. const
  262. kQTSTargetBufferDurationTimeScale = 1000;
  263. type
  264. QTSPanelFilterParamsPtr = ^QTSPanelFilterParams;
  265. QTSPanelFilterParams = record
  266. version: SInt32;
  267. inStream: QTSStream;
  268. inPanelType: OSType;
  269. inPanelSubType: OSType;
  270. details: QTAtomSpec;
  271. end;
  272. { return true to keep this panel}
  273. type
  274. QTSPanelFilterProcPtr = function( var inParams: QTSPanelFilterParams; inRefCon: UnivPtr ): Boolean;
  275. QTSPanelFilterUPP = QTSPanelFilterProcPtr;
  276. const
  277. kQTSSettingsTextSummary = FourCharCode('set1');
  278. kQTSSettingsTextDetails = FourCharCode('setd');
  279. type
  280. QTSSettingsTextParamsPtr = ^QTSSettingsTextParams;
  281. QTSSettingsTextParams = record
  282. flags: SInt32; { None yet defined}
  283. inSettingsSelector: OSType; { which kind of setting you want from enum above}
  284. outSettingsAsText: Handle; { QTS allocates; Caller disposes}
  285. inPanelFilterProc: QTSPanelFilterUPP; { To get a subset filter with this }
  286. inPanelFilterProcRefCon: UnivPtr;
  287. end;
  288. type
  289. QTSCanHandleSendDataTypeParamsPtr = ^QTSCanHandleSendDataTypeParams;
  290. QTSCanHandleSendDataTypeParams = record
  291. modifierTypeOrInputID: SInt32;
  292. isModifierType: Boolean;
  293. returnedCanHandleSendDataType: Boolean; { callee sets to true if it can handle it}
  294. end;
  295. type
  296. QTSNameParams = record
  297. maxNameLength: SInt32;
  298. requestedLanguage: SInt32;
  299. returnedActualLanguage: SInt32;
  300. returnedName: UInt8Ptr; { pascal string; caller supplies}
  301. end;
  302. type
  303. QTSLostPercentParamsPtr = ^QTSLostPercentParams;
  304. QTSLostPercentParams = record
  305. receivedPkts: UInt32;
  306. lostPkts: UInt32;
  307. percent: Fixed;
  308. end;
  309. type
  310. QTSDimensionParamsPtr = ^QTSDimensionParams;
  311. QTSDimensionParams = record
  312. width: Fixed;
  313. height: Fixed;
  314. end;
  315. type
  316. QTSVolumesParamsPtr = ^QTSVolumesParams;
  317. QTSVolumesParams = record
  318. leftVolume: SInt16;
  319. rightVolume: SInt16;
  320. end;
  321. type
  322. QTSGraphicsModeParamsPtr = ^QTSGraphicsModeParams;
  323. QTSGraphicsModeParams = record
  324. graphicsMode: SInt16;
  325. opColor: RGBColor;
  326. end;
  327. type
  328. QTSGetURLLinkRecordPtr = ^QTSGetURLLinkRecord;
  329. QTSGetURLLinkRecord = record
  330. displayWhere: Point;
  331. returnedURLLink: Handle;
  332. end;
  333. const
  334. kQTSDataProcParamsVersion1 = 1;
  335. const
  336. kQTSDataProcType_MediaSample = FourCharCode('mdia');
  337. kQTSDataProcType_HintSample = FourCharCode('hint');
  338. type
  339. QTSDataProcParamsPtr = ^QTSDataProcParams;
  340. QTSDataProcParams = record
  341. version: SInt32;
  342. flags: SInt32;
  343. stream: QTSStream;
  344. procType: OSType;
  345. proc: QTSNotificationUPP;
  346. procRefCon: UnivPtr;
  347. end;
  348. const
  349. kQTSDataProcSelector_SampleData = FourCharCode('samp');
  350. kQTSDataProcSelector_UserData = FourCharCode('user');
  351. const
  352. kQTSSampleDataCallbackParamsVersion1 = 1;
  353. type
  354. QTSSampleDataCallbackParamsPtr = ^QTSSampleDataCallbackParams;
  355. QTSSampleDataCallbackParams = record
  356. version: SInt32;
  357. flags: SInt32;
  358. stream: QTSStream;
  359. procType: OSType;
  360. mediaType: OSType;
  361. mediaTimeScale: TimeScale;
  362. sampleDesc: SampleDescriptionHandle;
  363. sampleDescSeed: UInt32;
  364. sampleTime: TimeValue64;
  365. duration: TimeValue64; { could be 0 }
  366. sampleFlags: SInt32;
  367. dataLength: UInt32;
  368. data: {const} UnivPtr;
  369. end;
  370. const
  371. kQTSUserDataCallbackParamsVersion1 = 1;
  372. type
  373. QTSUserDataCallbackParamsPtr = ^QTSUserDataCallbackParams;
  374. QTSUserDataCallbackParams = record
  375. version: SInt32;
  376. flags: SInt32;
  377. stream: QTSStream;
  378. procType: OSType;
  379. userDataType: OSType;
  380. userDataHandle: Handle; { caller must make copy if it wants to keep the data around}
  381. end;
  382. const
  383. kQTSSendDataExtrasParamsVersion1 = 1;
  384. type
  385. QTSSendDataExtrasParamsPtr = ^QTSSendDataExtrasParams;
  386. QTSSendDataExtrasParams = record
  387. version: SInt32;
  388. flags: SInt32;
  389. procType: OSType;
  390. end;
  391. type
  392. QTSModalFilterProcPtr = function( inDialog: DialogPtr; const (*var*) inEvent: EventRecord; var ioItemHit: SInt16; inRefCon: UnivPtr ): Boolean;
  393. QTSModalFilterUPP = QTSModalFilterProcPtr;
  394. {-----------------------------------------
  395. Characteristics
  396. -----------------------------------------}
  397. { characteristics in Movies.h work here too }
  398. const
  399. kQTSSupportsPerStreamControlCharacteristic = FourCharCode('psct');
  400. type
  401. QTSVideoParamsPtr = ^QTSVideoParams;
  402. QTSVideoParams = record
  403. width: Fixed;
  404. height: Fixed;
  405. matrix: MatrixRecord;
  406. gWorld: CGrafPtr;
  407. gdHandle: GDHandle_fix;
  408. clip: RgnHandle;
  409. graphicsMode: SInt16;
  410. opColor: RGBColor;
  411. end;
  412. type
  413. QTSAudioParamsPtr = ^QTSAudioParams;
  414. QTSAudioParams = record
  415. leftVolume: SInt16;
  416. rightVolume: SInt16;
  417. bassLevel: SInt16;
  418. trebleLevel: SInt16;
  419. frequencyBandsCount: SInt16;
  420. frequencyBands: UnivPtr;
  421. levelMeteringEnabled: Boolean;
  422. end;
  423. type
  424. QTSMediaParamsPtr = ^QTSMediaParams;
  425. QTSMediaParams = record
  426. v: QTSVideoParams;
  427. a: QTSAudioParams;
  428. end;
  429. const
  430. kQTSMustDraw = 1 shl 3;
  431. kQTSAtEnd = 1 shl 4;
  432. kQTSPreflightDraw = 1 shl 5;
  433. kQTSSyncDrawing = 1 shl 6;
  434. { media task result flags }
  435. const
  436. kQTSDidDraw = 1 shl 0;
  437. kQTSNeedsToDraw = 1 shl 2;
  438. kQTSDrawAgain = 1 shl 3;
  439. kQTSPartialDraw = 1 shl 4;
  440. {============================================================================
  441. Notifications
  442. ============================================================================}
  443. { ------ notification types ------ }
  444. const
  445. kQTSNullNotification = FourCharCode('null'); { NULL }
  446. kQTSErrorNotification = FourCharCode('err '); { QTSErrorParams*, optional }
  447. kQTSNewPresDetectedNotification = FourCharCode('newp'); { QTSNewPresDetectedParams* }
  448. kQTSPresBeginChangingNotification = FourCharCode('prcb'); { NULL }
  449. kQTSPresDoneChangingNotification = FourCharCode('prcd'); { NULL }
  450. kQTSPresentationChangedNotification = FourCharCode('prch'); { NULL }
  451. kQTSNewStreamNotification = FourCharCode('stnw'); { QTSNewStreamParams* }
  452. kQTSStreamBeginChangingNotification = FourCharCode('stcb'); { QTSStream }
  453. kQTSStreamDoneChangingNotification = FourCharCode('stcd'); { QTSStream }
  454. kQTSStreamChangedNotification = FourCharCode('stch'); { QTSStreamChangedParams* }
  455. kQTSStreamGoneNotification = FourCharCode('stgn'); { QTSStreamGoneParams* }
  456. kQTSPreviewAckNotification = FourCharCode('pvak'); { QTSStream }
  457. kQTSPrerollAckNotification = FourCharCode('pack'); { QTSStream }
  458. kQTSStartAckNotification = FourCharCode('sack'); { QTSStream }
  459. kQTSStopAckNotification = FourCharCode('xack'); { QTSStream }
  460. kQTSStatusNotification = FourCharCode('stat'); { QTSStatusParams* }
  461. kQTSURLNotification = FourCharCode('url '); { QTSURLParams* }
  462. kQTSDurationNotification = FourCharCode('dura'); { QTSDurationAtom* }
  463. kQTSNewPresentationNotification = FourCharCode('nprs'); { QTSPresentation }
  464. kQTSPresentationGoneNotification = FourCharCode('xprs'); { QTSPresentation }
  465. kQTSPresentationDoneNotification = FourCharCode('pdon'); { NULL }
  466. kQTSBandwidthAlertNotification = FourCharCode('bwal'); { QTSBandwidthAlertParams* }
  467. kQTSAnnotationsChangedNotification = FourCharCode('meta'); { NULL }
  468. { flags for QTSErrorParams }
  469. const
  470. kQTSFatalErrorFlag = $00000001;
  471. type
  472. QTSErrorParamsPtr = ^QTSErrorParams;
  473. QTSErrorParams = record
  474. errorString: ConstCStringPtr;
  475. flags: SInt32;
  476. end;
  477. type
  478. QTSNewPresDetectedParamsPtr = ^QTSNewPresDetectedParams;
  479. QTSNewPresDetectedParams = record
  480. data: UnivPtr;
  481. end;
  482. type
  483. QTSNewStreamParamsPtr = ^QTSNewStreamParams;
  484. QTSNewStreamParams = record
  485. stream: QTSStream;
  486. end;
  487. type
  488. QTSStreamChangedParamsPtr = ^QTSStreamChangedParams;
  489. QTSStreamChangedParams = record
  490. stream: QTSStream;
  491. mediaComponent: ComponentInstance; { could be NULL }
  492. end;
  493. type
  494. QTSStreamGoneParamsPtr = ^QTSStreamGoneParams;
  495. QTSStreamGoneParams = record
  496. stream: QTSStream;
  497. end;
  498. type
  499. QTSStatusParamsPtr = ^QTSStatusParams;
  500. QTSStatusParams = record
  501. status: UInt32;
  502. statusString: ConstCStringPtr;
  503. detailedStatus: UInt32;
  504. detailedStatusString: ConstCStringPtr;
  505. end;
  506. type
  507. QTSInfoParamsPtr = ^QTSInfoParams;
  508. QTSInfoParams = record
  509. infoType: OSType;
  510. infoParams: UnivPtr;
  511. end;
  512. type
  513. QTSURLParamsPtr = ^QTSURLParams;
  514. QTSURLParams = record
  515. urlLength: UInt32;
  516. url: ConstCStringPtr;
  517. end;
  518. const
  519. kQTSBandwidthAlertNeedToStop = 1 shl 0;
  520. kQTSBandwidthAlertRestartAt = 1 shl 1;
  521. type
  522. QTSBandwidthAlertParamsPtr = ^QTSBandwidthAlertParams;
  523. QTSBandwidthAlertParams = record
  524. flags: SInt32;
  525. restartAt: TimeValue; { new field in QT 4.1}
  526. reserved: UnivPtr;
  527. end;
  528. {============================================================================
  529. Presentation
  530. ============================================================================}
  531. {-----------------------------------------
  532. Flags
  533. -----------------------------------------}
  534. { flags for NewPresentationFromData }
  535. const
  536. kQTSAutoModeFlag = $00000001;
  537. kQTSDontShowStatusFlag = $00000008;
  538. kQTSSendMediaFlag = $00010000;
  539. kQTSReceiveMediaFlag = $00020000;
  540. type
  541. QTSNewPresentationParamsPtr = ^QTSNewPresentationParams;
  542. QTSNewPresentationParams = record
  543. dataType: OSType;
  544. data: {const} UnivPtr;
  545. dataLength: UInt32;
  546. editList: QTSEditListHandle;
  547. flags: SInt32;
  548. timeScale: TimeScale_fix; { set to 0 for default timescale }
  549. mediaParams: QTSMediaParamsPtr;
  550. notificationProc: QTSNotificationUPP;
  551. notificationRefCon: UnivPtr;
  552. end;
  553. type
  554. QTSPresParamsPtr = ^QTSPresParams;
  555. QTSPresParams = record
  556. version: UInt32;
  557. editList: QTSEditListHandle;
  558. flags: SInt32;
  559. timeScale: TimeScale_fix; { set to 0 for default timescale }
  560. mediaParams: QTSMediaParamsPtr;
  561. notificationProc: QTSNotificationUPP;
  562. notificationRefCon: UnivPtr;
  563. end;
  564. const
  565. kQTSPresParamsVersion1 = 1;
  566. type
  567. QTSPresIdleParamsPtr = ^QTSPresIdleParams;
  568. QTSPresIdleParams = record
  569. stream: QTSStream;
  570. movieTimeToDisplay: TimeValue64;
  571. flagsIn: SInt32;
  572. flagsOut: SInt32;
  573. end;
  574. const
  575. kQTSExportFlag_ShowDialog = $00000001;
  576. const
  577. kQTSExportParamsVersion1 = 1;
  578. type
  579. QTSExportParamsPtr = ^QTSExportParams;
  580. QTSExportParams = record
  581. version: SInt32;
  582. exportType: OSType;
  583. exportExtraData: UnivPtr;
  584. destinationContainerType: OSType;
  585. destinationContainerData: UnivPtr;
  586. destinationContainerExtras: UnivPtr;
  587. flagsIn: SInt32;
  588. flagsOut: SInt32;
  589. filterProc: QTSModalFilterUPP;
  590. filterProcRefCon: UnivPtr;
  591. exportComponent: Component; { NULL unless you want to override }
  592. end;
  593. {-----------------------------------------
  594. Toolbox Init/Close
  595. -----------------------------------------}
  596. { all "apps" must call this }
  597. {
  598. * InitializeQTS()
  599. *
  600. * Availability:
  601. * Mac OS X: in version 10.0 and later in QuickTime.framework
  602. * CarbonLib: in CarbonLib 1.1 and later
  603. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  604. * Windows: in QTSClient.lib 4.0 and later
  605. }
  606. function InitializeQTS: OSErr; external name '_InitializeQTS';
  607. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  608. {
  609. * TerminateQTS()
  610. *
  611. * Availability:
  612. * Mac OS X: in version 10.0 and later in QuickTime.framework
  613. * CarbonLib: in CarbonLib 1.1 and later
  614. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  615. * Windows: in QTSClient.lib 4.0 and later
  616. }
  617. function TerminateQTS: OSErr; external name '_TerminateQTS';
  618. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  619. {-----------------------------------------
  620. Presentation Functions
  621. -----------------------------------------}
  622. {
  623. * QTSNewPresentation()
  624. *
  625. * Availability:
  626. * Mac OS X: in version 10.0 and later in QuickTime.framework
  627. * CarbonLib: in CarbonLib 1.1 and later
  628. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  629. * Windows: in QTSClient.lib 4.0 and later
  630. }
  631. function QTSNewPresentation( const (*var*) inParams: QTSNewPresentationParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentation';
  632. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  633. {
  634. * QTSNewPresentationFromData()
  635. *
  636. * Availability:
  637. * Mac OS X: in version 10.0 and later in QuickTime.framework
  638. * CarbonLib: in CarbonLib 1.3 and later
  639. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  640. * Windows: in QTSClient.lib 5.0 and later
  641. }
  642. function QTSNewPresentationFromData( inDataType: OSType; inData: {const} UnivPtr; (*const*) var inDataLength: SInt64; const (*var*) inPresParams: QTSPresParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentationFromData';
  643. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  644. {
  645. * QTSNewPresentationFromFile()
  646. *
  647. * Availability:
  648. * Mac OS X: in version 10.0 and later in QuickTime.framework
  649. * CarbonLib: in CarbonLib 1.3 and later
  650. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  651. * Windows: in QTSClient.lib 5.0 and later
  652. }
  653. function QTSNewPresentationFromFile( const (*var*) inFileSpec: FSSpec; const (*var*) inPresParams: QTSPresParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentationFromFile';
  654. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  655. {
  656. * QTSNewPresentationFromDataRef()
  657. *
  658. * Availability:
  659. * Mac OS X: in version 10.0 and later in QuickTime.framework
  660. * CarbonLib: in CarbonLib 1.3 and later
  661. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  662. * Windows: in QTSClient.lib 5.0 and later
  663. }
  664. function QTSNewPresentationFromDataRef( inDataRef: Handle; inDataRefType: OSType; const (*var*) inPresParams: QTSPresParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentationFromDataRef';
  665. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  666. {
  667. * QTSDisposePresentation()
  668. *
  669. * Availability:
  670. * Mac OS X: in version 10.0 and later in QuickTime.framework
  671. * CarbonLib: in CarbonLib 1.1 and later
  672. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  673. * Windows: in QTSClient.lib 4.0 and later
  674. }
  675. function QTSDisposePresentation( inPresentation: QTSPresentation; inFlags: SInt32 ): OSErr; external name '_QTSDisposePresentation';
  676. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  677. {
  678. * QTSPresExport()
  679. *
  680. * Availability:
  681. * Mac OS X: in version 10.0 and later in QuickTime.framework
  682. * CarbonLib: in CarbonLib 1.3 and later
  683. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  684. * Windows: in QTSClient.lib 5.0 and later
  685. }
  686. function QTSPresExport( inPresentation: QTSPresentation; inStream: QTSStream; var inExportParams: QTSExportParams ): OSErr; external name '_QTSPresExport';
  687. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  688. {
  689. * QTSPresIdle()
  690. *
  691. * Availability:
  692. * Mac OS X: in version 10.0 and later in QuickTime.framework
  693. * CarbonLib: in CarbonLib 1.1 and later
  694. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  695. * Windows: in QTSClient.lib 4.0 and later
  696. }
  697. procedure QTSPresIdle( inPresentation: QTSPresentation; var ioParams: QTSPresIdleParams ); external name '_QTSPresIdle';
  698. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  699. {
  700. * QTSPresInvalidateRegion()
  701. *
  702. * Availability:
  703. * Mac OS X: in version 10.0 and later in QuickTime.framework
  704. * CarbonLib: in CarbonLib 1.1 and later
  705. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  706. * Windows: in QTSClient.lib 4.0 and later
  707. }
  708. function QTSPresInvalidateRegion( inPresentation: QTSPresentation; inRegion: RgnHandle ): OSErr; external name '_QTSPresInvalidateRegion';
  709. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  710. {-----------------------------------------
  711. Presentation Configuration
  712. -----------------------------------------}
  713. {
  714. * QTSPresSetFlags()
  715. *
  716. * Availability:
  717. * Mac OS X: in version 10.0 and later in QuickTime.framework
  718. * CarbonLib: in CarbonLib 1.1 and later
  719. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  720. * Windows: in QTSClient.lib 4.0 and later
  721. }
  722. function QTSPresSetFlags( inPresentation: QTSPresentation; inFlags: SInt32; inFlagsMask: SInt32 ): OSErr; external name '_QTSPresSetFlags';
  723. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  724. {
  725. * QTSPresGetFlags()
  726. *
  727. * Availability:
  728. * Mac OS X: in version 10.0 and later in QuickTime.framework
  729. * CarbonLib: in CarbonLib 1.1 and later
  730. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  731. * Windows: in QTSClient.lib 4.0 and later
  732. }
  733. function QTSPresGetFlags( inPresentation: QTSPresentation; var outFlags: SInt32 ): OSErr; external name '_QTSPresGetFlags';
  734. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  735. {
  736. * QTSPresGetTimeBase()
  737. *
  738. * Availability:
  739. * Mac OS X: in version 10.0 and later in QuickTime.framework
  740. * CarbonLib: in CarbonLib 1.1 and later
  741. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  742. * Windows: in QTSClient.lib 4.0 and later
  743. }
  744. function QTSPresGetTimeBase( inPresentation: QTSPresentation; var outTimeBase: TimeBase ): OSErr; external name '_QTSPresGetTimeBase';
  745. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  746. {
  747. * QTSPresGetTimeScale()
  748. *
  749. * Availability:
  750. * Mac OS X: in version 10.0 and later in QuickTime.framework
  751. * CarbonLib: in CarbonLib 1.1 and later
  752. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  753. * Windows: in QTSClient.lib 4.0 and later
  754. }
  755. function QTSPresGetTimeScale( inPresentation: QTSPresentation; var outTimeScale: TimeScale ): OSErr; external name '_QTSPresGetTimeScale';
  756. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  757. {
  758. * QTSPresSetInfo()
  759. *
  760. * Availability:
  761. * Mac OS X: in version 10.0 and later in QuickTime.framework
  762. * CarbonLib: in CarbonLib 1.1 and later
  763. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  764. * Windows: in QTSClient.lib 4.0 and later
  765. }
  766. function QTSPresSetInfo( inPresentation: QTSPresentation; inStream: QTSStream; inSelector: OSType; ioParam: UnivPtr ): OSErr; external name '_QTSPresSetInfo';
  767. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  768. {
  769. * QTSPresGetInfo()
  770. *
  771. * Availability:
  772. * Mac OS X: in version 10.0 and later in QuickTime.framework
  773. * CarbonLib: in CarbonLib 1.1 and later
  774. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  775. * Windows: in QTSClient.lib 4.0 and later
  776. }
  777. function QTSPresGetInfo( inPresentation: QTSPresentation; inStream: QTSStream; inSelector: OSType; ioParam: UnivPtr ): OSErr; external name '_QTSPresGetInfo';
  778. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  779. {
  780. * QTSPresHasCharacteristic()
  781. *
  782. * Availability:
  783. * Mac OS X: in version 10.0 and later in QuickTime.framework
  784. * CarbonLib: in CarbonLib 1.1 and later
  785. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  786. * Windows: in QTSClient.lib 4.0 and later
  787. }
  788. function QTSPresHasCharacteristic( inPresentation: QTSPresentation; inStream: QTSStream; inCharacteristic: OSType; var outHasIt: Boolean ): OSErr; external name '_QTSPresHasCharacteristic';
  789. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  790. {
  791. * QTSPresSetNotificationProc()
  792. *
  793. * Availability:
  794. * Mac OS X: in version 10.0 and later in QuickTime.framework
  795. * CarbonLib: in CarbonLib 1.1 and later
  796. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  797. * Windows: in QTSClient.lib 4.0 and later
  798. }
  799. function QTSPresSetNotificationProc( inPresentation: QTSPresentation; inNotificationProc: QTSNotificationUPP; inRefCon: UnivPtr ): OSErr; external name '_QTSPresSetNotificationProc';
  800. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  801. {
  802. * QTSPresGetNotificationProc()
  803. *
  804. * Availability:
  805. * Mac OS X: in version 10.0 and later in QuickTime.framework
  806. * CarbonLib: in CarbonLib 1.1 and later
  807. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  808. * Windows: in QTSClient.lib 4.0 and later
  809. }
  810. function QTSPresGetNotificationProc( inPresentation: QTSPresentation; var outNotificationProc: QTSNotificationUPP; var outRefCon: UnivPtr ): OSErr; external name '_QTSPresGetNotificationProc';
  811. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  812. {-----------------------------------------
  813. Presentation Control
  814. -----------------------------------------}
  815. {
  816. * QTSPresPreview()
  817. *
  818. * Availability:
  819. * Mac OS X: in version 10.0 and later in QuickTime.framework
  820. * CarbonLib: in CarbonLib 1.3 and later
  821. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  822. }
  823. function QTSPresPreview( inPresentation: QTSPresentation; inStream: QTSStream; (*const*) var inTimeValue: TimeValue64; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresPreview';
  824. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  825. {
  826. * QTSPresPreroll()
  827. *
  828. * Availability:
  829. * Mac OS X: in version 10.0 and later in QuickTime.framework
  830. * CarbonLib: in CarbonLib 1.1 and later
  831. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  832. * Windows: in QTSClient.lib 4.0 and later
  833. }
  834. function QTSPresPreroll( inPresentation: QTSPresentation; inStream: QTSStream; inTimeValue: UInt32; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresPreroll';
  835. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  836. {
  837. * QTSPresPreroll64()
  838. *
  839. * Availability:
  840. * Mac OS X: in version 10.0 and later in QuickTime.framework
  841. * CarbonLib: in CarbonLib 1.1 and later
  842. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  843. * Windows: in QTSClient.lib 4.1 and later
  844. }
  845. function QTSPresPreroll64( inPresentation: QTSPresentation; inStream: QTSStream; (*const*) var inPrerollTime: TimeValue64; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresPreroll64';
  846. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  847. {
  848. * QTSPresStart()
  849. *
  850. * Availability:
  851. * Mac OS X: in version 10.0 and later in QuickTime.framework
  852. * CarbonLib: in CarbonLib 1.1 and later
  853. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  854. * Windows: in QTSClient.lib 4.0 and later
  855. }
  856. function QTSPresStart( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32 ): OSErr; external name '_QTSPresStart';
  857. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  858. {
  859. * QTSPresSkipTo()
  860. *
  861. * Availability:
  862. * Mac OS X: in version 10.0 and later in QuickTime.framework
  863. * CarbonLib: in CarbonLib 1.1 and later
  864. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  865. * Windows: in QTSClient.lib 4.0 and later
  866. }
  867. function QTSPresSkipTo( inPresentation: QTSPresentation; inTimeValue: UInt32 ): OSErr; external name '_QTSPresSkipTo';
  868. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  869. {
  870. * QTSPresSkipTo64()
  871. *
  872. * Availability:
  873. * Mac OS X: in version 10.0 and later in QuickTime.framework
  874. * CarbonLib: in CarbonLib 1.1 and later
  875. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  876. * Windows: in QTSClient.lib 4.1 and later
  877. }
  878. function QTSPresSkipTo64( inPresentation: QTSPresentation; (*const*) var inTimeValue: TimeValue64 ): OSErr; external name '_QTSPresSkipTo64';
  879. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  880. {
  881. * QTSPresStop()
  882. *
  883. * Availability:
  884. * Mac OS X: in version 10.0 and later in QuickTime.framework
  885. * CarbonLib: in CarbonLib 1.1 and later
  886. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  887. * Windows: in QTSClient.lib 4.0 and later
  888. }
  889. function QTSPresStop( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32 ): OSErr; external name '_QTSPresStop';
  890. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  891. {============================================================================
  892. Streams
  893. ============================================================================}
  894. {-----------------------------------------
  895. Stream Functions
  896. -----------------------------------------}
  897. {
  898. * QTSPresNewStream()
  899. *
  900. * Availability:
  901. * Mac OS X: in version 10.0 and later in QuickTime.framework
  902. * CarbonLib: in CarbonLib 1.1 and later
  903. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  904. * Windows: in QTSClient.lib 4.0 and later
  905. }
  906. function QTSPresNewStream( inPresentation: QTSPresentation; inDataType: OSType; inData: {const} UnivPtr; inDataLength: UInt32; inFlags: SInt32; var outStream: QTSStream ): OSErr; external name '_QTSPresNewStream';
  907. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  908. {
  909. * QTSDisposeStream()
  910. *
  911. * Availability:
  912. * Mac OS X: in version 10.0 and later in QuickTime.framework
  913. * CarbonLib: in CarbonLib 1.1 and later
  914. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  915. * Windows: in QTSClient.lib 4.0 and later
  916. }
  917. function QTSDisposeStream( inStream: QTSStream; inFlags: SInt32 ): OSErr; external name '_QTSDisposeStream';
  918. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  919. {
  920. * QTSPresGetNumStreams()
  921. *
  922. * Availability:
  923. * Mac OS X: in version 10.0 and later in QuickTime.framework
  924. * CarbonLib: in CarbonLib 1.1 and later
  925. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  926. * Windows: in QTSClient.lib 4.0 and later
  927. }
  928. function QTSPresGetNumStreams( inPresentation: QTSPresentation ): UInt32; external name '_QTSPresGetNumStreams';
  929. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  930. {
  931. * QTSPresGetIndStream()
  932. *
  933. * Availability:
  934. * Mac OS X: in version 10.0 and later in QuickTime.framework
  935. * CarbonLib: in CarbonLib 1.1 and later
  936. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  937. * Windows: in QTSClient.lib 4.0 and later
  938. }
  939. function QTSPresGetIndStream( inPresentation: QTSPresentation; inIndex: UInt32 ): QTSStream; external name '_QTSPresGetIndStream';
  940. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  941. {
  942. * QTSGetStreamPresentation()
  943. *
  944. * Availability:
  945. * Mac OS X: in version 10.0 and later in QuickTime.framework
  946. * CarbonLib: in CarbonLib 1.1 and later
  947. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  948. * Windows: in QTSClient.lib 4.0 and later
  949. }
  950. function QTSGetStreamPresentation( inStream: QTSStream ): QTSPresentation; external name '_QTSGetStreamPresentation';
  951. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  952. {
  953. * QTSPresSetPreferredRate()
  954. *
  955. * Availability:
  956. * Mac OS X: in version 10.0 and later in QuickTime.framework
  957. * CarbonLib: in CarbonLib 1.1 and later
  958. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  959. * Windows: in QTSClient.lib 4.0 and later
  960. }
  961. function QTSPresSetPreferredRate( inPresentation: QTSPresentation; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresSetPreferredRate';
  962. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  963. {
  964. * QTSPresGetPreferredRate()
  965. *
  966. * Availability:
  967. * Mac OS X: in version 10.0 and later in QuickTime.framework
  968. * CarbonLib: in CarbonLib 1.1 and later
  969. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  970. * Windows: in QTSClient.lib 4.0 and later
  971. }
  972. function QTSPresGetPreferredRate( inPresentation: QTSPresentation; var outRate: Fixed ): OSErr; external name '_QTSPresGetPreferredRate';
  973. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  974. {
  975. * QTSPresSetEnable()
  976. *
  977. * Availability:
  978. * Mac OS X: in version 10.0 and later in QuickTime.framework
  979. * CarbonLib: in CarbonLib 1.1 and later
  980. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  981. * Windows: in QTSClient.lib 4.0 and later
  982. }
  983. function QTSPresSetEnable( inPresentation: QTSPresentation; inStream: QTSStream; inEnableMode: Boolean ): OSErr; external name '_QTSPresSetEnable';
  984. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  985. {
  986. * QTSPresGetEnable()
  987. *
  988. * Availability:
  989. * Mac OS X: in version 10.0 and later in QuickTime.framework
  990. * CarbonLib: in CarbonLib 1.1 and later
  991. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  992. * Windows: in QTSClient.lib 4.0 and later
  993. }
  994. function QTSPresGetEnable( inPresentation: QTSPresentation; inStream: QTSStream; var outEnableMode: Boolean ): OSErr; external name '_QTSPresGetEnable';
  995. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  996. {
  997. * QTSPresSetPresenting()
  998. *
  999. * Availability:
  1000. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1001. * CarbonLib: in CarbonLib 1.1 and later
  1002. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1003. * Windows: in QTSClient.lib 4.0 and later
  1004. }
  1005. function QTSPresSetPresenting( inPresentation: QTSPresentation; inStream: QTSStream; inPresentingMode: Boolean ): OSErr; external name '_QTSPresSetPresenting';
  1006. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1007. {
  1008. * QTSPresGetPresenting()
  1009. *
  1010. * Availability:
  1011. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1012. * CarbonLib: in CarbonLib 1.1 and later
  1013. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1014. * Windows: in QTSClient.lib 4.0 and later
  1015. }
  1016. function QTSPresGetPresenting( inPresentation: QTSPresentation; inStream: QTSStream; var outPresentingMode: Boolean ): OSErr; external name '_QTSPresGetPresenting';
  1017. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1018. {
  1019. * QTSPresSetActiveSegment()
  1020. *
  1021. * Availability:
  1022. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1023. * CarbonLib: in CarbonLib 1.1 and later
  1024. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1025. * Windows: in QTSClient.lib 4.1 and later
  1026. }
  1027. function QTSPresSetActiveSegment( inPresentation: QTSPresentation; inStream: QTSStream; (*const*) var inStartTime: TimeValue64; (*const*) var inDuration: TimeValue64 ): OSErr; external name '_QTSPresSetActiveSegment';
  1028. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1029. {
  1030. * QTSPresGetActiveSegment()
  1031. *
  1032. * Availability:
  1033. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1034. * CarbonLib: in CarbonLib 1.1 and later
  1035. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1036. * Windows: in QTSClient.lib 4.1 and later
  1037. }
  1038. function QTSPresGetActiveSegment( inPresentation: QTSPresentation; inStream: QTSStream; var outStartTime: TimeValue64; var outDuration: TimeValue64 ): OSErr; external name '_QTSPresGetActiveSegment';
  1039. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1040. {
  1041. * QTSPresSetPlayHints()
  1042. *
  1043. * Availability:
  1044. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1045. * CarbonLib: in CarbonLib 1.1 and later
  1046. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1047. * Windows: in QTSClient.lib 4.0 and later
  1048. }
  1049. function QTSPresSetPlayHints( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inFlagsMask: SInt32 ): OSErr; external name '_QTSPresSetPlayHints';
  1050. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1051. {
  1052. * QTSPresGetPlayHints()
  1053. *
  1054. * Availability:
  1055. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1056. * CarbonLib: in CarbonLib 1.1 and later
  1057. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1058. * Windows: in QTSClient.lib 4.0 and later
  1059. }
  1060. function QTSPresGetPlayHints( inPresentation: QTSPresentation; inStream: QTSStream; var outFlags: SInt32 ): OSErr; external name '_QTSPresGetPlayHints';
  1061. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1062. {-----------------------------------------
  1063. Stream Spatial Functions
  1064. -----------------------------------------}
  1065. {
  1066. * QTSPresSetGWorld()
  1067. *
  1068. * Availability:
  1069. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1070. * CarbonLib: in CarbonLib 1.1 and later
  1071. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1072. * Windows: in QTSClient.lib 4.0 and later
  1073. }
  1074. function QTSPresSetGWorld( inPresentation: QTSPresentation; inStream: QTSStream; inGWorld: CGrafPtr; inGDHandle: GDHandle ): OSErr; external name '_QTSPresSetGWorld';
  1075. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1076. {
  1077. * QTSPresGetGWorld()
  1078. *
  1079. * Availability:
  1080. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1081. * CarbonLib: in CarbonLib 1.1 and later
  1082. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1083. * Windows: in QTSClient.lib 4.0 and later
  1084. }
  1085. function QTSPresGetGWorld( inPresentation: QTSPresentation; inStream: QTSStream; var outGWorld: CGrafPtr; var outGDHandle: GDHandle ): OSErr; external name '_QTSPresGetGWorld';
  1086. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1087. {
  1088. * QTSPresSetClip()
  1089. *
  1090. * Availability:
  1091. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1092. * CarbonLib: in CarbonLib 1.1 and later
  1093. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1094. * Windows: in QTSClient.lib 4.0 and later
  1095. }
  1096. function QTSPresSetClip( inPresentation: QTSPresentation; inStream: QTSStream; inClip: RgnHandle ): OSErr; external name '_QTSPresSetClip';
  1097. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1098. {
  1099. * QTSPresGetClip()
  1100. *
  1101. * Availability:
  1102. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1103. * CarbonLib: in CarbonLib 1.1 and later
  1104. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1105. * Windows: in QTSClient.lib 4.0 and later
  1106. }
  1107. function QTSPresGetClip( inPresentation: QTSPresentation; inStream: QTSStream; var outClip: RgnHandle ): OSErr; external name '_QTSPresGetClip';
  1108. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1109. {
  1110. * QTSPresSetMatrix()
  1111. *
  1112. * Availability:
  1113. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1114. * CarbonLib: in CarbonLib 1.1 and later
  1115. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1116. * Windows: in QTSClient.lib 4.0 and later
  1117. }
  1118. function QTSPresSetMatrix( inPresentation: QTSPresentation; inStream: QTSStream; const (*var*) inMatrix: MatrixRecord ): OSErr; external name '_QTSPresSetMatrix';
  1119. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1120. {
  1121. * QTSPresGetMatrix()
  1122. *
  1123. * Availability:
  1124. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1125. * CarbonLib: in CarbonLib 1.1 and later
  1126. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1127. * Windows: in QTSClient.lib 4.0 and later
  1128. }
  1129. function QTSPresGetMatrix( inPresentation: QTSPresentation; inStream: QTSStream; var outMatrix: MatrixRecord ): OSErr; external name '_QTSPresGetMatrix';
  1130. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1131. {
  1132. * QTSPresSetDimensions()
  1133. *
  1134. * Availability:
  1135. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1136. * CarbonLib: in CarbonLib 1.1 and later
  1137. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1138. * Windows: in QTSClient.lib 4.0 and later
  1139. }
  1140. function QTSPresSetDimensions( inPresentation: QTSPresentation; inStream: QTSStream; inWidth: Fixed; inHeight: Fixed ): OSErr; external name '_QTSPresSetDimensions';
  1141. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1142. {
  1143. * QTSPresGetDimensions()
  1144. *
  1145. * Availability:
  1146. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1147. * CarbonLib: in CarbonLib 1.1 and later
  1148. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1149. * Windows: in QTSClient.lib 4.0 and later
  1150. }
  1151. function QTSPresGetDimensions( inPresentation: QTSPresentation; inStream: QTSStream; var outWidth: Fixed; var outHeight: Fixed ): OSErr; external name '_QTSPresGetDimensions';
  1152. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1153. {
  1154. * QTSPresSetGraphicsMode()
  1155. *
  1156. * Availability:
  1157. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1158. * CarbonLib: in CarbonLib 1.1 and later
  1159. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1160. * Windows: in QTSClient.lib 4.0 and later
  1161. }
  1162. function QTSPresSetGraphicsMode( inPresentation: QTSPresentation; inStream: QTSStream; inMode: SInt16; const (*var*) inOpColor: RGBColor ): OSErr; external name '_QTSPresSetGraphicsMode';
  1163. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1164. {
  1165. * QTSPresGetGraphicsMode()
  1166. *
  1167. * Availability:
  1168. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1169. * CarbonLib: in CarbonLib 1.1 and later
  1170. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1171. * Windows: in QTSClient.lib 4.0 and later
  1172. }
  1173. function QTSPresGetGraphicsMode( inPresentation: QTSPresentation; inStream: QTSStream; var outMode: SInt16; var outOpColor: RGBColor ): OSErr; external name '_QTSPresGetGraphicsMode';
  1174. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1175. {
  1176. * QTSPresGetPicture()
  1177. *
  1178. * Availability:
  1179. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1180. * CarbonLib: in CarbonLib 1.1 and later
  1181. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1182. * Windows: in QTSClient.lib 4.0 and later
  1183. }
  1184. function QTSPresGetPicture( inPresentation: QTSPresentation; inStream: QTSStream; var outPicture: PicHandle ): OSErr; external name '_QTSPresGetPicture';
  1185. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1186. {
  1187. * QTSPresSetVisualContext()
  1188. *
  1189. * Availability:
  1190. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1191. * CarbonLib: in CarbonLib 1.1 and later
  1192. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1193. * Windows: in QTSClient.lib 4.0 and later
  1194. }
  1195. function QTSPresSetVisualContext( inPresentation: QTSPresentation; inStream: QTSStream; inVisualContext: QTVisualContextRef ): OSErr; external name '_QTSPresSetVisualContext';
  1196. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1197. {
  1198. * QTSPresGetVisualContext()
  1199. *
  1200. * Availability:
  1201. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1202. * CarbonLib: in CarbonLib 1.1 and later
  1203. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1204. * Windows: in QTSClient.lib 4.0 and later
  1205. }
  1206. function QTSPresGetVisualContext( inPresentation: QTSPresentation; inStream: QTSStream; var outVisualContext: QTVisualContextRef ): OSErr; external name '_QTSPresGetVisualContext';
  1207. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1208. {-----------------------------------------
  1209. Stream Sound Functions
  1210. -----------------------------------------}
  1211. {
  1212. * QTSPresSetVolumes()
  1213. *
  1214. * Availability:
  1215. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1216. * CarbonLib: in CarbonLib 1.1 and later
  1217. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1218. * Windows: in QTSClient.lib 4.0 and later
  1219. }
  1220. function QTSPresSetVolumes( inPresentation: QTSPresentation; inStream: QTSStream; inLeftVolume: SInt16; inRightVolume: SInt16 ): OSErr; external name '_QTSPresSetVolumes';
  1221. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1222. {
  1223. * QTSPresGetVolumes()
  1224. *
  1225. * Availability:
  1226. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1227. * CarbonLib: in CarbonLib 1.1 and later
  1228. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1229. * Windows: in QTSClient.lib 4.0 and later
  1230. }
  1231. function QTSPresGetVolumes( inPresentation: QTSPresentation; inStream: QTSStream; var outLeftVolume: SInt16; var outRightVolume: SInt16 ): OSErr; external name '_QTSPresGetVolumes';
  1232. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1233. {-----------------------------------------
  1234. Sourcing
  1235. -----------------------------------------}
  1236. {
  1237. * QTSPresGetSettingsAsText()
  1238. *
  1239. * Availability:
  1240. * Mac OS X: in version 10.1 and later in QuickTime.framework
  1241. * CarbonLib: in CarbonLib 1.6 and later
  1242. * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
  1243. }
  1244. function QTSPresGetSettingsAsText( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inSettingsType: OSType; var outText: Handle; inPanelFilterProc: QTSPanelFilterUPP; inPanelFilterProcRefCon: UnivPtr ): OSErr; external name '_QTSPresGetSettingsAsText';
  1245. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  1246. {
  1247. * QTSPresSettingsDialog()
  1248. *
  1249. * Availability:
  1250. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1251. * CarbonLib: in CarbonLib 1.3 and later
  1252. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1253. }
  1254. function QTSPresSettingsDialog( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inFilterProc: QTSModalFilterUPP; inFilterProcRefCon: UnivPtr ): OSErr; external name '_QTSPresSettingsDialog';
  1255. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1256. {
  1257. * QTSPresSettingsDialogWithFilters()
  1258. *
  1259. * Availability:
  1260. * Mac OS X: in version 10.1 and later in QuickTime.framework
  1261. * CarbonLib: in CarbonLib 1.6 and later
  1262. * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
  1263. }
  1264. function QTSPresSettingsDialogWithFilters( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inFilterProc: QTSModalFilterUPP; inFilterProcRefCon: UnivPtr; inPanelFilterProc: QTSPanelFilterUPP; inPanelFilterProcRefCon: UnivPtr ): OSErr; external name '_QTSPresSettingsDialogWithFilters';
  1265. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  1266. {
  1267. * QTSPresSetSettings()
  1268. *
  1269. * Availability:
  1270. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1271. * CarbonLib: in CarbonLib 1.3 and later
  1272. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1273. }
  1274. function QTSPresSetSettings( inPresentation: QTSPresentation; inStream: QTSStream; inSettings: QTAtomSpecPtr; inFlags: SInt32 ): OSErr; external name '_QTSPresSetSettings';
  1275. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1276. {
  1277. * QTSPresGetSettings()
  1278. *
  1279. * Availability:
  1280. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1281. * CarbonLib: in CarbonLib 1.3 and later
  1282. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1283. }
  1284. function QTSPresGetSettings( inPresentation: QTSPresentation; inStream: QTSStream; var outSettings: QTAtomContainer; inFlags: SInt32 ): OSErr; external name '_QTSPresGetSettings';
  1285. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1286. {
  1287. * QTSPresAddSourcer()
  1288. *
  1289. * Availability:
  1290. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1291. * CarbonLib: in CarbonLib 1.3 and later
  1292. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1293. }
  1294. function QTSPresAddSourcer( inPresentation: QTSPresentation; inStream: QTSStream; inSourcer: ComponentInstance; inFlags: SInt32 ): OSErr; external name '_QTSPresAddSourcer';
  1295. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1296. {
  1297. * QTSPresRemoveSourcer()
  1298. *
  1299. * Availability:
  1300. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1301. * CarbonLib: in CarbonLib 1.3 and later
  1302. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1303. }
  1304. function QTSPresRemoveSourcer( inPresentation: QTSPresentation; inStream: QTSStream; inSourcer: ComponentInstance; inFlags: SInt32 ): OSErr; external name '_QTSPresRemoveSourcer';
  1305. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1306. {
  1307. * QTSPresGetNumSourcers()
  1308. *
  1309. * Availability:
  1310. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1311. * CarbonLib: in CarbonLib 1.3 and later
  1312. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1313. }
  1314. function QTSPresGetNumSourcers( inPresentation: QTSPresentation; inStream: QTSStream ): UInt32; external name '_QTSPresGetNumSourcers';
  1315. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1316. {
  1317. * QTSPresGetIndSourcer()
  1318. *
  1319. * Availability:
  1320. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1321. * CarbonLib: in CarbonLib 1.3 and later
  1322. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1323. }
  1324. function QTSPresGetIndSourcer( inPresentation: QTSPresentation; inStream: QTSStream; inIndex: UInt32; var outSourcer: ComponentInstance ): OSErr; external name '_QTSPresGetIndSourcer';
  1325. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1326. {============================================================================
  1327. Misc
  1328. ============================================================================}
  1329. { flags for Get/SetNetworkAppName }
  1330. const
  1331. kQTSNetworkAppNameIsFullNameFlag = $00000001;
  1332. {
  1333. * QTSSetNetworkAppName()
  1334. *
  1335. * Availability:
  1336. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1337. * CarbonLib: in CarbonLib 1.1 and later
  1338. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1339. * Windows: in QTSClient.lib 4.1 and later
  1340. }
  1341. function QTSSetNetworkAppName( inAppName: ConstCStringPtr; inFlags: SInt32 ): OSErr; external name '_QTSSetNetworkAppName';
  1342. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1343. {
  1344. * QTSGetNetworkAppName()
  1345. *
  1346. * Availability:
  1347. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1348. * CarbonLib: in CarbonLib 1.1 and later
  1349. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1350. * Windows: in QTSClient.lib 4.1 and later
  1351. }
  1352. function QTSGetNetworkAppName( inFlags: SInt32; var outCStringPtr: CStringPtr ): OSErr; external name '_QTSGetNetworkAppName';
  1353. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1354. {-----------------------------------------
  1355. Statistics Utilities
  1356. -----------------------------------------}
  1357. type
  1358. QTSStatHelperRecordPtr = ^QTSStatHelperRecord;
  1359. QTSStatHelperRecord = record
  1360. data: array [0..0] of SInt32;
  1361. end;
  1362. type
  1363. QTSStatHelper = QTSStatHelperRecordPtr;
  1364. const
  1365. kQTSInvalidStatHelper = 0;
  1366. { flags for QTSStatHelperNextParams }
  1367. const
  1368. kQTSStatHelperReturnPascalStringsFlag = $00000001;
  1369. type
  1370. QTSStatHelperNextParamsPtr = ^QTSStatHelperNextParams;
  1371. QTSStatHelperNextParams = record
  1372. flags: SInt32;
  1373. returnedStatisticsType: OSType;
  1374. returnedStream: QTSStream;
  1375. maxStatNameLength: UInt32;
  1376. returnedStatName: CStringPtr; { NULL if you don't want it}
  1377. maxStatStringLength: UInt32;
  1378. returnedStatString: CStringPtr; { NULL if you don't want it}
  1379. maxStatUnitLength: UInt32;
  1380. returnedStatUnit: CStringPtr; { NULL if you don't want it}
  1381. end;
  1382. type
  1383. QTSStatisticsParamsPtr = ^QTSStatisticsParams;
  1384. QTSStatisticsParams = record
  1385. statisticsType: OSType;
  1386. container: QTAtomContainer;
  1387. parentAtom: QTAtom;
  1388. flags: SInt32;
  1389. end;
  1390. { general statistics types }
  1391. const
  1392. kQTSAllStatisticsType = FourCharCode('all ');
  1393. kQTSShortStatisticsType = FourCharCode('shrt');
  1394. kQTSSummaryStatisticsType = FourCharCode('summ');
  1395. { statistics flags }
  1396. const
  1397. kQTSGetNameStatisticsFlag = $00000001;
  1398. kQTSDontGetDataStatisticsFlag = $00000002;
  1399. kQTSUpdateAtomsStatisticsFlag = $00000004;
  1400. kQTSGetUnitsStatisticsFlag = $00000008;
  1401. kQTSUpdateAllIfNecessaryStatisticsFlag = $00010000;
  1402. { statistics atom types }
  1403. const
  1404. kQTSStatisticsStreamAtomType = FourCharCode('strm');
  1405. kQTSStatisticsNameAtomType = FourCharCode('name'); { chars only, no length or terminator }
  1406. kQTSStatisticsDataFormatAtomType = FourCharCode('frmt'); { OSType }
  1407. kQTSStatisticsDataAtomType = FourCharCode('data');
  1408. kQTSStatisticsUnitsAtomType = FourCharCode('unit'); { OSType }
  1409. kQTSStatisticsUnitsNameAtomType = FourCharCode('unin'); { chars only, no length or terminator }
  1410. { statistics data formats }
  1411. const
  1412. kQTSStatisticsSInt32DataFormat = FourCharCode('si32');
  1413. kQTSStatisticsUInt32DataFormat = FourCharCode('ui32');
  1414. kQTSStatisticsSInt16DataFormat = FourCharCode('si16');
  1415. kQTSStatisticsUInt16DataFormat = FourCharCode('ui16');
  1416. kQTSStatisticsFixedDataFormat = FourCharCode('fixd');
  1417. kQTSStatisticsUnsignedFixedDataFormat = FourCharCode('ufix');
  1418. kQTSStatisticsStringDataFormat = FourCharCode('strg');
  1419. kQTSStatisticsOSTypeDataFormat = FourCharCode('ostp');
  1420. kQTSStatisticsRectDataFormat = FourCharCode('rect');
  1421. kQTSStatisticsPointDataFormat = FourCharCode('pont');
  1422. { statistics units types }
  1423. const
  1424. kQTSStatisticsNoUnitsType = 0;
  1425. kQTSStatisticsPercentUnitsType = FourCharCode('pcnt');
  1426. kQTSStatisticsBitsPerSecUnitsType = FourCharCode('bps ');
  1427. kQTSStatisticsFramesPerSecUnitsType = FourCharCode('fps ');
  1428. { specific statistics types }
  1429. const
  1430. kQTSTotalDataRateStat = FourCharCode('drtt');
  1431. kQTSTotalDataRateInStat = FourCharCode('drti');
  1432. kQTSTotalDataRateOutStat = FourCharCode('drto');
  1433. kQTSNetworkIDStringStat = FourCharCode('nids');
  1434. {
  1435. * QTSNewStatHelper()
  1436. *
  1437. * Availability:
  1438. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1439. * CarbonLib: in CarbonLib 1.1 and later
  1440. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1441. * Windows: in QTSClient.lib 4.0 and later
  1442. }
  1443. function QTSNewStatHelper( inPresentation: QTSPresentation; inStream: QTSStream; inStatType: OSType; inFlags: SInt32; var outStatHelper: QTSStatHelper ): OSErr; external name '_QTSNewStatHelper';
  1444. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1445. {
  1446. * QTSDisposeStatHelper()
  1447. *
  1448. * Availability:
  1449. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1450. * CarbonLib: in CarbonLib 1.1 and later
  1451. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1452. * Windows: in QTSClient.lib 4.0 and later
  1453. }
  1454. function QTSDisposeStatHelper( inStatHelper: QTSStatHelper ): OSErr; external name '_QTSDisposeStatHelper';
  1455. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1456. {
  1457. * QTSStatHelperGetStats()
  1458. *
  1459. * Availability:
  1460. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1461. * CarbonLib: in CarbonLib 1.1 and later
  1462. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1463. * Windows: in QTSClient.lib 4.0 and later
  1464. }
  1465. function QTSStatHelperGetStats( inStatHelper: QTSStatHelper ): OSErr; external name '_QTSStatHelperGetStats';
  1466. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1467. {
  1468. * QTSStatHelperResetIter()
  1469. *
  1470. * Availability:
  1471. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1472. * CarbonLib: in CarbonLib 1.1 and later
  1473. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1474. * Windows: in QTSClient.lib 4.0 and later
  1475. }
  1476. function QTSStatHelperResetIter( inStatHelper: QTSStatHelper ): OSErr; external name '_QTSStatHelperResetIter';
  1477. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1478. {
  1479. * QTSStatHelperNext()
  1480. *
  1481. * Availability:
  1482. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1483. * CarbonLib: in CarbonLib 1.1 and later
  1484. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1485. * Windows: in QTSClient.lib 4.0 and later
  1486. }
  1487. function QTSStatHelperNext( inStatHelper: QTSStatHelper; var ioParams: QTSStatHelperNextParams ): Boolean; external name '_QTSStatHelperNext';
  1488. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1489. {
  1490. * QTSStatHelperGetNumStats()
  1491. *
  1492. * Availability:
  1493. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1494. * CarbonLib: in CarbonLib 1.1 and later
  1495. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1496. * Windows: in QTSClient.lib 4.0 and later
  1497. }
  1498. function QTSStatHelperGetNumStats( inStatHelper: QTSStatHelper ): UInt32; external name '_QTSStatHelperGetNumStats';
  1499. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1500. { used by components to put statistics into the atom container }
  1501. {
  1502. * QTSGetOrMakeStatAtomForStream()
  1503. *
  1504. * Availability:
  1505. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1506. * CarbonLib: in CarbonLib 1.1 and later
  1507. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1508. * Windows: in QTSClient.lib 4.0 and later
  1509. }
  1510. function QTSGetOrMakeStatAtomForStream( inContainer: QTAtomContainer; inStream: QTSStream; var outParentAtom: QTAtom ): OSErr; external name '_QTSGetOrMakeStatAtomForStream';
  1511. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1512. {
  1513. * QTSInsertStatistic()
  1514. *
  1515. * Availability:
  1516. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1517. * CarbonLib: in CarbonLib 1.1 and later
  1518. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1519. * Windows: in QTSClient.lib 4.0 and later
  1520. }
  1521. function QTSInsertStatistic( inContainer: QTAtomContainer; inParentAtom: QTAtom; inStatType: OSType; inStatData: UnivPtr; inStatDataLength: UInt32; inStatDataFormat: OSType; inFlags: SInt32 ): OSErr; external name '_QTSInsertStatistic';
  1522. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1523. {
  1524. * QTSInsertStatisticName()
  1525. *
  1526. * Availability:
  1527. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1528. * CarbonLib: in CarbonLib 1.1 and later
  1529. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1530. * Windows: in QTSClient.lib 4.0 and later
  1531. }
  1532. function QTSInsertStatisticName( inContainer: QTAtomContainer; inParentAtom: QTAtom; inStatType: OSType; inStatName: ConstCStringPtr; inStatNameLength: UInt32 ): OSErr; external name '_QTSInsertStatisticName';
  1533. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1534. {
  1535. * QTSInsertStatisticUnits()
  1536. *
  1537. * Availability:
  1538. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1539. * CarbonLib: in CarbonLib 1.1 and later
  1540. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1541. * Windows: in QTSClient.lib 4.0 and later
  1542. }
  1543. function QTSInsertStatisticUnits( inContainer: QTAtomContainer; inParentAtom: QTAtom; inStatType: OSType; inUnitsType: OSType; inUnitsName: ConstCStringPtr; inUnitsNameLength: UInt32 ): OSErr; external name '_QTSInsertStatisticUnits';
  1544. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1545. {============================================================================
  1546. Data Formats
  1547. ============================================================================}
  1548. {-----------------------------------------
  1549. Data Types
  1550. -----------------------------------------}
  1551. { universal data types }
  1552. const
  1553. kQTSNullDataType = FourCharCode('NULL');
  1554. kQTSUnknownDataType = FourCharCode('huh?');
  1555. kQTSAtomContainerDataType = FourCharCode('qtac'); { QTAtomContainer }
  1556. kQTSAtomDataType = FourCharCode('qtat'); { QTSAtomContainerDataStruct* }
  1557. kQTSAliasDataType = FourCharCode('alis');
  1558. kQTSFileDataType = FourCharCode('fspc'); { FSSpec* }
  1559. kQTSFileSpecDataType = FourCharCode('fspc'); { FSSpec* }
  1560. kQTSHandleDataType = FourCharCode('hndl'); { Handle* }
  1561. kQTSDataRefDataType = FourCharCode('dref'); { DataReferencePtr }
  1562. { these data types are specific to presentations }
  1563. const
  1564. kQTSRTSPDataType = FourCharCode('rtsp');
  1565. kQTSSDPDataType = FourCharCode('sdp ');
  1566. {-----------------------------------------
  1567. Atom IDs
  1568. -----------------------------------------}
  1569. const
  1570. kQTSAtomType_Presentation = FourCharCode('pres');
  1571. kQTSAtomType_PresentationHeader = FourCharCode('phdr'); { QTSPresentationHeaderAtom }
  1572. kQTSAtomType_MediaStream = FourCharCode('mstr');
  1573. kQTSAtomType_MediaStreamHeader = FourCharCode('mshd'); { QTSMediaStreamHeaderAtom }
  1574. kQTSAtomType_MediaDescriptionText = FourCharCode('mdes'); { chars, no length }
  1575. kQTSAtomType_ClipRect = FourCharCode('clip'); { QTSClipRectAtom }
  1576. kQTSAtomType_Duration = FourCharCode('dura'); { QTSDurationAtom }
  1577. kQTSAtomType_BufferTime = FourCharCode('bufr'); { QTSBufferTimeAtom }
  1578. type
  1579. QTSAtomContainerDataStructPtr = ^QTSAtomContainerDataStruct;
  1580. QTSAtomContainerDataStruct = record
  1581. container: QTAtomContainer;
  1582. parentAtom: QTAtom;
  1583. end;
  1584. { flags for QTSPresentationHeaderAtom }
  1585. const
  1586. kQTSPresHeaderTypeIsData = $00000100;
  1587. kQTSPresHeaderDataIsHandle = $00000200;
  1588. type
  1589. QTSPresentationHeaderAtomPtr = ^QTSPresentationHeaderAtom;
  1590. QTSPresentationHeaderAtom = record
  1591. versionAndFlags: SInt32;
  1592. conductorOrDataType: OSType;
  1593. dataAtomType: OSType; { where the data really is}
  1594. end;
  1595. type
  1596. QTSMediaStreamHeaderAtomPtr = ^QTSMediaStreamHeaderAtom;
  1597. QTSMediaStreamHeaderAtom = record
  1598. versionAndFlags: SInt32;
  1599. mediaTransportType: OSType;
  1600. mediaTransportDataAID: OSType; { where the data really is}
  1601. end;
  1602. type
  1603. QTSBufferTimeAtomPtr = ^QTSBufferTimeAtom;
  1604. QTSBufferTimeAtom = record
  1605. versionAndFlags: SInt32;
  1606. bufferTime: Fixed;
  1607. end;
  1608. type
  1609. QTSDurationAtomPtr = ^QTSDurationAtom;
  1610. QTSDurationAtom = record
  1611. versionAndFlags: SInt32;
  1612. timeScale: TimeScale_fix;
  1613. duration: TimeValue64;
  1614. end;
  1615. type
  1616. QTSClipRectAtomPtr = ^QTSClipRectAtom;
  1617. QTSClipRectAtom = record
  1618. versionAndFlags: SInt32;
  1619. clipRect: Rect;
  1620. end;
  1621. const
  1622. kQTSEmptyEditStreamStartTime = -1;
  1623. type
  1624. QTSStatus = UInt32;
  1625. const
  1626. kQTSNullStatus = 0;
  1627. kQTSUninitializedStatus = 1;
  1628. kQTSConnectingStatus = 2;
  1629. kQTSOpeningConnectionDetailedStatus = 3;
  1630. kQTSMadeConnectionDetailedStatus = 4;
  1631. kQTSNegotiatingStatus = 5;
  1632. kQTSGettingDescriptionDetailedStatus = 6;
  1633. kQTSGotDescriptionDetailedStatus = 7;
  1634. kQTSSentSetupCmdDetailedStatus = 8;
  1635. kQTSReceivedSetupResponseDetailedStatus = 9;
  1636. kQTSSentPlayCmdDetailedStatus = 10;
  1637. kQTSReceivedPlayResponseDetailedStatus = 11;
  1638. kQTSBufferingStatus = 12;
  1639. kQTSPlayingStatus = 13;
  1640. kQTSPausedStatus = 14;
  1641. kQTSAutoConfiguringStatus = 15;
  1642. kQTSDownloadingStatus = 16;
  1643. kQTSBufferingWithTimeStatus = 17;
  1644. kQTSWaitingDisconnectStatus = 100;
  1645. {-----------------------------------------
  1646. QuickTime Preferences Types
  1647. -----------------------------------------}
  1648. const
  1649. kQTSConnectionPrefsType = FourCharCode('stcm'); { root atom that all other atoms are contained in}
  1650. { kQTSNotUsedForProxyPrefsType = 'nopr', // comma-delimited list of URLs that are never used for proxies}
  1651. kQTSConnectionMethodPrefsType = FourCharCode('mthd'); { connection method (OSType that matches one of the following three)}
  1652. kQTSDirectConnectPrefsType = FourCharCode('drct'); { used if direct connect (QTSDirectConnectPrefsRecord)}
  1653. { kQTSRTSPProxyPrefsType = 'rtsp', // used if RTSP Proxy (QTSProxyPrefsRecord)}
  1654. kQTSSOCKSPrefsType = FourCharCode('sock'); { used if SOCKS Proxy (QTSProxyPrefsRecord)}
  1655. const
  1656. kQTSDirectConnectHTTPProtocol = FourCharCode('http');
  1657. kQTSDirectConnectRTSPProtocol = FourCharCode('rtsp');
  1658. type
  1659. QTSDirectConnectPrefsRecordPtr = ^QTSDirectConnectPrefsRecord;
  1660. QTSDirectConnectPrefsRecord = record
  1661. tcpPortID: UInt32;
  1662. protocol: OSType;
  1663. end;
  1664. type
  1665. QTSProxyPrefsRecordPtr = ^QTSProxyPrefsRecord;
  1666. QTSProxyPrefsRecord = record
  1667. serverNameStr: Str255;
  1668. portID: UInt32;
  1669. end;
  1670. const
  1671. kQTSTransAndProxyPrefsVersNum = 2; { prefs atom format version }
  1672. const
  1673. kConnectionActive = 1 shl 0;
  1674. kConnectionUseSystemPref = 1 shl 1;
  1675. type
  1676. QTSTransportPrefPtr = ^QTSTransportPref;
  1677. QTSTransportPref = record
  1678. protocol: OSType; { udp, http, tcp, etc}
  1679. portID: SInt32; { port to use for this connection type}
  1680. flags: UInt32; { connection flags}
  1681. seed: UInt32; { seed value last time this setting was read from system prefs}
  1682. end;
  1683. const
  1684. kProxyActive = 1 shl 0;
  1685. kProxyUseSystemPref = 1 shl 1;
  1686. type
  1687. QTSProxyPrefPtr = ^QTSProxyPref;
  1688. QTSProxyPref = record
  1689. flags: UInt32; { proxy flags}
  1690. portID: SInt32; { port to use for this connection type}
  1691. seed: UInt32; { seed value last time this setting was read from system prefs}
  1692. serverNameStr: Str255; { proxy server url}
  1693. end;
  1694. const
  1695. kNoProxyUseSystemPref = 1 shl 0;
  1696. type
  1697. QTSNoProxyPrefPtr = ^QTSNoProxyPref;
  1698. QTSNoProxyPref = record
  1699. flags: UInt32; { no-proxy flags}
  1700. seed: UInt32; { seed value last time this setting was read from system prefs}
  1701. urlList: array [0..0] of SInt8; { NULL terminated, comma delimited list of urls}
  1702. end;
  1703. const
  1704. kQTSInstantOnFlag_Enable = 1 shl 0; { instant on is enabled (read/write)}
  1705. kQTSInstantOnFlag_Permitted = 1 shl 1; { instant on is possible (read only)}
  1706. type
  1707. QTSInstantOnPrefPtr = ^QTSInstantOnPref;
  1708. QTSInstantOnPref = record
  1709. flags: SInt32; { flags}
  1710. factor: SInt32; { 0-100; default is 50}
  1711. end;
  1712. const
  1713. kQTSTransAndProxyAtomType = FourCharCode('strp'); { transport/proxy prefs root atom}
  1714. kQTSConnectionPrefsVersion = FourCharCode('vers'); { prefs format version}
  1715. kQTSTransportPrefsAtomType = FourCharCode('trns'); { tranport prefs root atom}
  1716. kQTSConnectionAtomType = FourCharCode('conn'); { connection prefs atom type, one for each transport type}
  1717. kQTSUDPTransportType = FourCharCode('udp '); { udp transport prefs}
  1718. kQTSHTTPTransportType = FourCharCode('http'); { http transport prefs}
  1719. kQTSTCPTransportType = FourCharCode('tcp '); { tcp transport prefs }
  1720. kQTSProxyPrefsAtomType = FourCharCode('prxy'); { proxy prefs root atom}
  1721. kQTSHTTPProxyPrefsType = FourCharCode('http'); { http proxy settings}
  1722. kQTSRTSPProxyPrefsType = FourCharCode('rtsp'); { rtsp proxy settings}
  1723. kQTSSOCKSProxyPrefsType = FourCharCode('sock'); { socks proxy settings}
  1724. kQTSProxyUserInfoPrefsType = FourCharCode('user'); { proxy username/password root atom}
  1725. kQTSDontProxyPrefsAtomType = FourCharCode('nopr'); { no-proxy prefs root atom}
  1726. kQTSDontProxyDataType = FourCharCode('data'); { no proxy settings}
  1727. kQTSInstantOnPrefsAtomType = FourCharCode('inon'); { instant on prefs}
  1728. {
  1729. * QTSPrefsAddProxySetting()
  1730. *
  1731. * Availability:
  1732. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1733. * CarbonLib: in CarbonLib 1.1 and later
  1734. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1735. * Windows: in QTSClient.lib 4.1 and later
  1736. }
  1737. function QTSPrefsAddProxySetting( proxyType: OSType; portID: SInt32; flags: UInt32; seed: UInt32; var srvrURL: Str255 ): OSErr; external name '_QTSPrefsAddProxySetting';
  1738. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1739. {
  1740. * QTSPrefsFindProxyByType()
  1741. *
  1742. * Availability:
  1743. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1744. * CarbonLib: in CarbonLib 1.1 and later
  1745. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1746. * Windows: in QTSClient.lib 4.1 and later
  1747. }
  1748. function QTSPrefsFindProxyByType( proxyType: OSType; flags: UInt32; flagsMask: UInt32; var proxyHndl: UnivPtr; var count: SInt16 ): OSErr; external name '_QTSPrefsFindProxyByType';
  1749. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1750. {
  1751. * QTSPrefsAddConnectionSetting()
  1752. *
  1753. * Availability:
  1754. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1755. * CarbonLib: in CarbonLib 1.1 and later
  1756. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1757. * Windows: in QTSClient.lib 4.1 and later
  1758. }
  1759. function QTSPrefsAddConnectionSetting( protocol: OSType; portID: SInt32; flags: UInt32; seed: UInt32 ): OSErr; external name '_QTSPrefsAddConnectionSetting';
  1760. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1761. {
  1762. * QTSPrefsFindConnectionByType()
  1763. *
  1764. * Availability:
  1765. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1766. * CarbonLib: in CarbonLib 1.1 and later
  1767. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1768. * Windows: in QTSClient.lib 4.1 and later
  1769. }
  1770. function QTSPrefsFindConnectionByType( protocol: OSType; flags: UInt32; flagsMask: UInt32; var connectionHndl: UnivPtr; var count: SInt16 ): OSErr; external name '_QTSPrefsFindConnectionByType';
  1771. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1772. {
  1773. * QTSPrefsGetActiveConnection()
  1774. *
  1775. * Availability:
  1776. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1777. * CarbonLib: in CarbonLib 1.1 and later
  1778. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1779. * Windows: in QTSClient.lib 4.1 and later
  1780. }
  1781. function QTSPrefsGetActiveConnection( protocol: OSType; var connectInfo: QTSTransportPref ): OSErr; external name '_QTSPrefsGetActiveConnection';
  1782. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1783. {
  1784. * QTSPrefsGetNoProxyURLs()
  1785. *
  1786. * Availability:
  1787. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1788. * CarbonLib: in CarbonLib 1.1 and later
  1789. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1790. * Windows: in QTSClient.lib 4.1 and later
  1791. }
  1792. function QTSPrefsGetNoProxyURLs( var noProxyHndl: UnivPtr ): OSErr; external name '_QTSPrefsGetNoProxyURLs';
  1793. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1794. {
  1795. * QTSPrefsSetNoProxyURLs()
  1796. *
  1797. * Availability:
  1798. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1799. * CarbonLib: in CarbonLib 1.1 and later
  1800. * Non-Carbon CFM: in QTStreamLib 4.1 and later
  1801. * Windows: in QTSClient.lib 4.1 and later
  1802. }
  1803. function QTSPrefsSetNoProxyURLs( urls: CStringPtr; flags: UInt32; seed: UInt32 ): OSErr; external name '_QTSPrefsSetNoProxyURLs';
  1804. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1805. {
  1806. * QTSPrefsAddProxyUserInfo()
  1807. *
  1808. * Availability:
  1809. * Mac OS X: in version 10.1 and later in QuickTime.framework
  1810. * CarbonLib: in CarbonLib 1.6 and later
  1811. * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
  1812. * Windows: in QTSClient.lib 5.0.1 and later
  1813. }
  1814. function QTSPrefsAddProxyUserInfo( proxyType: OSType; flags: SInt32; flagsMask: SInt32; username: StringPtr; password: StringPtr ): OSErr; external name '_QTSPrefsAddProxyUserInfo';
  1815. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  1816. {
  1817. * QTSPrefsFindProxyUserInfoByType()
  1818. *
  1819. * Availability:
  1820. * Mac OS X: in version 10.1 and later in QuickTime.framework
  1821. * CarbonLib: in CarbonLib 1.6 and later
  1822. * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
  1823. * Windows: in QTSClient.lib 5.0.1 and later
  1824. }
  1825. function QTSPrefsFindProxyUserInfoByType( proxyType: OSType; flags: SInt32; flagsMask: SInt32; username: StringPtr; password: StringPtr ): OSErr; external name '_QTSPrefsFindProxyUserInfoByType';
  1826. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  1827. {
  1828. * QTSPrefsGetInstantOnSettings()
  1829. *
  1830. * Availability:
  1831. * Mac OS X: in version 10.2 and later in QuickTime.framework
  1832. * CarbonLib: in CarbonLib 1.6 and later
  1833. * Non-Carbon CFM: in QTStreamLib 6.0 and later
  1834. * Windows: in QTSClient.lib 6.0 and later
  1835. }
  1836. function QTSPrefsGetInstantOnSettings( var outPref: QTSInstantOnPref; inFlags: SInt32 ): OSErr; external name '_QTSPrefsGetInstantOnSettings';
  1837. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  1838. {
  1839. * QTSPrefsSetInstantOnSettings()
  1840. *
  1841. * Availability:
  1842. * Mac OS X: in version 10.2 and later in QuickTime.framework
  1843. * CarbonLib: in CarbonLib 1.6 and later
  1844. * Non-Carbon CFM: in QTStreamLib 6.0 and later
  1845. * Windows: in QTSClient.lib 6.0 and later
  1846. }
  1847. function QTSPrefsSetInstantOnSettings( var inPref: QTSInstantOnPref; inFlags: SInt32 ): OSErr; external name '_QTSPrefsSetInstantOnSettings';
  1848. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  1849. {============================================================================
  1850. Memory Management Services
  1851. ============================================================================}
  1852. {
  1853. These routines allocate normal pointers and handles,
  1854. but do the correct checking, etc.
  1855. Dispose using the normal DisposePtr and DisposeHandle
  1856. Call these routines for one time memory allocations.
  1857. You do not need to set any hints to use these calls.
  1858. }
  1859. {
  1860. * QTSNewPtr()
  1861. *
  1862. * Availability:
  1863. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1864. * CarbonLib: in CarbonLib 1.1 and later
  1865. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1866. * Windows: in QTSClient.lib 4.0 and later
  1867. }
  1868. function QTSNewPtr( inByteCount: UInt32; inFlags: SInt32; var outFlags: SInt32 ): Ptr; external name '_QTSNewPtr';
  1869. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1870. {
  1871. * QTSNewHandle()
  1872. *
  1873. * Availability:
  1874. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1875. * CarbonLib: in CarbonLib 1.1 and later
  1876. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1877. * Windows: in QTSClient.lib 4.0 and later
  1878. }
  1879. function QTSNewHandle( inByteCount: UInt32; inFlags: SInt32; var outFlags: SInt32 ): Handle; external name '_QTSNewHandle';
  1880. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1881. { flags in}
  1882. const
  1883. kQTSMemAllocClearMem = $00000001;
  1884. kQTSMemAllocDontUseTempMem = $00000002;
  1885. kQTSMemAllocTryTempMemFirst = $00000004;
  1886. kQTSMemAllocDontUseSystemMem = $00000008;
  1887. kQTSMemAllocTrySystemMemFirst = $00000010;
  1888. kQTSMemAllocHoldMemory = $00001000;
  1889. kQTSMemAllocIsInterruptTime = $01010000; { currently not supported for alloc}
  1890. { flags out}
  1891. const
  1892. kQTSMemAllocAllocatedInTempMem = $00000001;
  1893. kQTSMemAllocAllocatedInSystemMem = $00000002;
  1894. type
  1895. QTSMemPtr = ^OpaqueQTSMemPtr; { an opaque type }
  1896. OpaqueQTSMemPtr = record end;
  1897. QTSMemPtrPtr = ^QTSMemPtr; { when a var xx:QTSMemPtr parameter can be nil, it is changed to xx: QTSMemPtrPtr }
  1898. {
  1899. These routines are for buffers that will be recirculated
  1900. you must use QTReleaseMemPtr instead of DisposePtr
  1901. QTSReleaseMemPtr can be used at interrupt time
  1902. but QTSAllocMemPtr currently cannot
  1903. }
  1904. {
  1905. * QTSAllocMemPtr()
  1906. *
  1907. * Availability:
  1908. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1909. * CarbonLib: in CarbonLib 1.1 and later
  1910. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1911. * Windows: in QTSClient.lib 4.0 and later
  1912. }
  1913. function QTSAllocMemPtr( inByteCount: UInt32; inFlags: SInt32 ): QTSMemPtr; external name '_QTSAllocMemPtr';
  1914. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1915. {
  1916. * QTSReleaseMemPtr()
  1917. *
  1918. * Availability:
  1919. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1920. * CarbonLib: in CarbonLib 1.1 and later
  1921. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1922. * Windows: in QTSClient.lib 4.0 and later
  1923. }
  1924. procedure QTSReleaseMemPtr( inMemPtr: QTSMemPtr; inFlags: SInt32 ); external name '_QTSReleaseMemPtr';
  1925. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1926. {============================================================================
  1927. Buffer Management Services
  1928. ============================================================================}
  1929. const
  1930. kQTSStreamBufferVersion1 = 1;
  1931. type
  1932. QTSStreamBufferPtr = ^QTSStreamBuffer;
  1933. QTSStreamBuffer = record
  1934. reserved1: QTSStreamBufferPtr;
  1935. reserved2: QTSStreamBufferPtr;
  1936. next: QTSStreamBufferPtr; { next message block in a message }
  1937. rptr: UInt8Ptr; { first byte with real data in the DataBuffer }
  1938. wptr: UInt8Ptr; { last+1 byte with real data in the DataBuffer }
  1939. version: SInt32;
  1940. metadata: array [0..4-1] of UInt32; { usage defined by message sender }
  1941. flags: SInt32; { reserved }
  1942. reserved3: SIGNEDLONG;
  1943. reserved4: SIGNEDLONG;
  1944. reserved5: SIGNEDLONG;
  1945. moreMeta: array [0..7] of UInt32;
  1946. end;
  1947. { flags for QTSDuplicateMessage}
  1948. const
  1949. kQTSDuplicateBufferFlag_CopyData = $00000001;
  1950. kQTSDuplicateBufferFlag_FlattenMessage = $00000002;
  1951. {
  1952. * QTSNewStreamBuffer()
  1953. *
  1954. * Availability:
  1955. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1956. * CarbonLib: in CarbonLib 1.3 and later
  1957. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1958. * Windows: in QTSClient.lib 5.0 and later
  1959. }
  1960. function QTSNewStreamBuffer( inDataSize: UInt32; inFlags: SInt32; var outStreamBuffer: UnivPtr ): OSErr; external name '_QTSNewStreamBuffer';
  1961. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1962. {
  1963. * QTSFreeMessage()
  1964. *
  1965. * Availability:
  1966. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1967. * CarbonLib: in CarbonLib 1.1 and later
  1968. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1969. * Windows: in QTSClient.lib 4.0 and later
  1970. }
  1971. procedure QTSFreeMessage( var inMessage: QTSStreamBuffer ); external name '_QTSFreeMessage';
  1972. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1973. {
  1974. kQTSDuplicateBufferFlag_CopyData - forces a copy of the data itself
  1975. kQTSCopyBufferFlag_FlattenMessage - copies the data if it needs to be flattened
  1976. QTSDuplicateMessage never frees the old message
  1977. }
  1978. {
  1979. * QTSDuplicateMessage()
  1980. *
  1981. * Availability:
  1982. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1983. * CarbonLib: in CarbonLib 1.3 and later
  1984. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  1985. * Windows: in QTSClient.lib 5.0 and later
  1986. }
  1987. function QTSDuplicateMessage( var inMessage: QTSStreamBuffer; inFlags: SInt32; var outDuplicatedMessage: UnivPtr ): OSErr; external name '_QTSDuplicateMessage';
  1988. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1989. {
  1990. * QTSMessageLength()
  1991. *
  1992. * Availability:
  1993. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1994. * CarbonLib: in CarbonLib 1.1 and later
  1995. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  1996. * Windows: in QTSClient.lib 4.0 and later
  1997. }
  1998. function QTSMessageLength( var inMessage: QTSStreamBuffer ): UInt32; external name '_QTSMessageLength';
  1999. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2000. {
  2001. * QTSStreamBufferDataInfo()
  2002. *
  2003. * Availability:
  2004. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2005. * CarbonLib: in CarbonLib 1.3 and later
  2006. * Non-Carbon CFM: in QTStreamLib 5.0 and later
  2007. * Windows: in QTSClient.lib 5.0 and later
  2008. }
  2009. procedure QTSStreamBufferDataInfo( var inStreamBuffer: QTSStreamBuffer; var outDataStart: UnivPtr; var outDataMaxLength: UInt32 ); external name '_QTSStreamBufferDataInfo';
  2010. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2011. { ---- old calls (don't use these)}
  2012. {
  2013. * QTSAllocBuffer()
  2014. *
  2015. * Availability:
  2016. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2017. * CarbonLib: in CarbonLib 1.1 and later
  2018. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  2019. * Windows: in QTSClient.lib 4.0 and later
  2020. }
  2021. function QTSAllocBuffer( inSize: SInt32 ): QTSStreamBufferPtr; external name '_QTSAllocBuffer';
  2022. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2023. {
  2024. * QTSDupMessage()
  2025. *
  2026. * Availability:
  2027. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2028. * CarbonLib: in CarbonLib 1.1 and later
  2029. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  2030. * Windows: in QTSClient.lib 4.0 and later
  2031. }
  2032. function QTSDupMessage( var inMessage: QTSStreamBuffer ): QTSStreamBufferPtr; external name '_QTSDupMessage';
  2033. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2034. {
  2035. * QTSCopyMessage()
  2036. *
  2037. * Availability:
  2038. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2039. * CarbonLib: in CarbonLib 1.1 and later
  2040. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  2041. * Windows: in QTSClient.lib 4.0 and later
  2042. }
  2043. function QTSCopyMessage( var inMessage: QTSStreamBuffer ): QTSStreamBufferPtr; external name '_QTSCopyMessage';
  2044. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2045. {
  2046. * QTSFlattenMessage()
  2047. *
  2048. * Availability:
  2049. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2050. * CarbonLib: in CarbonLib 1.1 and later
  2051. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  2052. * Windows: in QTSClient.lib 4.0 and later
  2053. }
  2054. function QTSFlattenMessage( var inMessage: QTSStreamBuffer ): QTSStreamBufferPtr; external name '_QTSFlattenMessage';
  2055. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2056. {============================================================================
  2057. Misc
  2058. ============================================================================}
  2059. {
  2060. * QTSGetErrorString()
  2061. *
  2062. * Availability:
  2063. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2064. * CarbonLib: in CarbonLib 1.1 and later
  2065. * Non-Carbon CFM: in QTStreamLib 4.0 and later
  2066. * Windows: in QTSClient.lib 4.0 and later
  2067. }
  2068. function QTSGetErrorString( inErrorCode: SInt32; inMaxErrorStringLength: UInt32; outErrorString: CStringPtr; inFlags: SInt32 ): Boolean; external name '_QTSGetErrorString';
  2069. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2070. {
  2071. * QTSInitializeMediaParams()
  2072. *
  2073. * Availability:
  2074. * Mac OS X: in version 10.1 and later in QuickTime.framework
  2075. * CarbonLib: in CarbonLib 1.6 and later
  2076. * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
  2077. * Windows: in QTSClient.lib 5.0.1 and later
  2078. }
  2079. function QTSInitializeMediaParams( var inMediaParams: QTSMediaParams ): OSErr; external name '_QTSInitializeMediaParams';
  2080. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  2081. { UPP call backs }
  2082. {
  2083. * NewQTSNotificationUPP()
  2084. *
  2085. * Availability:
  2086. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2087. * CarbonLib: in CarbonLib 1.3 and later
  2088. * Non-Carbon CFM: available as macro/inline
  2089. }
  2090. function NewQTSNotificationUPP( userRoutine: QTSNotificationProcPtr ): QTSNotificationUPP; external name '_NewQTSNotificationUPP';
  2091. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2092. {
  2093. * NewQTSPanelFilterUPP()
  2094. *
  2095. * Availability:
  2096. * Mac OS X: in version 10.1 and later in QuickTime.framework
  2097. * CarbonLib: in CarbonLib 1.6 and later
  2098. * Non-Carbon CFM: available as macro/inline
  2099. }
  2100. function NewQTSPanelFilterUPP( userRoutine: QTSPanelFilterProcPtr ): QTSPanelFilterUPP; external name '_NewQTSPanelFilterUPP';
  2101. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  2102. {
  2103. * NewQTSModalFilterUPP()
  2104. *
  2105. * Availability:
  2106. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2107. * CarbonLib: in CarbonLib 1.3 and later
  2108. * Non-Carbon CFM: available as macro/inline
  2109. }
  2110. function NewQTSModalFilterUPP( userRoutine: QTSModalFilterProcPtr ): QTSModalFilterUPP; external name '_NewQTSModalFilterUPP';
  2111. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2112. {
  2113. * DisposeQTSNotificationUPP()
  2114. *
  2115. * Availability:
  2116. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2117. * CarbonLib: in CarbonLib 1.3 and later
  2118. * Non-Carbon CFM: available as macro/inline
  2119. }
  2120. procedure DisposeQTSNotificationUPP( userUPP: QTSNotificationUPP ); external name '_DisposeQTSNotificationUPP';
  2121. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2122. {
  2123. * DisposeQTSPanelFilterUPP()
  2124. *
  2125. * Availability:
  2126. * Mac OS X: in version 10.1 and later in QuickTime.framework
  2127. * CarbonLib: in CarbonLib 1.6 and later
  2128. * Non-Carbon CFM: available as macro/inline
  2129. }
  2130. procedure DisposeQTSPanelFilterUPP( userUPP: QTSPanelFilterUPP ); external name '_DisposeQTSPanelFilterUPP';
  2131. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  2132. {
  2133. * DisposeQTSModalFilterUPP()
  2134. *
  2135. * Availability:
  2136. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2137. * CarbonLib: in CarbonLib 1.3 and later
  2138. * Non-Carbon CFM: available as macro/inline
  2139. }
  2140. procedure DisposeQTSModalFilterUPP( userUPP: QTSModalFilterUPP ); external name '_DisposeQTSModalFilterUPP';
  2141. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2142. {
  2143. * InvokeQTSNotificationUPP()
  2144. *
  2145. * Availability:
  2146. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2147. * CarbonLib: in CarbonLib 1.3 and later
  2148. * Non-Carbon CFM: available as macro/inline
  2149. }
  2150. function InvokeQTSNotificationUPP( inErr: ComponentResult; inNotificationType: OSType; inNotificationParams: UnivPtr; inRefCon: UnivPtr; userUPP: QTSNotificationUPP ): ComponentResult; external name '_InvokeQTSNotificationUPP';
  2151. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2152. {
  2153. * InvokeQTSPanelFilterUPP()
  2154. *
  2155. * Availability:
  2156. * Mac OS X: in version 10.1 and later in QuickTime.framework
  2157. * CarbonLib: in CarbonLib 1.6 and later
  2158. * Non-Carbon CFM: available as macro/inline
  2159. }
  2160. function InvokeQTSPanelFilterUPP( var inParams: QTSPanelFilterParams; inRefCon: UnivPtr; userUPP: QTSPanelFilterUPP ): Boolean; external name '_InvokeQTSPanelFilterUPP';
  2161. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  2162. {
  2163. * InvokeQTSModalFilterUPP()
  2164. *
  2165. * Availability:
  2166. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2167. * CarbonLib: in CarbonLib 1.3 and later
  2168. * Non-Carbon CFM: available as macro/inline
  2169. }
  2170. function InvokeQTSModalFilterUPP( inDialog: DialogPtr; const (*var*) inEvent: EventRecord; var ioItemHit: SInt16; inRefCon: UnivPtr; userUPP: QTSModalFilterUPP ): Boolean; external name '_InvokeQTSModalFilterUPP';
  2171. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2172. {$endc} {TARGET_CPU_64}
  2173. {$endc} {TARGET_OS_MAC}
  2174. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  2175. end.
  2176. {$endc} {not MACOSALLINCLUDE}