Movies.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:338k
- /*
- File: Movies.h
-
- Contains: QuickTime Interfaces.
-
- Version: Technology: QuickTime 6.0
- Release: QuickTime 6.0.2
-
- Copyright: (c) 1990-2001 by Apple Computer, Inc., all rights reserved
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://developer.apple.com/bugreporter/
-
- */
- #ifndef __MOVIES__
- #define __MOVIES__
- #ifndef __QUICKDRAW__
- #include "Quickdraw.h"
- #endif
- #ifndef __ALIASES__
- #include "Aliases.h"
- #endif
- #ifndef __EVENTS__
- #include "Events.h"
- #endif
- #ifndef __MENUS__
- #include "Menus.h"
- #endif
- #ifndef __COMPONENTS__
- #include "Components.h"
- #endif
- #ifndef __IMAGECOMPRESSION__
- #include "ImageCompression.h"
- #endif
- #if PRAGMA_ONCE
- #pragma once
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if PRAGMA_IMPORT
- #pragma import on
- #endif
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align=mac68k
- #elif PRAGMA_STRUCT_PACKPUSH
- #pragma pack(push, 2)
- #elif PRAGMA_STRUCT_PACK
- #pragma pack(2)
- #endif
- /* "kFix1" is defined in FixMath as "fixed1" */
- /* error codes are in Errors.[haa] */
- /* gestalt codes are in Gestalt.[hpa] */
- enum {
- MovieFileType = FOUR_CHAR_CODE('MooV'),
- MovieScrapType = FOUR_CHAR_CODE('moov')
- };
- enum {
- MovieResourceType = FOUR_CHAR_CODE('moov'),
- MovieForwardPointerResourceType = FOUR_CHAR_CODE('fore'),
- MovieBackwardPointerResourceType = FOUR_CHAR_CODE('back')
- };
- enum {
- MovieResourceAtomType = FOUR_CHAR_CODE('moov'),
- MovieDataAtomType = FOUR_CHAR_CODE('mdat'),
- FreeAtomType = FOUR_CHAR_CODE('free'),
- SkipAtomType = FOUR_CHAR_CODE('skip'),
- WideAtomPlaceholderType = FOUR_CHAR_CODE('wide')
- };
- enum {
- MediaHandlerType = FOUR_CHAR_CODE('mhlr'),
- DataHandlerType = FOUR_CHAR_CODE('dhlr')
- };
- enum {
- VideoMediaType = FOUR_CHAR_CODE('vide'),
- SoundMediaType = FOUR_CHAR_CODE('soun'),
- TextMediaType = FOUR_CHAR_CODE('text'),
- BaseMediaType = FOUR_CHAR_CODE('gnrc'),
- MPEGMediaType = FOUR_CHAR_CODE('MPEG'),
- MusicMediaType = FOUR_CHAR_CODE('musi'),
- TimeCodeMediaType = FOUR_CHAR_CODE('tmcd'),
- SpriteMediaType = FOUR_CHAR_CODE('sprt'),
- FlashMediaType = FOUR_CHAR_CODE('flsh'),
- MovieMediaType = FOUR_CHAR_CODE('moov'),
- TweenMediaType = FOUR_CHAR_CODE('twen'),
- ThreeDeeMediaType = FOUR_CHAR_CODE('qd3d'),
- SkinMediaType = FOUR_CHAR_CODE('skin'),
- HandleDataHandlerSubType = FOUR_CHAR_CODE('hndl'),
- PointerDataHandlerSubType = FOUR_CHAR_CODE('ptr '),
- NullDataHandlerSubType = FOUR_CHAR_CODE('null'),
- ResourceDataHandlerSubType = FOUR_CHAR_CODE('rsrc'),
- URLDataHandlerSubType = FOUR_CHAR_CODE('url '),
- WiredActionHandlerType = FOUR_CHAR_CODE('wire')
- };
- enum {
- VisualMediaCharacteristic = FOUR_CHAR_CODE('eyes'),
- AudioMediaCharacteristic = FOUR_CHAR_CODE('ears'),
- kCharacteristicCanSendVideo = FOUR_CHAR_CODE('vsnd'),
- kCharacteristicProvidesActions = FOUR_CHAR_CODE('actn'),
- kCharacteristicNonLinear = FOUR_CHAR_CODE('nonl'),
- kCharacteristicCanStep = FOUR_CHAR_CODE('step'),
- kCharacteristicHasNoDuration = FOUR_CHAR_CODE('noti'),
- kCharacteristicHasSkinData = FOUR_CHAR_CODE('skin'),
- kCharacteristicProvidesKeyFocus = FOUR_CHAR_CODE('keyf')
- };
- enum {
- kUserDataMovieControllerType = FOUR_CHAR_CODE('ctyp'),
- kUserDataName = FOUR_CHAR_CODE('name'),
- kUserDataTextAlbum = FOUR_CHAR_CODE('゛lb'),
- kUserDataTextArtist = FOUR_CHAR_CODE('〢RT'),
- kUserDataTextAuthor = FOUR_CHAR_CODE('゛ut'),
- kUserDataTextChapter = FOUR_CHAR_CODE('ヽhp'),
- kUserDataTextComment = FOUR_CHAR_CODE('ヽmt'),
- kUserDataTextComposer = FOUR_CHAR_CODE('ヽom'),
- kUserDataTextCopyright = FOUR_CHAR_CODE('ヽpy'),
- kUserDataTextCreationDate = FOUR_CHAR_CODE('ヾay'),
- kUserDataTextDescription = FOUR_CHAR_CODE('ヾes'),
- kUserDataTextDirector = FOUR_CHAR_CODE('ヾir'),
- kUserDataTextDisclaimer = FOUR_CHAR_CODE('ヾis'),
- kUserDataTextEncodedBy = FOUR_CHAR_CODE('〆nc'),
- kUserDataTextFullName = FOUR_CHAR_CODE('﹏am'),
- kUserDataTextGenre = FOUR_CHAR_CODE('ゞen'),
- kUserDataTextHostComputer = FOUR_CHAR_CODE('﹉st'),
- kUserDataTextInformation = FOUR_CHAR_CODE('﹊nf'),
- kUserDataTextKeywords = FOUR_CHAR_CODE('﹌ey'),
- kUserDataTextMake = FOUR_CHAR_CODE('﹎ak'),
- kUserDataTextModel = FOUR_CHAR_CODE('﹎od'),
- kUserDataTextOriginalArtist = FOUR_CHAR_CODE('﹐pe'),
- kUserDataTextOriginalFormat = FOUR_CHAR_CODE('ゝmt'),
- kUserDataTextOriginalSource = FOUR_CHAR_CODE('﹕rc'),
- kUserDataTextPerformers = FOUR_CHAR_CODE('﹑rf'),
- kUserDataTextProducer = FOUR_CHAR_CODE('﹑rd'),
- kUserDataTextProduct = FOUR_CHAR_CODE('㏄RD'),
- kUserDataTextSoftware = FOUR_CHAR_CODE('﹕wr'),
- kUserDataTextSpecialPlaybackRequirements = FOUR_CHAR_CODE('﹔eq'),
- kUserDataTextTrack = FOUR_CHAR_CODE('﹖rk'),
- kUserDataTextWarning = FOUR_CHAR_CODE('﹚rn'),
- kUserDataTextWriter = FOUR_CHAR_CODE('﹚rt'),
- kUserDataTextURLLink = FOUR_CHAR_CODE('﹗rl'),
- kUserDataTextEditDate1 = FOUR_CHAR_CODE('〆d1')
- };
- enum {
- kUserDataUnicodeBit = 1L << 7
- };
- enum {
- DoTheRightThing = 0
- };
- struct MovieRecord {
- long data[1];
- };
- typedef struct MovieRecord MovieRecord;
- typedef MovieRecord * Movie;
- typedef Movie * MoviePtr;
- struct TrackRecord {
- long data[1];
- };
- typedef struct TrackRecord TrackRecord;
- typedef TrackRecord * Track;
- struct MediaRecord {
- long data[1];
- };
- typedef struct MediaRecord MediaRecord;
- typedef MediaRecord * Media;
- struct UserDataRecord {
- long data[1];
- };
- typedef struct UserDataRecord UserDataRecord;
- typedef UserDataRecord * UserData;
- struct TrackEditStateRecord {
- long data[1];
- };
- typedef struct TrackEditStateRecord TrackEditStateRecord;
- typedef TrackEditStateRecord * TrackEditState;
- struct MovieEditStateRecord {
- long data[1];
- };
- typedef struct MovieEditStateRecord MovieEditStateRecord;
- typedef MovieEditStateRecord * MovieEditState;
- struct QTRestrictionSetRecord {
- long data[1];
- };
- typedef struct QTRestrictionSetRecord QTRestrictionSetRecord;
- typedef QTRestrictionSetRecord * QTRestrictionSet;
- struct SpriteWorldRecord {
- long data[1];
- };
- typedef struct SpriteWorldRecord SpriteWorldRecord;
- typedef SpriteWorldRecord * SpriteWorld;
- struct SpriteRecord {
- long data[1];
- };
- typedef struct SpriteRecord SpriteRecord;
- typedef SpriteRecord * Sprite;
- struct QTTweenerRecord {
- long data[1];
- };
- typedef struct QTTweenerRecord QTTweenerRecord;
- typedef QTTweenerRecord * QTTweener;
- struct SampleDescription {
- long descSize;
- long dataFormat;
- long resvd1;
- short resvd2;
- short dataRefIndex;
- };
- typedef struct SampleDescription SampleDescription;
- typedef SampleDescription * SampleDescriptionPtr;
- typedef SampleDescriptionPtr * SampleDescriptionHandle;
- typedef struct OpaqueQTBandwidthReference* QTBandwidthReference;
- typedef struct OpaqueQTScheduledBandwidthReference* QTScheduledBandwidthReference;
- enum {
- kQTNetworkStatusNoNetwork = -2,
- kQTNetworkStatusUncertain = -1,
- kQTNetworkStatusNotConnected = 0,
- kQTNetworkStatusConnected = 1
- };
- typedef Handle QTAtomContainer;
- typedef long QTAtom;
- typedef long QTAtomType;
- typedef long QTAtomID;
- /* QTFloatDouble is the 64-bit IEEE-754 standard*/
- typedef Float64 QTFloatDouble;
- /* QTFloatSingle is the 32-bit IEEE-754 standard*/
- typedef Float32 QTFloatSingle;
- struct SoundDescription {
- long descSize; /* total size of SoundDescription including extra data */
- long dataFormat; /* sound format */
- long resvd1; /* reserved for apple use. set to zero */
- short resvd2; /* reserved for apple use. set to zero */
- short dataRefIndex;
- short version; /* which version is this data */
- short revlevel; /* what version of that codec did this */
- long vendor; /* whose codec compressed this data */
- short numChannels; /* number of channels of sound */
- short sampleSize; /* number of bits per sample */
- short compressionID; /* unused. set to zero. */
- short packetSize; /* unused. set to zero. */
- UnsignedFixed sampleRate; /* sample rate sound is captured at */
- };
- typedef struct SoundDescription SoundDescription;
- typedef SoundDescription * SoundDescriptionPtr;
- typedef SoundDescriptionPtr * SoundDescriptionHandle;
- /* version 1 of the SoundDescription record*/
- struct SoundDescriptionV1 {
- /* original fields*/
- SoundDescription desc;
- /* fixed compression ratio information*/
- unsigned long samplesPerPacket;
- unsigned long bytesPerPacket;
- unsigned long bytesPerFrame;
- unsigned long bytesPerSample;
- /* additional atom based fields ([long size, long type, some data], repeat)*/
- };
- typedef struct SoundDescriptionV1 SoundDescriptionV1;
- typedef SoundDescriptionV1 * SoundDescriptionV1Ptr;
- typedef SoundDescriptionV1Ptr * SoundDescriptionV1Handle;
- struct TextDescription {
- long descSize; /* Total size of TextDescription*/
- long dataFormat; /* 'text'*/
- long resvd1;
- short resvd2;
- short dataRefIndex;
- long displayFlags; /* see enum below for flag values*/
- long textJustification; /* Can be: teCenter,teFlush -Default,-Right,-Left*/
- RGBColor bgColor; /* Background color*/
- Rect defaultTextBox; /* Location to place the text within the track bounds*/
- ScrpSTElement defaultStyle; /* Default style (struct defined in TextEdit.h)*/
- char defaultFontName[1]; /* Font Name (pascal string - struct extended to fit) */
- };
- typedef struct TextDescription TextDescription;
- typedef TextDescription * TextDescriptionPtr;
- typedef TextDescriptionPtr * TextDescriptionHandle;
- struct SpriteDescription {
- long descSize; /* total size of SpriteDescription including extra data */
- long dataFormat; /* */
- long resvd1; /* reserved for apple use */
- short resvd2;
- short dataRefIndex;
- long version; /* which version is this data */
- OSType decompressorType; /* which decompressor to use, 0 for no decompression */
- long sampleFlags; /* how to interpret samples */
- };
- typedef struct SpriteDescription SpriteDescription;
- typedef SpriteDescription * SpriteDescriptionPtr;
- typedef SpriteDescriptionPtr * SpriteDescriptionHandle;
- struct FlashDescription {
- long descSize;
- long dataFormat;
- long resvd1;
- short resvd2;
- short dataRefIndex;
- long version; /* which version is this data */
- OSType decompressorType; /* which decompressor to use, 0 for no decompression */
- long flags;
- };
- typedef struct FlashDescription FlashDescription;
- typedef FlashDescription * FlashDescriptionPtr;
- typedef FlashDescriptionPtr * FlashDescriptionHandle;
- struct ThreeDeeDescription {
- long descSize; /* total size of ThreeDeeDescription including extra data */
- long dataFormat; /* */
- long resvd1; /* reserved for apple use */
- short resvd2;
- short dataRefIndex;
- long version; /* which version is this data */
- long rendererType; /* which renderer to use, 0 for default */
- long decompressorType; /* which decompressor to use, 0 for default */
- };
- typedef struct ThreeDeeDescription ThreeDeeDescription;
- typedef ThreeDeeDescription * ThreeDeeDescriptionPtr;
- typedef ThreeDeeDescriptionPtr * ThreeDeeDescriptionHandle;
- struct DataReferenceRecord {
- OSType dataRefType;
- Handle dataRef;
- };
- typedef struct DataReferenceRecord DataReferenceRecord;
- typedef DataReferenceRecord * DataReferencePtr;
- /*--------------------------
- Music Sample Description
- --------------------------*/
- struct MusicDescription {
- long descSize;
- long dataFormat; /* 'musi' */
- long resvd1;
- short resvd2;
- short dataRefIndex;
- long musicFlags;
- unsigned long headerData[1]; /* variable size! */
- };
- typedef struct MusicDescription MusicDescription;
- typedef MusicDescription * MusicDescriptionPtr;
- typedef MusicDescriptionPtr * MusicDescriptionHandle;
- enum {
- kMusicFlagDontPlay2Soft = 1L << 0,
- kMusicFlagDontSlaveToMovie = 1L << 1
- };
- enum {
- dfDontDisplay = 1 << 0, /* Don't display the text*/
- dfDontAutoScale = 1 << 1, /* Don't scale text as track bounds grows or shrinks*/
- dfClipToTextBox = 1 << 2, /* Clip update to the textbox*/
- dfUseMovieBGColor = 1 << 3, /* Set text background to movie's background color*/
- dfShrinkTextBoxToFit = 1 << 4, /* Compute minimum box to fit the sample*/
- dfScrollIn = 1 << 5, /* Scroll text in until last of text is in view */
- dfScrollOut = 1 << 6, /* Scroll text out until last of text is gone (if both set, scroll in then out)*/
- dfHorizScroll = 1 << 7, /* Scroll text horizontally (otherwise it's vertical)*/
- dfReverseScroll = 1 << 8, /* vert: scroll down rather than up; horiz: scroll backwards (justfication dependent)*/
- dfContinuousScroll = 1 << 9, /* new samples cause previous samples to scroll out */
- dfFlowHoriz = 1 << 10, /* horiz scroll text flows in textbox rather than extend to right */
- dfContinuousKaraoke = 1 << 11, /* ignore begin offset, hilite everything up to the end offset(karaoke)*/
- dfDropShadow = 1 << 12, /* display text with a drop shadow */
- dfAntiAlias = 1 << 13, /* attempt to display text anti aliased*/
- dfKeyedText = 1 << 14, /* key the text over background*/
- dfInverseHilite = 1 << 15, /* Use inverse hiliting rather than using hilite color*/
- dfTextColorHilite = 1 << 16 /* changes text color in place of hiliting. */
- };
- enum {
- searchTextDontGoToFoundTime = 1L << 16,
- searchTextDontHiliteFoundText = 1L << 17,
- searchTextOneTrackOnly = 1L << 18,
- searchTextEnabledTracksOnly = 1L << 19
- };
- /*use these with the text property routines*/
- enum {
- /* 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 **/
- };
- enum {
- k3DMediaRendererEntry = FOUR_CHAR_CODE('rend'),
- k3DMediaRendererName = FOUR_CHAR_CODE('name'),
- k3DMediaRendererCode = FOUR_CHAR_CODE('rcod')
- };
- /* progress messages */
- enum {
- movieProgressOpen = 0,
- movieProgressUpdatePercent = 1,
- movieProgressClose = 2
- };
- /* progress operations */
- enum {
- progressOpFlatten = 1,
- progressOpInsertTrackSegment = 2,
- progressOpInsertMovieSegment = 3,
- progressOpPaste = 4,
- progressOpAddMovieSelection = 5,
- progressOpCopy = 6,
- progressOpCut = 7,
- progressOpLoadMovieIntoRam = 8,
- progressOpLoadTrackIntoRam = 9,
- progressOpLoadMediaIntoRam = 10,
- progressOpImportMovie = 11,
- progressOpExportMovie = 12
- };
- enum {
- mediaQualityDraft = 0x0000,
- mediaQualityNormal = 0x0040,
- mediaQualityBetter = 0x0080,
- mediaQualityBest = 0x00C0
- };
- /*****
- Interactive Sprites Support
- *****/
- /* QTEventRecord flags*/
- enum {
- kQTEventPayloadIsQTList = 1L << 0
- };
- struct QTEventRecord {
- long version;
- OSType eventType;
- Point where;
- long flags;
- long payloadRefcon; /* from here down only present if version >= 2*/
- long param1;
- long param2;
- long param3;
- };
- typedef struct QTEventRecord QTEventRecord;
- typedef QTEventRecord * QTEventRecordPtr;
- struct QTAtomSpec {
- QTAtomContainer container;
- QTAtom atom;
- };
- typedef struct QTAtomSpec QTAtomSpec;
- typedef QTAtomSpec * QTAtomSpecPtr;
- struct ResolvedQTEventSpec {
- QTAtomSpec actionAtom;
- Track targetTrack;
- long targetRefCon;
- };
- typedef struct ResolvedQTEventSpec ResolvedQTEventSpec;
- typedef ResolvedQTEventSpec * ResolvedQTEventSpecPtr;
- /* action constants */
- enum {
- 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) */
- };
- enum {
- 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,
- kOperandQTVRFieldOfView = 4098,
- kOperandQTVRNodeID = 4099,
- kOperandQTVRHotSpotsVisible = 4100,
- kOperandQTVRViewCenterH = 4101,
- kOperandQTVRViewCenterV = 4102,
- kOperandQTVRViewStateCount = 4103,
- kOperandQTVRViewState = 4104, /* long viewStateType */
- kOperandMouseLocalHLoc = 5120, /* [TargetAtoms aTrack] */
- kOperandMouseLocalVLoc = 5121, /* [TargetAtoms aTrack] */
- kOperandKeyIsDown = 5122, /* [short modKeys, char asciiValue] */
- kOperandRandom = 5123, /* [short min, short max] */
- kOperandCanHaveFocus = 5124, /* [(TargetAtoms theObject)] */
- kOperandHasFocus = 5125, /* [(TargetAtoms theObject)] */
- kOperandTextTrackEditable = 6144,
- kOperandTextTrackCopyText = 6145, /* long startSelection, long endSelection */
- kOperandTextTrackStartSelection = 6146,
- kOperandTextTrackEndSelection = 6147,
- kOperandTextTrackTextBoxLeft = 6148,
- kOperandTextTrackTextBoxTop = 6149,
- kOperandTextTrackTextBoxRight = 6150,
- kOperandTextTrackTextBoxBottom = 6151,
- kOperandTextTrackTextLength = 6152,
- kOperandListCountElements = 7168, /* (C string parentPath) */
- kOperandListGetElementPathByIndex = 7169, /* (C string parentPath, long index) */
- kOperandListGetElementValue = 7170, /* (C string elementPath) */
- kOperandListCopyToXML = 7171, /* (C string parentPath, long startIndex, long endIndex) */
- kOperandSin = 8192, /* float x */
- kOperandCos = 8193, /* float x */
- kOperandTan = 8194, /* float x */
- kOperandATan = 8195, /* float x */
- kOperandATan2 = 8196, /* float y, float x */
- kOperandDegreesToRadians = 8197, /* float x */
- kOperandRadiansToDegrees = 8198, /* float x */
- kOperandSquareRoot = 8199, /* float x */
- kOperandExponent = 8200, /* float x */
- kOperandLog = 8201, /* float x */
- kOperandFlashTrackVariable = 9216, /* [CString path, CString name] */
- kOperandStringLength = 10240, /* (C string text) */
- kOperandStringCompare = 10241, /* (C string aText, C string bText, Boolean caseSensitive, Boolan diacSensitive) */
- kOperandStringSubString = 10242, /* (C string text, long offset, long length) */
- kOperandStringConcat = 10243 /* (C string aText, C string bText) */
- };
- enum {
- kFirstMovieAction = kActionMovieSetVolume,
- kLastMovieAction = kActionMovieSetScale,
- kFirstTrackAction = kActionTrackSetVolume,
- kLastTrackAction = kActionTrackSetBassTreble,
- kFirstSpriteAction = kActionSpriteSetMatrix,
- kLastSpriteAction = kActionSpriteSetCanBeHitTested,
- kFirstQTVRAction = kActionQTVRSetPanAngle,
- kLastQTVRAction = kActionQTVRSetViewState,
- kFirstMusicAction = kActionMusicPlayNote,
- kLastMusicAction = kActionMusicSetController,
- kFirstSystemAction = kActionCase,
- kLastSystemAction = kActionSetRandomSeed,
- kFirstSpriteTrackAction = kActionSpriteTrackSetVariable,
- kLastSpriteTrackAction = kActionSpriteTrackDisposeImage,
- kFirstApplicationAction = kActionApplicationNumberAndString,
- kLastApplicationAction = kActionApplicationNumberAndString,
- kFirstQD3DNamedObjectAction = kActionQD3DNamedObjectTranslateTo,
- kLastQD3DNamedObjectAction = kActionQD3DNamedObjectRotateTo,
- kFirstFlashTrackAction = kActionFlashTrackSetPan,
- kLastFlashTrackAction = kActionFlashTrackDoButtonActions,
- kFirstMovieTrackAction = kActionMovieTrackAddChildMovie,
- kLastMovieTrackAction = kActionMovieTrackLoadChildMovieWithQTListParams,
- kFirstTextTrackAction = kActionTextTrackPasteText,
- kLastTextTrackAction = kActionTextTrackSetEditable,
- kFirstMultiTargetAction = kActionListAddElement,
- kLastMultiTargetAction = kActionListServerQuery,
- kFirstAction = kFirstMovieAction,
- kLastAction = kLastMultiTargetAction
- };
- /* target atom types*/
- enum {
- kTargetMovie = FOUR_CHAR_CODE('moov'), /* no data */
- kTargetMovieName = FOUR_CHAR_CODE('mona'), /* (PString movieName) */
- kTargetMovieID = FOUR_CHAR_CODE('moid'), /* (long movieID) */
- kTargetRootMovie = FOUR_CHAR_CODE('moro'), /* no data */
- kTargetParentMovie = FOUR_CHAR_CODE('mopa'), /* no data */
- kTargetChildMovieTrackName = FOUR_CHAR_CODE('motn'), /* (PString childMovieTrackName) */
- kTargetChildMovieTrackID = FOUR_CHAR_CODE('moti'), /* (long childMovieTrackID) */
- kTargetChildMovieTrackIndex = FOUR_CHAR_CODE('motx'), /* (long childMovieTrackIndex) */
- kTargetChildMovieMovieName = FOUR_CHAR_CODE('momn'), /* (PString childMovieName) */
- kTargetChildMovieMovieID = FOUR_CHAR_CODE('momi'), /* (long childMovieID) */
- kTargetTrackName = FOUR_CHAR_CODE('trna'), /* (PString trackName) */
- kTargetTrackID = FOUR_CHAR_CODE('trid'), /* (long trackID) */
- kTargetTrackType = FOUR_CHAR_CODE('trty'), /* (OSType trackType) */
- kTargetTrackIndex = FOUR_CHAR_CODE('trin'), /* (long trackIndex) */
- kTargetSpriteName = FOUR_CHAR_CODE('spna'), /* (PString spriteName) */
- kTargetSpriteID = FOUR_CHAR_CODE('spid'), /* (QTAtomID spriteID) */
- kTargetSpriteIndex = FOUR_CHAR_CODE('spin'), /* (short spriteIndex) */
- kTargetQD3DNamedObjectName = FOUR_CHAR_CODE('nana'), /* (CString objectName) */
- kTargetCurrentQTEventParams = FOUR_CHAR_CODE('evpa') /* no data */
- };
- /* action container atom types*/
- enum {
- kQTEventType = FOUR_CHAR_CODE('evnt'),
- kAction = FOUR_CHAR_CODE('actn'),
- kWhichAction = FOUR_CHAR_CODE('whic'),
- kActionParameter = FOUR_CHAR_CODE('parm'),
- kActionTarget = FOUR_CHAR_CODE('targ'),
- kActionFlags = FOUR_CHAR_CODE('flag'),
- kActionParameterMinValue = FOUR_CHAR_CODE('minv'),
- kActionParameterMaxValue = FOUR_CHAR_CODE('maxv'),
- kActionListAtomType = FOUR_CHAR_CODE('list'),
- kExpressionContainerAtomType = FOUR_CHAR_CODE('expr'),
- kConditionalAtomType = FOUR_CHAR_CODE('test'),
- kOperatorAtomType = FOUR_CHAR_CODE('oper'),
- kOperandAtomType = FOUR_CHAR_CODE('oprn'),
- kCommentAtomType = FOUR_CHAR_CODE('why '),
- kCustomActionHandler = FOUR_CHAR_CODE('cust'),
- kCustomHandlerID = FOUR_CHAR_CODE('id '),
- kCustomHandlerDesc = FOUR_CHAR_CODE('desc'),
- kQTEventRecordAtomType = FOUR_CHAR_CODE('erec')
- };
- /* QTEvent types */
- enum {
- kQTEventMouseClick = FOUR_CHAR_CODE('clik'),
- kQTEventMouseClickEnd = FOUR_CHAR_CODE('cend'),
- kQTEventMouseClickEndTriggerButton = FOUR_CHAR_CODE('trig'),
- kQTEventMouseEnter = FOUR_CHAR_CODE('entr'),
- kQTEventMouseExit = FOUR_CHAR_CODE('exit'),
- kQTEventMouseMoved = FOUR_CHAR_CODE('move'),
- kQTEventFrameLoaded = FOUR_CHAR_CODE('fram'),
- kQTEventIdle = FOUR_CHAR_CODE('idle'),
- kQTEventKey = FOUR_CHAR_CODE('key '), /* qtevent.param1 = key, qtevent.param2 = modifiers, qtEvent.param3 = scanCode */
- kQTEventMovieLoaded = FOUR_CHAR_CODE('load'),
- kQTEventRequestToModifyMovie = FOUR_CHAR_CODE('reqm'),
- kQTEventListReceived = FOUR_CHAR_CODE('list'),
- kQTEventKeyUp = FOUR_CHAR_CODE('keyU') /* qtevent.param1 = key, qtevent.param2 = modifiers, qtEvent.param3 = scanCode */
- };
- /* flags for the kActionFlags atom */
- enum {
- kActionFlagActionIsDelta = 1L << 1,
- kActionFlagParameterWrapsAround = 1L << 2,
- kActionFlagActionIsToggle = 1L << 3
- };
- /* flags for stringTypeFlags field of the QTStatusStringRecord */
- enum {
- kStatusStringIsURLLink = 1L << 1,
- kStatusStringIsStreamingStatus = 1L << 2,
- kStatusHasCodeNumber = 1L << 3, /* high 16 bits of stringTypeFlags is error code number*/
- kStatusIsError = 1L << 4
- };
- /* flags for scriptTypeFlags field of the QTDoScriptRecord*/
- enum {
- kScriptIsUnknownType = 1L << 0,
- kScriptIsJavaScript = 1L << 1,
- kScriptIsLingoEvent = 1L << 2,
- kScriptIsVBEvent = 1L << 3,
- kScriptIsProjectorCommand = 1L << 4,
- kScriptIsAppleScript = 1L << 5
- };
- /* flags for CheckQuickTimeRegistration routine*/
- enum {
- kQTRegistrationDialogTimeOutFlag = 1 << 0,
- kQTRegistrationDialogShowDialog = 1 << 1,
- kQTRegistrationDialogForceDialog = 1 << 2
- };
- /* constants for kOperatorAtomType IDs (operator types)*/
- enum {
- kOperatorAdd = FOUR_CHAR_CODE('add '),
- kOperatorSubtract = FOUR_CHAR_CODE('sub '),
- kOperatorMultiply = FOUR_CHAR_CODE('mult'),
- kOperatorDivide = FOUR_CHAR_CODE('div '),
- kOperatorOr = FOUR_CHAR_CODE('or '),
- kOperatorAnd = FOUR_CHAR_CODE('and '),
- kOperatorNot = FOUR_CHAR_CODE('not '),
- kOperatorLessThan = FOUR_CHAR_CODE('< '),
- kOperatorLessThanEqualTo = FOUR_CHAR_CODE('<= '),
- kOperatorEqualTo = FOUR_CHAR_CODE('= '),
- kOperatorNotEqualTo = FOUR_CHAR_CODE('!= '),
- kOperatorGreaterThan = FOUR_CHAR_CODE('> '),
- kOperatorGreaterThanEqualTo = FOUR_CHAR_CODE('>= '),
- kOperatorModulo = FOUR_CHAR_CODE('mod '),
- kOperatorIntegerDivide = FOUR_CHAR_CODE('idiv'),
- kOperatorAbsoluteValue = FOUR_CHAR_CODE('abs '),
- kOperatorNegate = FOUR_CHAR_CODE('neg ')
- };
- /* constants for kOperandPlatformRunningOn*/
- enum {
- kPlatformMacintosh = 1,
- kPlatformWindows = 2
- };
- /* flags for kOperandSystemVersion*/
- enum {
- kSystemIsWindows9x = 0x00010000,
- kSystemIsWindowsNT = 0x00020000
- };
- /* constants for MediaPropertiesAtom*/
- enum {
- kMediaPropertyNonLinearAtomType = FOUR_CHAR_CODE('nonl'),
- kMediaPropertyHasActions = 105
- };
- /* TimeBase equates */
- typedef long TimeValue;
- typedef long TimeScale;
- typedef wide CompTimeValue;
- typedef SInt64 TimeValue64;
- enum {
- loopTimeBase = 1,
- palindromeLoopTimeBase = 2,
- maintainTimeBaseZero = 4
- };
- typedef unsigned long TimeBaseFlags;
- struct TimeBaseRecord {
- long data[1];
- };
- typedef struct TimeBaseRecord TimeBaseRecord;
- typedef TimeBaseRecord * TimeBase;
- struct CallBackRecord {
- long data[1];
- };
- typedef struct CallBackRecord CallBackRecord;
- typedef CallBackRecord * QTCallBack;
- struct TimeRecord {
- CompTimeValue value; /* units */
- TimeScale scale; /* units per second */
- TimeBase base;
- };
- typedef struct TimeRecord TimeRecord;
- /* CallBack equates */
- enum {
- triggerTimeFwd = 0x0001, /* when curTime exceeds triggerTime going forward */
- triggerTimeBwd = 0x0002, /* when curTime exceeds triggerTime going backwards */
- triggerTimeEither = 0x0003, /* when curTime exceeds triggerTime going either direction */
- triggerRateLT = 0x0004, /* when rate changes to less than trigger value */
- triggerRateGT = 0x0008, /* when rate changes to greater than trigger value */
- triggerRateEqual = 0x0010, /* when rate changes to equal trigger value */
- triggerRateLTE = triggerRateLT | triggerRateEqual,
- triggerRateGTE = triggerRateGT | triggerRateEqual,
- triggerRateNotEqual = triggerRateGT | triggerRateEqual | triggerRateLT,
- triggerRateChange = 0,
- triggerAtStart = 0x0001,
- triggerAtStop = 0x0002
- };
- typedef unsigned short QTCallBackFlags;
- enum {
- timeBaseBeforeStartTime = 1,
- timeBaseAfterStopTime = 2
- };
- typedef unsigned long TimeBaseStatus;
- enum {
- callBackAtTime = 1,
- callBackAtRate = 2,
- callBackAtTimeJump = 3,
- callBackAtExtremes = 4,
- callBackAtTimeBaseDisposed = 5,
- callBackAtInterrupt = 0x8000,
- callBackAtDeferredTask = 0x4000
- };
- typedef unsigned short QTCallBackType;
- typedef CALLBACK_API( void , QTCallBackProcPtr )(QTCallBack cb, long refCon);
- typedef STACK_UPP_TYPE(QTCallBackProcPtr) QTCallBackUPP;
- enum {
- qtcbNeedsRateChanges = 1, /* wants to know about rate changes */
- qtcbNeedsTimeChanges = 2, /* wants to know about time changes */
- qtcbNeedsStartStopChanges = 4 /* wants to know when TimeBase start/stop is changed*/
- };
- struct QTCallBackHeader {
- long callBackFlags;
- long reserved1;
- SInt8 qtPrivate[40];
- };
- typedef struct QTCallBackHeader QTCallBackHeader;
- typedef CALLBACK_API( void , QTSyncTaskProcPtr )(void *task);
- typedef STACK_UPP_TYPE(QTSyncTaskProcPtr) QTSyncTaskUPP;
- struct QTSyncTaskRecord {
- void * qLink;
- QTSyncTaskUPP proc;
- };
- typedef struct QTSyncTaskRecord QTSyncTaskRecord;
- typedef QTSyncTaskRecord * QTSyncTaskPtr;
- typedef CALLBACK_API( OSErr , MovieRgnCoverProcPtr )(Movie theMovie, RgnHandle changedRgn, long refcon);
- typedef CALLBACK_API( OSErr , MovieProgressProcPtr )(Movie theMovie, short message, short whatOperation, Fixed percentDone, long refcon);
- typedef CALLBACK_API( OSErr , MovieDrawingCompleteProcPtr )(Movie theMovie, long refCon);
- typedef CALLBACK_API( OSErr , TrackTransferProcPtr )(Track t, long refCon);
- typedef CALLBACK_API( OSErr , GetMovieProcPtr )(long offset, long size, void *dataPtr, void *refCon);
- typedef CALLBACK_API( Boolean , MoviePreviewCallOutProcPtr )(long refcon);
- typedef CALLBACK_API( OSErr , TextMediaProcPtr )(Handle theText, Movie theMovie, short *displayFlag, long refcon);
- typedef CALLBACK_API( OSErr , ActionsProcPtr )(void *refcon, Track targetTrack, long targetRefCon, QTEventRecordPtr theEvent);
- typedef CALLBACK_API( OSErr , DoMCActionProcPtr )(void *refcon, short action, void *params, Boolean *handled);
- typedef CALLBACK_API( OSErr , MovieExecuteWiredActionsProcPtr )(Movie theMovie, void *refcon, long flags, QTAtomContainer wiredActions);
- typedef CALLBACK_API( void , MoviePrePrerollCompleteProcPtr )(Movie theMovie, OSErr prerollErr, void *refcon);
- typedef CALLBACK_API( void , QTNextTaskNeededSoonerCallbackProcPtr )(TimeValue duration, unsigned long flags, void *refcon);
- typedef CALLBACK_API( void , MoviesErrorProcPtr )(OSErr theErr, long refcon);
- typedef STACK_UPP_TYPE(MovieRgnCoverProcPtr) MovieRgnCoverUPP;
- typedef STACK_UPP_TYPE(MovieProgressProcPtr) MovieProgressUPP;
- typedef STACK_UPP_TYPE(MovieDrawingCompleteProcPtr) MovieDrawingCompleteUPP;
- typedef STACK_UPP_TYPE(TrackTransferProcPtr) TrackTransferUPP;
- typedef STACK_UPP_TYPE(GetMovieProcPtr) GetMovieUPP;
- typedef STACK_UPP_TYPE(MoviePreviewCallOutProcPtr) MoviePreviewCallOutUPP;
- typedef STACK_UPP_TYPE(TextMediaProcPtr) TextMediaUPP;
- typedef STACK_UPP_TYPE(ActionsProcPtr) ActionsUPP;
- typedef STACK_UPP_TYPE(DoMCActionProcPtr) DoMCActionUPP;
- typedef STACK_UPP_TYPE(MovieExecuteWiredActionsProcPtr) MovieExecuteWiredActionsUPP;
- typedef STACK_UPP_TYPE(MoviePrePrerollCompleteProcPtr) MoviePrePrerollCompleteUPP;
- typedef STACK_UPP_TYPE(QTNextTaskNeededSoonerCallbackProcPtr) QTNextTaskNeededSoonerCallbackUPP;
- typedef STACK_UPP_TYPE(MoviesErrorProcPtr) MoviesErrorUPP;
- typedef ComponentInstance MediaHandler;
- typedef ComponentInstance DataHandler;
- typedef Component MediaHandlerComponent;
- typedef Component DataHandlerComponent;
- typedef ComponentResult HandlerError;
- enum {
- keepInRam = 1 << 0, /* load and make non-purgable*/
- unkeepInRam = 1 << 1, /* mark as purgable*/
- flushFromRam = 1 << 2, /* empty those handles*/
- loadForwardTrackEdits = 1 << 3, /* load track edits into ram for playing forward*/
- loadBackwardTrackEdits = 1 << 4 /* load track edits into ram for playing in reverse*/
- };
- enum {
- newMovieActive = 1 << 0,
- newMovieDontResolveDataRefs = 1 << 1,
- newMovieDontAskUnresolvedDataRefs = 1 << 2,
- newMovieDontAutoAlternates = 1 << 3,
- newMovieDontUpdateForeBackPointers = 1 << 4,
- newMovieDontAutoUpdateClock = 1 << 5,
- newMovieAsyncOK = 1 << 8,
- newMovieIdleImportOK = 1 << 10,
- newMovieDontInteractWithUser = 1 << 11
- };
- /* track usage bits */
- enum {
- trackUsageInMovie = 1 << 1,
- trackUsageInPreview = 1 << 2,
- trackUsageInPoster = 1 << 3
- };
- /* Add/GetMediaSample flags */
- enum {
- mediaSampleNotSync = 1 << 0, /* sample is not a sync sample (eg. is frame differenced */
- mediaSampleShadowSync = 1 << 1 /* sample is a shadow sync */
- };
- enum {
- pasteInParallel = 1 << 0,
- showUserSettingsDialog = 1 << 1,
- movieToFileOnlyExport = 1 << 2,
- movieFileSpecValid = 1 << 3
- };
- enum {
- nextTimeMediaSample = 1 << 0,
- nextTimeMediaEdit = 1 << 1,
- nextTimeTrackEdit = 1 << 2,
- nextTimeSyncSample = 1 << 3,
- nextTimeStep = 1 << 4,
- nextTimeEdgeOK = 1 << 14,
- nextTimeIgnoreActiveSegment = 1 << 15
- };
- typedef unsigned short nextTimeFlagsEnum;
- enum {
- createMovieFileDeleteCurFile = 1L << 31,
- createMovieFileDontCreateMovie = 1L << 30,
- createMovieFileDontOpenFile = 1L << 29,
- createMovieFileDontCreateResFile = 1L << 28
- };
- typedef unsigned long createMovieFileFlagsEnum;
- enum {
- flattenAddMovieToDataFork = 1L << 0,
- flattenActiveTracksOnly = 1L << 2,
- flattenDontInterleaveFlatten = 1L << 3,
- flattenFSSpecPtrIsDataRefRecordPtr = 1L << 4,
- flattenCompressMovieResource = 1L << 5,
- flattenForceMovieResourceBeforeMovieData = 1L << 6
- };
- typedef unsigned long movieFlattenFlagsEnum;
- enum {
- movieInDataForkResID = -1 /* magic res ID */
- };
- enum {
- mcTopLeftMovie = 1 << 0, /* usually centered */
- mcScaleMovieToFit = 1 << 1, /* usually only scales down */
- mcWithBadge = 1 << 2, /* give me a badge */
- mcNotVisible = 1 << 3, /* don't show controller */
- mcWithFrame = 1 << 4 /* gimme a frame */
- };
- enum {
- movieScrapDontZeroScrap = 1 << 0,
- movieScrapOnlyPutMovie = 1 << 1
- };
- enum {
- dataRefSelfReference = 1 << 0,
- dataRefWasNotResolved = 1 << 1
- };
- typedef unsigned long dataRefAttributesFlags;
- enum {
- kMovieAnchorDataRefIsDefault = 1 << 0 /* data ref returned is movie default data ref */
- };
- enum {
- hintsScrubMode = 1 << 0, /* mask == && (if flags == scrub on, flags != scrub off) */
- hintsLoop = 1 << 1,
- hintsDontPurge = 1 << 2,
- hintsUseScreenBuffer = 1 << 5,
- hintsAllowInterlace = 1 << 6,
- hintsUseSoundInterp = 1 << 7,
- hintsHighQuality = 1 << 8, /* slooooow */
- hintsPalindrome = 1 << 9,
- hintsInactive = 1 << 11,
- hintsOffscreen = 1 << 12,
- hintsDontDraw = 1 << 13,
- hintsAllowBlacklining = 1 << 14,
- hintsDontUseVideoOverlaySurface = 1 << 16,
- hintsIgnoreBandwidthRestrictions = 1 << 17,
- hintsPlayingEveryFrame = 1 << 18,
- hintsAllowDynamicResize = 1 << 19,
- hintsSingleField = 1 << 20,
- hintsNoRenderingTimeOut = 1 << 21,
- hintsFlushVideoInsteadOfDirtying = 1 << 22,
- hintsEnableSubPixelPositioning = 1L << 23
- };
- typedef unsigned long playHintsEnum;
- enum {
- mediaHandlerFlagBaseClient = 1
- };
- typedef unsigned long mediaHandlerFlagsEnum;
- enum {
- movieTrackMediaType = 1 << 0,
- movieTrackCharacteristic = 1 << 1,
- movieTrackEnabledOnly = 1 << 2
- };
- struct SampleReferenceRecord {
- long dataOffset;
- long dataSize;
- TimeValue durationPerSample;
- long numberOfSamples;
- short sampleFlags;
- };
- typedef struct SampleReferenceRecord SampleReferenceRecord;
- typedef SampleReferenceRecord * SampleReferencePtr;
- struct SampleReference64Record {
- wide dataOffset;
- unsigned long dataSize;
- TimeValue durationPerSample;
- unsigned long numberOfSamples;
- short sampleFlags;
- };
- typedef struct SampleReference64Record SampleReference64Record;
- typedef SampleReference64Record * SampleReference64Ptr;
- /*************************
- * Initialization Routines
- **************************/
- EXTERN_API( void )
- CheckQuickTimeRegistration (void * registrationKey,
- long flags) THREEWORDINLINE(0x303C, 0x02DA, 0xAAAA);
- EXTERN_API( OSErr )
- EnterMovies (void) TWOWORDINLINE(0x7001, 0xAAAA);
- EXTERN_API( void )
- ExitMovies (void) TWOWORDINLINE(0x7002, 0xAAAA);
- /*************************
- * Error Routines
- **************************/
- EXTERN_API( OSErr )
- GetMoviesError (void) TWOWORDINLINE(0x7003, 0xAAAA);
- EXTERN_API( void )
- ClearMoviesStickyError (void) THREEWORDINLINE(0x303C, 0x00DE, 0xAAAA);
- EXTERN_API( OSErr )
- GetMoviesStickyError (void) TWOWORDINLINE(0x7004, 0xAAAA);
- EXTERN_API( void )
- SetMoviesErrorProc (MoviesErrorUPP errProc,
- long refcon) THREEWORDINLINE(0x303C, 0x00EF, 0xAAAA);
- /*************************
- * Idle Routines
- **************************/
- EXTERN_API( void )
- MoviesTask (Movie theMovie,
- long maxMilliSecToUse) TWOWORDINLINE(0x7005, 0xAAAA);
- EXTERN_API( OSErr )
- PrerollMovie (Movie theMovie,
- TimeValue time,
- Fixed Rate) TWOWORDINLINE(0x7006, 0xAAAA);
- EXTERN_API( OSErr )
- PrePrerollMovie (Movie m,
- TimeValue time,
- Fixed rate,
- MoviePrePrerollCompleteUPP proc,
- void * refcon) THREEWORDINLINE(0x303C, 0x02F7, 0xAAAA);
- EXTERN_API( void )
- AbortPrePrerollMovie (Movie m,
- OSErr err) THREEWORDINLINE(0x303C, 0x02F8, 0xAAAA);
- EXTERN_API( OSErr )
- LoadMovieIntoRam (Movie theMovie,
- TimeValue time,
- TimeValue duration,
- long flags) TWOWORDINLINE(0x7007, 0xAAAA);
- EXTERN_API( OSErr )
- LoadTrackIntoRam (Track theTrack,
- TimeValue time,
- TimeValue duration,
- long flags) THREEWORDINLINE(0x303C, 0x016E, 0xAAAA);
- EXTERN_API( OSErr )
- LoadMediaIntoRam (Media theMedia,
- TimeValue time,
- TimeValue duration,
- long flags) TWOWORDINLINE(0x7008, 0xAAAA);
- EXTERN_API( void )
- SetMovieActive (Movie theMovie,
- Boolean active) TWOWORDINLINE(0x7009, 0xAAAA);
- EXTERN_API( Boolean )
- GetMovieActive (Movie theMovie) TWOWORDINLINE(0x700A, 0xAAAA);
- EXTERN_API( OSErr )
- QTGetWallClockTimeBase (TimeBase * wallClockTimeBase) THREEWORDINLINE(0x303C, 0x0347, 0xAAAA);
- /*************************
- * Idle Management
- **************************/
- typedef struct OpaqueIdleManager* IdleManager;
- EXTERN_API( IdleManager )
- QTIdleManagerOpen (void) THREEWORDINLINE(0x303C, 0x0348, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerClose (IdleManager im) THREEWORDINLINE(0x303C, 0x0349, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerGetNextIdleTime (IdleManager im,
- TimeRecord * nextIdle) THREEWORDINLINE(0x303C, 0x034A, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerSetNextIdleTime (IdleManager im,
- TimeRecord * nextIdle) THREEWORDINLINE(0x303C, 0x034B, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerSetNextIdleTimeNever (IdleManager im) THREEWORDINLINE(0x303C, 0x0373, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerSetNextIdleTimeNow (IdleManager im) THREEWORDINLINE(0x303C, 0x0374, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerSetNextIdleTimeDelta (IdleManager im,
- TimeValue duration,
- TimeScale scale) THREEWORDINLINE(0x303C, 0x0375, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerSetParent (IdleManager im,
- IdleManager parent) THREEWORDINLINE(0x303C, 0x034C, 0xAAAA);
- EXTERN_API( OSErr )
- QTIdleManagerNeedsAnIdle (IdleManager im,
- Boolean * needsOne) THREEWORDINLINE(0x303C, 0x0371, 0xAAAA);
- /*************************
- * Carbon Movie Control
- **************************/
- /* Movie Control option bits*/
- enum {
- kMovieControlOptionHideController = (1L << 0),
- kMovieControlOptionLocateTopLeft = (1L << 1),
- kMovieControlOptionEnableEditing = (1L << 2),
- kMovieControlOptionHandleEditingHI = (1L << 3),
- kMovieControlOptionSetKeysEnabled = (1L << 4),
- kMovieControlOptionManuallyIdled = (1L << 5)
- };
- /* Item tags for use in GetControlData() (some with SetControlData()) calls on Movie Controls*/
- enum {
- kMovieControlDataMovieController = FOUR_CHAR_CODE('mc '),
- kMovieControlDataMovie = FOUR_CHAR_CODE('moov'),
- kMovieControlDataManualIdling = FOUR_CHAR_CODE('manu')
- };
- /*
- ** CreateMovieControl() - This is the public API routine that creates a Movie Control. Given a window and location
- ** plus a movie, it constructs a Movie Control with a Movie Controller in the window.
- */
- EXTERN_API( OSErr )
- CreateMovieControl (WindowRef theWindow,
- Rect * localRect,
- Movie theMovie,
- UInt32 options,
- ControlRef * returnedControl) THREEWORDINLINE(0x303C, 0x0378, 0xAAAA);
- /*************************
- * calls for playing movies, previews, posters
- **************************/
- EXTERN_API( void )
- StartMovie (Movie theMovie) TWOWORDINLINE(0x700B, 0xAAAA);
- EXTERN_API( void )
- StopMovie (Movie theMovie) TWOWORDINLINE(0x700C, 0xAAAA);
- EXTERN_API( void )
- GoToBeginningOfMovie (Movie theMovie) TWOWORDINLINE(0x700D, 0xAAAA);
- EXTERN_API( void )
- GoToEndOfMovie (Movie theMovie) TWOWORDINLINE(0x700E, 0xAAAA);
- EXTERN_API( Boolean )
- IsMovieDone (Movie theMovie) THREEWORDINLINE(0x303C, 0x00DD, 0xAAAA);
- EXTERN_API( Boolean )
- GetMoviePreviewMode (Movie theMovie) TWOWORDINLINE(0x700F, 0xAAAA);
- EXTERN_API( void )
- SetMoviePreviewMode (Movie theMovie,
- Boolean usePreview) TWOWORDINLINE(0x7010, 0xAAAA);
- EXTERN_API( void )
- ShowMoviePoster (Movie theMovie) TWOWORDINLINE(0x7011, 0xAAAA);
- EXTERN_API( void )
- PlayMoviePreview (Movie theMovie,
- MoviePreviewCallOutUPP callOutProc,
- long refcon) THREEWORDINLINE(0x303C, 0x00F2, 0xAAAA);
- /*************************
- * calls for controlling movies & tracks which are playing
- **************************/
- EXTERN_API( TimeBase )
- GetMovieTimeBase (Movie theMovie) TWOWORDINLINE(0x7012, 0xAAAA);
- EXTERN_API( void )
- SetMovieMasterTimeBase (Movie theMovie,
- TimeBase tb,
- const TimeRecord * slaveZero) THREEWORDINLINE(0x303C, 0x0167, 0xAAAA);
- EXTERN_API( void )
- SetMovieMasterClock (Movie theMovie,
- Component clockMeister,
- const TimeRecord * slaveZero) THREEWORDINLINE(0x303C, 0x0168, 0xAAAA);
- EXTERN_API( void )
- ChooseMovieClock (Movie m,
- long flags) THREEWORDINLINE(0x303C, 0x0269, 0xAAAA);
- EXTERN_API( void )
- GetMovieGWorld (Movie theMovie,
- CGrafPtr * port,
- GDHandle * gdh) TWOWORDINLINE(0x7015, 0xAAAA);
- EXTERN_API( void )
- SetMovieGWorld (Movie theMovie,
- CGrafPtr port,
- GDHandle gdh) TWOWORDINLINE(0x7016, 0xAAAA);
- enum {
- movieDrawingCallWhenChanged = 0,
- movieDrawingCallAlways = 1
- };
- EXTERN_API( void )
- SetMovieDrawingCompleteProc (Movie theMovie,
- long flags,
- MovieDrawingCompleteUPP proc,
- long refCon) THREEWORDINLINE(0x303C, 0x01DE, 0xAAAA);
- EXTERN_API( void )
- GetMovieNaturalBoundsRect (Movie theMovie,
- Rect * naturalBounds) THREEWORDINLINE(0x303C, 0x022C, 0xAAAA);
- EXTERN_API( Track )
- GetNextTrackForCompositing (Movie theMovie,
- Track theTrack) THREEWORDINLINE(0x303C, 0x01FA, 0xAAAA);
- EXTERN_API( Track )
- GetPrevTrackForCompositing (Movie theMovie,
- Track theTrack) THREEWORDINLINE(0x303C, 0x01FB, 0xAAAA);
- EXTERN_API( void )
- SetTrackGWorld (Track theTrack,
- CGrafPtr port,
- GDHandle gdh,
- TrackTransferUPP proc,
- long refCon) THREEWORDINLINE(0x303C, 0x009D, 0xAAAA);
- EXTERN_API( PicHandle )
- GetMoviePict (Movie theMovie,
- TimeValue time) TWOWORDINLINE(0x701D, 0xAAAA);
- EXTERN_API( PicHandle )
- GetTrackPict (Track theTrack,
- TimeValue time) TWOWORDINLINE(0x701E, 0xAAAA);
- EXTERN_API( PicHandle )
- GetMoviePosterPict (Movie theMovie) THREEWORDINLINE(0x303C, 0x00F7, 0xAAAA);
- /* called between Begin & EndUpdate */
- EXTERN_API( OSErr )
- UpdateMovie (Movie theMovie) TWOWORDINLINE(0x701F, 0xAAAA);
- EXTERN_API( OSErr )
- InvalidateMovieRegion (Movie theMovie,
- RgnHandle invalidRgn) THREEWORDINLINE(0x303C, 0x022A, 0xAAAA);
- /**** spatial movie routines ****/
- EXTERN_API( void )
- GetMovieBox (Movie theMovie,
- Rect * boxRect) THREEWORDINLINE(0x303C, 0x00F9, 0xAAAA);
- EXTERN_API( void )
- SetMovieBox (Movie theMovie,
- const Rect * boxRect) THREEWORDINLINE(0x303C, 0x00FA, 0xAAAA);
- /** movie display clip */
- EXTERN_API( RgnHandle )
- GetMovieDisplayClipRgn (Movie theMovie) THREEWORDINLINE(0x303C, 0x00FC, 0xAAAA);
- EXTERN_API( void )
- SetMovieDisplayClipRgn (Movie theMovie,
- RgnHandle theClip) THREEWORDINLINE(0x303C, 0x00FD, 0xAAAA);
- /** movie src clip */
- EXTERN_API( RgnHandle )
- GetMovieClipRgn (Movie theMovie) THREEWORDINLINE(0x303C, 0x0100, 0xAAAA);
- EXTERN_API( void )
- SetMovieClipRgn (Movie theMovie,
- RgnHandle theClip) THREEWORDINLINE(0x303C, 0x0101, 0xAAAA);
- /** track src clip */
- EXTERN_API( RgnHandle )
- GetTrackClipRgn (Track theTrack) THREEWORDINLINE(0x303C, 0x0102, 0xAAAA);
- EXTERN_API( void )
- SetTrackClipRgn (Track theTrack,
- RgnHandle theClip) THREEWORDINLINE(0x303C, 0x0103, 0xAAAA);
- /** bounds in display space (not clipped by display clip) */
- EXTERN_API( RgnHandle )
- GetMovieDisplayBoundsRgn (Movie theMovie) THREEWORDINLINE(0x303C, 0x00FB, 0xAAAA);
- EXTERN_API( RgnHandle )
- GetTrackDisplayBoundsRgn (Track theTrack) THREEWORDINLINE(0x303C, 0x0112, 0xAAAA);
- /** bounds in movie space */
- EXTERN_API( RgnHandle )
- GetMovieBoundsRgn (Movie theMovie) THREEWORDINLINE(0x303C, 0x00FE, 0xAAAA);
- EXTERN_API( RgnHandle )
- GetTrackMovieBoundsRgn (Track theTrack) THREEWORDINLINE(0x303C, 0x00FF, 0xAAAA);
- /** bounds in track space */
- EXTERN_API( RgnHandle )
- GetTrackBoundsRgn (Track theTrack) THREEWORDINLINE(0x303C, 0x0111, 0xAAAA);
- /** mattes - always in track space */
- EXTERN_API( PixMapHandle )
- GetTrackMatte (Track theTrack) THREEWORDINLINE(0x303C, 0x0115, 0xAAAA);
- EXTERN_API( void )
- SetTrackMatte (Track theTrack,
- PixMapHandle theMatte) THREEWORDINLINE(0x303C, 0x0116, 0xAAAA);
- EXTERN_API( void )
- DisposeMatte (PixMapHandle theMatte) THREEWORDINLINE(0x303C, 0x014A, 0xAAAA);
- /** video out */
- EXTERN_API( void )
- SetMovieVideoOutput (Movie theMovie,
- ComponentInstance vout) THREEWORDINLINE(0x303C, 0x0340, 0xAAAA);
- /*************************
- * calls for getting/saving movies
- **************************/
- EXTERN_API( Movie )
- NewMovie (long flags) THREEWORDINLINE(0x303C, 0x0187, 0xAAAA);
- EXTERN_API( OSErr )
- PutMovieIntoHandle (Movie theMovie,
- Handle publicMovie) TWOWORDINLINE(0x7022, 0xAAAA);
- EXTERN_API( OSErr )
- PutMovieIntoDataFork (Movie theMovie,
- short fRefNum,
- long offset,
- long maxSize) THREEWORDINLINE(0x303C, 0x01B4, 0xAAAA);
- EXTERN_API( OSErr )
- PutMovieIntoDataFork64 (Movie theMovie,
- long fRefNum,
- const wide * offset,
- unsigned long maxSize) THREEWORDINLINE(0x303C, 0x02EA, 0xAAAA);
- EXTERN_API( OSErr )
- PutMovieIntoStorage (Movie theMovie,
- DataHandler dh,
- const wide * offset,
- unsigned long maxSize) THREEWORDINLINE(0x303C, 0x0391, 0xAAAA);
- EXTERN_API( OSErr )
- PutMovieForDataRefIntoHandle (Movie theMovie,
- Handle dataRef,
- OSType dataRefType,
- Handle publicMovie) THREEWORDINLINE(0x303C, 0x0380, 0xAAAA);
- EXTERN_API( void )
- DisposeMovie (Movie theMovie) TWOWORDINLINE(0x7023, 0xAAAA);
- /*************************
- * Movie State Routines
- **************************/
- EXTERN_API( unsigned long )
- GetMovieCreationTime (Movie theMovie) TWOWORDINLINE(0x7026, 0xAAAA);
- EXTERN_API( unsigned long )
- GetMovieModificationTime (Movie theMovie) TWOWORDINLINE(0x7027, 0xAAAA);
- EXTERN_API( TimeScale )
- GetMovieTimeScale (Movie theMovie) TWOWORDINLINE(0x7029, 0xAAAA);
- EXTERN_API( void )
- SetMovieTimeScale (Movie theMovie,
- TimeScale timeScale) TWOWORDINLINE(0x702A, 0xAAAA);
- EXTERN_API( TimeValue )
- GetMovieDuration (Movie theMovie) TWOWORDINLINE(0x702B, 0xAAAA);
- EXTERN_API( Fixed )
- GetMovieRate (Movie theMovie) TWOWORDINLINE(0x702C, 0xAAAA);
- EXTERN_API( void )
- SetMovieRate (Movie theMovie,
- Fixed rate) TWOWORDINLINE(0x702D, 0xAAAA);
- EXTERN_API( Fixed )
- GetMoviePreferredRate (Movie theMovie) THREEWORDINLINE(0x303C, 0x00F3, 0xAAAA);
- EXTERN_API( void )
- SetMoviePreferredRate (Movie theMovie,
- Fixed rate) THREEWORDINLINE(0x303C, 0x00F4, 0xAAAA);
- EXTERN_API( short )
- GetMoviePreferredVolume (Movie theMovie) THREEWORDINLINE(0x303C, 0x00F5, 0xAAAA);
- EXTERN_API( void )
- SetMoviePreferredVolume (Movie theMovie,
- short volume) THREEWORDINLINE(0x303C, 0x00F6, 0xAAAA);
- EXTERN_API( short )
- GetMovieVolume (Movie theMovie) TWOWORDINLINE(0x702E, 0xAAAA);
- EXTERN_API( void )
- SetMovieVolume (Movie theMovie,
- short volume) TWOWORDINLINE(0x702F, 0xAAAA);
- EXTERN_API( void )
- GetMovieMatrix (Movie theMovie,
- MatrixRecord * matrix) TWOWORDINLINE(0x7031, 0xAAAA);
- EXTERN_API( void )
- SetMovieMatrix (Movie theMovie,
- const MatrixRecord * matrix) TWOWORDINLINE(0x7032, 0xAAAA);
- EXTERN_API( void )
- GetMoviePreviewTime (Movie theMovie,
- TimeValue * previewTime,
- TimeValue * previewDuration) TWOWORDINLINE(0x7033, 0xAAAA);
- EXTERN_API( void )
- SetMoviePreviewTime (Movie theMovie,
- TimeValue previewTime,
- TimeValue previewDuration) TWOWORDINLINE(0x7034, 0xAAAA);
- EXTERN_API( TimeValue )
- GetMoviePosterTime (Movie theMovie) TWOWORDINLINE(0x7035, 0xAAAA);
- EXTERN_API( void )
- SetMoviePosterTime (Movie theMovie,
- TimeValue posterTime) TWOWORDINLINE(0x7036, 0xAAAA);
- EXTERN_API( void )
- GetMovieSelection (Movie theMovie,
- TimeValue * selectionTime,
- TimeValue * selectionDuration) TWOWORDINLINE(0x7037, 0xAAAA);
- EXTERN_API( void )
- SetMovieSelection (Movie theMovie,
- TimeValue selectionTime,
- TimeValue selectionDuration) TWOWORDINLINE(0x7038, 0xAAAA);
- EXTERN_API( void )
- SetMovieActiveSegment (Movie theMovie,
- TimeValue startTime,
- TimeValue duration) THREEWORDINLINE(0x303C, 0x015C, 0xAAAA);
- EXTERN_API( void )
- GetMovieActiveSegment (Movie theMovie,
- TimeValue * startTime,
- TimeValue * duration) THREEWORDINLINE(0x303C, 0x015D, 0xAAAA);
- EXTERN_API( TimeValue )
- GetMovieTime (Movie theMovie,
- TimeRecord * currentTime) TWOWORDINLINE(0x7039, 0xAAAA);
- EXTERN_API( void )
- SetMovieTime (Movie theMovie,
- const TimeRecord * newtime) TWOWORDINLINE(0x703C, 0xAAAA);
- EXTERN_API( void )
- SetMovieTimeValue (Movie theMovie,
- TimeValue newtime) TWOWORDINLINE(0x703D, 0xAAAA);
- EXTERN_API( UserData )
- GetMovieUserData (Movie theMovie) TWOWORDINLINE(0x703E, 0xAAAA);
- EXTERN_API( OSErr )
- QTGetTimeUntilNextTask (long * duration,
- long scale) THREEWORDINLINE(0x303C, 0x036F, 0xAAAA);
- EXTERN_API( OSErr )
- QTInstallNextTaskNeededSoonerCallback (QTNextTaskNeededSoonerCallbackUPP callbackProc,
- TimeScale scale,
- unsigned long flags,
- void * refcon) THREEWORDINLINE(0x303C, 0x0376, 0xAAAA);
- EXTERN_API( OSErr )
- QTUninstallNextTaskNeededSoonerCallback (QTNextTaskNeededSoonerCallbackUPP callbackProc,
- void * refcon) THREEWORDINLINE(0x303C, 0x0377, 0xAAAA);
- /*************************
- * Track/Media finding routines
- **************************/
- EXTERN_API( long )
- GetMovieTrackCount (Movie theMovie) TWOWORDINLINE(0x703F, 0xAAAA);
- EXTERN_API( Track )
- GetMovieTrack (Movie theMovie,
- long trackID) TWOWORDINLINE(0x7040, 0xAAAA);
- EXTERN_API( Track )
- GetMovieIndTrack (Movie theMovie,
- long index) THREEWORDINLINE(0x303C, 0x0117, 0xAAAA);
- EXTERN_API( Track )
- GetMovieIndTrackType (Movie theMovie,
- long index,
- OSType trackType,
- long flags) THREEWORDINLINE(0x303C, 0x0208, 0xAAAA);
- EXTERN_API( long )
- GetTrackID (Track theTrack) THREEWORDINLINE(0x303C, 0x0127, 0xAAAA);
- EXTERN_API( Movie )
- GetTrackMovie (Track theTrack) THREEWORDINLINE(0x303C, 0x00D0, 0xAAAA);
- /*************************
- * Track creation routines
- **************************/
- EXTERN_API( Track )
- NewMovieTrack (Movie theMovie,
- Fixed width,
- Fixed height,
- short trackVolume) THREEWORDINLINE(0x303C, 0x0188, 0xAAAA);
- EXTERN_API( void )
- DisposeMovieTrack (Track theTrack) TWOWORDINLINE(0x7042, 0xAAAA);
- /*************************
- * Track State routines
- **************************/
- EXTERN_API( unsigned long )
- GetTrackCreationTime (Track theTrack) TWOWORDINLINE(0x7043, 0xAAAA);
- EXTERN_API( unsigned long )
- GetTrackModificationTime (Track theTrack) TWOWORDINLINE(0x7044, 0xAAAA);
- EXTERN_API( Boolean )
- GetTrackEnabled (Track theTrack) TWOWORDINLINE(0x7045, 0xAAAA);
- EXTERN_API( void )
- SetTrackEnabled (Track theTrack,
- Boolean isEnabled) TWOWORDINLINE(0x7046, 0xAAAA);
- EXTERN_API( long )
- GetTrackUsage (Track theTrack) TWOWORDINLINE(0x7047, 0xAAAA);
- EXTERN_API( void )
- SetTrackUsage (Track theTrack,
- long usage) TWOWORDINLINE(0x7048, 0xAAAA);
- EXTERN_API( TimeValue )
- GetTrackDuration (Track theTrack) TWOWORDINLINE(0x704B, 0xAAAA);
- EXTERN_API( TimeValue )
- GetTrackOffset (Track theTrack) TWOWORDINLINE(0x704C, 0xAAAA);
- EXTERN_API( void )
- SetTrackOffset (Track theTrack,
- TimeValue movieOffsetTime) TWOWORDINLINE(0x704D, 0xAAAA);
- EXTERN_API( short )
- GetTrackLayer (Track theTrack) TWOWORDINLINE(0x7050, 0xAAAA);
- EXTERN_API( void )
- SetTrackLayer (Track theTrack,
- short layer) TWOWORDINLINE(0x7051, 0xAAAA);
- EXTERN_API( Track )
- GetTrackAlternate (Track theTrack) TWOWORDINLINE(0x7052, 0xAAAA);
- EXTERN_API( void )
- SetTrackAlternate (Track theTrack,
- Track alternateT) TWOWORDINLINE(0x7053, 0xAAAA);
- EXTERN_API( void )
- SetAutoTrackAlternatesEnabled (Movie theMovie,
- Boolean enable) THREEWORDINLINE(0x303C, 0x015E, 0xAAAA);
- EXTERN_API( void )
- SelectMovieAlternates (Movie theMovie) THREEWORDINLINE(0x303C, 0x015F, 0xAAAA);
- EXTERN_API( short )
- GetTrackVolume (Track theTrack) TWOWORDINLINE(0x7054, 0xAAAA);
- EXTERN_API( void )
- SetTrackVolume (Track theTrack,
- short volume) TWOWORDINLINE(0x7055, 0xAAAA);
- EXTERN_API( void )
- GetTrackMatrix (Track theTrack,
- MatrixRecord * matrix) TWOWORDINLINE(0x7056, 0xAAAA);
- EXTERN_API( void )
- SetTrackMatrix (Track theTrack,
- const MatrixRecord * matrix) TWOWORDINLINE(0x7057, 0xAAAA);
- EXTERN_API( void )
- GetTrackDimensions (Track theTrack,
- Fixed * width,
- Fixed * height) TWOWORDINLINE(0x705D, 0xAAAA);
- EXTERN_API( void )
- SetTrackDimensions (Track theTrack,
- Fixed width,
- Fixed height) TWOWORDINLINE(0x705E, 0xAAAA);
- EXTERN_API( UserData )
- GetTrackUserData (Track theTrack) TWOWORDINLINE(0x705F, 0xAAAA);
- EXTERN_API( OSErr )
- GetTrackDisplayMatrix (Track theTrack,
- MatrixRecord * matrix) THREEWORDINLINE(0x303C, 0x0263, 0xAAAA);
- EXTERN_API( OSErr )
- GetTrackSoundLocalizationSettings (Track theTrack,
- Handle * settings) THREEWORDINLINE(0x303C, 0x0282, 0xAAAA);
- EXTERN_API( OSErr )
- SetTrackSoundLocalizationSettings (Track theTrack,
- Handle settings) THREEWORDINLINE(0x303C, 0x0283, 0xAAAA);
- /*************************
- * get Media routines
- **************************/
- EXTERN_API( Media )
- NewTrackMedia (Track theTrack,
- OSType mediaType,
- TimeScale timeScale,
- Handle dataRef,
- OSType dataRefType) THREEWORDINLINE(0x303C, 0x018E, 0xAAAA);
- EXTERN_API( void )
- DisposeTrackMedia (Media theMedia) TWOWORDINLINE(0x7061, 0xAAAA);
- EXTERN_API( Media )
- GetTrackMedia (Track theTrack) TWOWORDINLINE(0x7062, 0xAAAA);
- EXTERN_API( Track )
- GetMediaTrack (Media theMedia) THREEWORDINLINE(0x303C, 0x00C5, 0xAAAA);
- /*************************
- * Media State routines
- **************************/
- EXTERN_API( unsigned long )
- GetMediaCreationTime (Media theMedia) TWOWORDINLINE(0x7066, 0xAAAA);
- EXTERN_API( unsigned long )
- GetMediaModificationTime (Media theMedia) TWOWORDINLINE(0x7067, 0xAAAA);
- EXTERN_API( TimeScale )
- GetMediaTimeScale (Media theMedia) TWOWORDINLINE(0x7068, 0xAAAA);
- EXTERN_API( void )
- SetMediaTimeScale (Media theMedia,
- TimeScale timeScale) TWOWORDINLINE(0x7069, 0xAAAA);
- EXTERN_API( TimeValue )
- GetMediaDuration (Media theMedia) TWOWORDINLINE(0x706A, 0xAAAA);
- EXTERN_API( short )
- GetMediaLanguage (Media theMedia) TWOWORDINLINE(0x706B, 0xAAAA);
- EXTERN_API( void )
- SetMediaLanguage (Media theMedia,
- short language) TWOWORDINLINE(0x706C, 0xAAAA);
- EXTERN_API( short )
- GetMediaQuality (Media theMedia) TWOWORDINLINE(0x706D, 0xAAAA);
- EXTERN_API( void )
- SetMediaQuality (Media theMedia,
- short quality) TWOWORDINLINE(0x706E, 0xAAAA);
- EXTERN_API( void )
- GetMediaHandlerDescription (Media theMedia,
- OSType * mediaType,
- Str255 creatorName,
- OSType * creatorManufacturer) TWOWORDINLINE(0x706F, 0xAAAA);
- EXTERN_API( UserData )
- GetMediaUserData (Media theMedia) TWOWORDINLINE(0x7070, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaInputMap (Media theMedia,
- QTAtomContainer * inputMap) THREEWORDINLINE(0x303C, 0x0249, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaInputMap (Media theMedia,
- QTAtomContainer inputMap) THREEWORDINLINE(0x303C, 0x024A, 0xAAAA);
- /*************************
- * Media Handler routines
- **************************/
- EXTERN_API( MediaHandler )
- GetMediaHandler (Media theMedia) TWOWORDINLINE(0x7071, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaHandler (Media theMedia,
- MediaHandlerComponent mH) THREEWORDINLINE(0x303C, 0x0190, 0xAAAA);
- /*************************
- * Media's Data routines
- **************************/
- EXTERN_API( OSErr )
- BeginMediaEdits (Media theMedia) TWOWORDINLINE(0x7072, 0xAAAA);
- EXTERN_API( OSErr )
- EndMediaEdits (Media theMedia) TWOWORDINLINE(0x7073, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaDefaultDataRefIndex (Media theMedia,
- short index) THREEWORDINLINE(0x303C, 0x01E0, 0xAAAA);
- EXTERN_API( void )
- GetMediaDataHandlerDescription (Media theMedia,
- short index,
- OSType * dhType,
- Str255 creatorName,
- OSType * creatorManufacturer) THREEWORDINLINE(0x303C, 0x019E, 0xAAAA);
- EXTERN_API( DataHandler )
- GetMediaDataHandler (Media theMedia,
- short index) THREEWORDINLINE(0x303C, 0x019F, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaDataHandler (Media theMedia,
- short index,
- DataHandlerComponent dataHandler) THREEWORDINLINE(0x303C, 0x01A0, 0xAAAA);
- EXTERN_API( Component )
- GetDataHandler (Handle dataRef,
- OSType dataHandlerSubType,
- long flags) THREEWORDINLINE(0x303C, 0x01ED, 0xAAAA);
- EXTERN_API( OSErr )
- OpenADataHandler (Handle dataRef,
- OSType dataHandlerSubType,
- Handle anchorDataRef,
- OSType anchorDataRefType,
- TimeBase tb,
- long flags,
- ComponentInstance * dh) THREEWORDINLINE(0x303C, 0x031C, 0xAAAA);
- /*************************
- * Media Sample Table Routines
- **************************/
- EXTERN_API( long )
- GetMediaSampleDescriptionCount (Media theMedia) TWOWORDINLINE(0x7077, 0xAAAA);
- EXTERN_API( void )
- GetMediaSampleDescription (Media theMedia,
- long index,
- SampleDescriptionHandle descH) TWOWORDINLINE(0x7078, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaSampleDescription (Media theMedia,
- long index,
- SampleDescriptionHandle descH) THREEWORDINLINE(0x303C, 0x01D0, 0xAAAA);
- EXTERN_API( long )
- GetMediaSampleCount (Media theMedia) TWOWORDINLINE(0x7079, 0xAAAA);
- EXTERN_API( long )
- GetMediaSyncSampleCount (Media theMedia) THREEWORDINLINE(0x303C, 0x02B2, 0xAAAA);
- EXTERN_API( void )
- SampleNumToMediaTime (Media theMedia,
- long logicalSampleNum,
- TimeValue * sampleTime,
- TimeValue * sampleDuration) TWOWORDINLINE(0x707A, 0xAAAA);
- EXTERN_API( void )
- MediaTimeToSampleNum (Media theMedia,
- TimeValue time,
- long * sampleNum,
- TimeValue * sampleTime,
- TimeValue * sampleDuration) TWOWORDINLINE(0x707B, 0xAAAA);
- EXTERN_API( OSErr )
- AddMediaSample (Media theMedia,
- Handle dataIn,
- long inOffset,
- unsigned long size,
- TimeValue durationPerSample,
- SampleDescriptionHandle sampleDescriptionH,
- long numberOfSamples,
- short sampleFlags,
- TimeValue * sampleTime) TWOWORDINLINE(0x707C, 0xAAAA);
- EXTERN_API( OSErr )
- AddMediaSampleReference (Media theMedia,
- long dataOffset,
- unsigned long size,
- TimeValue durationPerSample,
- SampleDescriptionHandle sampleDescriptionH,
- long numberOfSamples,
- short sampleFlags,
- TimeValue * sampleTime) TWOWORDINLINE(0x707D, 0xAAAA);
- EXTERN_API( OSErr )
- AddMediaSampleReferences (Media theMedia,
- SampleDescriptionHandle sampleDescriptionH,
- long numberOfSamples,
- SampleReferencePtr sampleRefs,
- TimeValue * sampleTime) THREEWORDINLINE(0x303C, 0x01F7, 0xAAAA);
- EXTERN_API( OSErr )
- AddMediaSampleReferences64 (Media theMedia,
- SampleDescriptionHandle sampleDescriptionH,
- long numberOfSamples,
- SampleReference64Ptr sampleRefs,
- TimeValue * sampleTime) THREEWORDINLINE(0x303C, 0x02E8, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaSample (Media theMedia,
- Handle dataOut,
- long maxSizeToGrow,
- long * size,
- TimeValue time,
- TimeValue * sampleTime,
- TimeValue * durationPerSample,
- SampleDescriptionHandle sampleDescriptionH,
- long * sampleDescriptionIndex,
- long maxNumberOfSamples,
- long * numberOfSamples,
- short * sampleFlags) TWOWORDINLINE(0x707E, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaSampleReference (Media theMedia,
- long * dataOffset,
- long * size,
- TimeValue time,
- TimeValue * sampleTime,
- TimeValue * durationPerSample,
- SampleDescriptionHandle sampleDescriptionH,
- long * sampleDescriptionIndex,
- long maxNumberOfSamples,
- long * numberOfSamples,
- short * sampleFlags) TWOWORDINLINE(0x707F, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaSampleReferences (Media theMedia,
- TimeValue time,
- TimeValue * sampleTime,
- SampleDescriptionHandle sampleDescriptionH,
- long * sampleDescriptionIndex,
- long maxNumberOfEntries,
- long * actualNumberofEntries,
- SampleReferencePtr sampleRefs) THREEWORDINLINE(0x303C, 0x0235, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaSampleReferences64 (Media theMedia,
- TimeValue time,
- TimeValue * sampleTime,
- SampleDescriptionHandle sampleDescriptionH,
- long * sampleDescriptionIndex,
- long maxNumberOfEntries,
- long * actualNumberofEntries,
- SampleReference64Ptr sampleRefs) THREEWORDINLINE(0x303C, 0x02E9, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaPreferredChunkSize (Media theMedia,
- long maxChunkSize) THREEWORDINLINE(0x303C, 0x01F8, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaPreferredChunkSize (Media theMedia,
- long * maxChunkSize) THREEWORDINLINE(0x303C, 0x01F9, 0xAAAA);
- EXTERN_API( OSErr )
- SetMediaShadowSync (Media theMedia,
- long frameDiffSampleNum,
- long syncSampleNum) THREEWORDINLINE(0x303C, 0x0121, 0xAAAA);
- EXTERN_API( OSErr )
- GetMediaShadowSync (Media theMedia,