[Python-checkins] python/dist/src/Mac/Modules/qt _Qtmodule.c, 1.21, 1.22 qtscan.py, 1.25, 1.26

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Fri Jan 9 18:18:49 EST 2004


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

Modified Files:
	_Qtmodule.c qtscan.py 
Log Message:
Added support for APIs in MediaHandlers.h.


Index: _Qtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qt/_Qtmodule.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** _Qtmodule.c	4 Jan 2004 22:33:33 -0000	1.21
--- _Qtmodule.c	9 Jan 2004 23:18:47 -0000	1.22
***************
*** 23038,23041 ****
--- 23038,24798 ----
  }
  
+ static PyObject *Qt_MediaSetChunkManagementFlags(PyObject *_self, PyObject *_args)
+ {
+ 	PyObject *_res = NULL;
+ 	ComponentResult _rv;
+ 	MediaHandler mh;
+ 	UInt32 flags;
+ 	UInt32 flagsMask;
[...1903 lines suppressed...]
+ 	{"MediaVideoOutputChanged", (PyCFunction)Qt_MediaVideoOutputChanged, 1,
+ 	 PyDoc_STR("(MediaHandler mh, ComponentInstance vout) -> (ComponentResult _rv)")},
+ 	{"MediaEmptySampleCache", (PyCFunction)Qt_MediaEmptySampleCache, 1,
+ 	 PyDoc_STR("(MediaHandler mh, long sampleNum, long sampleCount) -> (ComponentResult _rv)")},
+ 	{"MediaGetPublicInfo", (PyCFunction)Qt_MediaGetPublicInfo, 1,
+ 	 PyDoc_STR("(MediaHandler mh, OSType infoSelector, void * infoDataPtr) -> (ComponentResult _rv, Size ioDataSize)")},
+ 	{"MediaSetPublicInfo", (PyCFunction)Qt_MediaSetPublicInfo, 1,
+ 	 PyDoc_STR("(MediaHandler mh, OSType infoSelector, void * infoDataPtr, Size dataSize) -> (ComponentResult _rv)")},
+ 	{"MediaRefConSetProperty", (PyCFunction)Qt_MediaRefConSetProperty, 1,
+ 	 PyDoc_STR("(MediaHandler mh, long refCon, long propertyType, void * propertyValue) -> (ComponentResult _rv)")},
+ 	{"MediaRefConGetProperty", (PyCFunction)Qt_MediaRefConGetProperty, 1,
+ 	 PyDoc_STR("(MediaHandler mh, long refCon, long propertyType, void * propertyValue) -> (ComponentResult _rv)")},
+ 	{"MediaNavigateTargetRefCon", (PyCFunction)Qt_MediaNavigateTargetRefCon, 1,
+ 	 PyDoc_STR("(MediaHandler mh, long navigation) -> (ComponentResult _rv, long refCon)")},
+ 	{"MediaGGetIdleManager", (PyCFunction)Qt_MediaGGetIdleManager, 1,
+ 	 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, IdleManager pim)")},
+ 	{"MediaGSetIdleManager", (PyCFunction)Qt_MediaGSetIdleManager, 1,
+ 	 PyDoc_STR("(MediaHandler mh, IdleManager im) -> (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.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** qtscan.py	3 Jan 2004 17:23:27 -0000	1.25
--- qtscan.py	9 Jan 2004 23:18:47 -0000	1.26
***************
*** 9,13 ****
  LONG = "QuickTime"
  SHORT = "qt"
! HEADERFILES= ("Movies.h", "ImageCompression.h", "QuickTimeComponents.h")
  OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController", 
  	"IdleManager", "SGOutput")
--- 9,19 ----
  LONG = "QuickTime"
  SHORT = "qt"
! HEADERFILES= (
! 	"Movies.h", 
! 	"ImageCompression.h", 
! 	"QuickTimeComponents.h",
! #	"ImageCodec.h"  -- seems not too useful, and difficult.
! 	"MediaHandlers.h"
! 	)
  OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController", 
  	"IdleManager", "SGOutput")
***************
*** 91,94 ****
--- 97,104 ----
  			"VDReleaseCompressBuffer",
  			"QTVideoOutputGetGWorldParameters", # How useful is this?
+ 			
+ 			# MediaHandlers
+ 			"MediaMakeMediaTimeTable", # just lazy
+ 			"MediaGetSampleDataPointer", # funny output pointer
  			]
  
***************
*** 206,209 ****
--- 216,227 ----
              "UInt64", 	# XXXX lazy
              "UInt64_ptr", # XXXX lazy
+             
+             # From MediaHandlers
+             "ActionsUPP",
+             "PrePrerollCompleteUPP",
+             "CodecComponentHandle", # Difficult: handle containing list of components.
+             "GetMovieCompleteParams", # Immense struct
+             "LevelMeterInfoPtr", # Lazy. Also: can be an output parameter!!
+             "MediaEQSpectrumBandsRecordPtr", # ditto
  			]
  





More information about the Python-checkins mailing list