Movies.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:338k
- EXTERN_API(void)
- DisposeMoviePrePrerollCompleteUPP (MoviePrePrerollCompleteUPP userUPP);
- EXTERN_API(void)
- DisposeQTNextTaskNeededSoonerCallbackUPP (QTNextTaskNeededSoonerCallbackUPP userUPP);
- EXTERN_API(void)
- DisposeMoviesErrorUPP (MoviesErrorUPP userUPP);
- EXTERN_API(void)
- DisposeTweenerDataUPP (TweenerDataUPP userUPP);
- EXTERN_API(void)
- DisposeQTEffectListFilterUPP (QTEffectListFilterUPP userUPP);
- EXTERN_API(void)
- DisposeQTBandwidthNotificationUPP (QTBandwidthNotificationUPP userUPP);
- EXTERN_API(void)
- InvokeQTCallBackUPP (QTCallBack cb,
- long refCon,
- QTCallBackUPP userUPP);
- EXTERN_API(void)
- InvokeQTSyncTaskUPP (void * task,
- QTSyncTaskUPP userUPP);
- EXTERN_API(OSErr)
- InvokeMovieRgnCoverUPP (Movie theMovie,
- RgnHandle changedRgn,
- long refcon,
- MovieRgnCoverUPP userUPP);
- EXTERN_API(OSErr)
- InvokeMovieProgressUPP (Movie theMovie,
- short message,
- short whatOperation,
- Fixed percentDone,
- long refcon,
- MovieProgressUPP userUPP);
- EXTERN_API(OSErr)
- InvokeMovieDrawingCompleteUPP (Movie theMovie,
- long refCon,
- MovieDrawingCompleteUPP userUPP);
- EXTERN_API(OSErr)
- InvokeTrackTransferUPP (Track t,
- long refCon,
- TrackTransferUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGetMovieUPP (long offset,
- long size,
- void * dataPtr,
- void * refCon,
- GetMovieUPP userUPP);
- EXTERN_API(Boolean)
- InvokeMoviePreviewCallOutUPP (long refcon,
- MoviePreviewCallOutUPP userUPP);
- EXTERN_API(OSErr)
- InvokeTextMediaUPP (Handle theText,
- Movie theMovie,
- short * displayFlag,
- long refcon,
- TextMediaUPP userUPP);
- EXTERN_API(OSErr)
- InvokeActionsUPP (void * refcon,
- Track targetTrack,
- long targetRefCon,
- QTEventRecordPtr theEvent,
- ActionsUPP userUPP);
- EXTERN_API(OSErr)
- InvokeDoMCActionUPP (void * refcon,
- short action,
- void * params,
- Boolean * handled,
- DoMCActionUPP userUPP);
- EXTERN_API(OSErr)
- InvokeMovieExecuteWiredActionsUPP (Movie theMovie,
- void * refcon,
- long flags,
- QTAtomContainer wiredActions,
- MovieExecuteWiredActionsUPP userUPP);
- EXTERN_API(void)
- InvokeMoviePrePrerollCompleteUPP (Movie theMovie,
- OSErr prerollErr,
- void * refcon,
- MoviePrePrerollCompleteUPP userUPP);
- EXTERN_API(void)
- InvokeQTNextTaskNeededSoonerCallbackUPP (TimeValue duration,
- unsigned long flags,
- void * refcon,
- QTNextTaskNeededSoonerCallbackUPP userUPP);
- EXTERN_API(void)
- InvokeMoviesErrorUPP (OSErr theErr,
- long refcon,
- MoviesErrorUPP userUPP);
- EXTERN_API(ComponentResult)
- InvokeTweenerDataUPP (TweenRecord * tr,
- void * tweenData,
- long tweenDataSize,
- long dataDescriptionSeed,
- Handle dataDescription,
- ICMCompletionProcRecordPtr asyncCompletionProc,
- UniversalProcPtr transferProc,
- void * refCon,
- TweenerDataUPP userUPP);
- EXTERN_API(Boolean)
- InvokeQTEffectListFilterUPP (Component effect,
- long effectMinSource,
- long effectMaxSource,
- OSType majorClass,
- OSType minorClass,
- void * refcon,
- QTEffectListFilterUPP userUPP);
- EXTERN_API(OSErr)
- InvokeQTBandwidthNotificationUPP (long flags,
- void * reserved,
- void * refcon,
- QTBandwidthNotificationUPP userUPP);
- #else
- enum { uppQTCallBackProcInfo = 0x000003C0 }; /* pascal no_return_value Func(4_bytes, 4_bytes) */
- enum { uppQTSyncTaskProcInfo = 0x000000C0 }; /* pascal no_return_value Func(4_bytes) */
- enum { uppMovieRgnCoverProcInfo = 0x00000FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- enum { uppMovieProgressProcInfo = 0x0000FAE0 }; /* pascal 2_bytes Func(4_bytes, 2_bytes, 2_bytes, 4_bytes, 4_bytes) */
- enum { uppMovieDrawingCompleteProcInfo = 0x000003E0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes) */
- enum { uppTrackTransferProcInfo = 0x000003E0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes) */
- enum { uppGetMovieProcInfo = 0x00003FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppMoviePreviewCallOutProcInfo = 0x000000D0 }; /* pascal 1_byte Func(4_bytes) */
- enum { uppTextMediaProcInfo = 0x00003FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppActionsProcInfo = 0x00003FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppDoMCActionProcInfo = 0x00003EE0 }; /* pascal 2_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
- enum { uppMovieExecuteWiredActionsProcInfo = 0x00003FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppMoviePrePrerollCompleteProcInfo = 0x00000EC0 }; /* pascal no_return_value Func(4_bytes, 2_bytes, 4_bytes) */
- enum { uppQTNextTaskNeededSoonerCallbackProcInfo = 0x00000FC0 }; /* pascal no_return_value Func(4_bytes, 4_bytes, 4_bytes) */
- enum { uppMoviesErrorProcInfo = 0x00000380 }; /* pascal no_return_value Func(2_bytes, 4_bytes) */
- enum { uppTweenerDataProcInfo = 0x003FFFF0 }; /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppQTEffectListFilterProcInfo = 0x0003FFD0 }; /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppQTBandwidthNotificationProcInfo = 0x00000FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewQTCallBackUPP(userRoutine) (QTCallBackUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppQTCallBackProcInfo, GetCurrentArchitecture())
- #define NewQTSyncTaskUPP(userRoutine) (QTSyncTaskUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppQTSyncTaskProcInfo, GetCurrentArchitecture())
- #define NewMovieRgnCoverUPP(userRoutine) (MovieRgnCoverUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieRgnCoverProcInfo, GetCurrentArchitecture())
- #define NewMovieProgressUPP(userRoutine) (MovieProgressUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieProgressProcInfo, GetCurrentArchitecture())
- #define NewMovieDrawingCompleteUPP(userRoutine) (MovieDrawingCompleteUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieDrawingCompleteProcInfo, GetCurrentArchitecture())
- #define NewTrackTransferUPP(userRoutine) (TrackTransferUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppTrackTransferProcInfo, GetCurrentArchitecture())
- #define NewGetMovieUPP(userRoutine) (GetMovieUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGetMovieProcInfo, GetCurrentArchitecture())
- #define NewMoviePreviewCallOutUPP(userRoutine) (MoviePreviewCallOutUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMoviePreviewCallOutProcInfo, GetCurrentArchitecture())
- #define NewTextMediaUPP(userRoutine) (TextMediaUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppTextMediaProcInfo, GetCurrentArchitecture())
- #define NewActionsUPP(userRoutine) (ActionsUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppActionsProcInfo, GetCurrentArchitecture())
- #define NewDoMCActionUPP(userRoutine) (DoMCActionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDoMCActionProcInfo, GetCurrentArchitecture())
- #define NewMovieExecuteWiredActionsUPP(userRoutine) (MovieExecuteWiredActionsUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExecuteWiredActionsProcInfo, GetCurrentArchitecture())
- #define NewMoviePrePrerollCompleteUPP(userRoutine) (MoviePrePrerollCompleteUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMoviePrePrerollCompleteProcInfo, GetCurrentArchitecture())
- #define NewQTNextTaskNeededSoonerCallbackUPP(userRoutine) (QTNextTaskNeededSoonerCallbackUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppQTNextTaskNeededSoonerCallbackProcInfo, GetCurrentArchitecture())
- #define NewMoviesErrorUPP(userRoutine) (MoviesErrorUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMoviesErrorProcInfo, GetCurrentArchitecture())
- #define NewTweenerDataUPP(userRoutine) (TweenerDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppTweenerDataProcInfo, GetCurrentArchitecture())
- #define NewQTEffectListFilterUPP(userRoutine) (QTEffectListFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppQTEffectListFilterProcInfo, GetCurrentArchitecture())
- #define NewQTBandwidthNotificationUPP(userRoutine) (QTBandwidthNotificationUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppQTBandwidthNotificationProcInfo, GetCurrentArchitecture())
- #define DisposeQTCallBackUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeQTSyncTaskUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMovieRgnCoverUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMovieProgressUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMovieDrawingCompleteUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeTrackTransferUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeGetMovieUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMoviePreviewCallOutUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeTextMediaUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeActionsUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeDoMCActionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMovieExecuteWiredActionsUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMoviePrePrerollCompleteUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeQTNextTaskNeededSoonerCallbackUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMoviesErrorUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeTweenerDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeQTEffectListFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeQTBandwidthNotificationUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeQTCallBackUPP(cb, refCon, userUPP) CALL_TWO_PARAMETER_UPP((userUPP), uppQTCallBackProcInfo, (cb), (refCon))
- #define InvokeQTSyncTaskUPP(task, userUPP) CALL_ONE_PARAMETER_UPP((userUPP), uppQTSyncTaskProcInfo, (task))
- #define InvokeMovieRgnCoverUPP(theMovie, changedRgn, refcon, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppMovieRgnCoverProcInfo, (theMovie), (changedRgn), (refcon))
- #define InvokeMovieProgressUPP(theMovie, message, whatOperation, percentDone, refcon, userUPP) (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppMovieProgressProcInfo, (theMovie), (message), (whatOperation), (percentDone), (refcon))
- #define InvokeMovieDrawingCompleteUPP(theMovie, refCon, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppMovieDrawingCompleteProcInfo, (theMovie), (refCon))
- #define InvokeTrackTransferUPP(t, refCon, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppTrackTransferProcInfo, (t), (refCon))
- #define InvokeGetMovieUPP(offset, size, dataPtr, refCon, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGetMovieProcInfo, (offset), (size), (dataPtr), (refCon))
- #define InvokeMoviePreviewCallOutUPP(refcon, userUPP) (Boolean)CALL_ONE_PARAMETER_UPP((userUPP), uppMoviePreviewCallOutProcInfo, (refcon))
- #define InvokeTextMediaUPP(theText, theMovie, displayFlag, refcon, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppTextMediaProcInfo, (theText), (theMovie), (displayFlag), (refcon))
- #define InvokeActionsUPP(refcon, targetTrack, targetRefCon, theEvent, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppActionsProcInfo, (refcon), (targetTrack), (targetRefCon), (theEvent))
- #define InvokeDoMCActionUPP(refcon, action, params, handled, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppDoMCActionProcInfo, (refcon), (action), (params), (handled))
- #define InvokeMovieExecuteWiredActionsUPP(theMovie, refcon, flags, wiredActions, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppMovieExecuteWiredActionsProcInfo, (theMovie), (refcon), (flags), (wiredActions))
- #define InvokeMoviePrePrerollCompleteUPP(theMovie, prerollErr, refcon, userUPP) CALL_THREE_PARAMETER_UPP((userUPP), uppMoviePrePrerollCompleteProcInfo, (theMovie), (prerollErr), (refcon))
- #define InvokeQTNextTaskNeededSoonerCallbackUPP(duration, flags, refcon, userUPP) CALL_THREE_PARAMETER_UPP((userUPP), uppQTNextTaskNeededSoonerCallbackProcInfo, (duration), (flags), (refcon))
- #define InvokeMoviesErrorUPP(theErr, refcon, userUPP) CALL_TWO_PARAMETER_UPP((userUPP), uppMoviesErrorProcInfo, (theErr), (refcon))
- #define InvokeTweenerDataUPP(tr, tweenData, tweenDataSize, dataDescriptionSeed, dataDescription, asyncCompletionProc, transferProc, refCon, userUPP) (ComponentResult)CALL_EIGHT_PARAMETER_UPP((userUPP), uppTweenerDataProcInfo, (tr), (tweenData), (tweenDataSize), (dataDescriptionSeed), (dataDescription), (asyncCompletionProc), (transferProc), (refCon))
- #define InvokeQTEffectListFilterUPP(effect, effectMinSource, effectMaxSource, majorClass, minorClass, refcon, userUPP) (Boolean)CALL_SIX_PARAMETER_UPP((userUPP), uppQTEffectListFilterProcInfo, (effect), (effectMinSource), (effectMaxSource), (majorClass), (minorClass), (refcon))
- #define InvokeQTBandwidthNotificationUPP(flags, reserved, refcon, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppQTBandwidthNotificationProcInfo, (flags), (reserved), (refcon))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewQTCallBackProc(userRoutine) NewQTCallBackUPP(userRoutine)
- #define NewQTSyncTaskProc(userRoutine) NewQTSyncTaskUPP(userRoutine)
- #define NewMovieRgnCoverProc(userRoutine) NewMovieRgnCoverUPP(userRoutine)
- #define NewMovieProgressProc(userRoutine) NewMovieProgressUPP(userRoutine)
- #define NewMovieDrawingCompleteProc(userRoutine) NewMovieDrawingCompleteUPP(userRoutine)
- #define NewTrackTransferProc(userRoutine) NewTrackTransferUPP(userRoutine)
- #define NewGetMovieProc(userRoutine) NewGetMovieUPP(userRoutine)
- #define NewMoviePreviewCallOutProc(userRoutine) NewMoviePreviewCallOutUPP(userRoutine)
- #define NewTextMediaProc(userRoutine) NewTextMediaUPP(userRoutine)
- #define NewActionsProc(userRoutine) NewActionsUPP(userRoutine)
- #define NewDoMCActionProc(userRoutine) NewDoMCActionUPP(userRoutine)
- #define NewMovieExecuteWiredActionsProc(userRoutine) NewMovieExecuteWiredActionsUPP(userRoutine)
- #define NewMoviePrePrerollCompleteProc(userRoutine) NewMoviePrePrerollCompleteUPP(userRoutine)
- #define NewQTNextTaskNeededSoonerCallbackProc(userRoutine) NewQTNextTaskNeededSoonerCallbackUPP(userRoutine)
- #define NewMoviesErrorProc(userRoutine) NewMoviesErrorUPP(userRoutine)
- #define NewTweenerDataProc(userRoutine) NewTweenerDataUPP(userRoutine)
- #define NewQTEffectListFilterProc(userRoutine) NewQTEffectListFilterUPP(userRoutine)
- #define NewQTBandwidthNotificationProc(userRoutine) NewQTBandwidthNotificationUPP(userRoutine)
- #define CallQTCallBackProc(userRoutine, cb, refCon) InvokeQTCallBackUPP(cb, refCon, userRoutine)
- #define CallQTSyncTaskProc(userRoutine, task) InvokeQTSyncTaskUPP(task, userRoutine)
- #define CallMovieRgnCoverProc(userRoutine, theMovie, changedRgn, refcon) InvokeMovieRgnCoverUPP(theMovie, changedRgn, refcon, userRoutine)
- #define CallMovieProgressProc(userRoutine, theMovie, message, whatOperation, percentDone, refcon) InvokeMovieProgressUPP(theMovie, message, whatOperation, percentDone, refcon, userRoutine)
- #define CallMovieDrawingCompleteProc(userRoutine, theMovie, refCon) InvokeMovieDrawingCompleteUPP(theMovie, refCon, userRoutine)
- #define CallTrackTransferProc(userRoutine, t, refCon) InvokeTrackTransferUPP(t, refCon, userRoutine)
- #define CallGetMovieProc(userRoutine, offset, size, dataPtr, refCon) InvokeGetMovieUPP(offset, size, dataPtr, refCon, userRoutine)
- #define CallMoviePreviewCallOutProc(userRoutine, refcon) InvokeMoviePreviewCallOutUPP(refcon, userRoutine)
- #define CallTextMediaProc(userRoutine, theText, theMovie, displayFlag, refcon) InvokeTextMediaUPP(theText, theMovie, displayFlag, refcon, userRoutine)
- #define CallActionsProc(userRoutine, refcon, targetTrack, targetRefCon, theEvent) InvokeActionsUPP(refcon, targetTrack, targetRefCon, theEvent, userRoutine)
- #define CallDoMCActionProc(userRoutine, refcon, action, params, handled) InvokeDoMCActionUPP(refcon, action, params, handled, userRoutine)
- #define CallMovieExecuteWiredActionsProc(userRoutine, theMovie, refcon, flags, wiredActions) InvokeMovieExecuteWiredActionsUPP(theMovie, refcon, flags, wiredActions, userRoutine)
- #define CallMoviePrePrerollCompleteProc(userRoutine, theMovie, prerollErr, refcon) InvokeMoviePrePrerollCompleteUPP(theMovie, prerollErr, refcon, userRoutine)
- #define CallQTNextTaskNeededSoonerCallbackProc(userRoutine, duration, flags, refcon) InvokeQTNextTaskNeededSoonerCallbackUPP(duration, flags, refcon, userRoutine)
- #define CallMoviesErrorProc(userRoutine, theErr, refcon) InvokeMoviesErrorUPP(theErr, refcon, userRoutine)
- #define CallTweenerDataProc(userRoutine, tr, tweenData, tweenDataSize, dataDescriptionSeed, dataDescription, asyncCompletionProc, transferProc, refCon) InvokeTweenerDataUPP(tr, tweenData, tweenDataSize, dataDescriptionSeed, dataDescription, asyncCompletionProc, transferProc, refCon, userRoutine)
- #define CallQTEffectListFilterProc(userRoutine, effect, effectMinSource, effectMaxSource, majorClass, minorClass, refcon) InvokeQTEffectListFilterUPP(effect, effectMinSource, effectMaxSource, majorClass, minorClass, refcon, userRoutine)
- #define CallQTBandwidthNotificationProc(userRoutine, flags, reserved, refcon) InvokeQTBandwidthNotificationUPP(flags, reserved, refcon, userRoutine)
- /*****
- QT International Text Atom Support
- *****/
- enum {
- kITextRemoveEverythingBut = 0 << 1,
- kITextRemoveLeaveSuggestedAlternate = 1 << 1
- };
- enum {
- kITextAtomType = FOUR_CHAR_CODE('itxt'),
- kITextStringAtomType = FOUR_CHAR_CODE('text')
- };
- EXTERN_API( OSErr )
- ITextAddString (QTAtomContainer container,
- QTAtom parentAtom,
- RegionCode theRegionCode,
- ConstStr255Param theString) THREEWORDINLINE(0x303C, 0x027A, 0xAAAA);
- EXTERN_API( OSErr )
- ITextRemoveString (QTAtomContainer container,
- QTAtom parentAtom,
- RegionCode theRegionCode,
- long flags) THREEWORDINLINE(0x303C, 0x027B, 0xAAAA);
- EXTERN_API( OSErr )
- ITextGetString (QTAtomContainer container,
- QTAtom parentAtom,
- RegionCode requestedRegion,
- RegionCode * foundRegion,
- StringPtr theString) THREEWORDINLINE(0x303C, 0x027C, 0xAAAA);
- EXTERN_API( OSErr )
- QTTextToNativeText (Handle theText,
- long encoding,
- long flags) THREEWORDINLINE(0x303C, 0x02DB, 0xAAAA);
- /* QTParseTextHREF inContainer atoms*/
- enum {
- kQTParseTextHREFText = FOUR_CHAR_CODE('text'), /* string*/
- kQTParseTextHREFBaseURL = FOUR_CHAR_CODE('burl'), /* string*/
- kQTParseTextHREFClickPoint = FOUR_CHAR_CODE('clik'), /* Point; if present, QTParseTextHREF will expand URLs to support server-side image maps*/
- kQTParseTextHREFUseAltDelim = FOUR_CHAR_CODE('altd'), /* boolean; if no kQTParseTextHREFDelimiter, delim is ':'*/
- kQTParseTextHREFDelimiter = FOUR_CHAR_CODE('delm'), /* character*/
- kQTParseTextHREFRecomposeHREF = FOUR_CHAR_CODE('rhrf') /* Boolean; if true, QTParseTextHREF returns recomposed HREF with URL expanded as appropriate*/
- };
- /* QTParseTextHREF outContainer atoms*/
- enum {
- kQTParseTextHREFURL = FOUR_CHAR_CODE('url '), /* string*/
- kQTParseTextHREFTarget = FOUR_CHAR_CODE('targ'), /* string*/
- kQTParseTextHREFChapter = FOUR_CHAR_CODE('chap'), /* string*/
- kQTParseTextHREFIsAutoHREF = FOUR_CHAR_CODE('auto'), /* Boolean*/
- kQTParseTextHREFIsServerMap = FOUR_CHAR_CODE('smap'), /* Boolean*/
- kQTParseTextHREFHREF = FOUR_CHAR_CODE('href'), /* string; recomposed HREF with URL expanded as appropriate, suitable for mcActionLinkToURL*/
- kQTParseTextHREFEMBEDArgs = FOUR_CHAR_CODE('mbed') /* string; text between 'E<' and '>' to be used as new movie's embed tags*/
- };
- EXTERN_API( OSErr )
- QTParseTextHREF (char * href,
- SInt32 hrefLen,
- QTAtomContainer inContainer,
- QTAtomContainer * outContainer) THREEWORDINLINE(0x303C, 0x0319, 0xAAAA);
- /*************************
- * track reference types
- **************************/
- enum {
- kTrackReferenceChapterList = FOUR_CHAR_CODE('chap'),
- kTrackReferenceTimeCode = FOUR_CHAR_CODE('tmcd'),
- kTrackReferenceModifier = FOUR_CHAR_CODE('ssrc')
- };
- /*************************
- * modifier track types
- **************************/
- enum {
- kTrackModifierInput = 0x696E, /* is really 'in'*/
- kTrackModifierType = 0x7479, /* is really 'ty'*/
- kTrackModifierReference = FOUR_CHAR_CODE('ssrc'),
- kTrackModifierObjectID = FOUR_CHAR_CODE('obid'),
- kTrackModifierInputName = FOUR_CHAR_CODE('name')
- };
- enum {
- kInputMapSubInputID = FOUR_CHAR_CODE('subi')
- };
- enum {
- kTrackModifierTypeMatrix = 1,
- kTrackModifierTypeClip = 2,
- kTrackModifierTypeGraphicsMode = 5,
- kTrackModifierTypeVolume = 3,
- kTrackModifierTypeBalance = 4,
- kTrackModifierTypeImage = FOUR_CHAR_CODE('vide'), /* was kTrackModifierTypeSpriteImage*/
- kTrackModifierObjectMatrix = 6,
- kTrackModifierObjectGraphicsMode = 7,
- kTrackModifierType3d4x4Matrix = 8,
- kTrackModifierCameraData = 9,
- kTrackModifierSoundLocalizationData = 10,
- kTrackModifierObjectImageIndex = 11,
- kTrackModifierObjectLayer = 12,
- kTrackModifierObjectVisible = 13,
- kTrackModifierAngleAspectCamera = 14,
- kTrackModifierPanAngle = FOUR_CHAR_CODE('pan '),
- kTrackModifierTiltAngle = FOUR_CHAR_CODE('tilt'),
- kTrackModifierVerticalFieldOfViewAngle = FOUR_CHAR_CODE('fov '),
- kTrackModifierObjectQTEventSend = FOUR_CHAR_CODE('evnt'),
- kTrackModifierObjectCanBeHitTested = 15
- };
- struct ModifierTrackGraphicsModeRecord {
- long graphicsMode;
- RGBColor opColor;
- };
- typedef struct ModifierTrackGraphicsModeRecord ModifierTrackGraphicsModeRecord;
- /*************************
- * tween track types
- **************************/
- enum {
- kTweenTypeShort = 1,
- kTweenTypeLong = 2,
- kTweenTypeFixed = 3,
- kTweenTypePoint = 4,
- kTweenTypeQDRect = 5,
- kTweenTypeQDRegion = 6,
- kTweenTypeMatrix = 7,
- kTweenTypeRGBColor = 8,
- kTweenTypeGraphicsModeWithRGBColor = 9,
- kTweenTypeQTFloatSingle = 10,
- kTweenTypeQTFloatDouble = 11,
- kTweenTypeFixedPoint = 12,
- kTweenType3dScale = FOUR_CHAR_CODE('3sca'),
- kTweenType3dTranslate = FOUR_CHAR_CODE('3tra'),
- kTweenType3dRotate = FOUR_CHAR_CODE('3rot'),
- kTweenType3dRotateAboutPoint = FOUR_CHAR_CODE('3rap'),
- kTweenType3dRotateAboutAxis = FOUR_CHAR_CODE('3rax'),
- kTweenType3dRotateAboutVector = FOUR_CHAR_CODE('3rvc'),
- kTweenType3dQuaternion = FOUR_CHAR_CODE('3qua'),
- kTweenType3dMatrix = FOUR_CHAR_CODE('3mat'),
- kTweenType3dCameraData = FOUR_CHAR_CODE('3cam'),
- kTweenType3dAngleAspectCameraData = FOUR_CHAR_CODE('3caa'),
- kTweenType3dSoundLocalizationData = FOUR_CHAR_CODE('3slc'),
- kTweenTypePathToMatrixTranslation = FOUR_CHAR_CODE('gxmt'),
- kTweenTypePathToMatrixRotation = FOUR_CHAR_CODE('gxpr'),
- kTweenTypePathToMatrixTranslationAndRotation = FOUR_CHAR_CODE('gxmr'),
- kTweenTypePathToFixedPoint = FOUR_CHAR_CODE('gxfp'),
- kTweenTypePathXtoY = FOUR_CHAR_CODE('gxxy'),
- kTweenTypePathYtoX = FOUR_CHAR_CODE('gxyx'),
- kTweenTypeAtomList = FOUR_CHAR_CODE('atom'),
- kTweenTypePolygon = FOUR_CHAR_CODE('poly'),
- kTweenTypeMultiMatrix = FOUR_CHAR_CODE('mulm'),
- kTweenTypeSpin = FOUR_CHAR_CODE('spin'),
- kTweenType3dMatrixNonLinear = FOUR_CHAR_CODE('3nlr'),
- kTweenType3dVRObject = FOUR_CHAR_CODE('3vro')
- };
- enum {
- kTweenEntry = FOUR_CHAR_CODE('twen'),
- kTweenData = FOUR_CHAR_CODE('data'),
- kTweenType = FOUR_CHAR_CODE('twnt'),
- kTweenStartOffset = FOUR_CHAR_CODE('twst'),
- kTweenDuration = FOUR_CHAR_CODE('twdu'),
- kTweenFlags = FOUR_CHAR_CODE('flag'),
- kTweenOutputMin = FOUR_CHAR_CODE('omin'),
- kTweenOutputMax = FOUR_CHAR_CODE('omax'),
- kTweenSequenceElement = FOUR_CHAR_CODE('seqe'),
- kTween3dInitialCondition = FOUR_CHAR_CODE('icnd'),
- kTweenInterpolationID = FOUR_CHAR_CODE('intr'),
- kTweenRegionData = FOUR_CHAR_CODE('qdrg'),
- kTweenPictureData = FOUR_CHAR_CODE('PICT'),
- kListElementType = FOUR_CHAR_CODE('type'),
- kListElementDataType = FOUR_CHAR_CODE('daty'),
- kNameAtom = FOUR_CHAR_CODE('name'),
- kInitialRotationAtom = FOUR_CHAR_CODE('inro'),
- kNonLinearTweenHeader = FOUR_CHAR_CODE('nlth')
- };
- /* kTweenFlags*/
- enum {
- kTweenReturnDelta = 1L << 0
- };
- struct TweenSequenceEntryRecord {
- Fixed endPercent;
- QTAtomID tweenAtomID;
- QTAtomID dataAtomID;
- };
- typedef struct TweenSequenceEntryRecord TweenSequenceEntryRecord;
- #ifdef __QD3D__
- struct ThreeDeeVRObjectSample {
- long rows;
- long columns;
- TQ3Matrix4x4 calib1;
- TQ3Matrix4x4 calib2;
- long reserved1;
- long reserved2;
- };
- typedef struct ThreeDeeVRObjectSample ThreeDeeVRObjectSample;
- struct ThreeDeeNonLinearSample {
- float DurFromLastSample; /* 0 to 1 */
- TQ3Matrix4x4 matrix;
- };
- typedef struct ThreeDeeNonLinearSample ThreeDeeNonLinearSample;
- struct ThreeDeeNonLinearTweenHeaderAtom {
- long number;
- long dataSize;
- float tensionFactor; /* default is 0 */
- long reserved1;
- long reserved2;
- };
- typedef struct ThreeDeeNonLinearTweenHeaderAtom ThreeDeeNonLinearTweenHeaderAtom;
- #endif
- #if OLDROUTINENAMES
- /*************************
- * Video Media routines
- **************************/
- #define GetVideoMediaGraphicsMode MediaGetGraphicsMode
- #define SetVideoMediaGraphicsMode MediaSetGraphicsMode
- /* use these two routines at your own peril */
- #define ResetVideoMediaStatistics VideoMediaResetStatistics
- #define GetVideoMediaStatistics VideoMediaGetStatistics
- /*************************
- * Sound Media routines
- **************************/
- #define GetSoundMediaBalance MediaGetSoundBalance
- #define SetSoundMediaBalance MediaSetSoundBalance
- /*************************
- * Text Media routines
- **************************/
- #define SetTextProc TextMediaSetTextProc
- #define AddTextSample TextMediaAddTextSample
- #define AddTESample TextMediaAddTESample
- #define AddHiliteSample TextMediaAddHiliteSample
- #define FindNextText TextMediaFindNextText
- #define HiliteTextSample TextMediaHiliteTextSample
- #define SetTextSampleData TextMediaSetTextSampleData
- #define DrawRaw TextMediaDrawRaw
- #define RawSetup TextMediaRawSetup
- #define RawIdle TextMediaRawIdle
- #define SetTextProperty TextMediaSetTextProperty
- /*************************
- * Sprite Media routines
- **************************/
- #define SetSpriteMediaSpriteProperty SpriteMediaSetProperty
- #define GetSpriteMediaSpriteProperty SpriteMediaGetProperty
- #define HitTestSpriteMedia SpriteMediaHitTestSprites
- #define CountSpriteMediaSprites SpriteMediaCountSprites
- #define CountSpriteMediaImages SpriteMediaCountImages
- #define GetSpriteMediaIndImageDescription SpriteMediaGetIndImageDescription
- #define GetDisplayedSampleNumber SpriteMediaGetDisplayedSampleNumber
- #endif /* OLDROUTINENAMES */
- /*****
- Content Restrictions
- *****/
- enum {
- kQTRestrictionClassSave = FOUR_CHAR_CODE('save'),
- kQTRestrictionSaveDontAddMovieResource = (1L << 0),
- kQTRestrictionSaveDontFlatten = (1L << 1),
- kQTRestrictionSaveDontExport = (1L << 2),
- kQTRestrictionSaveDontExtract = (1L << 3), /* don't allow any form of extraction of content*/
- kQTRestrictionClassEdit = FOUR_CHAR_CODE('edit'),
- kQTRestrictionEditDontCopy = (1L << 0), /* disable copy */
- kQTRestrictionEditDontCut = (1L << 1), /* disable cut */
- kQTRestrictionEditDontPaste = (1L << 2), /* disable paste */
- kQTRestrictionEditDontClear = (1L << 3), /* disable clear*/
- kQTRestrictionEditDontModify = (1L << 4), /* don't allow modification of content*/
- kQTRestrictionEditDontExtract = (1L << 5) /* don't allow any form of extraction of content*/
- };
- /*************************
- * Video Media routines
- **************************/
- enum {
- videoFlagDontLeanAhead = 1L << 0
- };
- /* use these five routines at your own peril*/
- EXTERN_API( ComponentResult )
- VideoMediaResetStatistics (MediaHandler mh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- VideoMediaGetStatistics (MediaHandler mh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0106, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- VideoMediaGetStallCount (MediaHandler mh,
- unsigned long * stalls) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- VideoMediaSetCodecParameter (MediaHandler mh,
- CodecType cType,
- OSType parameterID,
- long parameterChangeSeed,
- void * dataPtr,
- long dataSize) FIVEWORDINLINE(0x2F3C, 0x0014, 0x010F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- VideoMediaGetCodecParameter (MediaHandler mh,
- CodecType cType,
- OSType parameterID,
- Handle outParameterData) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0110, 0x7000, 0xA82A);
- /*************************
- * Text Media routines
- **************************/
- /* Return displayFlags for TextProc */
- enum {
- txtProcDefaultDisplay = 0, /* Use the media's default*/
- txtProcDontDisplay = 1, /* Don't display the text*/
- txtProcDoDisplay = 2 /* Do display the text*/
- };
- EXTERN_API( ComponentResult )
- TextMediaSetTextProc (MediaHandler mh,
- TextMediaUPP TextProc,
- long refcon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaAddTextSample (MediaHandler mh,
- Ptr text,
- unsigned long size,
- short fontNumber,
- short fontSize,
- Style textFace,
- RGBColor * textColor,
- RGBColor * backColor,
- short textJustification,
- Rect * textBox,
- long displayFlags,
- TimeValue scrollDelay,
- short hiliteStart,
- short hiliteEnd,
- RGBColor * rgbHiliteColor,
- TimeValue duration,
- TimeValue * sampleTime) FIVEWORDINLINE(0x2F3C, 0x0034, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaAddTESample (MediaHandler mh,
- TEHandle hTE,
- RGBColor * backColor,
- short textJustification,
- Rect * textBox,
- long displayFlags,
- TimeValue scrollDelay,
- short hiliteStart,
- short hiliteEnd,
- RGBColor * rgbHiliteColor,
- TimeValue duration,
- TimeValue * sampleTime) FIVEWORDINLINE(0x2F3C, 0x0026, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaAddHiliteSample (MediaHandler mh,
- short hiliteStart,
- short hiliteEnd,
- RGBColor * rgbHiliteColor,
- TimeValue duration,
- TimeValue * sampleTime) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaDrawRaw (MediaHandler mh,
- GWorldPtr gw,
- GDHandle gd,
- void * data,
- long dataSize,
- TextDescriptionHandle tdh) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0109, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaSetTextProperty (MediaHandler mh,
- TimeValue atMediaTime,
- long propertyType,
- void * data,
- long dataSize) FIVEWORDINLINE(0x2F3C, 0x0010, 0x010A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaRawSetup (MediaHandler mh,
- GWorldPtr gw,
- GDHandle gd,
- void * data,
- long dataSize,
- TextDescriptionHandle tdh,
- TimeValue sampleDuration) FIVEWORDINLINE(0x2F3C, 0x0018, 0x010B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaRawIdle (MediaHandler mh,
- GWorldPtr gw,
- GDHandle gd,
- TimeValue sampleTime,
- long flagsIn,
- long * flagsOut) FIVEWORDINLINE(0x2F3C, 0x0014, 0x010C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaGetTextProperty (MediaHandler mh,
- TimeValue atMediaTime,
- long propertyType,
- void * data,
- long dataSize) FIVEWORDINLINE(0x2F3C, 0x0010, 0x010D, 0x7000, 0xA82A);
- enum {
- findTextEdgeOK = 1 << 0, /* Okay to find text at specified sample time*/
- findTextCaseSensitive = 1 << 1, /* Case sensitive search*/
- findTextReverseSearch = 1 << 2, /* Search from sampleTime backwards*/
- findTextWrapAround = 1 << 3, /* Wrap search when beginning or end of movie is hit*/
- findTextUseOffset = 1 << 4 /* Begin search at the given character offset into sample rather than edge*/
- };
- EXTERN_API( ComponentResult )
- TextMediaFindNextText (MediaHandler mh,
- Ptr text,
- long size,
- short findFlags,
- TimeValue startTime,
- TimeValue * foundTime,
- TimeValue * foundDuration,
- long * offset) FIVEWORDINLINE(0x2F3C, 0x001A, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextMediaHiliteTextSample (MediaHandler mh,
- TimeValue sampleTime,
- short hiliteStart,
- short hiliteEnd,
- RGBColor * rgbHiliteColor) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0106, 0x7000, 0xA82A);
- enum {
- dropShadowOffsetType = FOUR_CHAR_CODE('drpo'),
- dropShadowTranslucencyType = FOUR_CHAR_CODE('drpt')
- };
- EXTERN_API( ComponentResult )
- TextMediaSetTextSampleData (MediaHandler mh,
- void * data,
- OSType dataType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
- /*************************
- * Sprite Media routines
- **************************/
- /* flags for sprite hit test routines */
- enum {
- spriteHitTestBounds = 1L << 0, /* point must only be within sprite's bounding box*/
- spriteHitTestImage = 1L << 1, /* point must be within the shape of the sprite's image*/
- spriteHitTestInvisibleSprites = 1L << 2, /* invisible sprites may be hit tested*/
- spriteHitTestIsClick = 1L << 3, /* for codecs that want mouse events*/
- spriteHitTestLocInDisplayCoordinates = 1L << 4, /* set if you want to pass a display coordiate point to SpriteHitTest*/
- spriteHitTestTreatAllSpritesAsHitTestable = 1L << 5 /* set if you want to override each sprites hittestable property as true*/
- };
- /* atom types for sprite media */
- enum {
- kSpriteAtomType = FOUR_CHAR_CODE('sprt'),
- kSpriteImagesContainerAtomType = FOUR_CHAR_CODE('imct'),
- kSpriteImageAtomType = FOUR_CHAR_CODE('imag'),
- kSpriteImageDataAtomType = FOUR_CHAR_CODE('imda'),
- kSpriteImageDataRefAtomType = FOUR_CHAR_CODE('imre'),
- kSpriteImageDataRefTypeAtomType = FOUR_CHAR_CODE('imrt'),
- kSpriteImageGroupIDAtomType = FOUR_CHAR_CODE('imgr'),
- kSpriteImageRegistrationAtomType = FOUR_CHAR_CODE('imrg'),
- kSpriteImageDefaultImageIndexAtomType = FOUR_CHAR_CODE('defi'),
- kSpriteSharedDataAtomType = FOUR_CHAR_CODE('dflt'),
- kSpriteNameAtomType = FOUR_CHAR_CODE('name'),
- kSpriteImageNameAtomType = FOUR_CHAR_CODE('name'),
- kSpriteUsesImageIDsAtomType = FOUR_CHAR_CODE('uses'), /* leaf data is an array of QTAtomID's, one per image used*/
- kSpriteBehaviorsAtomType = FOUR_CHAR_CODE('beha'),
- kSpriteImageBehaviorAtomType = FOUR_CHAR_CODE('imag'),
- kSpriteCursorBehaviorAtomType = FOUR_CHAR_CODE('crsr'),
- kSpriteStatusStringsBehaviorAtomType = FOUR_CHAR_CODE('sstr'),
- kSpriteVariablesContainerAtomType = FOUR_CHAR_CODE('vars'),
- kSpriteStringVariableAtomType = FOUR_CHAR_CODE('strv'),
- kSpriteFloatingPointVariableAtomType = FOUR_CHAR_CODE('flov')
- };
- struct QTRuntimeSpriteDescStruct {
- long version; /* set to zero*/
- QTAtomID spriteID;
- short imageIndex;
- MatrixRecord matrix;
- short visible;
- short layer;
- ModifierTrackGraphicsModeRecord graphicsMode;
- QTAtomID actionHandlingSpriteID;
- };
- typedef struct QTRuntimeSpriteDescStruct QTRuntimeSpriteDescStruct;
- typedef QTRuntimeSpriteDescStruct * QTRuntimeSpriteDescPtr;
- /*
- when filling in QTSpriteButtonBehaviorStruct values -1 may be used to indicate that
- the state transition does not change the property
- */
- struct QTSpriteButtonBehaviorStruct {
- QTAtomID notOverNotPressedStateID;
- QTAtomID overNotPressedStateID;
- QTAtomID overPressedStateID;
- QTAtomID notOverPressedStateID;
- };
- typedef struct QTSpriteButtonBehaviorStruct QTSpriteButtonBehaviorStruct;
- typedef QTSpriteButtonBehaviorStruct * QTSpriteButtonBehaviorPtr;
- EXTERN_API( ComponentResult )
- SpriteMediaSetProperty (MediaHandler mh,
- short spriteIndex,
- long propertyType,
- void * propertyValue) FIVEWORDINLINE(0x2F3C, 0x000A, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetProperty (MediaHandler mh,
- short spriteIndex,
- long propertyType,
- void * propertyValue) FIVEWORDINLINE(0x2F3C, 0x000A, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaHitTestSprites (MediaHandler mh,
- long flags,
- Point loc,
- short * spriteHitIndex) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaCountSprites (MediaHandler mh,
- short * numSprites) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaCountImages (MediaHandler mh,
- short * numImages) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetIndImageDescription (MediaHandler mh,
- short imageIndex,
- ImageDescriptionHandle imageDescription) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0106, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetDisplayedSampleNumber (MediaHandler mh,
- long * sampleNum) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0107, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetSpriteName (MediaHandler mh,
- QTAtomID spriteID,
- Str255 spriteName) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0108, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetImageName (MediaHandler mh,
- short imageIndex,
- Str255 imageName) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0109, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaSetSpriteProperty (MediaHandler mh,
- QTAtomID spriteID,
- long propertyType,
- void * propertyValue) FIVEWORDINLINE(0x2F3C, 0x000C, 0x010A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetSpriteProperty (MediaHandler mh,
- QTAtomID spriteID,
- long propertyType,
- void * propertyValue) FIVEWORDINLINE(0x2F3C, 0x000C, 0x010B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaHitTestAllSprites (MediaHandler mh,
- long flags,
- Point loc,
- QTAtomID * spriteHitID) FIVEWORDINLINE(0x2F3C, 0x000C, 0x010C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaHitTestOneSprite (MediaHandler mh,
- QTAtomID spriteID,
- long flags,
- Point loc,
- Boolean * wasHit) FIVEWORDINLINE(0x2F3C, 0x0010, 0x010D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaSpriteIndexToID (MediaHandler mh,
- short spriteIndex,
- QTAtomID * spriteID) FIVEWORDINLINE(0x2F3C, 0x0006, 0x010E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaSpriteIDToIndex (MediaHandler mh,
- QTAtomID spriteID,
- short * spriteIndex) FIVEWORDINLINE(0x2F3C, 0x0008, 0x010F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetSpriteActionsForQTEvent (MediaHandler mh,
- QTEventRecordPtr event,
- QTAtomID spriteID,
- QTAtomContainer * container,
- QTAtom * atom) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0110, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaSetActionVariable (MediaHandler mh,
- QTAtomID variableID,
- const float * value) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0111, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetActionVariable (MediaHandler mh,
- QTAtomID variableID,
- float * value) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0112, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetIndImageProperty (MediaHandler mh,
- short imageIndex,
- long imagePropertyType,
- void * imagePropertyValue) FIVEWORDINLINE(0x2F3C, 0x000A, 0x0113, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaNewSprite (MediaHandler mh,
- QTRuntimeSpriteDescPtr newSpriteDesc) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0114, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaDisposeSprite (MediaHandler mh,
- QTAtomID spriteID) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0115, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaSetActionVariableToString (MediaHandler mh,
- QTAtomID variableID,
- Ptr theCString) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0116, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaGetActionVariableAsString (MediaHandler mh,
- QTAtomID variableID,
- Handle * theCString) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0117, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaNewImage (MediaHandler mh,
- Handle dataRef,
- OSType dataRefType,
- QTAtomID desiredID) FIVEWORDINLINE(0x2F3C, 0x000C, 0x011B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaDisposeImage (MediaHandler mh,
- short imageIndex) FIVEWORDINLINE(0x2F3C, 0x0002, 0x011C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaImageIndexToID (MediaHandler mh,
- short imageIndex,
- QTAtomID * imageID) FIVEWORDINLINE(0x2F3C, 0x0006, 0x011D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SpriteMediaImageIDToIndex (MediaHandler mh,
- QTAtomID imageID,
- short * imageIndex) FIVEWORDINLINE(0x2F3C, 0x0008, 0x011E, 0x7000, 0xA82A);
- /*************************
- * Flash Media routines
- **************************/
- EXTERN_API( ComponentResult )
- FlashMediaSetPan (MediaHandler mh,
- short xPercent,
- short yPercent) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaSetZoom (MediaHandler mh,
- short factor) FIVEWORDINLINE(0x2F3C, 0x0002, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaSetZoomRect (MediaHandler mh,
- long left,
- long top,
- long right,
- long bottom) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaGetRefConBounds (MediaHandler mh,
- long refCon,
- long * left,
- long * top,
- long * right,
- long * bottom) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaGetRefConID (MediaHandler mh,
- long refCon,
- long * refConID) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaIDToRefCon (MediaHandler mh,
- long refConID,
- long * refCon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0106, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaGetDisplayedFrameNumber (MediaHandler mh,
- long * flashFrameNumber) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0107, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaFrameNumberToMovieTime (MediaHandler mh,
- long flashFrameNumber,
- TimeValue * movieTime) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0108, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaFrameLabelToMovieTime (MediaHandler mh,
- Ptr theLabel,
- TimeValue * movieTime) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0109, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaGetFlashVariable (MediaHandler mh,
- char * path,
- char * name,
- Handle * theVariableCStringOut) FIVEWORDINLINE(0x2F3C, 0x000C, 0x010A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaSetFlashVariable (MediaHandler mh,
- char * path,
- char * name,
- char * value,
- Boolean updateFocus) FIVEWORDINLINE(0x2F3C, 0x000E, 0x010B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaDoButtonActions (MediaHandler mh,
- char * path,
- long buttonID,
- long transition) FIVEWORDINLINE(0x2F3C, 0x000C, 0x010C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- FlashMediaGetSupportedSwfVersion (MediaHandler mh,
- unsigned char * swfVersion) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010D, 0x7000, 0xA82A);
- /* sample format atoms*/
- enum {
- kMovieMediaDataReference = FOUR_CHAR_CODE('mmdr'), /* data reference*/
- kMovieMediaDefaultDataReferenceID = FOUR_CHAR_CODE('ddri'), /* atom id*/
- kMovieMediaSlaveTime = FOUR_CHAR_CODE('slti'), /* boolean*/
- kMovieMediaSlaveAudio = FOUR_CHAR_CODE('slau'), /* boolean*/
- kMovieMediaSlaveGraphicsMode = FOUR_CHAR_CODE('slgr'), /* boolean*/
- kMovieMediaAutoPlay = FOUR_CHAR_CODE('play'), /* boolean*/
- kMovieMediaLoop = FOUR_CHAR_CODE('loop'), /* UInt8 (0=no loop, 1=loop, 2=palindrome loop)*/
- kMovieMediaUseMIMEType = FOUR_CHAR_CODE('mime'), /* string indicating the MIME type to use for the dataref (usually not required)*/
- kMovieMediaTitle = FOUR_CHAR_CODE('titl'), /* string of the media's title (tooltips)*/
- kMovieMediaAltText = FOUR_CHAR_CODE('altt'), /* string of alternate text if media isn't loaded*/
- kMovieMediaClipBegin = FOUR_CHAR_CODE('clpb'), /* MovieMediaTimeRecord of start time of embedded media*/
- kMovieMediaClipDuration = FOUR_CHAR_CODE('clpd'), /* MovieMediaTimeRecord of duration of embedded media*/
- kMovieMediaRegionAtom = FOUR_CHAR_CODE('regi'), /* contains subatoms that describe layout*/
- kMovieMediaSlaveTrackDuration = FOUR_CHAR_CODE('sltr'), /* Boolean indicating that media handler should adjust track and media based on actual embedded movie duration*/
- kMovieMediaEnableFrameStepping = FOUR_CHAR_CODE('enfs'), /* boolean. if true stepping on external movie steps frames within embedded movie.*/
- kMovieMediaBackgroundColor = FOUR_CHAR_CODE('bkcl'), /* RGBColor.*/
- kMovieMediaPrerollTime = FOUR_CHAR_CODE('prer') /* SInt32 indicating preroll time*/
- };
- /* fit types*/
- enum {
- kMovieMediaFitNone = 0,
- kMovieMediaFitScroll = FOUR_CHAR_CODE('scro'),
- kMovieMediaFitClipIfNecessary = FOUR_CHAR_CODE('hidd'),
- kMovieMediaFitFill = FOUR_CHAR_CODE('fill'),
- kMovieMediaFitMeet = FOUR_CHAR_CODE('meet'),
- kMovieMediaFitSlice = FOUR_CHAR_CODE('slic')
- };
- /* sub atoms for region atom*/
- enum {
- kMovieMediaSpatialAdjustment = FOUR_CHAR_CODE('fit '), /* OSType from kMovieMediaFit**/
- kMovieMediaRectangleAtom = FOUR_CHAR_CODE('rect'),
- kMovieMediaTop = FOUR_CHAR_CODE('top '),
- kMovieMediaLeft = FOUR_CHAR_CODE('left'),
- kMovieMediaWidth = FOUR_CHAR_CODE('wd '),
- kMovieMediaHeight = FOUR_CHAR_CODE('ht ')
- };
- /* contained movie properties*/
- enum {
- kMoviePropertyDuration = FOUR_CHAR_CODE('dura'), /* TimeValue **/
- kMoviePropertyTimeScale = FOUR_CHAR_CODE('tims'), /* TimeValue **/
- kMoviePropertyTime = FOUR_CHAR_CODE('timv'), /* TimeValue **/
- kMoviePropertyNaturalBounds = FOUR_CHAR_CODE('natb'), /* Rect **/
- kMoviePropertyMatrix = FOUR_CHAR_CODE('mtrx'), /* Matrix **/
- kMoviePropertyTrackList = FOUR_CHAR_CODE('tlst') /* long ****/
- };
- enum {
- kTrackPropertyMediaType = FOUR_CHAR_CODE('mtyp'), /* OSType*/
- kTrackPropertyInstantiation = FOUR_CHAR_CODE('inst') /* MovieMediaInstantiationInfoRecord*/
- };
- struct MovieMediaTimeRecord {
- wide time;
- TimeScale scale;
- };
- typedef struct MovieMediaTimeRecord MovieMediaTimeRecord;
- struct MovieMediaInstantiationInfoRecord {
- Boolean immediately;
- Boolean pad;
- SInt32 bitRate;
- };
- typedef struct MovieMediaInstantiationInfoRecord MovieMediaInstantiationInfoRecord;
- /*************************
- * Movie Media routines
- **************************/
- EXTERN_API( ComponentResult )
- MovieMediaGetChildDoMCActionCallback (MediaHandler mh,
- DoMCActionUPP * doMCActionCallbackProc,
- long * refcon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieMediaGetDoMCActionCallback (MediaHandler mh,
- DoMCActionUPP * doMCActionCallbackProc,
- long * refcon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieMediaGetCurrentMovieProperty (MediaHandler mh,
- OSType whichProperty,
- void * value) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieMediaGetCurrentTrackProperty (MediaHandler mh,
- long trackID,
- OSType whichProperty,
- void * value) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieMediaGetChildMovieDataReference (MediaHandler mh,
- QTAtomID dataRefID,
- short dataRefIndex,
- OSType * dataRefType,
- Handle * dataRef,
- QTAtomID * dataRefIDOut,
- short * dataRefIndexOut) FIVEWORDINLINE(0x2F3C, 0x0016, 0x0106, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieMediaSetChildMovieDataReference (MediaHandler mh,
- QTAtomID dataRefID,
- OSType dataRefType,
- Handle dataRef) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0107, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieMediaLoadChildMovieFromDataReference (MediaHandler mh,
- QTAtomID dataRefID) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0108, 0x7000, 0xA82A);
- /*************************
- * 3D Media routines
- **************************/
- EXTERN_API( ComponentResult )
- Media3DGetNamedObjectList (MediaHandler mh,
- QTAtomContainer * objectList) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DGetRendererList (MediaHandler mh,
- QTAtomContainer * rendererList) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DGetCurrentGroup (MediaHandler mh,
- void * group) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DTranslateNamedObjectTo (MediaHandler mh,
- char * objectName,
- Fixed x,
- Fixed y,
- Fixed z) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DScaleNamedObjectTo (MediaHandler mh,
- char * objectName,
- Fixed xScale,
- Fixed yScale,
- Fixed zScale) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DRotateNamedObjectTo (MediaHandler mh,
- char * objectName,
- Fixed xDegrees,
- Fixed yDegrees,
- Fixed zDegrees) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0106, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DSetCameraData (MediaHandler mh,
- void * cameraData) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0107, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DGetCameraData (MediaHandler mh,
- void * cameraData) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0108, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DSetCameraAngleAspect (MediaHandler mh,
- QTFloatSingle fov,
- QTFloatSingle aspectRatioXToY) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0109, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DGetCameraAngleAspect (MediaHandler mh,
- QTFloatSingle * fov,
- QTFloatSingle * aspectRatioXToY) FIVEWORDINLINE(0x2F3C, 0x0008, 0x010A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DSetCameraRange (MediaHandler mh,
- void * tQ3CameraRange) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DGetCameraRange (MediaHandler mh,
- void * tQ3CameraRange) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- Media3DGetViewObject (MediaHandler mh,
- void * tq3viewObject) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010F, 0x7000, 0xA82A);
- /****************************************
- * *
- * M O V I E C O N T R O L L E R *
- * *
- ****************************************/
- enum {
- MovieControllerComponentType = FOUR_CHAR_CODE('play')
- };
- enum {
- kMovieControllerQTVRFlag = 1 << 0,
- kMovieControllerDontDisplayToUser = 1 << 1
- };
- typedef ComponentInstance MovieController;
- typedef MovieController * MovieControllerPtr;
- enum {
- mcActionIdle = 1, /* no param*/
- mcActionDraw = 2, /* param is WindowRef*/
- mcActionActivate = 3, /* no param*/
- mcActionDeactivate = 4, /* no param*/
- mcActionMouseDown = 5, /* param is pointer to EventRecord*/
- mcActionKey = 6, /* param is pointer to EventRecord*/
- mcActionPlay = 8, /* param is Fixed, play rate*/
- mcActionGoToTime = 12, /* param is TimeRecord*/
- mcActionSetVolume = 14, /* param is a short*/
- mcActionGetVolume = 15, /* param is pointer to a short*/
- mcActionStep = 18, /* param is number of steps (short)*/
- mcActionSetLooping = 21, /* param is Boolean*/
- mcActionGetLooping = 22, /* param is pointer to a Boolean*/
- mcActionSetLoopIsPalindrome = 23, /* param is Boolean*/
- mcActionGetLoopIsPalindrome = 24, /* param is pointer to a Boolean*/
- mcActionSetGrowBoxBounds = 25, /* param is a Rect*/
- mcActionControllerSizeChanged = 26, /* no param*/
- mcActionSetSelectionBegin = 29, /* param is TimeRecord*/
- mcActionSetSelectionDuration = 30, /* param is TimeRecord, action only taken on set-duration*/
- mcActionSetKeysEnabled = 32, /* param is Boolean*/
- mcActionGetKeysEnabled = 33, /* param is pointer to Boolean*/
- mcActionSetPlaySelection = 34, /* param is Boolean*/
- mcActionGetPlaySelection = 35, /* param is pointer to Boolean*/
- mcActionSetUseBadge = 36, /* param is Boolean*/
- mcActionGetUseBadge = 37, /* param is pointer to Boolean*/
- mcActionSetFlags = 38, /* param is long of flags*/
- mcActionGetFlags = 39, /* param is pointer to a long of flags*/
- mcActionSetPlayEveryFrame = 40, /* param is Boolean*/
- mcActionGetPlayEveryFrame = 41, /* param is pointer to Boolean*/
- mcActionGetPlayRate = 42, /* param is pointer to Fixed*/
- mcActionShowBalloon = 43, /* param is a pointer to a boolean. set to false to stop balloon*/
- mcActionBadgeClick = 44, /* param is pointer to Boolean. set to false to ignore click*/
- mcActionMovieClick = 45, /* param is pointer to event record. change "what" to nullEvt to kill click*/
- mcActionSuspend = 46, /* no param*/
- mcActionResume = 47, /* no param*/
- mcActionSetControllerKeysEnabled = 48, /* param is Boolean*/
- mcActionGetTimeSliderRect = 49, /* param is pointer to rect*/
- mcActionMovieEdited = 50, /* no param*/
- mcActionGetDragEnabled = 51, /* param is pointer to Boolean*/
- mcActionSetDragEnabled = 52, /* param is Boolean*/
- mcActionGetSelectionBegin = 53, /* param is TimeRecord*/
- mcActionGetSelectionDuration = 54, /* param is TimeRecord*/
- mcActionPrerollAndPlay = 55, /* param is Fixed, play rate*/
- mcActionGetCursorSettingEnabled = 56, /* param is pointer to Boolean*/
- mcActionSetCursorSettingEnabled = 57, /* param is Boolean*/
- mcActionSetColorTable = 58, /* param is CTabHandle*/
- mcActionLinkToURL = 59, /* param is Handle to URL*/
- mcActionCustomButtonClick = 60, /* param is pointer to EventRecord*/
- mcActionForceTimeTableUpdate = 61, /* no param*/
- mcActionSetControllerTimeLimits = 62, /* param is pointer to 2 time values min/max. do no send this message to controller. used internally only.*/
- mcActionExecuteAllActionsForQTEvent = 63, /* param is ResolvedQTEventSpecPtr*/
- mcActionExecuteOneActionForQTEvent = 64, /* param is ResolvedQTEventSpecPtr*/
- mcActionAdjustCursor = 65, /* param is pointer to EventRecord (WindowRef is in message parameter)*/
- mcActionUseTrackForTimeTable = 66, /* param is pointer to {long trackID; Boolean useIt}. do not send this message to controller. */
- mcActionClickAndHoldPoint = 67, /* param is point (local coordinates). return true if point has click & hold action (e.g., VR object movie autorotate spot)*/
- mcActionShowMessageString = 68, /* param is a StringPtr*/
- mcActionShowStatusString = 69, /* param is a QTStatusStringPtr*/
- mcActionGetExternalMovie = 70, /* param is a QTGetExternalMoviePtr*/
- mcActionGetChapterTime = 71, /* param is a QTGetChapterTimePtr*/
- mcActionPerformActionList = 72, /* param is a QTAtomSpecPtr*/
- mcActionEvaluateExpression = 73, /* param is a QTEvaluateExpressionPtr*/
- mcActionFetchParameterAs = 74, /* param is a QTFetchParameterAsPtr*/
- mcActionGetCursorByID = 75, /* param is a QTGetCursorByIDPtr*/
- mcActionGetNextURL = 76, /* param is a Handle to URL*/
- mcActionMovieChanged = 77,
- mcActionDoScript = 78, /* param is QTDoScriptPtr*/
- mcActionRestartAtTime = 79, /* param is QTResartAtTimePtr*/
- mcActionGetIndChapter = 80, /* param is QTChapterInfoPtr*/
- mcActionLinkToURLExtended = 81, /* param is QTAtomContainer as used by QTParseHREF*/
- mcActionSetVolumeStep = 82, /* param is short containing amount to step volume via arrow keys - default = 64*/
- mcActionAutoPlay = 83, /* param is Fixed, play rate*/
- mcActionPauseToBuffer = 84, /* param is Fixed, play rate on restart*/
- mcActionAppMessageReceived = 85, /* param is a long, application message*/
- mcActionEvaluateExpressionWithType = 89, /* param is a QTEvaluateExpressionWithTypePtr*/
- mcActionGetMovieName = 90, /* param is a p String Handle*/
- mcActionGetMovieID = 91, /* param is pointer to long*/
- mcActionGetMovieActive = 92 /* param is pointer to Boolean*/
- };
- typedef short mcAction;
- enum {
- mcFlagSuppressMovieFrame = 1 << 0,
- mcFlagSuppressStepButtons = 1 << 1,
- mcFlagSuppressSpeakerButton = 1 << 2,
- mcFlagsUseWindowPalette = 1 << 3,
- mcFlagsDontInvalidate = 1 << 4,
- mcFlagsUseCustomButton = 1 << 5
- };
- enum {
- mcPositionDontInvalidate = 1 << 5
- };
- typedef unsigned long mcFlags;
- enum {
- kMCIEEnabledButtonPicture = 1,
- kMCIEDisabledButtonPicture = 2,
- kMCIEDepressedButtonPicture = 3,
- kMCIEEnabledSizeBoxPicture = 4,
- kMCIEDisabledSizeBoxPicture = 5,
- kMCIEEnabledUnavailableButtonPicture = 6,
- kMCIEDisabledUnavailableButtonPicture = 7,
- kMCIESoundSlider = 128,
- kMCIESoundThumb = 129,
- kMCIEColorTable = 256,
- kMCIEIsFlatAppearance = 257,
- kMCIEDoButtonIconsDropOnDepress = 258
- };
- typedef unsigned long MCInterfaceElement;
- typedef CALLBACK_API( Boolean , MCActionFilterProcPtr )(MovieController mc, short *action, void *params);
- typedef CALLBACK_API( Boolean , MCActionFilterWithRefConProcPtr )(MovieController mc, short action, void *params, long refCon);
- typedef STACK_UPP_TYPE(MCActionFilterProcPtr) MCActionFilterUPP;
- typedef STACK_UPP_TYPE(MCActionFilterWithRefConProcPtr) MCActionFilterWithRefConUPP;
- /*
- menu related stuff
- */
- enum {
- mcInfoUndoAvailable = 1 << 0,
- mcInfoCutAvailable = 1 << 1,
- mcInfoCopyAvailable = 1 << 2,
- mcInfoPasteAvailable = 1 << 3,
- mcInfoClearAvailable = 1 << 4,
- mcInfoHasSound = 1 << 5,
- mcInfoIsPlaying = 1 << 6,
- mcInfoIsLooping = 1 << 7,
- mcInfoIsInPalindrome = 1 << 8,
- mcInfoEditingEnabled = 1 << 9,
- mcInfoMovieIsInteractive = 1 << 10
- };
- /* menu item codes*/
- enum {
- mcMenuUndo = 1,
- mcMenuCut = 3,
- mcMenuCopy = 4,
- mcMenuPaste = 5,
- mcMenuClear = 6
- };
- /* messages to the application via mcActionAppMessageReceived*/
- enum {
- kQTAppMessageSoftwareChanged = 1, /* notification to app that installed QuickTime software has been updated*/
- kQTAppMessageWindowCloseRequested = 3, /* request for app to close window containing movie controller*/
- kQTAppMessageExitFullScreenRequested = 4, /* request for app to turn off full screen mode if active*/
- kQTAppMessageDisplayChannels = 5, /* request for app to display the channel UI*/
- kQTAppMessageEnterFullScreenRequested = 6 /* request for app to turn on full screen mode*/
- };
- /* structures used as mcActionFilterProc params*/
- struct QTStatusStringRecord {
- long stringTypeFlags;
- char * statusString;
- };
- typedef struct QTStatusStringRecord QTStatusStringRecord;
- typedef QTStatusStringRecord * QTStatusStringPtr;
- struct QTGetExternalMovieRecord {
- long targetType; /* set to kTargetMovieName or kTargetMovieID*/
- StringPtr movieName;
- long movieID;
- MoviePtr theMovie;
- MovieControllerPtr theController;
- };
- typedef struct QTGetExternalMovieRecord QTGetExternalMovieRecord;
- typedef QTGetExternalMovieRecord * QTGetExternalMoviePtr;
- struct QTGetChapterTimeRecord {
- StringPtr chapterName;
- TimeRecord chapterTime;
- };
- typedef struct QTGetChapterTimeRecord QTGetChapterTimeRecord;
- typedef QTGetChapterTimeRecord * QTGetChapterTimePtr;
- struct QTChapterInfoRecord {
- long index; /* first chapter has index of 1*/
- TimeValue time; /* -1 if no more chapters available*/
- Str255 name;
- };
- typedef struct QTChapterInfoRecord QTChapterInfoRecord;
- typedef QTChapterInfoRecord * QTChapterInfoPtr;
- struct QTEvaluateExpressionRecord {
- QTAtomSpec expressionSpec;
- float * expressionResult;
- };
- typedef struct QTEvaluateExpressionRecord QTEvaluateExpressionRecord;
- typedef QTEvaluateExpressionRecord * QTEvaluateExpressionPtr;
- struct QTEvaluateExpressionWithTypeRecord {
- long recordSize; /* Size of structure (fill in at allocation) */
- QTAtomSpec expressionSpec;
- float * expressionResult;
- long fetchAsType;
- Handle nonNumericResult;
- /* Current size is 24 */
- };
- typedef struct QTEvaluateExpressionWithTypeRecord QTEvaluateExpressionWithTypeRecord;
- typedef QTEvaluateExpressionWithTypeRecord * QTEvaluateExpressionWithTypePtr;
- struct QTFetchParameterAsRecord {
- QTAtomSpec paramListSpec;
- long paramIndex;
- long paramType;
- long allowedFlags;
- void * min;
- void * max;
- void * currentValue;
- void * newValue;
- Boolean isUnsignedValue;
- };
- typedef struct QTFetchParameterAsRecord QTFetchParameterAsRecord;
- typedef QTFetchParameterAsRecord * QTFetchParameterAsPtr;
- struct QTGetCursorByIDRecord {
- short cursorID;
- Handle colorCursorData;
- long reserved1;
- };
- typedef struct QTGetCursorByIDRecord QTGetCursorByIDRecord;
- typedef QTGetCursorByIDRecord * QTGetCursorByIDPtr;
- struct QTDoScriptRecord {
- long scriptTypeFlags;
- char * command;
- char * arguments;
- };
- typedef struct QTDoScriptRecord QTDoScriptRecord;
- typedef QTDoScriptRecord * QTDoScriptPtr;
- struct QTRestartAtTimeRecord {
- TimeValue startTime; /* time scale is the movie timescale*/
- Fixed rate; /* if rate is zero, the movie's current rate is maintained*/
- };
- typedef struct QTRestartAtTimeRecord QTRestartAtTimeRecord;
- typedef QTRestartAtTimeRecord * QTRestartAtTimePtr;
- /* values for paramType field of QTFetchParameterAsRecord*/
- enum {
- kFetchAsBooleanPtr = 1,
- kFetchAsShortPtr = 2,
- kFetchAsLongPtr = 3,
- kFetchAsMatrixRecordPtr = 4,
- kFetchAsModifierTrackGraphicsModeRecord = 5,
- kFetchAsHandle = 6,
- kFetchAsStr255 = 7,
- kFetchAsFloatPtr = 8,
- kFetchAsPointPtr = 9,
- kFetchAsNewAtomContainer = 10,
- kFetchAsQTEventRecordPtr = 11,
- kFetchAsFixedPtr = 12,
- kFetchAsSetControllerValuePtr = 13,
- kFetchAsRgnHandle = 14, /* flipped to native*/
- kFetchAsComponentDescriptionPtr = 15,
- kFetchAsCString = 16
- };
- enum {
- kQTCursorOpenHand = -19183,
- kQTCursorClosedHand = -19182,
- kQTCursorPointingHand = -19181,
- kQTCursorRightArrow = -19180,
- kQTCursorLeftArrow = -19179,
- kQTCursorDownArrow = -19178,
- kQTCursorUpArrow = -19177,
- kQTCursorIBeam = -19176
- };
- /* target management */
- EXTERN_API( ComponentResult )
- MCSetMovie (MovieController mc,
- Movie theMovie,
- WindowRef movieWindow,
- Point where) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( Movie )
- MCGetIndMovie (MovieController mc,
- short index) FIVEWORDINLINE(0x2F3C, 0x0002, 0x0005, 0x7000, 0xA82A);
- #define MCGetMovie(mc) MCGetIndMovie(mc, 0)
- EXTERN_API( ComponentResult )
- MCRemoveAllMovies (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCRemoveAMovie (MovieController mc,
- Movie m) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCRemoveMovie (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
- /* event handling etc. */
- EXTERN_API( ComponentResult )
- MCIsPlayerEvent (MovieController mc,
- const EventRecord * e) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
- /* obsolete. use MCSetActionFilterWithRefCon instead. */
- EXTERN_API( ComponentResult )
- MCSetActionFilter (MovieController mc,
- MCActionFilterUPP blob) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
- /*
- proc is of the form:
- Boolean userPlayerFilter(MovieController mc, short *action, void *params) =
- proc returns TRUE if it handles the action, FALSE if not
- action is passed as a VAR so that it could be changed by filter
- this is consistent with the current dialog manager stuff
- params is any potential parameters that go with the action
- such as set playback rate to xxx.
- */
- EXTERN_API( ComponentResult )
- MCDoAction (MovieController mc,
- short action,
- void * params) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0009, 0x7000, 0xA82A);
- /* state type things */
- EXTERN_API( ComponentResult )
- MCSetControllerAttached (MovieController mc,
- Boolean attach) FIVEWORDINLINE(0x2F3C, 0x0002, 0x000A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCIsControllerAttached (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x000B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetControllerPort (MovieController mc,
- CGrafPtr gp) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
- EXTERN_API( CGrafPtr )
- MCGetControllerPort (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x000D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetVisible (MovieController mc,
- Boolean visible) FIVEWORDINLINE(0x2F3C, 0x0002, 0x000E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetVisible (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x000F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetControllerBoundsRect (MovieController mc,
- Rect * bounds) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetControllerBoundsRect (MovieController mc,
- const Rect * bounds) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0011, 0x7000, 0xA82A);
- EXTERN_API( RgnHandle )
- MCGetControllerBoundsRgn (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0012, 0x7000, 0xA82A);
- EXTERN_API( RgnHandle )
- MCGetWindowRgn (MovieController mc,
- WindowRef w) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
- /* other stuff */
- EXTERN_API( ComponentResult )
- MCMovieChanged (MovieController mc,
- Movie m) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
- /*
- called when the app has changed thing about the movie (like bounding rect) or rate. So that we
- can update our graphical (and internal) state accordingly.
- */
- EXTERN_API( ComponentResult )
- MCSetDuration (MovieController mc,
- TimeValue duration) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
- /*
- duration to use for time slider -- will be reset next time MCMovieChanged is called
- or MCSetMovie is called
- */
- EXTERN_API( TimeValue )
- MCGetCurrentTime (MovieController mc,
- TimeScale * scale) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0016, 0x7000, 0xA82A);
- /*
- returns the time value and the time scale it is on. if there are no movies, the
- time scale is passed back as 0. scale is an optional parameter
- */
- EXTERN_API( ComponentResult )
- MCNewAttachedController (MovieController mc,
- Movie theMovie,
- WindowRef w,
- Point where) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0017, 0x7000, 0xA82A);
- /*
- makes theMovie the only movie attached to the controller. makes the controller visible.
- the window and where parameters are passed a long to MCSetMovie and behave as
- described there
- */
- EXTERN_API( ComponentResult )
- MCDraw (MovieController mc,
- WindowRef w) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCActivate (MovieController mc,
- WindowRef w,
- Boolean activate) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0019, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCIdle (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x001A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCKey (MovieController mc,
- SInt8 key,
- long modifiers) FIVEWORDINLINE(0x2F3C, 0x0006, 0x001B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCClick (MovieController mc,
- WindowRef w,
- Point where,
- long when,
- long modifiers) FIVEWORDINLINE(0x2F3C, 0x0010, 0x001C, 0x7000, 0xA82A);
- /*
- calls for editing
- */
- EXTERN_API( ComponentResult )
- MCEnableEditing (MovieController mc,
- Boolean enabled) FIVEWORDINLINE(0x2F3C, 0x0002, 0x001D, 0x7000, 0xA82A);
- EXTERN_API( long )
- MCIsEditingEnabled (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x001E, 0x7000, 0xA82A);
- EXTERN_API( Movie )
- MCCopy (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x001F, 0x7000, 0xA82A);
- EXTERN_API( Movie )
- MCCut (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0020, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCPaste (MovieController mc,
- Movie srcMovie) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0021, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCClear (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0022, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCUndo (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0023, 0x7000, 0xA82A);
- /*
- * somewhat special stuff
- */
- EXTERN_API( ComponentResult )
- MCPositionController (MovieController mc,
- const Rect * movieRect,
- const Rect * controllerRect,
- long someFlags) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0024, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetControllerInfo (MovieController mc,
- long * someFlags) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetClip (MovieController mc,
- RgnHandle theClip,
- RgnHandle movieClip) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0028, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetClip (MovieController mc,
- RgnHandle * theClip,
- RgnHandle * movieClip) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0029, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCDrawBadge (MovieController mc,
- RgnHandle movieRgn,
- RgnHandle * badgeRgn) FIVEWORDINLINE(0x2F3C, 0x0008, 0x002A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetUpEditMenu (MovieController mc,
- long modifiers,
- MenuRef mh) FIVEWORDINLINE(0x2F3C, 0x0008, 0x002B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetMenuString (MovieController mc,
- long modifiers,
- short item,
- Str255 aString) FIVEWORDINLINE(0x2F3C, 0x000A, 0x002C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetActionFilterWithRefCon (MovieController mc,
- MCActionFilterWithRefConUPP blob,
- long refCon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x002D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCPtInController (MovieController mc,
- Point thePt,
- Boolean * inController) FIVEWORDINLINE(0x2F3C, 0x0008, 0x002E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCInvalidate (MovieController mc,
- WindowRef w,
- RgnHandle invalidRgn) FIVEWORDINLINE(0x2F3C, 0x0008, 0x002F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCAdjustCursor (MovieController mc,
- WindowRef w,
- Point where,
- long modifiers) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0030, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetInterfaceElement (MovieController mc,
- MCInterfaceElement whichElement,
- void * element) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0031, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCGetDoActionsProc (MovieController mc,
- DoMCActionUPP * doMCActionProc,
- long * doMCActionRefCon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0032, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCAddMovieSegment (MovieController mc,
- Movie srcMovie,
- Boolean scaled) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0033, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCTrimMovieSegment (MovieController mc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0034, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MCSetIdleManager (MovieController mc,
- IdleManager im) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0035, 0x7000, 0xA82A);
- /* Called (but not implemented) by controllers that derive from the standard movie controller.
- All controllers except standard movie controller must delegate this call. */
- enum {
- kControllerUnderstandsIdleManagers = 1 << 0
- };
- EXTERN_API( ComponentResult )
- MCSetControllerCapabilities (MovieController mc,
- long flags,
- long flagsMask) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0036, 0x7000, 0xA82A);
- /****************************************
- * *
- * T I M E B A S E *
- * *
- ****************************************/
- EXTERN_API( TimeBase )
- NewTimeBase (void) THREEWORDINLINE(0x303C, 0x00A5, 0xAAAA);
- EXTERN_API( void )
- DisposeTimeBase (TimeBase tb) THREEWORDINLINE(0x303C, 0x00B6, 0xAAAA);
- EXTERN_API( TimeValue )
- GetTimeBaseTime (TimeBase tb,
- TimeScale s,
- TimeRecord * tr) THREEWORDINLINE(0x303C, 0x00A6, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseTime (TimeBase tb,
- const TimeRecord * tr) THREEWORDINLINE(0x303C, 0x00A7, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseValue (TimeBase tb,
- TimeValue t,
- TimeScale s) THREEWORDINLINE(0x303C, 0x00A8, 0xAAAA);
- EXTERN_API( Fixed )
- GetTimeBaseRate (TimeBase tb) THREEWORDINLINE(0x303C, 0x00A9, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseRate (TimeBase tb,
- Fixed r) THREEWORDINLINE(0x303C, 0x00AA, 0xAAAA);
- EXTERN_API( TimeValue )
- GetTimeBaseStartTime (TimeBase tb,
- TimeScale s,
- TimeRecord * tr) THREEWORDINLINE(0x303C, 0x00AB, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseStartTime (TimeBase tb,
- const TimeRecord * tr) THREEWORDINLINE(0x303C, 0x00AC, 0xAAAA);
- EXTERN_API( TimeValue )
- GetTimeBaseStopTime (TimeBase tb,
- TimeScale s,
- TimeRecord * tr) THREEWORDINLINE(0x303C, 0x00AD, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseStopTime (TimeBase tb,
- const TimeRecord * tr) THREEWORDINLINE(0x303C, 0x00AE, 0xAAAA);
- EXTERN_API( long )
- GetTimeBaseFlags (TimeBase tb) THREEWORDINLINE(0x303C, 0x00B1, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseFlags (TimeBase tb,
- long timeBaseFlags) THREEWORDINLINE(0x303C, 0x00B2, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseMasterTimeBase (TimeBase slave,
- TimeBase master,
- const TimeRecord * slaveZero) THREEWORDINLINE(0x303C, 0x00B4, 0xAAAA);
- EXTERN_API( TimeBase )
- GetTimeBaseMasterTimeBase (TimeBase tb) THREEWORDINLINE(0x303C, 0x00AF, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseMasterClock (TimeBase slave,
- Component clockMeister,
- const TimeRecord * slaveZero) THREEWORDINLINE(0x303C, 0x00B3, 0xAAAA);
- EXTERN_API( ComponentInstance )
- GetTimeBaseMasterClock (TimeBase tb) THREEWORDINLINE(0x303C, 0x00B0, 0xAAAA);
- EXTERN_API( void )
- ConvertTime (TimeRecord * inout,
- TimeBase newBase) THREEWORDINLINE(0x303C, 0x00B5, 0xAAAA);
- EXTERN_API( void )
- ConvertTimeScale (TimeRecord * inout,
- TimeScale newScale) THREEWORDINLINE(0x303C, 0x00B7, 0xAAAA);
- EXTERN_API( void )
- AddTime (TimeRecord * dst,
- const TimeRecord * src) THREEWORDINLINE(0x303C, 0x010C, 0xAAAA);
- EXTERN_API( void )
- SubtractTime (TimeRecord * dst,
- const TimeRecord * src) THREEWORDINLINE(0x303C, 0x010D, 0xAAAA);
- EXTERN_API( long )
- GetTimeBaseStatus (TimeBase tb,
- TimeRecord * unpinnedTime) THREEWORDINLINE(0x303C, 0x010B, 0xAAAA);
- EXTERN_API( void )
- SetTimeBaseZero (TimeBase tb,
- TimeRecord * zero) THREEWORDINLINE(0x303C, 0x0128, 0xAAAA);
- EXTERN_API( Fixed )
- GetTimeBaseEffectiveRate (TimeBase tb) THREEWORDINLINE(0x303C, 0x0124, 0xAAAA);
- /****************************************
- * *
- * C A L L B A C K *
- * *
- ****************************************/
- EXTERN_API( QTCallBack )
- NewCallBack (TimeBase tb,
- short cbType) THREEWORDINLINE(0x303C, 0x00EB, 0xAAAA);
- EXTERN_API( void )
- DisposeCallBack (QTCallBack cb) THREEWORDINLINE(0x303C, 0x00EC, 0xAAAA);
- EXTERN_API( short )
- GetCallBackType (QTCallBack cb) THREEWORDINLINE(0x303C, 0x00ED, 0xAAAA);
- EXTERN_API( TimeBase )
- GetCallBackTimeBase (QTCallBack cb) THREEWORDINLINE(0x303C, 0x00EE, 0xAAAA);
- EXTERN_API( OSErr )
- CallMeWhen (QTCallBack cb,
- QTCallBackUPP callBackProc,
- long refCon,
- long param1,
- long param2,
- long param3) THREEWORDINLINE(0x303C, 0x00B8, 0xAAAA);
- EXTERN_API( void )
- CancelCallBack (QTCallBack cb) THREEWORDINLINE(0x303C, 0x00B9, 0xAAAA);
- /****************************************
- * *
- * C L O C K C A L L B A C K *
- * S U P P O R T *
- * *
- ****************************************/
- EXTERN_API( OSErr )
- AddCallBackToTimeBase (QTCallBack cb) THREEWORDINLINE(0x303C, 0x0129, 0xAAAA);
- EXTERN_API( OSErr )
- RemoveCallBackFromTimeBase (QTCallBack cb) THREEWORDINLINE(0x303C, 0x012A, 0xAAAA);
- EXTERN_API( QTCallBack )
- GetFirstCallBack (TimeBase tb) THREEWORDINLINE(0x303C, 0x012B, 0xAAAA);
- EXTERN_API( QTCallBack )
- GetNextCallBack (QTCallBack cb) THREEWORDINLINE(0x303C, 0x012C, 0xAAAA);
- EXTERN_API( void )
- ExecuteCallBack (QTCallBack cb) THREEWORDINLINE(0x303C, 0x012D, 0xAAAA);
- EXTERN_API( ComponentResult )
- MusicMediaGetIndexedTunePlayer (ComponentInstance ti,
- long sampleDescIndex,
- ComponentInstance * tp) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0101, 0x7000, 0xA82A);
- /* UPP call backs */
- #if OPAQUE_UPP_TYPES
- EXTERN_API(MCActionFilterUPP)
- NewMCActionFilterUPP (MCActionFilterProcPtr userRoutine);
- EXTERN_API(MCActionFilterWithRefConUPP)
- NewMCActionFilterWithRefConUPP (MCActionFilterWithRefConProcPtr userRoutine);
- EXTERN_API(void)
- DisposeMCActionFilterUPP (MCActionFilterUPP userUPP);
- EXTERN_API(void)
- DisposeMCActionFilterWithRefConUPP (MCActionFilterWithRefConUPP userUPP);
- EXTERN_API(Boolean)
- InvokeMCActionFilterUPP (MovieController mc,
- short * action,
- void * params,
- MCActionFilterUPP userUPP);
- EXTERN_API(Boolean)
- InvokeMCActionFilterWithRefConUPP (MovieController mc,
- short action,
- void * params,
- long refCon,
- MCActionFilterWithRefConUPP userUPP);
- #else
- enum { uppMCActionFilterProcInfo = 0x00000FD0 }; /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes) */
- enum { uppMCActionFilterWithRefConProcInfo = 0x00003ED0 }; /* pascal 1_byte Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
- #define NewMCActionFilterUPP(userRoutine) (MCActionFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMCActionFilterProcInfo, GetCurrentArchitecture())
- #define NewMCActionFilterWithRefConUPP(userRoutine) (MCActionFilterWithRefConUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMCActionFilterWithRefConProcInfo, GetCurrentArchitecture())
- #define DisposeMCActionFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMCActionFilterWithRefConUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeMCActionFilterUPP(mc, action, params, userUPP) (Boolean)CALL_THREE_PARAMETER_UPP((userUPP), uppMCActionFilterProcInfo, (mc), (action), (params))
- #define InvokeMCActionFilterWithRefConUPP(mc, action, params, refCon, userUPP) (Boolean)CALL_FOUR_PARAMETER_UPP((userUPP), uppMCActionFilterWithRefConProcInfo, (mc), (action), (params), (refCon))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewMCActionFilterProc(userRoutine) NewMCActionFilterUPP(userRoutine)
- #define NewMCActionFilterWithRefConProc(userRoutine) NewMCActionFilterWithRefConUPP(userRoutine)
- #define CallMCActionFilterProc(userRoutine, mc, action, params) InvokeMCActionFilterUPP(mc, action, params, userRoutine)
- #define CallMCActionFilterWithRefConProc(userRoutine, mc, action, params, refCon) InvokeMCActionFilterWithRefConUPP(mc, action, params, refCon, userRoutine)
- /* selectors for component calls */
- enum {
- kVideoMediaResetStatisticsSelect = 0x0105,
- kVideoMediaGetStatisticsSelect = 0x0106,
- kVideoMediaGetStallCountSelect = 0x010E,
- kVideoMediaSetCodecParameterSelect = 0x010F,
- kVideoMediaGetCodecParameterSelect = 0x0110,
- kTextMediaSetTextProcSelect = 0x0101,
- kTextMediaAddTextSampleSelect = 0x0102,
- kTextMediaAddTESampleSelect = 0x0103,
- kTextMediaAddHiliteSampleSelect = 0x0104,
- kTextMediaDrawRawSelect = 0x0109,
- kTextMediaSetTextPropertySelect = 0x010A,
- kTextMediaRawSetupSelect = 0x010B,
- kTextMediaRawIdleSelect = 0x010C,
- kTextMediaGetTextPropertySelect = 0x010D,
- kTextMediaFindNextTextSelect = 0x0105,
- kTextMediaHiliteTextSampleSelect = 0x0106,
- kTextMediaSetTextSampleDataSelect = 0x0107,
- kSpriteMediaSetPropertySelect = 0x0101,
- kSpriteMediaGetPropertySelect = 0x0102,
- kSpriteMediaHitTestSpritesSelect = 0x0103,
- kSpriteMediaCountSpritesSelect = 0x0104,
- kSpriteMediaCountImagesSelect = 0x0105,
- kSpriteMediaGetIndImageDescriptionSelect = 0x0106,
- kSpriteMediaGetDisplayedSampleNumberSelect = 0x0107,
- kSpriteMediaGetSpriteNameSelect = 0x0108,
- kSpriteMediaGetImageNameSelect = 0x0109,
- kSpriteMediaSetSpritePropertySelect = 0x010A,
- kSpriteMediaGetSpritePropertySelect = 0x010B,
- kSpriteMediaHitTestAllSpritesSelect = 0x010C,
- kSpriteMediaHitTestOneSpriteSelect = 0x010D,
- kSpriteMediaSpriteIndexToIDSelect = 0x010E,
- kSpriteMediaSpriteIDToIndexSelect = 0x010F,
- kSpriteMediaGetSpriteActionsForQTEventSelect = 0x0110,
- kSpriteMediaSetActionVariableSelect = 0x0111,
- kSpriteMediaGetActionVariableSelect = 0x0112,
- kSpriteMediaGetIndImagePropertySelect = 0x0113,
- kSpriteMediaNewSpriteSelect = 0x0114,
- kSpriteMediaDisposeSpriteSelect = 0x0115,
- kSpriteMediaSetActionVariableToStringSelect = 0x0116,
- kSpriteMediaGetActionVariableAsStringSelect = 0x0117,
- kSpriteMediaNewImageSelect = 0x011B,
- kSpriteMediaDisposeImageSelect = 0x011C,
- kSpriteMediaImageIndexToIDSelect = 0x011D,
- kSpriteMediaImageIDToIndexSelect = 0x011E,
- kFlashMediaSetPanSelect = 0x0101,
- kFlashMediaSetZoomSelect = 0x0102,
- kFlashMediaSetZoomRectSelect = 0x0103,
- kFlashMediaGetRefConBoundsSelect = 0x0104,
- kFlashMediaGetRefConIDSelect = 0x0105,
- kFlashMediaIDToRefConSelect = 0x0106,
- kFlashMediaGetDisplayedFrameNumberSelect = 0x0107,
- kFlashMediaFrameNumberToMovieTimeSelect = 0x0108,
- kFlashMediaFrameLabelToMovieTimeSelect = 0x0109,
- kFlashMediaGetFlashVariableSelect = 0x010A,
- kFlashMediaSetFlashVariableSelect = 0x010B,
- kFlashMediaDoButtonActionsSelect = 0x010C,
- kFlashMediaGetSupportedSwfVersionSelect = 0x010D,
- kMovieMediaGetChildDoMCActionCallbackSelect = 0x0102,
- kMovieMediaGetDoMCActionCallbackSelect = 0x0103,
- kMovieMediaGetCurrentMoviePropertySelect = 0x0104,
- kMovieMediaGetCurrentTrackPropertySelect = 0x0105,
- kMovieMediaGetChildMovieDataReferenceSelect = 0x0106,
- kMovieMediaSetChildMovieDataReferenceSelect = 0x0107,
- kMovieMediaLoadChildMovieFromDataReferenceSelect = 0x0108,
- kMedia3DGetNamedObjectListSelect = 0x0101,
- kMedia3DGetRendererListSelect = 0x0102,
- kMedia3DGetCurrentGroupSelect = 0x0103,
- kMedia3DTranslateNamedObjectToSelect = 0x0104,
- kMedia3DScaleNamedObjectToSelect = 0x0105,
- kMedia3DRotateNamedObjectToSelect = 0x0106,
- kMedia3DSetCameraDataSelect = 0x0107,
- kMedia3DGetCameraDataSelect = 0x0108,
- kMedia3DSetCameraAngleAspectSelect = 0x0109,
- kMedia3DGetCameraAngleAspectSelect = 0x010A,
- kMedia3DSetCameraRangeSelect = 0x010D,
- kMedia3DGetCameraRangeSelect = 0x010E,
- kMedia3DGetViewObjectSelect = 0x010F,
- kMCSetMovieSelect = 0x0002,
- kMCGetIndMovieSelect = 0x0005,
- kMCRemoveAllMoviesSelect = 0x0006,
- kMCRemoveAMovieSelect = 0x0003,
- kMCRemoveMovieSelect = 0x0006,
- kMCIsPlayerEventSelect = 0x0007,
- kMCSetActionFilterSelect = 0x0008,
- kMCDoActionSelect = 0x0009,
- kMCSetControllerAttachedSelect = 0x000A,
- kMCIsControllerAttachedSelect = 0x000B,
- kMCSetControllerPortSelect = 0x000C,
- kMCGetControllerPortSelect = 0x000D,
- kMCSetVisibleSelect = 0x000E,
- kMCGetVisibleSelect = 0x000F,
- kMCGetControllerBoundsRectSelect = 0x0010,
- kMCSetControllerBoundsRectSelect = 0x0011,
- kMCGetControllerBoundsRgnSelect = 0x0012,
- kMCGetWindowRgnSelect = 0x0013,
- kMCMovieChangedSelect = 0x0014,
- kMCSetDurationSelect = 0x0015,
- kMCGetCurrentTimeSelect = 0x0016,
- kMCNewAttachedControllerSelect = 0x0017,
- kMCDrawSelect = 0x0018,
- kMCActivateSelect = 0x0019,
- kMCIdleSelect = 0x001A,
- kMCKeySelect = 0x001B,
- kMCClickSelect = 0x001C,
- kMCEnableEditingSelect = 0x001D,
- kMCIsEditingEnabledSelect = 0x001E,
- kMCCopySelect = 0x001F,
- kMCCutSelect = 0x0020,
- kMCPasteSelect = 0x0021,
- kMCClearSelect = 0x0022,
- kMCUndoSelect = 0x0023,
- kMCPositionControllerSelect = 0x0024,
- kMCGetControllerInfoSelect = 0x0025,
- kMCSetClipSelect = 0x0028,
- kMCGetClipSelect = 0x0029,
- kMCDrawBadgeSelect = 0x002A,
- kMCSetUpEditMenuSelect = 0x002B,
- kMCGetMenuStringSelect = 0x002C,
- kMCSetActionFilterWithRefConSelect = 0x002D,
- kMCPtInControllerSelect = 0x002E,
- kMCInvalidateSelect = 0x002F,
- kMCAdjustCursorSelect = 0x0030,
- kMCGetInterfaceElementSelect = 0x0031,
- kMCGetDoActionsProcSelect = 0x0032,
- kMCAddMovieSegmentSelect = 0x0033,
- kMCTrimMovieSegmentSelect = 0x0034,
- kMCSetIdleManagerSelect = 0x0035,
- kMCSetControllerCapabilitiesSelect = 0x0036,
- kMusicMediaGetIndexedTunePlayerSelect = 0x0101
- };
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align=reset
- #elif PRAGMA_STRUCT_PACKPUSH
- #pragma pack(pop)
- #elif PRAGMA_STRUCT_PACK
- #pragma pack()
- #endif
- #ifdef PRAGMA_IMPORT_OFF
- #pragma import off
- #elif PRAGMA_IMPORT
- #pragma import reset
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* __MOVIES__ */