[Python-checkins] python/dist/src/Mac/Modules/qt _Qtmodule.c, 1.18, 1.19 qtscan.py, 1.23, 1.24 qtsupport.py, 1.23, 1.24

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Fri Jan 2 18:51:24 EST 2004


Update of /cvsroot/python/python/dist/src/Mac/Modules/qt
In directory sc8-pr-cvs1:/tmp/cvs-serv22491

Modified Files:
	_Qtmodule.c qtscan.py qtsupport.py 
Log Message:
Added support for ImageCompression.h APIs.


Index: _Qtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qt/_Qtmodule.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** _Qtmodule.c	2 Jan 2004 23:27:42 -0000	1.18
--- _Qtmodule.c	2 Jan 2004 23:51:22 -0000	1.19
***************
*** 10183,10186 ****
--- 10183,14092 ----
  }
  
+ static PyObject *Qt_CodecManagerVersion(PyObject *_self, PyObject *_args)
+ {
+ 	PyObject *_res = NULL;
+ 	OSErr _err;
+ 	long version;
+ #ifndef CodecManagerVersion
+ 	PyMac_PRECHECK(CodecManagerVersion);
[...4248 lines suppressed...]
+ 	{"GraphicsExportGetOutputMark", (PyCFunction)Qt_GraphicsExportGetOutputMark, 1,
+ 	 PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long mark)")},
+ 	{"GraphicsExportReadOutputData", (PyCFunction)Qt_GraphicsExportReadOutputData, 1,
+ 	 PyDoc_STR("(GraphicsExportComponent ci, void * dataPtr, unsigned long dataOffset, unsigned long dataSize) -> (ComponentResult _rv)")},
+ 	{"GraphicsExportSetThumbnailEnabled", (PyCFunction)Qt_GraphicsExportSetThumbnailEnabled, 1,
+ 	 PyDoc_STR("(GraphicsExportComponent ci, Boolean enableThumbnail, long maxThumbnailWidth, long maxThumbnailHeight) -> (ComponentResult _rv)")},
+ 	{"GraphicsExportGetThumbnailEnabled", (PyCFunction)Qt_GraphicsExportGetThumbnailEnabled, 1,
+ 	 PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean thumbnailEnabled, long maxThumbnailWidth, long maxThumbnailHeight)")},
+ 	{"GraphicsExportSetExifEnabled", (PyCFunction)Qt_GraphicsExportSetExifEnabled, 1,
+ 	 PyDoc_STR("(GraphicsExportComponent ci, Boolean enableExif) -> (ComponentResult _rv)")},
+ 	{"GraphicsExportGetExifEnabled", (PyCFunction)Qt_GraphicsExportGetExifEnabled, 1,
+ 	 PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean exifEnabled)")},
+ 	{"ImageTranscoderBeginSequence", (PyCFunction)Qt_ImageTranscoderBeginSequence, 1,
+ 	 PyDoc_STR("(ImageTranscoderComponent itc, ImageDescriptionHandle srcDesc, void * data, long dataSize) -> (ComponentResult _rv, ImageDescriptionHandle dstDesc)")},
+ 	{"ImageTranscoderDisposeData", (PyCFunction)Qt_ImageTranscoderDisposeData, 1,
+ 	 PyDoc_STR("(ImageTranscoderComponent itc, void * dstData) -> (ComponentResult _rv)")},
+ 	{"ImageTranscoderEndSequence", (PyCFunction)Qt_ImageTranscoderEndSequence, 1,
+ 	 PyDoc_STR("(ImageTranscoderComponent itc) -> (ComponentResult _rv)")},
  	{"AlignWindow", (PyCFunction)Qt_AlignWindow, 1,
  	 PyDoc_STR("(WindowPtr wp, Boolean front) -> None")},

Index: qtscan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qt/qtscan.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** qtscan.py	2 Jan 2004 23:27:42 -0000	1.23
--- qtscan.py	2 Jan 2004 23:51:22 -0000	1.24
***************
*** 12,16 ****
  
  def main():
! 	input = "Movies.h"
  	output = SHORT + "gen.py"
  	defsoutput = TOOLBOXDIR + LONG + ".py"
--- 12,16 ----
  
  def main():
! 	input = ("Movies.h", "ImageCompression.h")
  	output = SHORT + "gen.py"
  	defsoutput = TOOLBOXDIR + LONG + ".py"
***************
*** 77,80 ****
--- 77,82 ----
  			'Media3DGetViewObject',
  
+             # these are ImageCompression blacklists
+ 			"GraphicsExportGetInputPtr",
  			]
  
***************
*** 123,126 ****
--- 125,160 ----
  			"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.
  			]
  

Index: qtsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qt/qtsupport.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** qtsupport.py	2 Jan 2004 23:27:42 -0000	1.23
--- qtsupport.py	2 Jan 2004 23:51:22 -0000	1.24
***************
*** 122,125 ****
--- 122,132 ----
  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')
***************
*** 173,176 ****
--- 180,184 ----
  GWorldPtr = OpaqueByValueType("GWorldPtr", "GWorldObj")
  QTFloatSingle = Type("QTFloatSingle", "f")
+ CodecQ = Type("CodecQ", "l")
  
  # Could-not-be-bothered-types (NewMovieFromFile)





More information about the Python-checkins mailing list