/packages/univint/src/Movies.pas
https://github.com/slibre/freepascal · Pascal · 16706 lines · 3361 code · 1949 blank · 11396 comment · 0 complexity · 895f73aa2f965503d84525a9f913758c MD5 · raw file
Large files are truncated click here to view the full file
- {
- File: QuickTime/Movies.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 Movies;
- 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,Aliases,Components,Dialogs,Events,Files,Menus,ImageCompression,QDOffscreen,QuickdrawTypes,TextEdit,HIObject,CFBase,CFDictionary,CFString,CoreAudioTypes,AUComponent;
- {$endc} {not MACOSALLINCLUDE}
- {$ifc TARGET_OS_MAC}
- {
- Important note regarding availability macros
- ============================================
-
- QuickTime APIs that were introduced in QuickTime 6.0 and later are tagged with
- availability macros indicating the first Mac OS X version in which they were
- *always* available. Such APIs may also be present on systems running earlier
- Mac OS X releases when QuickTime updates have been installed.
-
- For example, QTNewDataReferenceFromCFURL was introduced in QuickTime 6.4.
- It is always available on Mac OS X 10.3, which shipped with QuickTime 6.4.
- However, QuickTime 6.4 can also be installed as an update to Mac OS X 10.2.x,
- so QTNewDataReferenceFromCFURL is also available on some systems running
- Mac OS X 10.2.x.
-
- QuickTime 6.0 / Mac OS X 10.2 : AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER
- QuickTime 6.4 / Mac OS X 10.3 : AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER
- QuickTime 7.0 / Mac OS X 10.4 : AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER
- QuickTime 7.2 / Mac OS X 10.5 : AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
-
- As described in /usr/include/AvailabilityMacros.h, you can use the
- MAC_OS_X_VERSION_MIN_REQUIRED macro to weak-link to the APIs that may not be
- available on the Mac OS X versions your software targets.
- }
- {$ALIGN MAC68K}
- { This sets the user defined exportset name i.e. fw_QuickTime_XManchego, available on 10.5 or later, and comment [4486184] }
- { NOTE: Requires Interfacer-35 or later }
- { <exportset=fw_QuickTime_XManchego> }
- { <exportset=fw_QuickTime_XMaguro> }
- { "kFix1" is defined in FixMath as "fixed1" }
- { error codes are in Errors.[haa] }
- { gestalt codes are in Gestalt.[hpa] }
- const
- MovieFileType = FourCharCode('MooV');
- MovieScrapType = FourCharCode('moov');
- const
- MovieResourceType = FourCharCode('moov');
- MovieForwardPointerResourceType = FourCharCode('fore');
- MovieBackwardPointerResourceType = FourCharCode('back');
- const
- MovieResourceAtomType = FourCharCode('moov');
- MovieDataAtomType = FourCharCode('mdat');
- FreeAtomType = FourCharCode('free');
- SkipAtomType = FourCharCode('skip');
- WideAtomPlaceholderType = FourCharCode('wide');
- const
- MediaHandlerType = FourCharCode('mhlr');
- DataHandlerType = FourCharCode('dhlr');
- const
- VideoMediaType = FourCharCode('vide');
- SoundMediaType = FourCharCode('soun');
- TextMediaType = FourCharCode('text');
- BaseMediaType = FourCharCode('gnrc');
- MPEGMediaType = FourCharCode('MPEG');
- MusicMediaType = FourCharCode('musi');
- TimeCodeMediaType = FourCharCode('tmcd');
- SpriteMediaType = FourCharCode('sprt');
- FlashMediaType = FourCharCode('flsh');
- MovieMediaType = FourCharCode('moov');
- TweenMediaType = FourCharCode('twen');
- ThreeDeeMediaType = FourCharCode('qd3d');
- SkinMediaType = FourCharCode('skin');
- HandleDataHandlerSubType = FourCharCode('hndl');
- PointerDataHandlerSubType = FourCharCode('ptr ');
- NullDataHandlerSubType = FourCharCode('null');
- ResourceDataHandlerSubType = FourCharCode('rsrc');
- URLDataHandlerSubType = FourCharCode('url ');
- AliasDataHandlerSubType = FourCharCode('alis');
- WiredActionHandlerType = FourCharCode('wire');
- kQTQuartzComposerMediaType = FourCharCode('qtz ');
- TimeCode64MediaType = FourCharCode('tc64');
- const
- VisualMediaCharacteristic = FourCharCode('eyes');
- AudioMediaCharacteristic = FourCharCode('ears');
- kCharacteristicCanSendVideo = FourCharCode('vsnd');
- kCharacteristicProvidesActions = FourCharCode('actn');
- kCharacteristicNonLinear = FourCharCode('nonl');
- kCharacteristicCanStep = FourCharCode('step');
- kCharacteristicHasNoDuration = FourCharCode('noti');
- kCharacteristicHasSkinData = FourCharCode('skin');
- kCharacteristicProvidesKeyFocus = FourCharCode('keyf');
- kCharacteristicSupportsDisplayOffsets = FourCharCode('dtdd');
- const
- kUserDataMovieControllerType = FourCharCode('ctyp');
- kUserDataName = FourCharCode('name');
- kUserDataTextAlbum = FourCharCode('©alb');
- kUserDataTextArtist = FourCharCode('©ART');
- kUserDataTextAuthor = FourCharCode('©aut');
- kUserDataTextChapter = FourCharCode('©chp');
- kUserDataTextComment = FourCharCode('©cmt');
- kUserDataTextComposer = FourCharCode('©com');
- kUserDataTextCopyright = FourCharCode('©cpy');
- kUserDataTextCreationDate = FourCharCode('©day');
- kUserDataTextDescription = FourCharCode('©des');
- kUserDataTextDirector = FourCharCode('©dir');
- kUserDataTextDisclaimer = FourCharCode('©dis');
- kUserDataTextEncodedBy = FourCharCode('©enc');
- kUserDataTextFullName = FourCharCode('©nam');
- kUserDataTextGenre = FourCharCode('©gen');
- kUserDataTextHostComputer = FourCharCode('©hst');
- kUserDataTextInformation = FourCharCode('©inf');
- kUserDataTextKeywords = FourCharCode('©key');
- kUserDataTextMake = FourCharCode('©mak');
- kUserDataTextModel = FourCharCode('©mod');
- kUserDataTextOriginalArtist = FourCharCode('©ope');
- kUserDataTextOriginalFormat = FourCharCode('©fmt');
- kUserDataTextOriginalSource = FourCharCode('©src');
- kUserDataTextPerformers = FourCharCode('©prf');
- kUserDataTextProducer = FourCharCode('©prd');
- kUserDataTextPublisher = FourCharCode('©pub');
- kUserDataTextProduct = FourCharCode('©PRD');
- kUserDataTextSoftware = FourCharCode('©swr');
- kUserDataTextSpecialPlaybackRequirements = FourCharCode('©req');
- kUserDataTextTrack = FourCharCode('©trk');
- kUserDataTextWarning = FourCharCode('©wrn');
- kUserDataTextWriter = FourCharCode('©wrt');
- kUserDataTextURLLink = FourCharCode('©url');
- kUserDataTextEditDate1 = FourCharCode('©ed1');
- kUserDataAnimatedGIFLoopCount = FourCharCode('gifc'); { data is big-endian UInt16 }
- kQTAnimatedGIFLoopCountInfinite = 0;
- kUserDataAnimatedGIFBufferingSize = FourCharCode('gifb'); { data is big-endian UInt32 }
- const
- kUserDataUnicodeBit = 1 shl 7;
- const
- DoTheRightThing = 0;
- {$ifc not TARGET_CPU_64}
- { property types}
- type
- QTPropertyClass = OSType;
- QTPropertyID = OSType;
- QTPropertyValueType = OSType;
- QTPropertyValueTypePtr = ^QTPropertyValueType;
- QTPropertyValuePtr = UnivPtr;
- ConstQTPropertyValuePtr = {const} UnivPtr;
- MovieTypePtr = ^SInt32; { an opaque type }
- Movie = ^MovieTypePtr;
- Movie_fix = Movie; { used as field type when a record declaration contains a Movie field identifier }
- MoviePtr = ^Movie;
- PtrToMovie = MoviePtr;
- TrackTypePtr = ^SInt32; { an opaque type }
- Track = ^TrackTypePtr;
- Track_fix = Track; { used as field type when a record declaration contains a Track field identifier }
- MediaTypePtr = ^SInt32; { an opaque type }
- Media = ^MediaTypePtr;
- UserDataRecordPtr = ^SInt32; { an opaque type }
- UserData = ^UserDataRecordPtr;
- MovieEditStateRecordPtr = ^SInt32; { an opaque type }
- MovieEditState = ^MovieEditStateRecordPtr;
- TrackEditStateRecordPtr = ^SInt32; { an opaque type }
- TrackEditState = ^TrackEditStateRecordPtr;
- QTRestrictionSetRecordPtr = ^SInt32; { an opaque type }
- QTRestrictionSet = ^QTRestrictionSetRecordPtr;
- SpriteWorld = ^SInt32; { an opaque type }
- Sprite = ^SInt32; { an opaque type }
- QTTweener = ^SInt32; { an opaque type }
- {$endc} {not TARGET_CPU_64}
- type
- SampleDescription = record
- descSize: SInt32;
- dataFormat: SInt32;
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- end;
- SampleDescriptionPtr = ^SampleDescription;
- type
- SampleDescriptionHandle = ^SampleDescriptionPtr;
- {$ifc not TARGET_CPU_64}
- const
- kQTNetworkStatusNoNetwork = -2;
- kQTNetworkStatusUncertain = -1;
- kQTNetworkStatusNotConnected = 0;
- kQTNetworkStatusConnected = 1;
- type
- QTAtomContainer = Handle;
- QTAtom = SIGNEDLONG;
- QTAtomType = SIGNEDLONG;
- QTAtomID = SIGNEDLONG;
- { QTFloatDouble is the 64-bit IEEE-754 standard}
- type
- QTFloatDouble = Float64;
- { QTFloatSingle is the 32-bit IEEE-754 standard}
- type
- QTFloatSingle = Float32;
- {$endc} {not TARGET_CPU_64}
- {************************
- * SoundDescription
- ************************}
- type
- SoundDescription = record
- descSize: SInt32; { total size of SoundDescription including extra data }
- dataFormat: SInt32; { sound format }
- resvd1: SInt32; { reserved for apple use. set to zero }
- resvd2: SInt16; { reserved for apple use. set to zero }
- dataRefIndex: SInt16;
- version: SInt16; { which version is this data }
- revlevel: SInt16; { what version of that codec did this }
- vendor: SInt32; { whose codec compressed this data }
- numChannels: SInt16; { number of channels of sound }
- sampleSize: SInt16; { number of bits per sample }
- compressionID: SInt16; { unused. set to zero. }
- packetSize: SInt16; { unused. set to zero. }
- sampleRate: UnsignedFixed; { sample rate sound is captured at }
- end;
- SoundDescriptionPtr = ^SoundDescription;
- type
- SoundDescriptionHandle = ^SoundDescriptionPtr;
- { version 1 of the SoundDescription record}
- type
- SoundDescriptionV1 = record
- { original fields}
- desc: SoundDescription;
- { fixed compression ratio information}
- samplesPerPacket: UInt32;
- bytesPerPacket: UInt32;
- bytesPerFrame: UInt32;
- bytesPerSample: UInt32;
- { additional atom based fields ([long size, long type, some data], repeat)}
- end;
- SoundDescriptionV1Ptr = ^SoundDescriptionV1;
- type
- SoundDescriptionV1Handle = ^SoundDescriptionV1Ptr;
- {
- Definitions for SoundDescriptionV2:
- LPCMFrame = one uncompressed sample in each of the channels (ie. 44100Hz audio has
- 44100 LPCMFrames per second, whether it is mono, stereo, 5.1, or whatever).
- In other words, LPCMFrames/audioSampleRate is duration in seconds.
- AudioPacket = For compressed audio, an AudioPacket is the natural compressed access
- unit of that format. For uncompressed audio, an AudioPacket is simply one
- LPCMFrame.
- }
- { version 2 of the SoundDescription record}
- type
- SoundDescriptionV2 = record
- descSize: SInt32; { total size of SoundDescription including extra data }
- dataFormat: OSType; { 'lpcm' for uncompressed, compression type otherwise (eg. 'ima4') }
- resvd1: SInt32; { reserved for apple use. Must be set to zero }
- resvd2: SInt16; { reserved for apple use. Must be set to zero }
- dataRefIndex: SInt16;
- version: SInt16; { which version is this data (2 in this case) }
- revlevel: SInt16; { what version of that codec did this }
- vendor: SInt32; { whose codec compressed this data }
- always3: SInt16; { Reserved, must be set to 3 }
- always16: SInt16; { Reserved, must be set to 16 (0x0010) }
- alwaysMinus2: SInt16; { Reserved, must be set to -2 (0xFFFE) }
- always0: SInt16; { Reserved, must be set to 0 }
- always65536: UInt32; { Reserved, must be set to 65536 (0x00010000) }
- sizeOfStructOnly: UInt32; { must be set to sizeof(SoundDescriptionV2), ie. offset to extensions }
- audioSampleRate: Float64; { audio frames per second, eg. 44100.0 }
- numAudioChannels: UInt32; { any channel assignment info will be in an extension }
- always7F000000: SInt32; { Reserved, must be set to 0x7F000000 }
- constBitsPerChannel: UInt32; { only set if constant (and only for uncompressed audio) }
- formatSpecificFlags: UInt32; { eg. see LPCM flag definitions in CoreAudioTypes.h }
- constBytesPerAudioPacket: UInt32; { only set if constant }
- constLPCMFramesPerAudioPacket: UInt32; { only set if constant }
- { additional atom based extensions ([long size, long type, some data], repeat)}
- end;
- SoundDescriptionV2Ptr = ^SoundDescriptionV2;
- type
- SoundDescriptionV2Handle = ^SoundDescriptionV2Ptr;
- {$ifc not TARGET_CPU_64}
- const
- kQTSoundDescriptionKind_Movie_Version1 = FourCharCode('mvv1');
- kQTSoundDescriptionKind_Movie_Version2 = FourCharCode('mvv2');
- kQTSoundDescriptionKind_Movie_LowestPossibleVersion = FourCharCode('mvlo');
- kQTSoundDescriptionKind_Movie_AnyVersion = FourCharCode('mvny');
- type
- QTSoundDescriptionKind = FourCharCode;
- {
- * QTSoundDescriptionCreate()
- *
- * Summary:
- * QTSoundDescriptionCreate creates a SoundDescription of the
- * requested kind from an AudioStreamBasicDescription, optional
- * AudioChannelLayout, and optional magic cookie.
- * QTSoundDescriptionCreate allocates the returned
- * SoundDescriptionHandle, and the caller is responsible for
- * disposing it.
- *
- * Parameters:
- *
- * inASBD:
- * a description of the format
- *
- * inLayout:
- * the audio channel layout (can be NULL if there isn't one)
- *
- * inLayoutSize:
- * size of the audio channel layout (should be 0 if inLayout is
- * NULL)
- *
- * inMagicCookie:
- * the magic cookie for the decompressor (can be NULL if there
- * isn't one)
- *
- * inMagicCookieSize:
- * size of the magic cookie (should be 0 if inMagicCookie is NULL)
- *
- * inRequestedKind:
- * the kind of SoundDescription to create
- *
- * outSoundDesc:
- * the resulting SoundDescription. Caller must dispose with
- * DisposeHandle.
- *
- * Availability:
- * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
- * CarbonLib: not available
- * Non-Carbon CFM: not available
- }
- function QTSoundDescriptionCreate( var inASBD: AudioStreamBasicDescription; inLayout: AudioChannelLayoutPtr { can be NULL }; inLayoutSize: ByteCount; inMagicCookie: UnivPtr; inMagicCookieSize: ByteCount; inRequestedKind: QTSoundDescriptionKind; var outSoundDesc: SoundDescriptionHandle ): OSStatus; external name '_QTSoundDescriptionCreate';
- (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
- {
- * QTSoundDescriptionConvert()
- *
- * Summary:
- * Converts from one kind of SoundDescription to another. Note that
- * fromKind is reserved for future expansion. You must set it to
- * kSoundDescriptionKind_Movie_AnyVersion. You can specify (via
- * toKind) that you would like a specific SoundDescription version,
- * the lowest possible version (given the constraints of the format
- * described by fromDescription), or any version of SoundDescription
- * at all. QTSoundDescriptionConvert allocates the returned
- * SoundDescriptionHandle and the caller is responsible for
- * disposing it.
- *
- * Parameters:
- *
- * fromKind:
- * reserved, must be set to kSoundDescriptionKind_Movie_AnyVersion
- *
- * fromDescription:
- * input description to be converted
- *
- * toKind:
- * kind of description toDescription will be
- *
- * toDescription:
- * the resulting SoundDescription. Caller must dispose with
- * DisposeHandle.
- *
- * Availability:
- * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
- * CarbonLib: not available
- * Non-Carbon CFM: not available
- }
- function QTSoundDescriptionConvert( fromKind: QTSoundDescriptionKind; fromDescription: SoundDescriptionHandle; toKind: QTSoundDescriptionKind; var toDescription: SoundDescriptionHandle ): OSStatus; external name '_QTSoundDescriptionConvert';
- (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
- { SoundDescription Properties}
- const
- {
- * Properties of a SoundDescription
- }
- kQTPropertyClass_SoundDescription = FourCharCode('sdes'); { class for SoundDescription properties}
- const
- {
- * kQTSoundDescriptionPropertyID_AudioChannelLayout: Value is
- * AudioChannelLayout (Get/Set) Note that this is a variable sized
- * property (since it may contain an array of ChannelDescriptions;
- * see CoreAudioTypes.h). You must get the size first (by calling
- * QTSoundDescriptionGetPropertyInfo), allocate a struct of that
- * size, and then get the property.
- }
- kQTSoundDescriptionPropertyID_AudioChannelLayout = FourCharCode('clay');
- {
- * kQTSoundDescriptionPropertyID_MagicCookie: Value is opaque bytes
- * (Get/Set) Note that this is a variable sized property (since it is
- * completely defined by the codec in question). You must get the
- * size first (by calling QTSoundDescriptionGetPropertyInfo),
- * allocate a struct of that size, and then get the property.
- }
- kQTSoundDescriptionPropertyID_MagicCookie = FourCharCode('kuki');
- {
- * kQTSoundDescriptionPropertyID_AudioStreamBasicDescription: Value
- * is AudioStreamBasicDescription (Get only)
- }
- kQTSoundDescriptionPropertyID_AudioStreamBasicDescription = FourCharCode('asbd');
- {
- * kQTSoundDescriptionPropertyID_BitRate: Value is UInt32 in bits per
- * second (Get only) kQTSoundDescriptionPropertyID_BitRate Note that
- * this property may not be available for formats that are inherently
- * very variable in bitrate and highly source-data dependent (such as
- * Apple Lossless).
- }
- kQTSoundDescriptionPropertyID_BitRate = FourCharCode('brat');
- {
- * kQTSoundDescriptionPropertyID_UserReadableText: Value is
- * CFStringRef (Get only) QTSoundDescriptionGetProperty does a
- * CFRetain of the returned CFString on behalf of the caller, so the
- * caller is responsible for calling CFRelease on the returned
- * CFString.
- }
- kQTSoundDescriptionPropertyID_UserReadableText = FourCharCode('text');
- {
- * QTSoundDescriptionGetPropertyInfo()
- *
- * Summary:
- * Gets info about a particular property of a SoundDescription.
- *
- * Parameters:
- *
- * inDesc:
- * SoundDescription being interrogated
- *
- * inPropClass:
- * class of property being requested
- *
- * inPropID:
- * ID of property being requested
- *
- * outPropType:
- * type of property is returned here (can be NULL)
- *
- * outPropValueSize:
- * size of property is returned here (can be NULL)
- *
- * outPropertyFlags:
- * property flags are returned here (can be NULL)
- *
- * Availability:
- * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
- * CarbonLib: not available
- * Non-Carbon CFM: not available
- }
- function QTSoundDescriptionGetPropertyInfo( inDesc: SoundDescriptionHandle; inPropClass: QTPropertyClass; inPropID: QTPropertyID; outPropType: QTPropertyValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_QTSoundDescriptionGetPropertyInfo';
- (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
- {
- * QTSoundDescriptionGetProperty()
- *
- * Summary:
- * Gets a particular property of a SoundDescription.
- *
- * Parameters:
- *
- * inDesc:
- * SoundDescription being interrogated
- *
- * inPropClass:
- * class of property being requested
- *
- * inPropID:
- * ID of property being requested
- *
- * inPropValueSize:
- * size of property value buffer
- *
- * outPropValueAddress:
- * pointer to property value buffer
- *
- * outPropValueSizeUsed:
- * actual size of returned property value (can be NULL)
- *
- * Availability:
- * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
- * CarbonLib: not available
- * Non-Carbon CFM: not available
- }
- function QTSoundDescriptionGetProperty( inDesc: SoundDescriptionHandle; inPropClass: QTPropertyClass; inPropID: QTPropertyID; inPropValueSize: ByteCount; outPropValueAddress: QTPropertyValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_QTSoundDescriptionGetProperty';
- (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
- {
- * QTSoundDescriptionSetProperty()
- *
- * Summary:
- * Sets a particular property of a SoundDescription.
- *
- * Parameters:
- *
- * inDesc:
- * SoundDescription being modified
- *
- * inPropClass:
- * class of property being set
- *
- * inPropID:
- * ID of property being set
- *
- * inPropValueSize:
- * size of property value buffer
- *
- * inPropValueAddress:
- * pointer to property value buffer
- *
- * Availability:
- * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
- * CarbonLib: not available
- * Non-Carbon CFM: not available
- }
- function QTSoundDescriptionSetProperty( inDesc: SoundDescriptionHandle; inPropClass: QTPropertyClass; inPropID: QTPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstQTPropertyValuePtr ): OSStatus; external name '_QTSoundDescriptionSetProperty';
- (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
- { Sound Description Extensions}
- {
- * AddSoundDescriptionExtension()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.0 and later
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddSoundDescriptionExtension( desc: SoundDescriptionHandle; extension: Handle; idType: OSType ): OSErr; external name '_AddSoundDescriptionExtension';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * GetSoundDescriptionExtension()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.0 and later
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetSoundDescriptionExtension( desc: SoundDescriptionHandle; var extension: Handle; idType: OSType ): OSErr; external name '_GetSoundDescriptionExtension';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {
- * RemoveSoundDescriptionExtension()
- *
- * Availability:
- * Mac OS X: in version 10.0 and later in QuickTime.framework
- * CarbonLib: in CarbonLib 1.0 and later
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function RemoveSoundDescriptionExtension( desc: SoundDescriptionHandle; idType: OSType ): OSErr; external name '_RemoveSoundDescriptionExtension';
- (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
- {$endc} {not TARGET_CPU_64}
- const
- kTx3gSampleType = FourCharCode('tx3g');
- kTx3gFontTableAtomType = FourCharCode('ftab');
- kTx3gBlinkAtomType = FourCharCode('blnk');
- type
- Tx3gRGBAColor = record
- red: UInt8;
- green: UInt8;
- blue: UInt8;
- transparency: UInt8;
- end;
- type
- Tx3gStyleRecordPtr = ^Tx3gStyleRecord;
- Tx3gStyleRecord = record
- startChar: UInt16;
- endChar: UInt16;
- fontID: UInt16;
- fontFace: UInt8;
- fontSize: UInt8;
- fontColor: Tx3gRGBAColor;
- end;
- type
- Tx3gStylePtr = Tx3gStyleRecordPtr;
- Tx3gStyleHandle = ^Tx3gStylePtr;
- Tx3gStyleTableRecordPtr = ^Tx3gStyleTableRecord;
- Tx3gStyleTableRecord = record
- count: UInt16;
- table: array [0..0] of Tx3gStyleRecord;
- end;
- type
- Tx3gStyleTablePtr = Tx3gStyleTableRecordPtr;
- Tx3gStyleTableHandle = ^Tx3gStyleTablePtr;
- Tx3gFontRecord = record
- fontID: UInt16;
- nameLength: UInt8;
- name: array[0..0] of SInt8;
- end;
- Tx3gFontRecordPtr = ^Tx3gFontRecord;
- type
- Tx3gFontTableRecordPtr = ^Tx3gFontTableRecord;
- Tx3gFontTableRecord = record
- entryCount: UInt16;
- fontEntries: array[0..0] of Tx3gFontRecord;
- end;
- type
- Tx3gFontTablePtr = Tx3gFontTableRecordPtr;
- Tx3gFontTableHandle = ^Tx3gFontTablePtr;
- Tx3gDescription = record
- descSize: SInt32;
- dataFormat: SInt32;
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- displayFlags: UInt32;
- horizontalJustification: char;
- verticalJustification: char;
- backgroundColor: Tx3gRGBAColor;
- defaultTextBox: Rect;
- defaultStyle: Tx3gStyleRecord;
- end;
- Tx3gDescriptionPtr = ^Tx3gDescription;
- type
- Tx3gDescriptionHandle = ^Tx3gDescriptionPtr;
- {$ifc TARGET_CPU_64}
- { QuickDraw legacy }
- type
- QTRGBColor = record
- red: UInt16; { magnitude of red component}
- green: UInt16; { magnitude of green component}
- blue: UInt16; { magnitude of blue component}
- end;
- {$endc} {TARGET_CPU_64}
- type
- TextDescription = record
- descSize: SInt32; { Total size of TextDescription}
- dataFormat: SInt32; { 'text'}
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- displayFlags: SInt32; { see enum below for flag values}
- textJustification: SInt32; { Can be: teCenter,teFlush -Default,-Right,-Left}
- {$ifc TARGET_CPU_64}
- bgColor: QTRGBColor; { Background color}
- {$elsec} {TARGET_CPU_64}
- bgColor: RGBColor; { Background color}
- {$endc} {TARGET_CPU_64}
- defaultTextBox: Rect; { Location to place the text within the track bounds}
- defaultStyle: ScrpSTElement; { Default style (struct defined in TextEdit.h)}
- defaultFontName: array[0..0] of SInt8; { Font Name (pascal string - struct extended to fit) }
- end;
- TextDescriptionPtr = ^TextDescription;
- type
- TextDescriptionHandle = ^TextDescriptionPtr;
- {$ifc not TARGET_CPU_64}
- type
- SpriteDescription = record
- descSize: SIGNEDLONG; { total size of SpriteDescription including extra data }
- dataFormat: SIGNEDLONG; { }
- resvd1: SIGNEDLONG; { reserved for apple use }
- resvd2: SInt16;
- dataRefIndex: SInt16;
- version: SIGNEDLONG; { which version is this data }
- decompressorType: OSType; { which decompressor to use, 0 for no decompression }
- sampleFlags: SIGNEDLONG; { how to interpret samples }
- end;
- SpriteDescriptionPtr = ^SpriteDescription;
- type
- SpriteDescriptionHandle = ^SpriteDescriptionPtr;
- FlashDescription = record
- descSize: SIGNEDLONG;
- dataFormat: SIGNEDLONG;
- resvd1: SIGNEDLONG;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- version: SIGNEDLONG; { which version is this data }
- decompressorType: OSType; { which decompressor to use, 0 for no decompression }
- flags: SIGNEDLONG;
- end;
- FlashDescriptionPtr = ^FlashDescription;
- type
- FlashDescriptionHandle = ^FlashDescriptionPtr;
- ThreeDeeDescription = record
- descSize: SIGNEDLONG; { total size of ThreeDeeDescription including extra data }
- dataFormat: SIGNEDLONG; { }
- resvd1: SIGNEDLONG; { reserved for apple use }
- resvd2: SInt16;
- dataRefIndex: SInt16;
- version: SIGNEDLONG; { which version is this data }
- rendererType: SIGNEDLONG; { which renderer to use, 0 for default }
- decompressorType: SIGNEDLONG; { which decompressor to use, 0 for default }
- end;
- ThreeDeeDescriptionPtr = ^ThreeDeeDescription;
- type
- ThreeDeeDescriptionHandle = ^ThreeDeeDescriptionPtr;
- DataReferenceRecordPtr = ^DataReferenceRecord;
- DataReferenceRecord = record
- dataRefType: OSType;
- dataRef: Handle;
- end;
- type
- DataReferencePtr = DataReferenceRecordPtr;
- {--------------------------
- Music Sample Description
- --------------------------}
- type
- MusicDescription = record
- descSize: SIGNEDLONG;
- dataFormat: SIGNEDLONG; { 'musi' }
- resvd1: SIGNEDLONG;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- musicFlags: SIGNEDLONG;
- headerData: array [0..0] of UNSIGNEDLONG; { variable size! }
- end;
- MusicDescriptionPtr = ^MusicDescription;
- type
- MusicDescriptionHandle = ^MusicDescriptionPtr;
- const
- kMusicFlagDontPlay2Soft = 1 shl 0;
- kMusicFlagDontSlaveToMovie = 1 shl 1;
- const
- dfDontDisplay = 1 shl 0; { Don't display the text}
- dfDontAutoScale = 1 shl 1; { Don't scale text as track bounds grows or shrinks}
- dfClipToTextBox = 1 shl 2; { Clip update to the textbox}
- dfUseMovieBGColor = 1 shl 3; { Set text background to movie's background color}
- dfShrinkTextBoxToFit = 1 shl 4; { Compute minimum box to fit the sample}
- dfScrollIn = 1 shl 5; { Scroll text in until last of text is in view }
- dfScrollOut = 1 shl 6; { Scroll text out until last of text is gone (if both set, scroll in then out)}
- dfHorizScroll = 1 shl 7; { Scroll text horizontally (otherwise it's vertical)}
- dfReverseScroll = 1 shl 8; { vert: scroll down rather than up; horiz: scroll backwards (justfication dependent)}
- dfContinuousScroll = 1 shl 9; { new samples cause previous samples to scroll out }
- dfFlowHoriz = 1 shl 10; { horiz scroll text flows in textbox rather than extend to right }
- dfContinuousKaraoke = 1 shl 11; { ignore begin offset, hilite everything up to the end offset(karaoke)}
- dfDropShadow = 1 shl 12; { display text with a drop shadow }
- dfAntiAlias = 1 shl 13; { attempt to display text anti aliased}
- dfKeyedText = 1 shl 14; { key the text over background}
- dfInverseHilite = 1 shl 15; { Use inverse hiliting rather than using hilite color}
- dfTextColorHilite = 1 shl 16; { changes text color in place of hiliting. }
- const
- searchTextDontGoToFoundTime = 1 shl 16;
- searchTextDontHiliteFoundText = 1 shl 17;
- searchTextOneTrackOnly = 1 shl 18;
- searchTextEnabledTracksOnly = 1 shl 19;
- {use these with the text property routines}
- const
- { set property parameter / get property parameter}
- kTextTextHandle = 1; { Handle / preallocated Handle}
- kTextTextPtr = 2; { Pointer}
- kTextTEStyle = 3; { TextStyle * / TextStyle *}
- kTextSelection = 4; { long [2] / long [2]}
- kTextBackColor = 5; { RGBColor * / RGBColor *}
- kTextForeColor = 6; { RGBColor * / RGBColor *}
- kTextFace = 7; { long / long *}
- kTextFont = 8; { long / long *}
- kTextSize = 9; { long / long *}
- kTextAlignment = 10; { short * / short *}
- kTextHilite = 11; { hiliteRecord * / hiliteRecord *}
- kTextDropShadow = 12; { dropShadowRecord * / dropShadowRecord *}
- kTextDisplayFlags = 13; { long / long *}
- kTextScroll = 14; { TimeValue * / TimeValue *}
- kTextRelativeScroll = 15; { Point *}
- kTextHyperTextFace = 16; { hyperTextSetFace * / hyperTextSetFace *}
- kTextHyperTextColor = 17; { hyperTextSetColor * / hyperTextSetColor *}
- kTextKeyEntry = 18; { short}
- kTextMouseDown = 19; { Point *}
- kTextTextBox = 20; { Rect * / Rect *}
- kTextEditState = 21; { short / short *}
- kTextLength = 22; { / long *}
- const
- k3DMediaRendererEntry = FourCharCode('rend');
- k3DMediaRendererName = FourCharCode('name');
- k3DMediaRendererCode = FourCharCode('rcod');
- { progress messages }
- const
- movieProgressOpen = 0;
- movieProgressUpdatePercent = 1;
- movieProgressClose = 2;
- { progress operations }
- const
- progressOpFlatten = 1;
- progressOpInsertTrackSegment = 2;
- progressOpInsertMovieSegment = 3;
- progressOpPaste = 4;
- progressOpAddMovieSelection = 5;
- progressOpCopy = 6;
- progressOpCut = 7;
- progressOpLoadMovieIntoRam = 8;
- progressOpLoadTrackIntoRam = 9;
- progressOpLoadMediaIntoRam = 10;
- progressOpImportMovie = 11;
- progressOpExportMovie = 12;
- const
- mediaQualityDraft = $0000;
- mediaQualityNormal = $0040;
- mediaQualityBetter = $0080;
- mediaQualityBest = $00C0;
- {****
- Interactive Sprites Support
- ****}
- { QTEventRecord flags}
- const
- kQTEventPayloadIsQTList = 1 shl 0;
- type
- QTEventRecord = record
- version: SIGNEDLONG;
- eventType: OSType;
- where: Point;
- flags: SIGNEDLONG;
- payloadRefcon: SIGNEDLONG; { from here down only present if version >= 2}
- param1: SIGNEDLONG;
- param2: SIGNEDLONG;
- param3: SIGNEDLONG;
- end;
- QTEventRecordPtr = ^QTEventRecord;
- type
- QTAtomSpec = record
- container: QTAtomContainer;
- atom: QTAtom;
- end;
- QTAtomSpecPtr = ^QTAtomSpec;
- type
- ResolvedQTEventSpec = record
- actionAtom: QTAtomSpec;
- targetTrack: Track;
- targetRefCon: SIGNEDLONG;
- end;
- ResolvedQTEventSpecPtr = ^ResolvedQTEventSpec;
- { action constants }
- const
- kActionMovieSetVolume = 1024; { (short movieVolume) }
- kActionMovieSetRate = 1025; { (Fixed rate) }
- kActionMovieSetLoopingFlags = 1026; { (long loopingFlags) }
- kActionMovieGoToTime = 1027; { (TimeValue time) }
- kActionMovieGoToTimeByName = 1028; { (Str255 timeName) }
- kActionMovieGoToBeginning = 1029; { no params }
- kActionMovieGoToEnd = 1030; { no params }
- kActionMovieStepForward = 1031; { no params }
- kActionMovieStepBackward = 1032; { no params }
- kActionMovieSetSelection = 1033; { (TimeValue startTime, TimeValue endTime) }
- kActionMovieSetSelectionByName = 1034; { (Str255 startTimeName, Str255 endTimeName) }
- kActionMoviePlaySelection = 1035; { (Boolean selectionOnly) }
- kActionMovieSetLanguage = 1036; { (long language) }
- kActionMovieChanged = 1037; { no params }
- kActionMovieRestartAtTime = 1038; { (TimeValue startTime, Fixed rate) }
- kActionMovieGotoNextChapter = 1039; { no params }
- kActionMovieGotoPreviousChapter = 1040; { no params }
- kActionMovieGotoFirstChapter = 1041; { no params }
- kActionMovieGotoLastChapter = 1042; { no params }
- kActionMovieGotoChapterByIndex = 1043; { ( short index ) }
- kActionMovieSetScale = 1044; { (Fixed xScale, Fixed yScale) }
- kActionTrackSetVolume = 2048; { (short volume) }
- kActionTrackSetBalance = 2049; { (short balance) }
- kActionTrackSetEnabled = 2050; { (Boolean enabled) }
- kActionTrackSetMatrix = 2051; { (MatrixRecord matrix) }
- kActionTrackSetLayer = 2052; { (short layer) }
- kActionTrackSetClip = 2053; { (RgnHandle clip) }
- kActionTrackSetCursor = 2054; { (QTATomID cursorID) }
- kActionTrackSetGraphicsMode = 2055; { (ModifierTrackGraphicsModeRecord graphicsMode) }
- kActionTrackSetIdleFrequency = 2056; { (long frequency) }
- kActionTrackSetBassTreble = 2057; { (short base, short treble) }
- kActionSpriteSetMatrix = 3072; { (MatrixRecord matrix) }
- kActionSpriteSetImageIndex = 3073; { (short imageIndex) }
- kActionSpriteSetVisible = 3074; { (short visible) }
- kActionSpriteSetLayer = 3075; { (short layer) }
- kActionSpriteSetGraphicsMode = 3076; { (ModifierTrackGraphicsModeRecord graphicsMode) }
- kActionSpritePassMouseToCodec = 3078; { no params }
- kActionSpriteClickOnCodec = 3079; { Point localLoc }
- kActionSpriteTranslate = 3080; { (Fixed x, Fixed y, Boolean isAbsolute) }
- kActionSpriteScale = 3081; { (Fixed xScale, Fixed yScale) }
- kActionSpriteRotate = 3082; { (Fixed degrees) }
- kActionSpriteStretch = 3083; { (Fixed p1x, Fixed p1y, Fixed p2x, Fixed p2y, Fixed p3x, Fixed p3y, Fixed p4x, Fixed p4y) }
- kActionSpriteSetCanBeHitTested = 3094; { (short canBeHitTested) }
- kActionQTVRSetPanAngle = 4096; { (float panAngle) }
- kActionQTVRSetTiltAngle = 4097; { (float tiltAngle) }
- kActionQTVRSetFieldOfView = 4098; { (float fieldOfView) }
- kActionQTVRShowDefaultView = 4099; { no params }
- kActionQTVRGoToNodeID = 4100; { (UInt32 nodeID) }
- kActionQTVREnableHotSpot = 4101; { long ID, Boolean enable }
- kActionQTVRShowHotSpots = 4102; { Boolean show }
- kActionQTVRTranslateObject = 4103; { float xMove, float yMove }
- kActionQTVRSetViewState = 4109; { long viewStateType, short state }
- kActionMusicPlayNote = 5120; { (long sampleDescIndex, long partNumber, long delay, long pitch, long velocity, long duration) }
- kActionMusicSetController = 5121; { (long sampleDescIndex, long partNumber, long delay, long controller, long value) }
- kActionCase = 6144; { [(CaseStatementActionAtoms)] }
- kActionWhile = 6145; { [(WhileStatementActionAtoms)] }
- kActionGoToURL = 6146; { (C string urlLink) }
- kActionSendQTEventToSprite = 6147; { ([(SpriteTargetAtoms)], QTEventRecord theEvent) }
- kActionDebugStr = 6148; { (Str255 theString) }
- kActionPushCurrentTime = 6149; { no params }
- kActionPushCurrentTimeWithLabel = 6150; { (Str255 theLabel) }
- kActionPopAndGotoTopTime = 6151; { no params }
- kActionPopAndGotoLabeledTime = 6152; { (Str255 theLabel) }
- kActionStatusString = 6153; { (C string theString, long stringTypeFlags) }
- kActionSendQTEventToTrackObject = 6154; { ([(TrackObjectTargetAtoms)], QTEventRecord theEvent) }
- kActionAddChannelSubscription = 6155; { (Str255 channelName, C string channelsURL, C string channelsPictureURL) }
- kActionRemoveChannelSubscription = 6156; { (C string channelsURL) }
- kActionOpenCustomActionHandler = 6157; { (long handlerID, ComponentDescription handlerDesc) }
- kActionDoScript = 6158; { (long scriptTypeFlags, CString command, CString arguments) }
- kActionDoCompressedActions = 6159; { (compressed QTAtomContainer prefixed with eight bytes: long compressorType, long decompressedSize) }
- kActionSendAppMessage = 6160; { (long appMessageID) }
- kActionLoadComponent = 6161; { (ComponentDescription handlerDesc) }
- kActionSetFocus = 6162; { [(TargetAtoms theObject)] }
- kActionDontPassKeyEvent = 6163; { no params }
- kActionSetRandomSeed = 6164; { long randomSeed }
- kActionSpriteTrackSetVariable = 7168; { (QTAtomID variableID, float value) }
- kActionSpriteTrackNewSprite = 7169; { (QTAtomID spriteID, short imageIndex, MatrixRecord *matrix, short visible, short layer, ModifierTrackGraphicsModeRecord *graphicsMode, QTAtomID actionHandlingSpriteID) }
- kActionSpriteTrackDisposeSprite = 7170; { (QTAtomID spriteID) }
- kActionSpriteTrackSetVariableToString = 7171; { (QTAtomID variableID, C string value) }
- kActionSpriteTrackConcatVariables = 7172; { (QTAtomID firstVariableID, QTAtomID secondVariableID, QTAtomID resultVariableID ) }
- kActionSpriteTrackSetVariableToMovieURL = 7173; { (QTAtomID variableID, < optional: [(MovieTargetAtoms)] > ) }
- kActionSpriteTrackSetVariableToMovieBaseURL = 7174; { (QTAtomID variableID, < optional: [(MovieTargetAtoms)] > ) }
- kActionSpriteTrackSetAllSpritesHitTestingMode = 7181;
- kActionSpriteTrackNewImage = 7182; { (C string imageURL, QTAtomID desiredID) }
- kActionSpriteTrackDisposeImage = 7183; { (short imageIndex) }
- kActionApplicationNumberAndString = 8192; { (long aNumber, Str255 aString ) }
- kActionQD3DNamedObjectTranslateTo = 9216; { (Fixed x, Fixed y, Fixed z ) }
- kActionQD3DNamedObjectScaleTo = 9217; { (Fixed xScale, Fixed yScale, Fixed zScale ) }
- kActionQD3DNamedObjectRotateTo = 9218; { (Fixed xDegrees, Fixed yDegrees, Fixed zDegrees ) }
- kActionFlashTrackSetPan = 10240; { (short xPercent, short yPercent ) }
- kActionFlashTrackSetZoom = 10241; { (short zoomFactor ) }
- kActionFlashTrackSetZoomRect = 10242; { (long left, long top, long right, long bottom ) }
- kActionFlashTrackGotoFrameNumber = 10243; { (long frameNumber ) }
- kActionFlashTrackGotoFrameLabel = 10244; { (C string frameLabel ) }
- kActionFlashTrackSetFlashVariable = 10245; { (C string path, C string name, C string value, Boolean updateFocus) }
- kActionFlashTrackDoButtonActions = 10246; { (C string path, long buttonID, long transition) }
- kActionMovieTrackAddChildMovie = 11264; { (QTAtomID childMovieID, C string childMovieURL) }
- kActionMovieTrackLoadChildMovie = 11265; { (QTAtomID childMovieID) }
- kActionMovieTrackLoadChildMovieWithQTListParams = 11266; { (QTAtomID childMovieID, C string qtlistXML) }
- kActionTextTrackPasteText = 12288; { (C string theText, long startSelection, long endSelection ) }
- kActionTextTrackSetTextBox = 12291; { (short left, short top, short right, short bottom) }
- kActionTextTrackSetTextStyle = 12292; { (Handle textStyle) }
- kActionTextTrackSetSelection = 12293; { (long startSelection, long endSelection ) }
- kActionTextTrackSetBackgroundColor = 12294; { (ModifierTrackGraphicsModeRecord backgroundColor ) }
- kActionTextTrackSetForegroundColor = 12295; { (ModifierTrackGraphicsModeRecord foregroundColor ) }
- kActionTextTrackSetFace = 12296; { (long fontFace ) }
- kActionTextTrackSetFont = 12297; { (long fontID ) }
- kActionTextTrackSetSize = 12298; { (long fontSize ) }
- kActionTextTrackSetAlignment = 12299; { (short alignment ) }
- kActionTextTrackSetHilite = 12300; { (long startHighlight, long endHighlight, ModifierTrackGraphicsModeRecord highlightColor ) }
- kActionTextTrackSetDropShadow = 12301; { (Point dropShadow, short transparency ) }
- kActionTextTrackSetDisplayFlags = 12302; { (long flags ) }
- kActionTextTrackSetScroll = 12303; { (long delay ) }
- kActionTextTrackRelativeScroll = 12304; { (short deltaX, short deltaY ) }
- kActionTextTrackFindText = 12305; { (long flags, Str255 theText, ModifierTrackGraphicsModeRecord highlightColor ) }
- kActionTextTrackSetHyperTextFace = 12306; { (short index, long fontFace ) }
- kActionTextTrackSetHyperTextColor = 12307; { (short index, ModifierTrackGraphicsModeRecord highlightColor ) }
- kActionTextTrackKeyEntry = 12308; { (short character ) }
- kActionTextTrackMouseDown = 12309; { no params }
- kActionTextTrackSetEditable = 12310; { (short editState) }
- kActionListAddElement = 13312; { (C string parentPath, long atIndex, C string newElementName) }
- kActionListRemoveElements = 13313; { (C string parentPath, long startIndex, long endIndex) }
- kActionListSetElementValue = 13314; { (C string elementPath, C string valueString) }
- kActionListPasteFromXML = 13315; { (C string xml, C string targetParentPath, long startIndex) }
- kActionListSetMatchingFromXML = 13316; { (C string xml, C string targetParentPath) }
- kActionListSetFromURL = 13317; { (C string url, C string targetParentPath ) }
- kActionListExchangeLists = 13318; { (C string url, C string parentPath) }
- kActionListServerQuery = 13319; { (C string url, C string keyValuePairs, long flags, C string parentPath) }
- kActionListAddAttribute = 13320; { (C string elementPath, long atIndex, C string newAttributeName) }
- kActionListRemoveAttributes = 13321; { (C string elementPath, long startIndex, long endIndex) }
- kActionListSetAttributeValue = 13322; { (C string elementPath, C string attributeName, C string valueString) }
- const
- kOperandExpression = 1;
- kOperandConstant = 2;
- kOperandSubscribedToChannel = 3; { C string channelsURL }
- kOperandUniqueCustomActionHandlerID = 4;
- kOperandCustomActionHandlerIDIsOpen = 5; { long ID }
- kOperandConnectionSpeed = 6;
- kOperandGMTDay = 7;
- kOperandGMTMonth = 8;
- kOperandGMTYear = 9;
- kOperandGMTHours = 10;
- kOperandGMTMinutes = 11;
- kOperandGMTSeconds = 12;
- kOperandLocalDay = 13;
- kOperandLocalMonth = 14;
- kOperandLocalYear = 15;
- kOperandLocalHours = 16;
- kOperandLocalMinutes = 17;
- kOperandLocalSeconds = 18;
- kOperandRegisteredForQuickTimePro = 19;
- kOperandPlatformRunningOn = 20;
- kOperandQuickTimeVersion = 21;
- kOperandComponentVersion = 22; { C string type, C string subType, C string manufacturer }
- kOperandOriginalHandlerRefcon = 23;
- kOperandTicks = 24;
- kOperandMaxLoadedTimeInMovie = 25;
- kOperandEventParameter = 26; { short index }
- kOperandFreeMemory = 27;
- kOperandNetworkStatus = 28;
- kOperandQuickTimeVersionRegistered = 29; { long version }
- kOperandSystemVersion = 30;
- kOperandMovieVolume = 1024;
- kOperandMovieRate = 1025;
- kOperandMovieIsLooping = 1026;
- kOperandMovieLoopIsPalindrome = 1027;
- kOperandMovieTime = 1028;
- kOperandMovieDuration = 1029;
- kOperandMovieTimeScale = 1030;
- kOperandMovieWidth = 1031;
- kOperandMovieHeight = 1032;
- kOperandMovieLoadState = 1033;
- kOperandMovieTrackCount = 1034;
- kOperandMovieIsActive = 1035;
- kOperandMovieName = 1036;
- kOperandMovieID = 1037;
- kOperandMovieChapterCount = 1038;
- kOperandMovieChapterIndex = 1039;
- kOperandMovieChapterName = 1040;
- kOperandMovieChapterNameByIndex = 1041; { ( short index ) }
- kOperandMovieChapterIndexByName = 1042; { (c string name) }
- kOperandMovieAnnotation = 1043; { (c string requested, long flags) }
- kOperandMovieConnectionFlags = 1044;
- kOperandMovieConnectionString = 1045;
- kOperandTrackVolume = 2048;
- kOperandTrackBalance = 2049;
- kOperandTrackEnabled = 2050;
- kOperandTrackLayer = 2051;
- kOperandTrackWidth = 2052;
- kOperandTrackHeight = 2053;
- kOperandTrackDuration = 2054;
- kOperandTrackName = 2055;
- kOperandTrackID = 2056;
- kOperandTrackIdleFrequency = 2057;
- kOperandTrackBass = 2058;
- kOperandTrackTreble = 2059;
- kOperandSpriteBoundsLeft = 3072;
- kOperandSpriteBoundsTop = 3073;
- kOperandSpriteBoundsRight = 3074;
- kOperandSpriteBoundsBottom = 3075;
- kOperandSpriteImageIndex = 3076;
- kOperandSpriteVisible = 3077;
- kOperandSpriteLayer = 3078;
- kOperandSpriteTrackVariable = 3079; { [QTAtomID variableID] }
- kOperandSpriteTrackNumSprites = 3080;
- kOperandSpriteTrackNumImages = 3081;
- kOperandSpriteID = 3082;
- kOperandSpriteIndex = 3083;
- kOperandSpriteFirstCornerX = 3084;
- kOperandSpriteFirstCornerY = 3085;
- kOperandSpriteSecondCornerX = 3086;
- kOperandSpriteSecondCornerY = 3087;
- kOperandSpriteThirdCornerX = 3088;
- kOperandSpriteThirdCornerY = 3089;
- kOperandSpriteFourthCornerX = 3090;
- kOperandSpriteFourthCornerY = 3091;
- kOperandSpriteImageRegistrationPointX = 3092;
- kOperandSpriteImageRegistrationPointY = 3093;
- kOperandSpriteTrackSpriteIDAtPoint = 3094; { short x, short y }
- kOperandSpriteName = 3095;
- kOperandSpriteCanBeHitTested = 3105; { short }
- kOperandSpriteTrackAllSpritesHitTestingMode = 3106;
- kOperandSpriteTrackImageIDByIndex = 3107; { short imageIndex }
- kOperandSpriteTrackImageIndexByID = 3108; { QTAtomID }
- kOperandQTVRPanAngle = 4096;
- kOperandQTVRTiltAngle = 4097;
- kOperandQTVRFieldOf…