Updated for QuickTime 6.0, Universal Header 3.4.2.

This commit is contained in:
Jack Jansen 2004-01-02 23:27:42 +00:00
parent ecd9129c94
commit 59f7dc9b40
3 changed files with 819 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ from scantools import Scanner
LONG = "QuickTime" LONG = "QuickTime"
SHORT = "qt" SHORT = "qt"
OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController") OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController", "IdleManager")
def main(): def main():
input = "Movies.h" input = "Movies.h"
@ -91,6 +91,10 @@ class MyScanner(Scanner):
"MatrixRecord_ptr", "MatrixRecord_ptr",
"SampleReferencePtr", "SampleReferencePtr",
"QTTweener", "QTTweener",
"QTErrorReplacementPtr",
"QTRestrictionSet",
"QTUUID",
"QTUUID_ptr",
# Routine pointers, not yet. # Routine pointers, not yet.
"MoviesErrorUPP", "MoviesErrorUPP",
@ -109,6 +113,7 @@ class MyScanner(Scanner):
"MovieExecuteWiredActionsUPP", "MovieExecuteWiredActionsUPP",
"QTBandwidthNotificationUPP", "QTBandwidthNotificationUPP",
"DoMCActionUPP", "DoMCActionUPP",
"QTNextTaskNeededSoonerCallbackUPP",
"SampleReference64Ptr", # Don't know what this does, yet "SampleReference64Ptr", # Don't know what this does, yet
"QTRuntimeSpriteDescPtr", "QTRuntimeSpriteDescPtr",

View File

@ -115,6 +115,7 @@ Media = OpaqueByValueType('Media', 'MediaObj')
UserData = OpaqueByValueType('UserData', 'UserDataObj') UserData = OpaqueByValueType('UserData', 'UserDataObj')
TimeBase = OpaqueByValueType('TimeBase', 'TimeBaseObj') TimeBase = OpaqueByValueType('TimeBase', 'TimeBaseObj')
MovieController = OpaqueByValueType('MovieController', 'MovieCtlObj') MovieController = OpaqueByValueType('MovieController', 'MovieCtlObj')
IdleManager = OpaqueByValueType('IdleManager', 'IdleManagerObj')
# Other opaque objects # Other opaque objects
Component = OpaqueByValueType('Component', 'CmpObj') Component = OpaqueByValueType('Component', 'CmpObj')
@ -230,6 +231,13 @@ class MovieCtlObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
def outputFreeIt(self, itselfname): def outputFreeIt(self, itselfname):
Output("DisposeMovieController(%s);", itselfname) Output("DisposeMovieController(%s);", itselfname)
class IdleManagerObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
def outputCheckNewArg(self):
Output("""if (itself == NULL) {
PyErr_SetString(Qt_Error,"Cannot create null IdleManager");
return NULL;
}""")
# From here on it's basically all boiler plate... # From here on it's basically all boiler plate...
# Create the generator groups and link them # Create the generator groups and link them
@ -240,7 +248,9 @@ Media_object = MediaObjectDefinition('Media', 'MediaObj', 'Media')
UserData_object = UserDataObjectDefinition('UserData', 'UserDataObj', 'UserData') UserData_object = UserDataObjectDefinition('UserData', 'UserDataObj', 'UserData')
TimeBase_object = TimeBaseObjectDefinition('TimeBase', 'TimeBaseObj', 'TimeBase') TimeBase_object = TimeBaseObjectDefinition('TimeBase', 'TimeBaseObj', 'TimeBase')
MovieController_object = MovieCtlObjectDefinition('MovieController', 'MovieCtlObj', 'MovieController') MovieController_object = MovieCtlObjectDefinition('MovieController', 'MovieCtlObj', 'MovieController')
IdleManager_object = IdleManagerObjectDefinition('IdleManager', 'IdleManagerObj', 'IdleManager')
module.addobject(IdleManager_object)
module.addobject(MovieController_object) module.addobject(MovieController_object)
module.addobject(TimeBase_object) module.addobject(TimeBase_object)
module.addobject(UserData_object) module.addobject(UserData_object)
@ -254,6 +264,7 @@ Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists # Create and populate the lists
functions = [] functions = []
IdleManager_methods = []
MovieController_methods = [] MovieController_methods = []
TimeBase_methods = [] TimeBase_methods = []
UserData_methods = [] UserData_methods = []