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

View File

@ -115,6 +115,7 @@ Media = OpaqueByValueType('Media', 'MediaObj')
UserData = OpaqueByValueType('UserData', 'UserDataObj')
TimeBase = OpaqueByValueType('TimeBase', 'TimeBaseObj')
MovieController = OpaqueByValueType('MovieController', 'MovieCtlObj')
IdleManager = OpaqueByValueType('IdleManager', 'IdleManagerObj')
# Other opaque objects
Component = OpaqueByValueType('Component', 'CmpObj')
@ -230,6 +231,13 @@ class MovieCtlObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
def outputFreeIt(self, 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...
# Create the generator groups and link them
@ -240,7 +248,9 @@ Media_object = MediaObjectDefinition('Media', 'MediaObj', 'Media')
UserData_object = UserDataObjectDefinition('UserData', 'UserDataObj', 'UserData')
TimeBase_object = TimeBaseObjectDefinition('TimeBase', 'TimeBaseObj', 'TimeBase')
MovieController_object = MovieCtlObjectDefinition('MovieController', 'MovieCtlObj', 'MovieController')
IdleManager_object = IdleManagerObjectDefinition('IdleManager', 'IdleManagerObj', 'IdleManager')
module.addobject(IdleManager_object)
module.addobject(MovieController_object)
module.addobject(TimeBase_object)
module.addobject(UserData_object)
@ -254,6 +264,7 @@ Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists
functions = []
IdleManager_methods = []
MovieController_methods = []
TimeBase_methods = []
UserData_methods = []