mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Added support for ImageCompression.h APIs.
This commit is contained in:
parent
59f7dc9b40
commit
067782438e
File diff suppressed because it is too large
Load Diff
@ -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):
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user