| Framework | Frameworks/QuickTime.framework |
| Declared in | Movies.h QuickTimeComponents.h |
APIs are provided to help developer create new components that import and export data to and from QuickTime movies, including managing movie previews.
MovieImportDoUserDialog
MovieImportSetAuxiliaryData
MovieImportSetChunkSize
MovieImportSetDimensions
MovieImportSetDuration
MovieImportSetFromScrap
MovieImportSetMediaFile
MovieImportSetProgressProc
MovieImportSetSampleDescription
MovieImportSetSampleDuration
MovieExportAddDataSource
MovieExportDisposeGetDataAndPropertiesProcs
MovieExportFromProceduresToDataRef
MovieExportGetAuxiliaryData
MovieExportGetSettingsAsAtomContainer
MovieExportNewGetDataAndPropertiesProcs
MovieExportSetGetMoviePropertyProc
MovieExportSetSampleDescription
MovieExportSetSettingsFromAtomContainer
MovieExportToDataRef
MovieExportToFile
MovieExportToHandle
MovieExportValidate
TextExportGetDisplayData
TextExportGetSettings
TextExportGetTimeFraction
TextExportSetSettings
TextExportSetTimeFraction
MovieImportFile
MovieImportGetAuxiliaryDataType
MovieImportGetDestinationMediaType
MovieImportGetFileType
MovieImportGetMIMETypeList
MovieImportGetSettingsAsAtomContainer
MovieImportHandle
MovieImportSetOffsetAndLimit
MovieImportSetOffsetAndLimit64
MovieImportSetSettingsFromAtomContainer
MovieImportValidate
MovieImportValidateDataRef
TCFrameNumberToTimeCode
TCGetCurrentTimeCode
TCGetDisplayOptions
TCGetSourceRef
TCGetTimeCodeAtTime
TCGetTimeCodeFlags
TCSetDisplayOptions
TCSetSourceRef
TCSetTimeCodeFlags
TCTimeCodeToFrameNumber
TCTimeCodeToString
ClockGetRate
ClockGetRateChangeConstraints
ClockGetTime
DisposeMovieExportGetDataUPP
DisposeMovieExportGetPropertyUPP
DisposeMovieExportStageReachedCallbackUPP
DisposeSCModalFilterUPP
DisposeSCModalHookUPP
GraphicsImageImportGetSequenceEnabled
GraphicsImageImportSetSequenceEnabled
MovieExportGetCreatorType
MovieExportGetFileNameExtension
MovieExportGetShortFileTypeString
MovieExportGetSourceMediaType
MovieImportDataRef
MovieImportDoUserDialogDataRef
MovieImportEstimateCompletionTime
MovieImportGetDontBlock
MovieImportGetLoadState
MovieImportGetMaxLoadedTime
MovieImportGetSampleDescription
MovieImportIdle
MovieImportSetDontBlock
MovieImportSetMediaDataRef
NewMovieExportGetDataUPP
NewMovieExportGetPropertyUPP
NewMovieExportStageReachedCallbackUPP
NewSCModalFilterUPP
NewSCModalHookUPP
SCAsyncIdle
SCAudioInvokeLegacyCodecOptionsDialog
SCCompressSequenceFrameAsync
SCCopyCompressionSessionOptions
SCGetCompressFlags
SCGetCompressionExtended
SCGetSettingsAsAtomContainer
SCGetSettingsAsText
SCSetCompressFlags
SCSetSettingsFromAtomContainer
In a clock component, schedules a callback event for invocation.
ComponentResult ClockCallMeWhen ( ComponentInstance aClock, QTCallBack cb, long param1, long param2, long param3 );
Specifies the clock for the operation. Applications obtain this identifier from OpenComponent.
Specifies the callback event for the operation. The Movie Toolbox obtains this value from your component's ClockNewCallBack function.
Contains data supplied to the Movie Toolbox in the param1 parameter to the CallMeWhen function. Your component interprets this parameter based on the value of the callBackType parameter to the ClockNewCallBack function. If callBackType is set to callBackAtTime, the param1 parameter contains flags (see below) indicating when to invoke your callback function for this callback event. If the callBackType parameter is set to callBackAtRate, param1 contains flags (see below) indicating when to invoke your callback function for this event.
Contains data supplied to the Movie Toolbox in the param2 parameter to the CallMeWhen function. Your component interprets this parameter based on the value of the callBackType parameter to the ClockNewCallBack function. If callBackType is set to callBackAtTime, the param2 parameter contains the time value at which your callback function is to be invoked for this event. The param1 parameter contains flags affecting when the Movie Toolbox calls your function. If callBackType is set to callBackAtRate, the param2 parameter contains the rate value at which your callback function is to be invoked for this event.
Contains data supplied to the Movie Toolbox in the param3 parameter to the CallMeWhen function. If cbType is set to callBackAtTime, param3 contains the time scale in which to interpret the time value that is stored in param2.
See Error Codes. Returns noErr if there is no error.
If your clock component successfully schedules the callback event, you should call the AddCallBackToTimeBase function to add it to the list of callback events for the corresponding time base. If your component cannot schedule the callback event, it should return an appropriate error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, removes the specified callback event from the list of scheduled callback events for a time base.
ComponentResult ClockCancelCallBack ( ComponentInstance aClock, QTCallBack cb );
Specifies the clock for the operation. Your application obtains this identifier from the Component Manager's OpenComponent function.
Specifies the callback event for the operation. The Movie Toolbox obtains this value from your component's ClockNewCallBack function.
See Error Codes. Returns noErr if there is no error.
If your clock component successfully cancels the callback event, you should call the RemoveCallBackFromTimeBase function so that the Movie Toolbox can remove the callback event from its list of scheduled events.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, disposes of the memory associated with the specified callback event.
ComponentResult ClockDisposeCallBack ( ComponentInstance aClock, QTCallBack cb );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Specifies the callback event for the operation. The Movie Toolbox obtains this value from your component's ClockNewCallBack function.
See Error Codes. Returns noErr if there is no error.
You should not call this function at interrupt time.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hFetches the rate of a specified clock.
ComponentResult ClockGetRate ( ComponentInstance aClock, Fixed *rate );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Pointer to memory where the clock rate is returned.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hObtains minimum and maximum delays that a clock could introduce during a rate change.
ComponentResult ClockGetRateChangeConstraints ( ComponentInstance aClock, TimeRecord *minimumDelay, TimeRecord *maximumDelay );
Specifies the clock for the operation. Applications obtain this identifier from OpenComponent.
A pointer to a TimeRecord structure that the clock will update with the minimum delay introduced during a rate change. You can pass NIL if you do not want to receive this information.
A pointer to a TimeRecord structure that the clock will update with the maximum delay introduced during a rate change. You can pass NIL if you do not want to receive this information.
See Error Codes in the QuickTime API Reference. Returns noErr if there is no error. Returns badComponentSelector if the component does not support the call.
Introduced in QuickTime 6.4.
QuickTimeComponents.hObtains the current time according to a specified clock.
ComponentResult ClockGetTime ( ComponentInstance aClock, TimeRecord *out );
Specifies the clock for the operation. You obtain this identifier from OpenComponent or OpenDefaultComponent.
A pointer to a TimeRecord structure. The clock component updates this structure with the current time information. Specifically, the clock component sets the value field and the scale field in the time structure. Your clock component should always return values in its native time scale. This time scale does not change during the life of the component connection.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, allocates memory for a new callback event.
QTCallBack ClockNewCallBack ( ComponentInstance aClock, TimeBase tb, short callBackType );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Specifies the callback event's time base. Typically, your component does not need to save this specification. You can use the Movie Toolbox's GetCallBackTimeBase function to determine the callback event's time base when it is invoked. For more information about time bases, see Inside Macintosh: QuickTime.
Contains a constant (see below) that specifies when the callback event is to be invoked. The value of this parameter governs how your component interprets the data supplied in the param1, param2, and param3 parameters to ClockCallMeWhen. See these constants:
callBackAtTime
callBackAtRate
callBackAtTimeJump
callBackAtInterrupt
A pointer to a CallBackRecord structure. Your software can pass this structure to other functions, such as ClockRateChanged.
Your component allocates the memory required to support the callback event. The memory must be in a locked block and must begin with a QTCallBackHeader structure initialized to 0. Your component can allocate an arbitrarily large piece of memory for the callback event.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, is called whenever the callback's time base rate changes.
ComponentResult ClockRateChanged ( ComponentInstance aClock, QTCallBack cb );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Specifies the callback for the operation. The Movie Toolbox obtains this value from your component's ClockNewCallBack function.
See Error Codes. Returns noErr if there is no error.
The Movie Toolbox calls this function once for each qualified callback function associated with the time base. Note that the Movie Toolbox calls this function only for callback events that are currently scheduled.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, is called when an application creates a time base that uses the clock component.
ComponentResult ClockSetTimeBase ( ComponentInstance aClock, TimeBase tb );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Specifies the time base that is associated with the clock.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, is called whenever the start or stop time of the callback's time base changes.
ComponentResult ClockStartStopChanged ( ComponentInstance aClock, QTCallBack cb, Boolean startChanged, Boolean stopChanged );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Specifies the callback for the operation. The Movie Toolbox obtains this value from your component's ClockNewCallBack function.
Indicates that the start time of the time base associated with the clock component instance has changed.
Indicates that the stop time of the time base associated with the clock component instance has changed.
See Error Codes. Returns noErr if there is no error.
The Movie Toolbox calls this function once for each qualified callback function associated with the time base. Note that the Movie Toolbox calls this function only for callback events that are currently scheduled.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hIn a clock component, is called whenever the callback's time base time value is set.
ComponentResult ClockTimeChanged ( ComponentInstance aClock, QTCallBack cb );
Specifies the clock for the operation. Applications obtain this identifier from the Component Manager's OpenComponent function.
Specifies the callback for the operation. The Movie Toolbox obtains this value from your component's ClockNewCallBack function.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hDisposes of a MovieExportGetDataUPP pointer.
void DisposeMovieExportGetDataUPP ( MovieExportGetDataUPP userUPP );
A MovieExportGetDataUPP pointer. See Universal Procedure Pointers.
You can access this function's error returns through GetMoviesError and GetMoviesStickyError.
Introduced in QuickTime 4.1.
QuickTimeComponents.hDisposes of a MovieExportGetPropertyUPP pointer.
void DisposeMovieExportGetPropertyUPP ( MovieExportGetPropertyUPP userUPP );
A MovieExportGetPropertyUPP pointer. See Universal Procedure Pointers.
You can access this function's error returns through GetMoviesError and GetMoviesStickyError.
Introduced in QuickTime 4.1.
QuickTimeComponents.hDisposes of a MovieExportStageReachedCallbackUPP pointer.
void DisposeMovieExportStageReachedCallbackUPP ( MovieExportStageReachedCallbackUPP userUPP );
A MovieExportStageReachedCallbackUPP pointer.
QuickTimeComponents.hDisposes of an SCModalFilterUPP pointer.
void DisposeSCModalFilterUPP ( SCModalFilterUPP userUPP );
An SCModalFilterUPP pointer. See Universal Procedure Pointers.
You can access this function's error returns through GetMoviesError and GetMoviesStickyError.
Introduced in QuickTime 4.1.
QuickTimeComponents.hDisposes of an SCModalHookUPP pointer.
void DisposeSCModalHookUPP ( SCModalHookUPP userUPP );
An SCModalHookUPP pointer. See Universal Procedure Pointers.
You can access this function's error returns through GetMoviesError and GetMoviesStickyError.
Introduced in QuickTime 4.1.
QuickTimeComponents.hUndocumented
ComponentResult GraphicsImageImportGetSequenceEnabled ( GraphicImageMovieImportComponent ci, Boolean *enable );
The component instance that identifies your connection to the movie importer component.
A pointer to a Boolean that returns TRUE if enabled, FALSE otherwise.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hUndocumented
ComponentResult GraphicsImageImportSetSequenceEnabled ( GraphicImageMovieImportComponent ci, Boolean enable );
The component instance that identifies your connection to the movie importer component.
Pass TRUE to enable, FALSE to disable.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hObtains settings that control the importation of MIDI files.
ComponentResult MIDIImportGetSettings ( TextExportComponent ci, long *setting );
A text export component instance used to import a MIDI file. Your software obtains this reference from OpenComponent or OpenDefaultComponent.
Flags (see below) that control the importation of MIDI files. The flags correspond to the checkboxes in the MIDI Import Options dialog box. See these constants:
kMIDIImportSilenceBefore
kMIDIImportSilenceAfter
kMIDIImport20Playable
kMIDIImportWantLyrics
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hDefine settings that control the importation of MIDI files.
ComponentResult MIDIImportSetSettings ( TextExportComponent ci, long setting );
A text export component instance used to import a MIDI file. Your software obtains this reference from OpenComponent or OpenDefaultComponent.
Flags (see below) that control the importation of MIDI files. The flags correspond to the checkboxes in the MIDI Import Options dialog box. See these constants:
kMIDIImportSilenceBefore
kMIDIImportSilenceAfter
kMIDIImport20Playable
kMIDIImportWantLyrics
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hDefines a data source for use with an export operation performed by MovieExportFromProceduresToDataRef.
ComponentResult MovieExportAddDataSource ( MovieExportComponent ci, OSType trackType, TimeScale scale, long *trackID, MovieExportGetPropertyUPP getPropertyProc, MovieExportGetDataUPP getDataProc, void *refCon );
A movie export component instance. Your software obtains this reference from OpenComponent or OpenDefaultComponent.
The type of media provided by this data source. This normally corresponds to a QuickTime media type such as VideoMediaType or SoundMediaType.
The time scale for time values passed to getDataProc parameter. If the source data is being taken from a QuickTime track, this value is typically the media's time scale.
An identifier for the data source. This identifier is returned from the call.
A MovieExportGetPropertyProc callback that provides information about processing source samples.
A MovieExportGetDataProc callback the export component uses to request sample data.
Passed to the procedures specified in the getPropertyProc and getDataProc parameters. Use this parameter to point to a data structure containing any information your callbacks need.
See Error Codes. Returns noErr if there is no error.
Before starting an export operation, all the data sources must be defined by calling this function once for each data source.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hDisposes of the memory associated with the procedures returned by MovieExportNewGetDataAndPropertiesProcs.
ComponentResult MovieExportDisposeGetDataAndPropertiesProcs ( MovieExportComponent ci, MovieExportGetPropertyUPP getPropertyProc, MovieExportGetDataUPP getDataProc, void *refCon );
A movie export component instance. Your software obtains this reference from OpenComponent or OpenDefaultComponent.
A MovieExportGetPropertyProc callback that provides information about processing source samples.
A MovieExportGetDataProc callback that the export component uses to request sample data.
Passed to the procedures specified in the getPropertyProc and getDataProc parameters. Use this parameter to point to a data structure containing any information your callbacks need.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hRequests that a component display its user dialog box.
ComponentResult MovieExportDoUserDialog ( MovieExportComponent ci, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration, Boolean *canceled );
A movie export component instance. Your software obtains this reference from OpenComponent or OpenDefaultComponent.
The movie containing the data to be exported.
Specifies that the export component should only attempt to export the data from a single track. If this parameter is set to NIL, the exporter should attempt to export the entire movie, or all of the tracks in the movie that it can export. For example, an audio export component might export multiple audio tracks, mixing them if necessary. If this parameter is not NIL, the exporter should attempt to export only the specified track.
The movie time at which to begin the export operation. If you pass 0, the operation should start at the beginning of the movie or track.
The duration, in movie timescale units, of the segment to be exported. To export the entire movie, or an entire track, pass in the value returned by GetMovieDuration or GetTrackDuration, minus the value passed in startTime, as described above.
A pointer to a Boolean value. Your component should set this value to TRUE if the user cancels the dialog box, otherwise FALSE. If the user cancels the dialog box, your component should revert to its settings as they were before executing this function.
See Error Codes. Returns noErr if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.hExports data provided by MovieExportAddDataSource to a specified location.
ComponentResult MovieExportFromProceduresToDataRef ( MovieExportComponent ci, Handle dataRef, OSType dataRefType );
A movie export component instance. Your software obtains this reference from OpenComponent or OpenDefaultComponent.
The data reference for the export operation.
The type identifier for the data reference specified by dataRef.
See Error Codes. Returns noErr if there is no error.
This function exports data provided by MovieExportAddDataSource to a location specified by dataRef and dataRefType. Typically dataRef contains a Macintosh file alias and dataRefType is set to rAliasType.
Movie data export components that support export operations from procedures must set the canMovieExportFromProcedures flag in their component flags.
Introduced in QuickTime 3 or earlier.
QuickTimeComponents.h