/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
Large files are truncated click here to view the full file
- {
- File: QuickTime/QuickTimeStreaming.h
-
- Contains: QuickTime Interfaces.
-
- Version: QuickTime 7.7.1
-
- Copyright: © 1990-2012 by Apple Inc., all rights reserved
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://www.freepascal.org/bugs.html
-
- }
- { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
- { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2012 }
- {
- Modified for use with Free Pascal
- Version 308
- Please report any bugs to <gpc@microbizz.nl>
- }
- {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
- {$mode macpas}
- {$packenum 1}
- {$macro on}
- {$inline on}
- {$calling mwpascal}
- unit QuickTimeStreaming;
- interface
- {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
- {$setc GAP_INTERFACES_VERSION := $0308}
- {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
- {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
- {$endc}
- {$ifc defined CPUPOWERPC and defined CPUI386}
- {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
- {$endc}
- {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
- {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
- {$endc}
- {$ifc not defined __ppc__ and defined CPUPOWERPC32}
- {$setc __ppc__ := 1}
- {$elsec}
- {$setc __ppc__ := 0}
- {$endc}
- {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
- {$setc __ppc64__ := 1}
- {$elsec}
- {$setc __ppc64__ := 0}
- {$endc}
- {$ifc not defined __i386__ and defined CPUI386}
- {$setc __i386__ := 1}
- {$elsec}
- {$setc __i386__ := 0}
- {$endc}
- {$ifc not defined __x86_64__ and defined CPUX86_64}
- {$setc __x86_64__ := 1}
- {$elsec}
- {$setc __x86_64__ := 0}
- {$endc}
- {$ifc not defined __arm__ and defined CPUARM}
- {$setc __arm__ := 1}
- {$elsec}
- {$setc __arm__ := 0}
- {$endc}
- {$ifc defined cpu64}
- {$setc __LP64__ := 1}
- {$elsec}
- {$setc __LP64__ := 0}
- {$endc}
- {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
- {$error Conflicting definitions for __ppc__ and __i386__}
- {$endc}
- {$ifc defined __ppc__ and __ppc__}
- {$setc TARGET_CPU_PPC := TRUE}
- {$setc TARGET_CPU_PPC64 := FALSE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$setc TARGET_CPU_X86_64 := FALSE}
- {$setc TARGET_CPU_ARM := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_IPHONE := FALSE}
- {$setc TARGET_IPHONE_SIMULATOR := FALSE}
- {$setc TARGET_OS_EMBEDDED := FALSE}
- {$elifc defined __ppc64__ and __ppc64__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_PPC64 := TRUE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$setc TARGET_CPU_X86_64 := FALSE}
- {$setc TARGET_CPU_ARM := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_IPHONE := FALSE}
- {$setc TARGET_IPHONE_SIMULATOR := FALSE}
- {$setc TARGET_OS_EMBEDDED := FALSE}
- {$elifc defined __i386__ and __i386__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_PPC64 := FALSE}
- {$setc TARGET_CPU_X86 := TRUE}
- {$setc TARGET_CPU_X86_64 := FALSE}
- {$setc TARGET_CPU_ARM := FALSE}
- {$ifc defined(iphonesim)}
- {$setc TARGET_OS_MAC := FALSE}
- {$setc TARGET_OS_IPHONE := TRUE}
- {$setc TARGET_IPHONE_SIMULATOR := TRUE}
- {$elsec}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_IPHONE := FALSE}
- {$setc TARGET_IPHONE_SIMULATOR := FALSE}
- {$endc}
- {$setc TARGET_OS_EMBEDDED := FALSE}
- {$elifc defined __x86_64__ and __x86_64__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_PPC64 := FALSE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$setc TARGET_CPU_X86_64 := TRUE}
- {$setc TARGET_CPU_ARM := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_IPHONE := FALSE}
- {$setc TARGET_IPHONE_SIMULATOR := FALSE}
- {$setc TARGET_OS_EMBEDDED := FALSE}
- {$elifc defined __arm__ and __arm__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_PPC64 := FALSE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$setc TARGET_CPU_X86_64 := FALSE}
- {$setc TARGET_CPU_ARM := TRUE}
- { will require compiler define when/if other Apple devices with ARM cpus ship }
- {$setc TARGET_OS_MAC := FALSE}
- {$setc TARGET_OS_IPHONE := TRUE}
- {$setc TARGET_IPHONE_SIMULATOR := FALSE}
- {$setc TARGET_OS_EMBEDDED := TRUE}
- {$elsec}
- {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
- {$endc}
- {$ifc defined __LP64__ and __LP64__ }
- {$setc TARGET_CPU_64 := TRUE}
- {$elsec}
- {$setc TARGET_CPU_64 := FALSE}
- {$endc}
- {$ifc defined FPC_BIG_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := TRUE}
- {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
- {$elifc defined FPC_LITTLE_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := FALSE}
- {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
- {$elsec}
- {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
- {$endc}
- {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
- {$setc CALL_NOT_IN_CARBON := FALSE}
- {$setc OLDROUTINENAMES := FALSE}
- {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
- {$setc OPAQUE_UPP_TYPES := TRUE}
- {$setc OTCARBONAPPLICATION := TRUE}
- {$setc OTKERNEL := FALSE}
- {$setc PM_USE_SESSION_APIS := TRUE}
- {$setc TARGET_API_MAC_CARBON := TRUE}
- {$setc TARGET_API_MAC_OS8 := FALSE}
- {$setc TARGET_API_MAC_OSX := TRUE}
- {$setc TARGET_CARBON := TRUE}
- {$setc TARGET_CPU_68K := FALSE}
- {$setc TARGET_CPU_MIPS := FALSE}
- {$setc TARGET_CPU_SPARC := FALSE}
- {$setc TARGET_OS_UNIX := FALSE}
- {$setc TARGET_OS_WIN32 := FALSE}
- {$setc TARGET_RT_MAC_68881 := FALSE}
- {$setc TARGET_RT_MAC_CFM := FALSE}
- {$setc TARGET_RT_MAC_MACHO := TRUE}
- {$setc TYPED_FUNCTION_POINTERS := TRUE}
- {$setc TYPE_BOOL := FALSE}
- {$setc TYPE_EXTENDED := FALSE}
- {$setc TYPE_LONGLONG := TRUE}
- uses MacTypes,Components,Events,Files,QuickdrawTypes,Movies,ImageCompression,QuickTimeComponents;
- {$endc} {not MACOSALLINCLUDE}
- {$ifc TARGET_OS_MAC}
- {$ALIGN MAC68K}
- { QuickTime is not available to 64-bit clients }
- {$ifc not TARGET_CPU_64}
- const
- kQTSInfiniteDuration = $7FFFFFFF;
- kQTSUnknownDuration = $00000000;
- kQTSNormalForwardRate = $00010000;
- kQTSStoppedRate = $00000000;
- type
- QTSPresentationRecordPtr = ^QTSPresentationRecord;
- QTSPresentationRecord = record
- data: array [0..1-1] of SIGNEDLONG;
- end;
- type
- QTSPresentation = ^QTSPresentationRecord;
- QTSStreamRecordPtr = ^QTSStreamRecord;
- QTSStreamRecord = record
- data: array [0..1-1] of SIGNEDLONG;
- end;
- type
- QTSStream = ^QTSStreamRecord;
- QTSEditEntryPtr = ^QTSEditEntry;
- QTSEditEntry = record
- presentationDuration: TimeValue64;
- streamStartTime: TimeValue64;
- streamRate: Fixed;
- end;
- type
- QTSEditList = record
- numEdits: SInt32;
- edits: array [0..0] of QTSEditEntry;
- end;
- QTSEditListPtr = ^QTSEditList;
- type
- QTSEditListHandle = ^QTSEditListPtr;
- QTSNotificationProcPtr = function( inErr: ComponentResult; inNotificationType: OSType; inNotificationParams: UnivPtr; inRefCon: UnivPtr ): ComponentResult;
- QTSNotificationUPP = QTSNotificationProcPtr;
- {-----------------------------------------
- Get / Set Info
- -----------------------------------------}
- const
- kQTSGetURLLink = FourCharCode('gull'); { QTSGetURLLinkRecord* }
- { get and set }
- const
- kQTSTargetBufferDurationInfo = FourCharCode('bufr'); { Fixed* in seconds; expected, not actual }
- kQTSDurationInfo = FourCharCode('dura'); { QTSDurationAtom* }
- kQTSSoundLevelMeteringEnabledInfo = FourCharCode('mtrn'); { Boolean* }
- kQTSSoundLevelMeterInfo = FourCharCode('levm'); { LevelMeterInfoPtr }
- kQTSSourceTrackIDInfo = FourCharCode('otid'); { UInt32* }
- kQTSSourceLayerInfo = FourCharCode('olyr'); { UInt16* }
- kQTSSourceLanguageInfo = FourCharCode('olng'); { UInt16* }
- kQTSSourceTrackFlagsInfo = FourCharCode('otfl'); { SInt32* }
- kQTSSourceDimensionsInfo = FourCharCode('odim'); { QTSDimensionParams* }
- kQTSSourceVolumesInfo = FourCharCode('ovol'); { QTSVolumesParams* }
- kQTSSourceMatrixInfo = FourCharCode('omat'); { MatrixRecord* }
- kQTSSourceClipRectInfo = FourCharCode('oclp'); { Rect* }
- kQTSSourceGraphicsModeInfo = FourCharCode('ogrm'); { QTSGraphicsModeParams* }
- kQTSSourceScaleInfo = FourCharCode('oscl'); { Point* }
- kQTSSourceBoundingRectInfo = FourCharCode('orct'); { Rect* }
- kQTSSourceUserDataInfo = FourCharCode('oudt'); { UserData }
- kQTSSourceInputMapInfo = FourCharCode('oimp'); { QTAtomContainer }
- kQTSInfo_DataProc = FourCharCode('datp'); { QTSDataProcParams* }
- kQTSInfo_SendDataExtras = FourCharCode('dext'); { QTSSendDataExtrasParams* }
- kQTSInfo_HintTrackID = FourCharCode('htid'); { long* }
- kQTSInfo_URL = FourCharCode('url '); { Handle*, cstring in handle }
- kQTSInfo_Authentication = FourCharCode('auup'); { QTSAuthenticationParams }
- kQTSInfo_MediaPacketizer = FourCharCode('rmpk'); { ComponentInstance }
- { get only }
- const
- kQTSStatisticsInfo = FourCharCode('stat'); { QTSStatisticsParams* }
- kQTSMinStatusDimensionsInfo = FourCharCode('mstd'); { QTSDimensionParams* }
- kQTSNormalStatusDimensionsInfo = FourCharCode('nstd'); { QTSDimensionParams* }
- kQTSTotalDataRateInfo = FourCharCode('drtt'); { UInt32*, add to what's there }
- kQTSTotalDataRateInInfo = FourCharCode('drti'); { UInt32*, add to what's there }
- kQTSTotalDataRateOutInfo = FourCharCode('drto'); { UInt32*, add to what's there }
- kQTSLostPercentInfo = FourCharCode('lpct'); { QTSLostPercentParams*, add to what's there }
- kQTSNumViewersInfo = FourCharCode('nviw'); { UInt32* }
- kQTSMediaTypeInfo = FourCharCode('mtyp'); { OSType* }
- kQTSNameInfo = FourCharCode('name'); { QTSNameParams* }
- kQTSCanHandleSendDataType = FourCharCode('chsd'); { QTSCanHandleSendDataTypeParams* }
- kQTSAnnotationsInfo = FourCharCode('meta'); { QTAtomContainer }
- kQTSRemainingBufferTimeInfo = FourCharCode('btms'); { UInt32* remaining buffer time before playback, in microseconds }
- kQTSInfo_SettingsText = FourCharCode('sttx'); { QTSSettingsTextParams* }
- kQTSInfo_AverageFrameRate = FourCharCode('fps '); { UnsignedFixed* }
- type
- QTSAuthenticationParamsPtr = ^QTSAuthenticationParams;
- QTSAuthenticationParams = record
- flags: SInt32;
- userID: ConstCStringPtr; { caller disposes of pointer}
- password: ConstCStringPtr; { caller disposes of pointer}
- end;
- const
- kQTSTargetBufferDurationTimeScale = 1000;
- type
- QTSPanelFilterParamsPtr = ^QTSPanelFilterParams;
- QTSPanelFilterParams = record
- version: SInt32;
- inStream: QTSStream;
- inPanelType: OSType;
- inPanelSubType: OSType;
- details: QTAtomSpec;
- end;
- { return true to keep this panel}
- type
- QTSPanelFilterProcPtr = function( var inParams: QTSPanelFilterParams; inRefCon: UnivPtr ): Boolean;
- QTSPanelFilterUPP = QTSPanelFilterProcPtr;
- const
- kQTSSettingsTextSummary = FourCharCode('set1');
- kQTSSettingsTextDetails = FourCharCode('setd');
- type
- QTSSettingsTextParamsPtr = ^QTSSettingsTextParams;
- QTSSettingsTextParams = record
- flags: SInt32; { None yet defined}
- inSettingsSelector: OSType; { which kind of setting you want from enum above}
- outSettingsAsText: Handle; { QTS allocates; Caller disposes}
- inPanelFilterProc: QTSPanelFilterUPP; { To get a subset filter with this }
- inPanelFilterProcRefCon: UnivPtr;
- end;
- type
- QTSCanHandleSendDataTypeParamsPtr = ^QTSCanHandleSendDataTypeParams;
- QTSCanHandleSendDataTypeParams = record
- modifierTypeOrInputID: SInt32;
- isModifierType: Boolean;
- returnedCanHandleSendDataType: Boolean; { callee sets to true if it can handle it}
- end;
- type
- QTSNameParams = record
- maxNameLength: SInt32;
- requestedLanguage: SInt32;
- returnedActualLanguage: SInt32;
- returnedName: UInt8Ptr; { pascal string; caller supplies}
- end;
- type
- QTSLostPercentParamsPtr = ^QTSLostPercentParams;
- QTSLostPercentParams = record
- receivedPkts: UInt32;
- lostPkts: UInt32;
- percent: Fixed;
- end;
- type
- QTSDimensionParamsPtr = ^QTSDimensionParams;
- QTSDimensionParams = record
- width: Fixed;
- height: Fixed;
- end;
- type
- QTSVolumesParamsPtr = ^QTSVolumesParams;
- QTSVolumesParams = record
- leftVolume: SInt16;
- rightVolume: SInt16;
- end;
- type
- QTSGraphicsModeParamsPtr = ^QTSGraphicsModeParams;
- QTSGraphicsModeParams = record
- graphicsMode: SInt16;
- opColor: RGBColor;
- end;
- type
- QTSGetURLLinkRecordPtr = ^QTSGetURLLinkRecord;
- QTSGetURLLinkRecord = record
- displayWhere: Point;
- returnedURLLink: Handle;
- end;
- const
- kQTSDataProcParamsVersion1 = 1;
- const
- kQTSDataProcType_MediaSample = FourCharCode('mdia');
- kQTSDataProcType_HintSample = FourCharCode('hint');
- type
- QTSDataProcParamsPtr = ^QTSDataProcParams;
- QTSDataProcParams = record
- version: SInt32;
- flags: SInt32;
- stream: QTSStream;
- procType: OSType;
- proc: QTSNotificationUPP;
- procRefCon: UnivPtr;
- end;
- const
- kQTSDataProcSelector_SampleData = FourCharCode('samp');
- kQTSDataProcSelector_UserData = FourCharCode('user');
- const
- kQTSSampleDataCallbackParamsVersion1 = 1;
- type
- QTSSampleDataCallbackParamsPtr = ^QTSSampleDataCallbackParams;
- QTSSampleDataCallbackParams = record
- version: SInt32;
- flags: SInt32;
- stream: QTSStream;
- procType: OSType;
- mediaType: OSType;
- mediaTimeScale: TimeScale;
- sampleDesc: SampleDescriptionHandle;
- sampleDescSeed: UInt32;
- sampleTime: TimeValue64;
- duration: TimeValue64; { could be 0 }
- sampleFlags: SInt32;
- dataLength: UInt32;
- data: {const} UnivPtr;
- end;
- const
- kQTSUserDataCallbackParamsVersion1 = 1;
- type
- QTSUserDataCallbackParamsPtr = ^QTSUserDataCallbackParams;
- QTSUserDataCallbackParams = record
- version: SInt32;
- flags: SInt32;
- stream: QTSStream;
- procType: OSType;
- userDataType: OSType;
- userDataHandle: Handle; { caller must make copy if it wants to keep the data around}
- end;
- const
- kQTSSendDataExtrasParamsVersion1 = 1;
- type
- QTSSendDataExtrasParamsPtr = ^QTSSendDataExtrasParams;
- QTSSendDataExtrasParams = record
- version: SInt32;
- flags: SInt32;
- procType: OSType;
- end;
- type
- QTSModalFilterProcPtr = function( inDialog: DialogPtr; const (*var*) inEvent: EventRecord; var ioItemHit: SInt16; inRefCon: UnivPtr ): Boolean;
- QTSModalFilterUPP = QTSModalFilterProcPtr;
- {-----------------------------------------
- Characteristics
- -----------------------------------------}
- { characteristics in Movies.h work here too }
- const
- kQTSSupportsPerStreamControlCharacteristic = FourCharCode('psct');
- type
- QTSVideoParamsPtr = ^QTSVideoParams;
- QTSVideoParams = record
- width: Fixed;
- height: Fixed;
- matrix: MatrixRecord;
- gWorld: CGrafPtr;
- gdHandle: GDHandle_fix;
- clip: RgnHandle;
- graphicsMode: SInt16;
- opColor: RGBColor;
- end;
- type
- QTSAudioParamsPtr = ^QTSAudioParams;
- QTSAudioParams = record
- leftVolume: SInt16;
- rightVolume: SInt16;
- bassLevel: SInt16;
- trebleLevel: SInt16;
- frequencyBandsCount: SInt16;
- frequencyBands: UnivPtr;
- levelMeteringEnabled: Boolean;
- end;
- type
- QTSMediaParamsPtr = ^QTSMediaParams;
- QTSMediaParams = record
- v: QTSVideoParams;
- a: QTSAudioParams;
- end;
- const
- kQTSMustDraw = 1 shl 3;
- kQTSAtEnd = 1 shl 4;
- kQTSPreflightDraw = 1 shl 5;
- kQTSSyncDrawing = 1 shl 6;
- { media task result flags }
- const
- kQTSDidDraw = 1 shl 0;
- kQTSNeedsToDraw = 1 shl 2;
- kQTSDrawAgain = 1 shl 3;
- kQTSPartialDraw = 1 shl 4;
- {============================================================================
- Notifications
- ============================================================================}
- { ------ notification types ------ }
- const
- kQTSNullNotification = FourCharCode('null'); { NULL }
- kQTSErrorNotification = FourCharCode('err '); { QTSErrorParams*, optional }
- kQTSNewPresDetectedNotification = FourCharCode('newp'); { QTSNewPresDetectedParams* }
- kQTSPresBeginChangingNotification = FourCharCode('prcb'); { NULL }
- kQTSPresDoneChangingNotification = FourCharCode('prcd'); { NULL }
- kQTSPresentationChangedNotification = FourCharCode('prch'); { NULL }
- kQTSNewStreamNotification = FourCharCode('stnw'); { QTSNewStreamParams* }
- kQTSStreamBeginChangingNotification = FourCharCode('stcb'); { QTSStream }
- kQTSStreamDoneChangingNotification = FourCharCode('stcd'); { QTSStream }
- kQTSStreamChangedNotification = FourCharCode('stch'); { QTSStreamChangedParams* }
- kQTSStreamGoneNotification = FourCharCode('stgn'); { QTSStreamGoneParams* }
- kQTSPreviewAckNotification = FourCharCode('pvak'); { QTSStream }
- kQTSPrerollAckNotification = FourCharCode('pack'); { QTSStream }
- kQTSStartAckNotification = FourCharCode('sack'); { QTSStream }
- kQTSStopAckNotification = FourCharCode('xack'); { QTSStream }
- kQTSStatusNotification = FourCharCode('stat'); { QTSStatusParams* }
- kQTSURLNotification = FourCharCode('url '); { QTSURLParams* }
- kQTSDurationNotification = FourCharCode('dura'); { QTSDurationAtom* }
- kQTSNewPresentationNotification = FourCharCode('nprs'); { QTSPresentation }
- kQTSPresentationGoneNotification = FourCharCode('xprs'); { QTSPresentation }
- kQTSPresentationDoneNotification = FourCharCode('pdon'); { NULL }
- kQTSBandwidthAlertNotification = FourCharCode('bwal'); { QTSBandwidthAlertParams* }
- kQTSAnnotationsChangedNotification = FourCharCode('meta'); { NULL }
- { flags for QTSErrorParams }
- const
- kQTSFatalErrorFlag = $00000001;
- type
- QTSErrorParamsPtr = ^QTSErrorParams;
- QTSErrorParams = record
- errorString: ConstCStringPtr;
- flags: SInt32;
- end;
- type
- QTSNewPresDetectedParamsPtr = ^QTSNewPresDetectedParams;
- QTSNewPresDetectedParams = record
- data: UnivPtr;
- end;
- type
- QTSNewStreamParamsPtr = ^QTSNewStreamParams;
- QTSNewStreamParams = record
- stream: QTSStream;
- end;
- type
- QTSStreamChangedParamsPtr = ^QTSStreamChangedParams;
- QTSStreamChangedParams = record
- stream: QTSStream;
- mediaComponent: ComponentInstance; { could be NULL }
- end;
- type
- QTSStreamGoneParamsPtr = ^QTSStreamGoneParams;
- QTSStreamGoneParams = record
- stream: QTSStream;
- end;
- type
- QTSStatusParamsPtr = ^QTSStatusParams;
- QTSStatusParams = record
- status: UInt32;
- statusString: ConstCStringPtr;
- detailedStatus: UInt32;
- detailedStatusString: ConstCStringPtr;
- end;
- type
- QTSInfoParamsPtr = ^QTSInfoParams;
- QTSInfoParams = record
- infoType: OSType;
- infoParams: UnivPtr;
- end;
- type
- QTSURLParamsPtr = ^QTSURLParams;
- QTSURLParams = record
- urlLength: UInt32;
- url: ConstCStringPtr;
- end;
- const
- kQTSBandwidthAlertNeedToStop = 1 shl 0;
- kQTSBandwidthAlertRestartAt = 1 shl 1;
- type
- QTSBandwidthAlertParamsPtr = ^QTSBandwidthAlertParams;
- QTSBandwidthAlertParams = record
- flags: SInt32;
- restartAt: TimeValue; { new field in QT 4.1}
- reserved: UnivPtr;
- end;
- {============================================================================
- Presentation
- ============================================================================}
- {-----------------------------------------
- Flags
- -----------------------------------------}
- { flags for NewPresentationFromData }
- const
- kQTSAutoModeFlag = $00000001;
- kQTSDontShowStatusFlag = $00000008;
- kQTSSendMediaFlag = $00010000;
- kQTSReceiveMediaFlag = $00020000;
- type
- QTSNewPresentationParamsPtr = ^QTSNewPresentationParams;
- QTSNewPresentationParams = record
- dataType: OSType;
- data: {const} UnivPtr;
- dataLength: UInt32;
- editList: QTSEditListHandle;
- flags: SInt32;
- timeScale: TimeScale_fix; { set to 0 for default timescale }
- mediaParams: QTSMediaParamsPtr;
- notificationProc: QTSNotificationUPP;
- notificationRefCon: UnivPtr;
- end;
- type
- QTSPresParamsPtr = ^QTSPresParams;
- QTSPresParams = record
- version: UInt32;
- editList: QTSEditListHandle;
- flags: SInt32;
- timeScale: TimeScale_fix; { set to 0 for default timescale }
- mediaParams: QTSMediaParamsPtr;
- notificationProc: QTSNotificationUPP;
- notificationRefCon: UnivPtr;
- end;
- const
- kQTSPresParamsVersion1 = 1;
- type
- QTSPresIdleParamsPtr = ^QTSPresIdleParams;
- QTSPresIdleParams = record
- stream: QTSStream;
- movieTimeToDisplay: TimeValue64;
- flagsIn: SInt32;
- flagsOut: SInt32;
- end;
- const
- kQTSExportFlag_ShowDialog = $00000001;
- const
- kQTSExportParamsVersion1 = 1;
- type
- QTSExportParamsPtr = ^QTSExportParams;
- QTSExportParams = record
- version: SInt32;
- exportType: OSType;
- exportExtraData: UnivPtr;
- destinationContainerType: OSType;
- destinationContainerData: UnivPtr;
- destinationContainerExtras: UnivPtr;
- flagsIn: SInt32;
- flagsOut: SInt32;
- filterProc: QTSModalFilterUPP;
- filterProcRefCon: UnivPtr;
- exportComponent: Component; { NULL unless you want to override }
- end;
- {-----------------------------------------
- Toolbox Init/Close
- -----------------------------------------}
- { all "apps" must call this }
- {
- * InitializeQTS()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function InitializeQTS: OSErr; external name '_InitializeQTS';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * TerminateQTS()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function TerminateQTS: OSErr; external name '_TerminateQTS';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {-----------------------------------------
- Presentation Functions
- -----------------------------------------}
- {
- * QTSNewPresentation()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSNewPresentation( const (*var*) inParams: QTSNewPresentationParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentation';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSNewPresentationFromData()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.3 and later
- * Non-Carbon CFM: in QTStreamLib 5.0 and later
- * Windows: in QTSClient.lib 5.0 and later
- }
- function QTSNewPresentationFromData( inDataType: OSType; inData: {const} UnivPtr; (*const*) var inDataLength: SInt64; const (*var*) inPresParams: QTSPresParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentationFromData';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSNewPresentationFromFile()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.3 and later
- * Non-Carbon CFM: in QTStreamLib 5.0 and later
- * Windows: in QTSClient.lib 5.0 and later
- }
- function QTSNewPresentationFromFile( const (*var*) inFileSpec: FSSpec; const (*var*) inPresParams: QTSPresParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentationFromFile';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSNewPresentationFromDataRef()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.3 and later
- * Non-Carbon CFM: in QTStreamLib 5.0 and later
- * Windows: in QTSClient.lib 5.0 and later
- }
- function QTSNewPresentationFromDataRef( inDataRef: Handle; inDataRefType: OSType; const (*var*) inPresParams: QTSPresParams; var outPresentation: QTSPresentation ): OSErr; external name '_QTSNewPresentationFromDataRef';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSDisposePresentation()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSDisposePresentation( inPresentation: QTSPresentation; inFlags: SInt32 ): OSErr; external name '_QTSDisposePresentation';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresExport()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.3 and later
- * Non-Carbon CFM: in QTStreamLib 5.0 and later
- * Windows: in QTSClient.lib 5.0 and later
- }
- function QTSPresExport( inPresentation: QTSPresentation; inStream: QTSStream; var inExportParams: QTSExportParams ): OSErr; external name '_QTSPresExport';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresIdle()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- procedure QTSPresIdle( inPresentation: QTSPresentation; var ioParams: QTSPresIdleParams ); external name '_QTSPresIdle';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresInvalidateRegion()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresInvalidateRegion( inPresentation: QTSPresentation; inRegion: RgnHandle ): OSErr; external name '_QTSPresInvalidateRegion';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {-----------------------------------------
- Presentation Configuration
- -----------------------------------------}
- {
- * QTSPresSetFlags()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetFlags( inPresentation: QTSPresentation; inFlags: SInt32; inFlagsMask: SInt32 ): OSErr; external name '_QTSPresSetFlags';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetFlags()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetFlags( inPresentation: QTSPresentation; var outFlags: SInt32 ): OSErr; external name '_QTSPresGetFlags';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetTimeBase()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetTimeBase( inPresentation: QTSPresentation; var outTimeBase: TimeBase ): OSErr; external name '_QTSPresGetTimeBase';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetTimeScale()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetTimeScale( inPresentation: QTSPresentation; var outTimeScale: TimeScale ): OSErr; external name '_QTSPresGetTimeScale';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetInfo()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetInfo( inPresentation: QTSPresentation; inStream: QTSStream; inSelector: OSType; ioParam: UnivPtr ): OSErr; external name '_QTSPresSetInfo';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetInfo()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetInfo( inPresentation: QTSPresentation; inStream: QTSStream; inSelector: OSType; ioParam: UnivPtr ): OSErr; external name '_QTSPresGetInfo';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresHasCharacteristic()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresHasCharacteristic( inPresentation: QTSPresentation; inStream: QTSStream; inCharacteristic: OSType; var outHasIt: Boolean ): OSErr; external name '_QTSPresHasCharacteristic';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetNotificationProc()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetNotificationProc( inPresentation: QTSPresentation; inNotificationProc: QTSNotificationUPP; inRefCon: UnivPtr ): OSErr; external name '_QTSPresSetNotificationProc';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetNotificationProc()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetNotificationProc( inPresentation: QTSPresentation; var outNotificationProc: QTSNotificationUPP; var outRefCon: UnivPtr ): OSErr; external name '_QTSPresGetNotificationProc';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {-----------------------------------------
- Presentation Control
- -----------------------------------------}
- {
- * QTSPresPreview()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.3 and later
- * Non-Carbon CFM: in QTStreamLib 5.0 and later
- }
- function QTSPresPreview( inPresentation: QTSPresentation; inStream: QTSStream; (*const*) var inTimeValue: TimeValue64; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresPreview';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresPreroll()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresPreroll( inPresentation: QTSPresentation; inStream: QTSStream; inTimeValue: UInt32; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresPreroll';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresPreroll64()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.1 and later
- * Windows: in QTSClient.lib 4.1 and later
- }
- function QTSPresPreroll64( inPresentation: QTSPresentation; inStream: QTSStream; (*const*) var inPrerollTime: TimeValue64; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresPreroll64';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresStart()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresStart( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32 ): OSErr; external name '_QTSPresStart';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSkipTo()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSkipTo( inPresentation: QTSPresentation; inTimeValue: UInt32 ): OSErr; external name '_QTSPresSkipTo';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSkipTo64()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.1 and later
- * Windows: in QTSClient.lib 4.1 and later
- }
- function QTSPresSkipTo64( inPresentation: QTSPresentation; (*const*) var inTimeValue: TimeValue64 ): OSErr; external name '_QTSPresSkipTo64';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresStop()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresStop( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32 ): OSErr; external name '_QTSPresStop';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {============================================================================
- Streams
- ============================================================================}
- {-----------------------------------------
- Stream Functions
- -----------------------------------------}
- {
- * QTSPresNewStream()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresNewStream( inPresentation: QTSPresentation; inDataType: OSType; inData: {const} UnivPtr; inDataLength: UInt32; inFlags: SInt32; var outStream: QTSStream ): OSErr; external name '_QTSPresNewStream';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSDisposeStream()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSDisposeStream( inStream: QTSStream; inFlags: SInt32 ): OSErr; external name '_QTSDisposeStream';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetNumStreams()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetNumStreams( inPresentation: QTSPresentation ): UInt32; external name '_QTSPresGetNumStreams';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetIndStream()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetIndStream( inPresentation: QTSPresentation; inIndex: UInt32 ): QTSStream; external name '_QTSPresGetIndStream';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSGetStreamPresentation()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSGetStreamPresentation( inStream: QTSStream ): QTSPresentation; external name '_QTSGetStreamPresentation';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetPreferredRate()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetPreferredRate( inPresentation: QTSPresentation; inRate: Fixed; inFlags: SInt32 ): OSErr; external name '_QTSPresSetPreferredRate';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetPreferredRate()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetPreferredRate( inPresentation: QTSPresentation; var outRate: Fixed ): OSErr; external name '_QTSPresGetPreferredRate';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetEnable()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetEnable( inPresentation: QTSPresentation; inStream: QTSStream; inEnableMode: Boolean ): OSErr; external name '_QTSPresSetEnable';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetEnable()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetEnable( inPresentation: QTSPresentation; inStream: QTSStream; var outEnableMode: Boolean ): OSErr; external name '_QTSPresGetEnable';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetPresenting()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetPresenting( inPresentation: QTSPresentation; inStream: QTSStream; inPresentingMode: Boolean ): OSErr; external name '_QTSPresSetPresenting';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetPresenting()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetPresenting( inPresentation: QTSPresentation; inStream: QTSStream; var outPresentingMode: Boolean ): OSErr; external name '_QTSPresGetPresenting';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetActiveSegment()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.1 and later
- * Windows: in QTSClient.lib 4.1 and later
- }
- function QTSPresSetActiveSegment( inPresentation: QTSPresentation; inStream: QTSStream; (*const*) var inStartTime: TimeValue64; (*const*) var inDuration: TimeValue64 ): OSErr; external name '_QTSPresSetActiveSegment';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetActiveSegment()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.1 and later
- * Windows: in QTSClient.lib 4.1 and later
- }
- function QTSPresGetActiveSegment( inPresentation: QTSPresentation; inStream: QTSStream; var outStartTime: TimeValue64; var outDuration: TimeValue64 ): OSErr; external name '_QTSPresGetActiveSegment';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetPlayHints()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetPlayHints( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inFlagsMask: SInt32 ): OSErr; external name '_QTSPresSetPlayHints';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetPlayHints()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetPlayHints( inPresentation: QTSPresentation; inStream: QTSStream; var outFlags: SInt32 ): OSErr; external name '_QTSPresGetPlayHints';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {-----------------------------------------
- Stream Spatial Functions
- -----------------------------------------}
- {
- * QTSPresSetGWorld()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetGWorld( inPresentation: QTSPresentation; inStream: QTSStream; inGWorld: CGrafPtr; inGDHandle: GDHandle ): OSErr; external name '_QTSPresSetGWorld';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetGWorld()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetGWorld( inPresentation: QTSPresentation; inStream: QTSStream; var outGWorld: CGrafPtr; var outGDHandle: GDHandle ): OSErr; external name '_QTSPresGetGWorld';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetClip()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetClip( inPresentation: QTSPresentation; inStream: QTSStream; inClip: RgnHandle ): OSErr; external name '_QTSPresSetClip';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetClip()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetClip( inPresentation: QTSPresentation; inStream: QTSStream; var outClip: RgnHandle ): OSErr; external name '_QTSPresGetClip';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetMatrix()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetMatrix( inPresentation: QTSPresentation; inStream: QTSStream; const (*var*) inMatrix: MatrixRecord ): OSErr; external name '_QTSPresSetMatrix';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetMatrix()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetMatrix( inPresentation: QTSPresentation; inStream: QTSStream; var outMatrix: MatrixRecord ): OSErr; external name '_QTSPresGetMatrix';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetDimensions()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetDimensions( inPresentation: QTSPresentation; inStream: QTSStream; inWidth: Fixed; inHeight: Fixed ): OSErr; external name '_QTSPresSetDimensions';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetDimensions()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetDimensions( inPresentation: QTSPresentation; inStream: QTSStream; var outWidth: Fixed; var outHeight: Fixed ): OSErr; external name '_QTSPresGetDimensions';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetGraphicsMode()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetGraphicsMode( inPresentation: QTSPresentation; inStream: QTSStream; inMode: SInt16; const (*var*) inOpColor: RGBColor ): OSErr; external name '_QTSPresSetGraphicsMode';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetGraphicsMode()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetGraphicsMode( inPresentation: QTSPresentation; inStream: QTSStream; var outMode: SInt16; var outOpColor: RGBColor ): OSErr; external name '_QTSPresGetGraphicsMode';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetPicture()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetPicture( inPresentation: QTSPresentation; inStream: QTSStream; var outPicture: PicHandle ): OSErr; external name '_QTSPresGetPicture';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSetVisualContext()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetVisualContext( inPresentation: QTSPresentation; inStream: QTSStream; inVisualContext: QTVisualContextRef ): OSErr; external name '_QTSPresSetVisualContext';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetVisualContext()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetVisualContext( inPresentation: QTSPresentation; inStream: QTSStream; var outVisualContext: QTVisualContextRef ): OSErr; external name '_QTSPresGetVisualContext';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {-----------------------------------------
- Stream Sound Functions
- -----------------------------------------}
- {
- * QTSPresSetVolumes()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresSetVolumes( inPresentation: QTSPresentation; inStream: QTSStream; inLeftVolume: SInt16; inRightVolume: SInt16 ): OSErr; external name '_QTSPresSetVolumes';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresGetVolumes()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.1 and later
- * Non-Carbon CFM: in QTStreamLib 4.0 and later
- * Windows: in QTSClient.lib 4.0 and later
- }
- function QTSPresGetVolumes( inPresentation: QTSPresentation; inStream: QTSStream; var outLeftVolume: SInt16; var outRightVolume: SInt16 ): OSErr; external name '_QTSPresGetVolumes';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {-----------------------------------------
- Sourcing
- -----------------------------------------}
- {
- * QTSPresGetSettingsAsText()
- *
- * Availability:
- * Mac OS X: in version 10.1 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.6 and later
- * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
- }
- function QTSPresGetSettingsAsText( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inSettingsType: OSType; var outText: Handle; inPanelFilterProc: QTSPanelFilterUPP; inPanelFilterProcRefCon: UnivPtr ): OSErr; external name '_QTSPresGetSettingsAsText';
- (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
- {
- * QTSPresSettingsDialog()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.3 and later
- * Non-Carbon CFM: in QTStreamLib 5.0 and later
- }
- function QTSPresSettingsDialog( inPresentation: QTSPresentation; inStream: QTSStream; inFlags: SInt32; inFilterProc: QTSModalFilterUPP; inFilterProcRefCon: UnivPtr ): OSErr; external name '_QTSPresSettingsDialog';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * QTSPresSettingsDialogWithFilters()
- *
- * Availability:
- * Mac OS X: in version 10.1 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.6 and later
- * Non-Carbon CFM: in QTStreamLib 5.0.1 and later
- }
- function QTSPresSettingsDialog…