Added support for ImageCompression.h APIs.

This commit is contained in:
Jack Jansen 2004-01-02 23:51:22 +00:00
parent 59f7dc9b40
commit 067782438e
3 changed files with 4309 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@ SHORT = "qt"
OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController", "IdleManager")
def main():
input = "Movies.h"
input = ("Movies.h", "ImageCompression.h")
output = SHORT + "gen.py"
defsoutput = TOOLBOXDIR + LONG + ".py"
scanner = MyScanner(input, output, defsoutput)
@ -76,6 +76,8 @@ class MyScanner(Scanner):
'MovieMediaLoadChildMovieFromDataReference',
'Media3DGetViewObject',
# these are ImageCompression blacklists
"GraphicsExportGetInputPtr",
]
def makeblacklisttypes(self):
@ -122,6 +124,38 @@ class MyScanner(Scanner):
"QTAtomContainer",
"SpriteWorld",
"Sprite",
# these are ImageCompression blacklists
"ICMDataUPP",
"ICMFlushUPP",
"ICMCompletionUPP",
"ICMProgressUPP",
"StdPixUPP",
"QDPixUPP",
"ICMAlignmentUPP",
"ICMCursorShieldedUPP",
"ICMMemoryDisposedUPP",
"ICMConvertDataFormatUPP",
"ModalFilterYDUPP",
"FileFilterUPP",
"CodecNameSpecListPtr",
"CodecInfo",
"ImageSequence",
"MatrixRecordPtr",
"ICMDataProcRecordPtr",
"OpenCPicParams",
"ICMProgressProcRecordPtr",
"ICMAlignmentProcRecordPtr",
"ICMPixelFormatInfoPtr",
"ImageSequenceDataSource",
"ConstStrFileNameParam",
"ImageTranscodeSequence",
"ImageFieldSequence",
"Fract",
"PixMapPtr",
"GWorldFlags",
"void_ptr", # XXX Being lazy, this one is doable.
]
def makerepairinstructions(self):

View File

@ -121,6 +121,13 @@ IdleManager = OpaqueByValueType('IdleManager', 'IdleManagerObj')
Component = OpaqueByValueType('Component', 'CmpObj')
MediaHandlerComponent = OpaqueByValueType('MediaHandlerComponent', 'CmpObj')
DataHandlerComponent = OpaqueByValueType('DataHandlerComponent', 'CmpObj')
CompressorComponent = OpaqueByValueType('CompressorComponent', 'CmpObj')
DecompressorComponent = OpaqueByValueType('DecompressorComponent', 'CmpObj')
CodecComponent = OpaqueByValueType('CodecComponent', 'CmpObj')
GraphicsImportComponent = OpaqueByValueType('GraphicsImportComponent', 'CmpObj')
GraphicsExportComponent = OpaqueByValueType('GraphicsExportComponent', 'CmpObj')
ImageTranscoderComponent = OpaqueByValueType('ImageTranscoderComponent', 'CmpObj')
ComponentInstance = OpaqueByValueType('ComponentInstance', 'CmpInstObj')
MediaHandler = OpaqueByValueType('MediaHandler', 'CmpInstObj')
@ -172,6 +179,7 @@ MCInterfaceElement = Type("MCInterfaceElement", "l")
CodecType = OSTypeType("CodecType")
GWorldPtr = OpaqueByValueType("GWorldPtr", "GWorldObj")
QTFloatSingle = Type("QTFloatSingle", "f")
CodecQ = Type("CodecQ", "l")
# Could-not-be-bothered-types (NewMovieFromFile)
dummyshortptr = FakeType('(short *)0')