2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* =========================== Module _Qt =========================== */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# include  "Python.h" 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifdef _WIN32 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# include  "pywintoolbox.h" 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# else 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# include  "macglue.h" 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# include  "pymactoolbox.h" 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* Macro to test whether a weak-loaded CFM function exists */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL )  {\ 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    	PyErr_SetString ( PyExc_NotImplementedError ,  \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    	" Not available in this shared library/OS version " ) ;  \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    	return  NULL ;  \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    } }  while ( 0 ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# ifdef WITHOUT_FRAMEWORKS 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# include  <Movies.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# else 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* #include <Carbon/Carbon.h> */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# include  <QuickTime/QuickTime.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# ifdef USE_TOOLBOX_OBJECT_GLUE 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  PyObject  * _TrackObj_New ( Track ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  int  _TrackObj_Convert ( PyObject  * ,  Track  * ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  PyObject  * _MovieObj_New ( Movie ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  int  _MovieObj_Convert ( PyObject  * ,  Movie  * ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  PyObject  * _MovieCtlObj_New ( MovieController ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  int  _MovieCtlObj_Convert ( PyObject  * ,  MovieController  * ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  PyObject  * _TimeBaseObj_New ( TimeBase ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  int  _TimeBaseObj_Convert ( PyObject  * ,  TimeBase  * ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  PyObject  * _UserDataObj_New ( UserData ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  int  _UserDataObj_Convert ( PyObject  * ,  UserData  * ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  PyObject  * _MediaObj_New ( Media ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								extern  int  _MediaObj_Convert ( PyObject  * ,  Media  * ) ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TrackObj_New _TrackObj_New 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TrackObj_Convert _TrackObj_Convert 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieObj_New _MovieObj_New 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieObj_Convert _MovieObj_Convert 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_New _MovieCtlObj_New 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_Convert _MovieCtlObj_Convert 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_New _TimeBaseObj_New 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_Convert _TimeBaseObj_Convert 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_New _UserDataObj_New 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_Convert _UserDataObj_Convert 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MediaObj_New _MediaObj_New 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MediaObj_Convert _MediaObj_Convert 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* Macro to allow us to GetNextInterestingTime without duration */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define GetMediaNextInterestingTimeOnly(media, flags, time, rate, rv) 			GetMediaNextInterestingTime(media, flags, time, rate, rv, NULL) 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/*
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								* *  Parse / generate  time  records  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*/  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  *  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								QtTimeRecord_New ( TimeRecord  * itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself - > base ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  Py_BuildValue ( " O&lO& " ,  PyMac_Buildwide ,  & itself - > value ,  itself - > scale ,  
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											TimeBaseObj_New ,  itself - > base ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									else 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return   Py_BuildValue ( " O&lO " ,  PyMac_Buildwide ,  & itself - > value ,  itself - > scale ,  
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  int  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								QtTimeRecord_Convert ( PyObject  * v ,  TimeRecord  * p_itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * base  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if (  ! PyArg_ParseTuple ( v ,  " O&l|O " ,  PyMac_Getwide ,  & p_itself - > value ,  & p_itself - > scale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											& base )  ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  (  base  = =  NULL  | |  base  = =  Py_None  ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										p_itself - > base  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									else 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										if  (  ! TimeBaseObj_Convert ( base ,  & p_itself - > base )  ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Error ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ------------------ Object type MovieController ------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  MovieController_Type ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-19 21:24:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MovieCtlObj_Check(x) ((x)->ob_type == &MovieController_Type || PyObject_TypeCheck((x), &MovieController_Type)) 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typedef  struct  MovieControllerObject  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_HEAD 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieController  ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  MovieControllerObject ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyObject  * MovieCtlObj_New ( MovieController  itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieControllerObject  * it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself  = =  NULL )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														PyErr_SetString ( Qt_Error , " Cannot create null MovieController " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it  =  PyObject_NEW ( MovieControllerObject ,  & MovieController_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( it  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  ( PyObject  * ) it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2001-09-04 22:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								int  MovieCtlObj_Convert ( PyObject  * v ,  MovieController  * p_itself )  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! MovieCtlObj_Check ( v ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyErr_SetString ( PyExc_TypeError ,  " MovieController required " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									* p_itself  =  ( ( MovieControllerObject  * ) v ) - > ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  void  MovieCtlObj_dealloc ( MovieControllerObject  * self )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeMovieController ( self - > ob_itself ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-04-23 22:46:01 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_Del ( self ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetMovie ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  movieWindow ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  where ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & movieWindow , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & where ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 movieWindow , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 where ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetIndMovie ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetIndMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetIndMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetIndMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCRemoveAllMovies ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCRemoveAllMovies 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCRemoveAllMovies ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCRemoveAllMovies ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCRemoveAMovie ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  m ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCRemoveAMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCRemoveAMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & m ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCRemoveAMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     m ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCRemoveMovie ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCRemoveMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCRemoveMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCRemoveMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCIsPlayerEvent ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									EventRecord  e ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCIsPlayerEvent 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCIsPlayerEvent ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetEventRecord ,  & e ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCIsPlayerEvent ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & e ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCDoAction ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  action ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  params ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCDoAction 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCDoAction ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hs " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & action , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & params ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCDoAction ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 action , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 params ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetControllerAttached ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  attach ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetControllerAttached 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetControllerAttached ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & attach ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetControllerAttached ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              attach ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCIsControllerAttached ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCIsControllerAttached 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCIsControllerAttached ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCIsControllerAttached ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetControllerPort ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CGrafPtr  gp ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetControllerPort 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetControllerPort ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      GrafObj_Convert ,  & gp ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetControllerPort ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          gp ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetControllerPort ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CGrafPtr  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetControllerPort 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetControllerPort ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetControllerPort ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     GrafObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetVisible ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  visible ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetVisible 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetVisible ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & visible ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetVisible ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   visible ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetVisible ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetVisible 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetVisible ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetVisible ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetControllerBoundsRect ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  bounds ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetControllerBoundsRect 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetControllerBoundsRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetControllerBoundsRect ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & bounds ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildRect ,  & bounds ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetControllerBoundsRect ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  bounds ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetControllerBoundsRect 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetControllerBoundsRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & bounds ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetControllerBoundsRect ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & bounds ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetControllerBoundsRgn ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetControllerBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetControllerBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetControllerBoundsRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetWindowRgn ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetWindowRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetWindowRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetWindowRgn ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     w ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCMovieChanged ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  m ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCMovieChanged 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCMovieChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & m ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCMovieChanged ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     m ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetDuration ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetDuration 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetDuration ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetCurrentTime ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  scale ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetCurrentTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetCurrentTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetCurrentTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & scale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     scale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCNewAttachedController ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  where ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCNewAttachedController 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCNewAttachedController ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & where ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCNewAttachedController ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              where ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCDraw ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCDraw 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCDraw ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCDraw ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             w ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCActivate ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  activate ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCActivate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCActivate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & activate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCActivate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 activate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCIdle ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCIdle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCIdle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCIdle ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCKey ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SInt8  key ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  modifiers ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCKey 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCKey ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " bl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & key , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & modifiers ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCKey ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            key , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            modifiers ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCClick ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  where ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  when ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  modifiers ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCClick 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCClick ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & where , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & when , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & modifiers ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCClick ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              where , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              when , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              modifiers ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCEnableEditing ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  enabled ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCEnableEditing 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCEnableEditing ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & enabled ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCEnableEditing ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      enabled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCIsEditingEnabled ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCIsEditingEnabled 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCIsEditingEnabled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCIsEditingEnabled ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCCopy ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCCopy 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCCopy ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCCopy ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCCut ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCCut 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCCut ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCCut ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCPaste ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  srcMovie ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCPaste 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCPaste ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & srcMovie ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCPaste ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              srcMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCClear ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCClear 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCClear ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCClear ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCUndo ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCUndo 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCUndo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCUndo ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCPositionController ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  movieRect ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  controllerRect ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  someFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCPositionController 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCPositionController ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & movieRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & controllerRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & someFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCPositionController ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & movieRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & controllerRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           someFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetControllerInfo ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  someFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetControllerInfo 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetControllerInfo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetControllerInfo ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & someFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     someFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetClip ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  theClip ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  movieClip ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetClip 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theClip , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & movieClip ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetClip ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                theClip , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                movieClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetClip ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  theClip ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  movieClip ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetClip 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetClip ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                & theClip , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                & movieClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  theClip , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  movieClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCDrawBadge ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  movieRgn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  badgeRgn ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCDrawBadge 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCDrawBadge ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & movieRgn ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCDrawBadge ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  movieRgn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  & badgeRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  badgeRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCSetUpEditMenu ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  modifiers ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MenuHandle  mh ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCSetUpEditMenu 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCSetUpEditMenu ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & modifiers , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MenuObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCSetUpEditMenu ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      modifiers , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      mh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetMenuString ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  modifiers ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  item ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  aString ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetMenuString 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetMenuString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lhO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & modifiers , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & item , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  aString ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetMenuString ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      modifiers , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      item , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      aString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCPtInController ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  thePt ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  inController ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCPtInController 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCPtInController ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & thePt ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCPtInController ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       thePt , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & inController ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lb " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     inController ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCInvalidate ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  invalidRgn ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCInvalidate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCInvalidate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & invalidRgn ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCInvalidate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   invalidRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCAdjustCursor ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  w ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  where ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  modifiers ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCAdjustCursor 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCAdjustCursor ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & where , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & modifiers ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCAdjustCursor ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     w , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     where , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     modifiers ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCGetInterfaceElement ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MCInterfaceElement  whichElement ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  element ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCGetInterfaceElement 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCGetInterfaceElement ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & whichElement , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & element ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCGetInterfaceElement ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            whichElement , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            element ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCAddMovieSegment ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  srcMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  scaled ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCAddMovieSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCAddMovieSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & srcMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scaled ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCAddMovieSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        srcMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        scaled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_MCTrimMovieSegment ( MovieControllerObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MCTrimMovieSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MCTrimMovieSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MCTrimMovieSegment ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  MovieCtlObj_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " MCSetMovie " ,  ( PyCFunction ) MovieCtlObj_MCSetMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie theMovie, WindowPtr movieWindow, Point where) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetIndMovie " ,  ( PyCFunction ) MovieCtlObj_MCGetIndMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index) -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCRemoveAllMovies " ,  ( PyCFunction ) MovieCtlObj_MCRemoveAllMovies ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCRemoveAMovie " ,  ( PyCFunction ) MovieCtlObj_MCRemoveAMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie m) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCRemoveMovie " ,  ( PyCFunction ) MovieCtlObj_MCRemoveMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCIsPlayerEvent " ,  ( PyCFunction ) MovieCtlObj_MCIsPlayerEvent ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (EventRecord e) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCDoAction " ,  ( PyCFunction ) MovieCtlObj_MCDoAction ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short action, void * params) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetControllerAttached " ,  ( PyCFunction ) MovieCtlObj_MCSetControllerAttached ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean attach) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCIsControllerAttached " ,  ( PyCFunction ) MovieCtlObj_MCIsControllerAttached ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetControllerPort " ,  ( PyCFunction ) MovieCtlObj_MCSetControllerPort ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (CGrafPtr gp) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetControllerPort " ,  ( PyCFunction ) MovieCtlObj_MCGetControllerPort ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (CGrafPtr _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetVisible " ,  ( PyCFunction ) MovieCtlObj_MCSetVisible ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean visible) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetVisible " ,  ( PyCFunction ) MovieCtlObj_MCGetVisible ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetControllerBoundsRect " ,  ( PyCFunction ) MovieCtlObj_MCGetControllerBoundsRect ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv, Rect bounds) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetControllerBoundsRect " ,  ( PyCFunction ) MovieCtlObj_MCSetControllerBoundsRect ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Rect bounds) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetControllerBoundsRgn " ,  ( PyCFunction ) MovieCtlObj_MCGetControllerBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetWindowRgn " ,  ( PyCFunction ) MovieCtlObj_MCGetWindowRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr w) -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCMovieChanged " ,  ( PyCFunction ) MovieCtlObj_MCMovieChanged ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie m) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetDuration " ,  ( PyCFunction ) MovieCtlObj_MCSetDuration ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue duration) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetCurrentTime " ,  ( PyCFunction ) MovieCtlObj_MCGetCurrentTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv, TimeScale scale) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCNewAttachedController " ,  ( PyCFunction ) MovieCtlObj_MCNewAttachedController ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie theMovie, WindowPtr w, Point where) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCDraw " ,  ( PyCFunction ) MovieCtlObj_MCDraw ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr w) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCActivate " ,  ( PyCFunction ) MovieCtlObj_MCActivate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr w, Boolean activate) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCIdle " ,  ( PyCFunction ) MovieCtlObj_MCIdle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCKey " ,  ( PyCFunction ) MovieCtlObj_MCKey ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (SInt8 key, long modifiers) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCClick " ,  ( PyCFunction ) MovieCtlObj_MCClick ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr w, Point where, long when, long modifiers) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCEnableEditing " ,  ( PyCFunction ) MovieCtlObj_MCEnableEditing ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean enabled) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCIsEditingEnabled " ,  ( PyCFunction ) MovieCtlObj_MCIsEditingEnabled ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCCopy " ,  ( PyCFunction ) MovieCtlObj_MCCopy ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCCut " ,  ( PyCFunction ) MovieCtlObj_MCCut ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCPaste " ,  ( PyCFunction ) MovieCtlObj_MCPaste ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie srcMovie) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCClear " ,  ( PyCFunction ) MovieCtlObj_MCClear ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCUndo " ,  ( PyCFunction ) MovieCtlObj_MCUndo ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCPositionController " ,  ( PyCFunction ) MovieCtlObj_MCPositionController ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Rect movieRect, Rect controllerRect, long someFlags) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetControllerInfo " ,  ( PyCFunction ) MovieCtlObj_MCGetControllerInfo ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv, long someFlags) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetClip " ,  ( PyCFunction ) MovieCtlObj_MCSetClip ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (RgnHandle theClip, RgnHandle movieClip) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetClip " ,  ( PyCFunction ) MovieCtlObj_MCGetClip ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv, RgnHandle theClip, RgnHandle movieClip) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCDrawBadge " ,  ( PyCFunction ) MovieCtlObj_MCDrawBadge ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (RgnHandle movieRgn) -> (ComponentResult _rv, RgnHandle badgeRgn) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCSetUpEditMenu " ,  ( PyCFunction ) MovieCtlObj_MCSetUpEditMenu ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long modifiers, MenuHandle mh) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetMenuString " ,  ( PyCFunction ) MovieCtlObj_MCGetMenuString ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long modifiers, short item, Str255 aString) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCPtInController " ,  ( PyCFunction ) MovieCtlObj_MCPtInController ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Point thePt) -> (ComponentResult _rv, Boolean inController) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCInvalidate " ,  ( PyCFunction ) MovieCtlObj_MCInvalidate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr w, RgnHandle invalidRgn) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCAdjustCursor " ,  ( PyCFunction ) MovieCtlObj_MCAdjustCursor ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr w, Point where, long modifiers) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MCGetInterfaceElement " ,  ( PyCFunction ) MovieCtlObj_MCGetInterfaceElement ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MCInterfaceElement whichElement, void * element) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " MCAddMovieSegment " ,  ( PyCFunction ) MovieCtlObj_MCAddMovieSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie srcMovie, Boolean scaled) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " MCTrimMovieSegment " ,  ( PyCFunction ) MovieCtlObj_MCTrimMovieSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MovieCtlObj_getsetlist NULL 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_compare NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_repr NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_hash NULL 
  
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MovieCtlObj_tp_init 0 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_tp_alloc PyType_GenericAlloc 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieCtlObj_tp_new ( PyTypeObject  * type ,  PyObject  * args ,  PyObject  * kwds )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieController  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  * kw [ ]  =  { " itself " ,  0 } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTupleAndKeywords ( args ,  kwds ,  " O& " ,  kw ,  MovieCtlObj_Convert ,  & itself ) )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ( self  =  type - > tp_alloc ( type ,  0 ) )  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( ( MovieControllerObject  * ) self ) - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieCtlObj_tp_free PyObject_Del 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  MovieController_Type  =  {  
						 
					
						
							
								
									
										
										
										
											2001-11-30 14:16:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_HEAD_INIT ( NULL ) 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									0 ,  /*ob_size*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-08 18:02:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									" _Qt.MovieController " ,  /*tp_name*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									sizeof ( MovieControllerObject ) ,  /*tp_basicsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_itemsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* methods */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( destructor )  MovieCtlObj_dealloc ,  /*tp_dealloc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_print*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									( getattrfunc ) 0 ,  /*tp_getattr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( setattrfunc ) 0 ,  /*tp_setattr*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									( cmpfunc )  MovieCtlObj_compare ,  /*tp_compare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( reprfunc )  MovieCtlObj_repr ,  /*tp_repr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyNumberMethods  * ) 0 ,  /* tp_as_number */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PySequenceMethods  * ) 0 ,  /* tp_as_sequence */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyMappingMethods  * ) 0 ,  /* tp_as_mapping */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( hashfunc )  MovieCtlObj_hash ,  /*tp_hash*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_call*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_str*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericGetAttr ,  /*tp_getattro*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericSetAttr ,  /*tp_setattro */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_as_buffer*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,  /* tp_flags */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_doc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_traverse*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_clear*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_richcompare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_weaklistoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iter*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iternext*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									MovieCtlObj_methods ,  /* tp_methods */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_members*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									MovieCtlObj_getsetlist ,  /*tp_getset*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_base*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dict*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_get*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_set*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dictoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieCtlObj_tp_init ,  /* tp_init */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieCtlObj_tp_alloc ,  /* tp_alloc */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieCtlObj_tp_new ,  /* tp_new */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieCtlObj_tp_free ,  /* tp_free */ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ---------------- End object type MovieController ----------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ---------------------- Object type TimeBase ---------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  TimeBase_Type ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-19 21:24:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define TimeBaseObj_Check(x) ((x)->ob_type == &TimeBase_Type || PyObject_TypeCheck((x), &TimeBase_Type)) 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typedef  struct  TimeBaseObject  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_HEAD 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  TimeBaseObject ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyObject  * TimeBaseObj_New ( TimeBase  itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBaseObject  * it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself  = =  NULL )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														PyErr_SetString ( Qt_Error , " Cannot create null TimeBase " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it  =  PyObject_NEW ( TimeBaseObject ,  & TimeBase_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( it  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  ( PyObject  * ) it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2001-09-04 22:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								int  TimeBaseObj_Convert ( PyObject  * v ,  TimeBase  * p_itself )  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! TimeBaseObj_Check ( v ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyErr_SetString ( PyExc_TypeError ,  " TimeBase required " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									* p_itself  =  ( ( TimeBaseObject  * ) v ) - > ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  void  TimeBaseObj_dealloc ( TimeBaseObject  * self )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Cleanup of self->ob_itself goes here */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-04-23 22:46:01 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_Del ( self ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_DisposeTimeBase ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DisposeTimeBase 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DisposeTimeBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeTimeBase ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseTime ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  s ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  tr ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & s ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      s , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseTime ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  tr ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & tr ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseValue ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  t ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  s ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseValue 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseValue ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & t , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & s ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseValue ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 t , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 s ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseRate ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseRate ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseRate ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  r ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & r ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseRate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                r ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseStartTime ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  s ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  tr ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseStartTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseStartTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & s ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseStartTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           s , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseStartTime ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  tr ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseStartTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseStartTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & tr ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseStartTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseStopTime ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  s ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  tr ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseStopTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseStopTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & s ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseStopTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          s , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseStopTime ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  tr ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseStopTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseStopTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & tr ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseStopTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    & tr ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseFlags ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseFlags 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseFlags ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseFlags ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  timeBaseFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseFlags 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & timeBaseFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseFlags ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 timeBaseFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseMasterTimeBase ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  master ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  slaveZero ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseMasterTimeBase 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseMasterTimeBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TimeBaseObj_Convert ,  & master , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & slaveZero ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseMasterTimeBase ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          master , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & slaveZero ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseMasterTimeBase ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseMasterTimeBase 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseMasterTimeBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseMasterTimeBase ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TimeBaseObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseMasterClock ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Component  clockMeister ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  slaveZero ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseMasterClock 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseMasterClock ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpObj_Convert ,  & clockMeister , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & slaveZero ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseMasterClock ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       clockMeister , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & slaveZero ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseMasterClock ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseMasterClock 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseMasterClock ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseMasterClock ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpInstObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseStatus ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  unpinnedTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseStatus 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseStatus ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseStatus ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        & unpinnedTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & unpinnedTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_SetTimeBaseZero ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  zero ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTimeBaseZero 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTimeBaseZero ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & zero ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTimeBaseZero ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                & zero ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_GetTimeBaseEffectiveRate ( TimeBaseObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTimeBaseEffectiveRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTimeBaseEffectiveRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTimeBaseEffectiveRate ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  TimeBaseObj_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " DisposeTimeBase " ,  ( PyCFunction ) TimeBaseObj_DisposeTimeBase ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseTime " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeScale s) -> (TimeValue _rv, TimeRecord tr) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseTime " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord tr) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseValue " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseValue ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue t, TimeScale s) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseRate " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Fixed _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseRate " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Fixed r) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseStartTime " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseStartTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeScale s) -> (TimeValue _rv, TimeRecord tr) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseStartTime " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseStartTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord tr) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseStopTime " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseStopTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeScale s) -> (TimeValue _rv, TimeRecord tr) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseStopTime " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseStopTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord tr) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseFlags " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseFlags ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseFlags " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseFlags ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long timeBaseFlags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseMasterTimeBase " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseMasterTimeBase ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeBase master, TimeRecord slaveZero) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseMasterTimeBase " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseMasterTimeBase ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeBase _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseMasterClock " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseMasterClock ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Component clockMeister, TimeRecord slaveZero) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseMasterClock " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseMasterClock ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentInstance _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseStatus " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseStatus ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv, TimeRecord unpinnedTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTimeBaseZero " ,  ( PyCFunction ) TimeBaseObj_SetTimeBaseZero ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord zero) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTimeBaseEffectiveRate " ,  ( PyCFunction ) TimeBaseObj_GetTimeBaseEffectiveRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Fixed _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define TimeBaseObj_getsetlist NULL 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_compare NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_repr NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_hash NULL 
  
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define TimeBaseObj_tp_init 0 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_tp_alloc PyType_GenericAlloc 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TimeBaseObj_tp_new ( PyTypeObject  * type ,  PyObject  * args ,  PyObject  * kwds )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  * kw [ ]  =  { " itself " ,  0 } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTupleAndKeywords ( args ,  kwds ,  " O& " ,  kw ,  TimeBaseObj_Convert ,  & itself ) )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ( self  =  type - > tp_alloc ( type ,  0 ) )  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( ( TimeBaseObject  * ) self ) - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TimeBaseObj_tp_free PyObject_Del 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  TimeBase_Type  =  {  
						 
					
						
							
								
									
										
										
										
											2001-11-30 14:16:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_HEAD_INIT ( NULL ) 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									0 ,  /*ob_size*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-08 18:02:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									" _Qt.TimeBase " ,  /*tp_name*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									sizeof ( TimeBaseObject ) ,  /*tp_basicsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_itemsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* methods */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( destructor )  TimeBaseObj_dealloc ,  /*tp_dealloc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_print*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									( getattrfunc ) 0 ,  /*tp_getattr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( setattrfunc ) 0 ,  /*tp_setattr*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									( cmpfunc )  TimeBaseObj_compare ,  /*tp_compare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( reprfunc )  TimeBaseObj_repr ,  /*tp_repr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyNumberMethods  * ) 0 ,  /* tp_as_number */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PySequenceMethods  * ) 0 ,  /* tp_as_sequence */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyMappingMethods  * ) 0 ,  /* tp_as_mapping */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( hashfunc )  TimeBaseObj_hash ,  /*tp_hash*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_call*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_str*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericGetAttr ,  /*tp_getattro*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericSetAttr ,  /*tp_setattro */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_as_buffer*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,  /* tp_flags */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_doc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_traverse*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_clear*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_richcompare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_weaklistoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iter*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iternext*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									TimeBaseObj_methods ,  /* tp_methods */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_members*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									TimeBaseObj_getsetlist ,  /*tp_getset*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_base*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dict*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_get*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_set*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dictoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBaseObj_tp_init ,  /* tp_init */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBaseObj_tp_alloc ,  /* tp_alloc */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBaseObj_tp_new ,  /* tp_new */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBaseObj_tp_free ,  /* tp_free */ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* -------------------- End object type TimeBase -------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ---------------------- Object type UserData ---------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  UserData_Type ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-19 21:24:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define UserDataObj_Check(x) ((x)->ob_type == &UserData_Type || PyObject_TypeCheck((x), &UserData_Type)) 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typedef  struct  UserDataObject  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_HEAD 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  UserDataObject ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyObject  * UserDataObj_New ( UserData  itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserDataObject  * it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself  = =  NULL )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														PyErr_SetString ( Qt_Error , " Cannot create null UserData " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it  =  PyObject_NEW ( UserDataObject ,  & UserData_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( it  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  ( PyObject  * ) it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2001-09-04 22:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								int  UserDataObj_Convert ( PyObject  * v ,  UserData  * p_itself )  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! UserDataObj_Check ( v ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyErr_SetString ( PyExc_TypeError ,  " UserData required " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									* p_itself  =  ( ( UserDataObject  * ) v ) - > ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  void  UserDataObj_dealloc ( UserDataObject  * self )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeUserData ( self - > ob_itself ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-04-23 22:46:01 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_Del ( self ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_GetUserData ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetUserData ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_AddUserData ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddUserData ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   udType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_RemoveUserData ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef RemoveUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( RemoveUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  RemoveUserData ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_CountUserDataType ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CountUserDataType 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CountUserDataType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  CountUserDataType ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        udType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_GetNextUserDataType ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetNextUserDataType 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetNextUserDataType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetNextUserDataType ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          udType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_AddUserDataText ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  itlRegionTag ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddUserDataText 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddUserDataText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & itlRegionTag ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddUserDataText ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       itlRegionTag ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_GetUserDataText ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  itlRegionTag ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetUserDataText 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetUserDataText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & itlRegionTag ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetUserDataText ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       itlRegionTag ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_RemoveUserDataText ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  udType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  itlRegionTag ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef RemoveUserDataText 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( RemoveUserDataText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & itlRegionTag ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  RemoveUserDataText ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          udType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          itlRegionTag ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_PutUserDataIntoHandle ( UserDataObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  h ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PutUserDataIntoHandle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PutUserDataIntoHandle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & h ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PutUserDataIntoHandle ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             h ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  UserDataObj_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " GetUserData " ,  ( PyCFunction ) UserDataObj_GetUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle data, OSType udType, long index) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddUserData " ,  ( PyCFunction ) UserDataObj_AddUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle data, OSType udType) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " RemoveUserData " ,  ( PyCFunction ) UserDataObj_RemoveUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType udType, long index) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CountUserDataType " ,  ( PyCFunction ) UserDataObj_CountUserDataType ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType udType) -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetNextUserDataType " ,  ( PyCFunction ) UserDataObj_GetNextUserDataType ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType udType) -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddUserDataText " ,  ( PyCFunction ) UserDataObj_AddUserDataText ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle data, OSType udType, long index, short itlRegionTag) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetUserDataText " ,  ( PyCFunction ) UserDataObj_GetUserDataText ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle data, OSType udType, long index, short itlRegionTag) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " RemoveUserDataText " ,  ( PyCFunction ) UserDataObj_RemoveUserDataText ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType udType, long index, short itlRegionTag) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PutUserDataIntoHandle " ,  ( PyCFunction ) UserDataObj_PutUserDataIntoHandle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle h) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define UserDataObj_getsetlist NULL 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_compare NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_repr NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_hash NULL 
  
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define UserDataObj_tp_init 0 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_tp_alloc PyType_GenericAlloc 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * UserDataObj_tp_new ( PyTypeObject  * type ,  PyObject  * args ,  PyObject  * kwds )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  * kw [ ]  =  { " itself " ,  0 } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTupleAndKeywords ( args ,  kwds ,  " O& " ,  kw ,  UserDataObj_Convert ,  & itself ) )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ( self  =  type - > tp_alloc ( type ,  0 ) )  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( ( UserDataObject  * ) self ) - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define UserDataObj_tp_free PyObject_Del 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  UserData_Type  =  {  
						 
					
						
							
								
									
										
										
										
											2001-11-30 14:16:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_HEAD_INIT ( NULL ) 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									0 ,  /*ob_size*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-08 18:02:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									" _Qt.UserData " ,  /*tp_name*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									sizeof ( UserDataObject ) ,  /*tp_basicsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_itemsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* methods */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( destructor )  UserDataObj_dealloc ,  /*tp_dealloc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_print*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									( getattrfunc ) 0 ,  /*tp_getattr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( setattrfunc ) 0 ,  /*tp_setattr*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									( cmpfunc )  UserDataObj_compare ,  /*tp_compare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( reprfunc )  UserDataObj_repr ,  /*tp_repr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyNumberMethods  * ) 0 ,  /* tp_as_number */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PySequenceMethods  * ) 0 ,  /* tp_as_sequence */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyMappingMethods  * ) 0 ,  /* tp_as_mapping */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( hashfunc )  UserDataObj_hash ,  /*tp_hash*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_call*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_str*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericGetAttr ,  /*tp_getattro*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericSetAttr ,  /*tp_setattro */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_as_buffer*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,  /* tp_flags */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_doc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_traverse*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_clear*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_richcompare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_weaklistoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iter*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iternext*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									UserDataObj_methods ,  /* tp_methods */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_members*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									UserDataObj_getsetlist ,  /*tp_getset*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_base*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dict*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_get*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_set*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dictoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserDataObj_tp_init ,  /* tp_init */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserDataObj_tp_alloc ,  /* tp_alloc */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserDataObj_tp_new ,  /* tp_new */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserDataObj_tp_free ,  /* tp_free */ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* -------------------- End object type UserData -------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ----------------------- Object type Media ------------------------ */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  Media_Type ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-19 21:24:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MediaObj_Check(x) ((x)->ob_type == &Media_Type || PyObject_TypeCheck((x), &Media_Type)) 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typedef  struct  MediaObject  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_HEAD 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Media  ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  MediaObject ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyObject  * MediaObj_New ( Media  itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaObject  * it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself  = =  NULL )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														PyErr_SetString ( Qt_Error , " Cannot create null Media " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it  =  PyObject_NEW ( MediaObject ,  & Media_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( it  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  ( PyObject  * ) it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2001-09-04 22:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								int  MediaObj_Convert ( PyObject  * v ,  Media  * p_itself )  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! MediaObj_Check ( v ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyErr_SetString ( PyExc_TypeError ,  " Media required " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									* p_itself  =  ( ( MediaObject  * ) v ) - > ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  void  MediaObj_dealloc ( MediaObject  * self )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeTrackMedia ( self - > ob_itself ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-04-23 22:46:01 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_Del ( self ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_LoadMediaIntoRam ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef LoadMediaIntoRam 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( LoadMediaIntoRam ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  LoadMediaIntoRam ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaTrack ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaTrack 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaTrack ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaCreationTime ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaCreationTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaCreationTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaCreationTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaModificationTime ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaModificationTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaModificationTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaModificationTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaTimeScale ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaTimeScale 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaTimeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaTimeScale ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaTimeScale ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  timeScale ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaTimeScale 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaTimeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & timeScale ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMediaTimeScale ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  timeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDuration ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDuration 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaDuration ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaLanguage ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaLanguage 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaLanguage ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaLanguage ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaLanguage ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  language ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaLanguage 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaLanguage ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & language ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMediaLanguage ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 language ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaQuality ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaQuality 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaQuality ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaQuality ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaQuality ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  quality ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaQuality 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaQuality ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & quality ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMediaQuality ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                quality ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaHandlerDescription ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  mediaType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  creatorName ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creatorManufacturer ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaHandlerDescription 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaHandlerDescription ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  creatorName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMediaHandlerDescription ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & mediaType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           creatorName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & creatorManufacturer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  mediaType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  creatorManufacturer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaUserData ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaUserData ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     UserDataObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaHandler ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaHandler 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaHandler ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaHandler ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpInstObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaHandler ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandlerComponent  mH ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaHandler 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaHandler ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpObj_Convert ,  & mH ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaHandler ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       mH ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_BeginMediaEdits ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef BeginMediaEdits 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( BeginMediaEdits ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  BeginMediaEdits ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_EndMediaEdits ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef EndMediaEdits 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( EndMediaEdits ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  EndMediaEdits ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaDefaultDataRefIndex ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaDefaultDataRefIndex 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaDefaultDataRefIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaDefaultDataRefIndex ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDataHandlerDescription ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dhType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  creatorName ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creatorManufacturer ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDataHandlerDescription 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDataHandlerDescription ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  creatorName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMediaDataHandlerDescription ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & dhType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               creatorName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & creatorManufacturer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  dhType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  creatorManufacturer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDataHandler ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DataHandler  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDataHandler 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDataHandler ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaDataHandler ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpInstObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaDataHandler ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DataHandlerComponent  dataHandler ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaDataHandler 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaDataHandler ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpObj_Convert ,  & dataHandler ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaDataHandler ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           dataHandler ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaSampleDescriptionCount ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaSampleDescriptionCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaSampleDescriptionCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaSampleDescriptionCount ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaSampleDescription ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleDescriptionHandle  descH ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaSampleDescription 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaSampleDescription ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & descH ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMediaSampleDescription ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          descH ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaSampleDescription ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleDescriptionHandle  descH ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaSampleDescription 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaSampleDescription ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & descH ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaSampleDescription ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 descH ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaSampleCount ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaSampleCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaSampleCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaSampleCount ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaSyncSampleCount ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaSyncSampleCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaSyncSampleCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaSyncSampleCount ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SampleNumToMediaTime ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  logicalSampleNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SampleNumToMediaTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SampleNumToMediaTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & logicalSampleNum ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleNumToMediaTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     logicalSampleNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & sampleDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_MediaTimeToSampleNum ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  sampleNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MediaTimeToSampleNum 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MediaTimeToSampleNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaTimeToSampleNum ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & sampleNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & sampleDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_AddMediaSample ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataIn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  inOffset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  durationPerSample ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleDescriptionHandle  sampleDescriptionH ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  numberOfSamples ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  sampleFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddMediaSample 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddMediaSample ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lllO&lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & inOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddMediaSample ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      dataIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      inOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      sampleFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_AddMediaSampleReference ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataOffset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  durationPerSample ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleDescriptionHandle  sampleDescriptionH ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  numberOfSamples ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  sampleFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddMediaSampleReference 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddMediaSampleReference ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lllO&lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddMediaSampleReference ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dataOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               sampleFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaSample ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataOut ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxSizeToGrow ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  durationPerSample ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleDescriptionHandle  sampleDescriptionH ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  sampleDescriptionIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxNumberOfSamples ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  numberOfSamples ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  sampleFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaSample 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaSample ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&llO&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataOut , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxSizeToGrow , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxNumberOfSamples ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaSample ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      dataOut , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      maxSizeToGrow , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleDescriptionIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      maxNumberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lllllh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleDescriptionIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaSampleReference ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataOffset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  durationPerSample ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SampleDescriptionHandle  sampleDescriptionH ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  sampleDescriptionIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxNumberOfSamples ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  numberOfSamples ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  sampleFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaSampleReference 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaSampleReference ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxNumberOfSamples ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaSampleReference ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & dataOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               sampleDescriptionH , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & sampleDescriptionIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               maxNumberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & sampleFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " llllllh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     durationPerSample , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleDescriptionIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     numberOfSamples , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaPreferredChunkSize ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxChunkSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaPreferredChunkSize 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaPreferredChunkSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxChunkSize ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaPreferredChunkSize ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  maxChunkSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaPreferredChunkSize ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxChunkSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaPreferredChunkSize 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaPreferredChunkSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaPreferredChunkSize ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  & maxChunkSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     maxChunkSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaShadowSync ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  frameDiffSampleNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  syncSampleNum ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaShadowSync 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaShadowSync ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & frameDiffSampleNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & syncSampleNum ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaShadowSync ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          frameDiffSampleNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          syncSampleNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaShadowSync ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  frameDiffSampleNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  syncSampleNum ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaShadowSync 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaShadowSync ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & frameDiffSampleNum ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaShadowSync ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          frameDiffSampleNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & syncSampleNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     syncSampleNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDataSize ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDataSize 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMediaDataSize ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDataSize64 ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									wide  dataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDataSize64 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDataSize64 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaDataSize64 ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_Buildwide ,  dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaNextInterestingTime ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  interestingTimeFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  rate ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaNextInterestingTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaNextInterestingTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hlO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMediaNextInterestingTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            rate , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & interestingTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & interestingDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDataRef ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataRefAttributes ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaDataRef ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & dataRefAttributes ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataRefAttributes ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaDataRef ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hO&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaDataRef ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaDataRefAttributes ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataRefAttributes ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaDataRefAttributes 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaDataRefAttributes ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataRefAttributes ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMediaDataRefAttributes ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 dataRefAttributes ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_AddMediaDataRef ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddMediaDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddMediaDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddMediaDataRef ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaDataRefCount ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  count ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaDataRefCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaDataRefCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMediaDataRefCount ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & count ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     count ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_SetMediaPlayHints ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flagsMask ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMediaPlayHints 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMediaPlayHints ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flagsMask ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMediaPlayHints ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  flagsMask ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaPlayHints ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaPlayHints 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaPlayHints ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMediaPlayHints ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  & flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_GetMediaNextInterestingTimeOnly ( MediaObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  interestingTimeFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  rate ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMediaNextInterestingTimeOnly 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMediaNextInterestingTimeOnly ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hlO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMediaNextInterestingTimeOnly ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                rate , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & interestingTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  MediaObj_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " LoadMediaIntoRam " ,  ( PyCFunction ) MediaObj_LoadMediaIntoRam ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, TimeValue duration, long flags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaTrack " ,  ( PyCFunction ) MediaObj_GetMediaTrack ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaCreationTime " ,  ( PyCFunction ) MediaObj_GetMediaCreationTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (unsigned long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaModificationTime " ,  ( PyCFunction ) MediaObj_GetMediaModificationTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (unsigned long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaTimeScale " ,  ( PyCFunction ) MediaObj_GetMediaTimeScale ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeScale _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaTimeScale " ,  ( PyCFunction ) MediaObj_SetMediaTimeScale ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeScale timeScale) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDuration " ,  ( PyCFunction ) MediaObj_GetMediaDuration ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaLanguage " ,  ( PyCFunction ) MediaObj_GetMediaLanguage ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaLanguage " ,  ( PyCFunction ) MediaObj_SetMediaLanguage ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short language) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaQuality " ,  ( PyCFunction ) MediaObj_GetMediaQuality ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaQuality " ,  ( PyCFunction ) MediaObj_SetMediaQuality ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short quality) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaHandlerDescription " ,  ( PyCFunction ) MediaObj_GetMediaHandlerDescription ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Str255 creatorName) -> (OSType mediaType, OSType creatorManufacturer) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaUserData " ,  ( PyCFunction ) MediaObj_GetMediaUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (UserData _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaHandler " ,  ( PyCFunction ) MediaObj_GetMediaHandler ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (MediaHandler _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaHandler " ,  ( PyCFunction ) MediaObj_SetMediaHandler ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandlerComponent mH) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " BeginMediaEdits " ,  ( PyCFunction ) MediaObj_BeginMediaEdits ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " EndMediaEdits " ,  ( PyCFunction ) MediaObj_EndMediaEdits ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaDefaultDataRefIndex " ,  ( PyCFunction ) MediaObj_SetMediaDefaultDataRefIndex ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDataHandlerDescription " ,  ( PyCFunction ) MediaObj_GetMediaDataHandlerDescription ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index, Str255 creatorName) -> (OSType dhType, OSType creatorManufacturer) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDataHandler " ,  ( PyCFunction ) MediaObj_GetMediaDataHandler ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index) -> (DataHandler _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaDataHandler " ,  ( PyCFunction ) MediaObj_SetMediaDataHandler ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index, DataHandlerComponent dataHandler) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaSampleDescriptionCount " ,  ( PyCFunction ) MediaObj_GetMediaSampleDescriptionCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaSampleDescription " ,  ( PyCFunction ) MediaObj_GetMediaSampleDescription ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long index, SampleDescriptionHandle descH) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaSampleDescription " ,  ( PyCFunction ) MediaObj_SetMediaSampleDescription ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long index, SampleDescriptionHandle descH) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaSampleCount " ,  ( PyCFunction ) MediaObj_GetMediaSampleCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaSyncSampleCount " ,  ( PyCFunction ) MediaObj_GetMediaSyncSampleCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SampleNumToMediaTime " ,  ( PyCFunction ) MediaObj_SampleNumToMediaTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long logicalSampleNum) -> (TimeValue sampleTime, TimeValue sampleDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MediaTimeToSampleNum " ,  ( PyCFunction ) MediaObj_MediaTimeToSampleNum ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time) -> (long sampleNum, TimeValue sampleTime, TimeValue sampleDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddMediaSample " ,  ( PyCFunction ) MediaObj_AddMediaSample ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle dataIn, long inOffset, unsigned long size, TimeValue durationPerSample, SampleDescriptionHandle sampleDescriptionH, long numberOfSamples, short sampleFlags) -> (TimeValue sampleTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddMediaSampleReference " ,  ( PyCFunction ) MediaObj_AddMediaSampleReference ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long dataOffset, unsigned long size, TimeValue durationPerSample, SampleDescriptionHandle sampleDescriptionH, long numberOfSamples, short sampleFlags) -> (TimeValue sampleTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaSample " ,  ( PyCFunction ) MediaObj_GetMediaSample ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle dataOut, long maxSizeToGrow, TimeValue time, SampleDescriptionHandle sampleDescriptionH, long maxNumberOfSamples) -> (long size, TimeValue sampleTime, TimeValue durationPerSample, long sampleDescriptionIndex, long numberOfSamples, short sampleFlags) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaSampleReference " ,  ( PyCFunction ) MediaObj_GetMediaSampleReference ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, SampleDescriptionHandle sampleDescriptionH, long maxNumberOfSamples) -> (long dataOffset, long size, TimeValue sampleTime, TimeValue durationPerSample, long sampleDescriptionIndex, long numberOfSamples, short sampleFlags) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaPreferredChunkSize " ,  ( PyCFunction ) MediaObj_SetMediaPreferredChunkSize ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long maxChunkSize) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaPreferredChunkSize " ,  ( PyCFunction ) MediaObj_GetMediaPreferredChunkSize ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long maxChunkSize) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaShadowSync " ,  ( PyCFunction ) MediaObj_SetMediaShadowSync ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long frameDiffSampleNum, long syncSampleNum) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaShadowSync " ,  ( PyCFunction ) MediaObj_GetMediaShadowSync ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long frameDiffSampleNum) -> (long syncSampleNum) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDataSize " ,  ( PyCFunction ) MediaObj_GetMediaDataSize ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDataSize64 " ,  ( PyCFunction ) MediaObj_GetMediaDataSize64 ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> (wide dataSize) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaNextInterestingTime " ,  ( PyCFunction ) MediaObj_GetMediaNextInterestingTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDataRef " ,  ( PyCFunction ) MediaObj_GetMediaDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index) -> (Handle dataRef, OSType dataRefType, long dataRefAttributes) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaDataRef " ,  ( PyCFunction ) MediaObj_SetMediaDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index, Handle dataRef, OSType dataRefType) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaDataRefAttributes " ,  ( PyCFunction ) MediaObj_SetMediaDataRefAttributes ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short index, long dataRefAttributes) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddMediaDataRef " ,  ( PyCFunction ) MediaObj_AddMediaDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle dataRef, OSType dataRefType) -> (short index) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaDataRefCount " ,  ( PyCFunction ) MediaObj_GetMediaDataRefCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short count) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMediaPlayHints " ,  ( PyCFunction ) MediaObj_SetMediaPlayHints ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long flags, long flagsMask) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaPlayHints " ,  ( PyCFunction ) MediaObj_GetMediaPlayHints ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long flags) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMediaNextInterestingTimeOnly " ,  ( PyCFunction ) MediaObj_GetMediaNextInterestingTimeOnly ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MediaObj_getsetlist NULL 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# define MediaObj_compare NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MediaObj_repr NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MediaObj_hash NULL 
  
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MediaObj_tp_init 0 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MediaObj_tp_alloc PyType_GenericAlloc 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MediaObj_tp_new ( PyTypeObject  * type ,  PyObject  * args ,  PyObject  * kwds )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Media  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  * kw [ ]  =  { " itself " ,  0 } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTupleAndKeywords ( args ,  kwds ,  " O& " ,  kw ,  MediaObj_Convert ,  & itself ) )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ( self  =  type - > tp_alloc ( type ,  0 ) )  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( ( MediaObject  * ) self ) - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MediaObj_tp_free PyObject_Del 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  Media_Type  =  {  
						 
					
						
							
								
									
										
										
										
											2001-11-30 14:16:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_HEAD_INIT ( NULL ) 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									0 ,  /*ob_size*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-08 18:02:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									" _Qt.Media " ,  /*tp_name*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									sizeof ( MediaObject ) ,  /*tp_basicsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_itemsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* methods */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( destructor )  MediaObj_dealloc ,  /*tp_dealloc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_print*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									( getattrfunc ) 0 ,  /*tp_getattr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( setattrfunc ) 0 ,  /*tp_setattr*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									( cmpfunc )  MediaObj_compare ,  /*tp_compare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( reprfunc )  MediaObj_repr ,  /*tp_repr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyNumberMethods  * ) 0 ,  /* tp_as_number */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PySequenceMethods  * ) 0 ,  /* tp_as_sequence */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyMappingMethods  * ) 0 ,  /* tp_as_mapping */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( hashfunc )  MediaObj_hash ,  /*tp_hash*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_call*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_str*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericGetAttr ,  /*tp_getattro*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericSetAttr ,  /*tp_setattro */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_as_buffer*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,  /* tp_flags */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_doc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_traverse*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_clear*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_richcompare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_weaklistoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iter*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iternext*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									MediaObj_methods ,  /* tp_methods */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_members*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									MediaObj_getsetlist ,  /*tp_getset*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_base*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dict*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_get*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_set*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dictoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaObj_tp_init ,  /* tp_init */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaObj_tp_alloc ,  /* tp_alloc */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaObj_tp_new ,  /* tp_new */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaObj_tp_free ,  /* tp_free */ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* --------------------- End object type Media ---------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ----------------------- Object type Track ------------------------ */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  Track_Type ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-19 21:24:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define TrackObj_Check(x) ((x)->ob_type == &Track_Type || PyObject_TypeCheck((x), &Track_Type)) 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typedef  struct  TrackObject  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_HEAD 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  TrackObject ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyObject  * TrackObj_New ( Track  itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TrackObject  * it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself  = =  NULL )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														PyErr_SetString ( Qt_Error , " Cannot create null Track " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it  =  PyObject_NEW ( TrackObject ,  & Track_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( it  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  ( PyObject  * ) it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2001-09-04 22:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								int  TrackObj_Convert ( PyObject  * v ,  Track  * p_itself )  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! TrackObj_Check ( v ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyErr_SetString ( PyExc_TypeError ,  " Track required " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									* p_itself  =  ( ( TrackObject  * ) v ) - > ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  void  TrackObj_dealloc ( TrackObject  * self )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeMovieTrack ( self - > ob_itself ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-04-23 22:46:01 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_Del ( self ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_LoadTrackIntoRam ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef LoadTrackIntoRam 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( LoadTrackIntoRam ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  LoadTrackIntoRam ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackPict ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PicHandle  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackPict 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackPict ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackPict ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   time ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackClipRgn ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackClipRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackClipRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackClipRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackClipRgn ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  theClip ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackClipRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackClipRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theClip ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackClipRgn ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                theClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackDisplayBoundsRgn ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackDisplayBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackDisplayBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackDisplayBoundsRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackMovieBoundsRgn ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackMovieBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackMovieBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackMovieBoundsRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackBoundsRgn ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackBoundsRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackMatte ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PixMapHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackMatte 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackMatte ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackMatte ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackMatte ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PixMapHandle  theMatte ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackMatte 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackMatte ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theMatte ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackMatte ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              theMatte ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackID ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackID 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackID ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackMovie ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackCreationTime ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackCreationTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackCreationTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackCreationTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackModificationTime ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackModificationTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackModificationTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackModificationTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackEnabled ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackEnabled 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackEnabled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackEnabled ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackEnabled ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  isEnabled ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackEnabled 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackEnabled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & isEnabled ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackEnabled ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                isEnabled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackUsage ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackUsage 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackUsage ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackUsage ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackUsage ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  usage ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackUsage 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackUsage ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & usage ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackUsage ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              usage ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackDuration ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackDuration 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackDuration ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackOffset ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackOffset 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackOffset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackOffset ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackOffset ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  movieOffsetTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackOffset 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackOffset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & movieOffsetTime ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackOffset ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               movieOffsetTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackLayer ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackLayer 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackLayer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackLayer ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackLayer ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  layer ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackLayer 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackLayer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & layer ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackLayer ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									              layer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackAlternate ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackAlternate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackAlternate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackAlternate ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackAlternate ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  alternateT ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackAlternate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackAlternate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & alternateT ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackAlternate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  alternateT ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackVolume ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackVolume 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackVolume ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackVolume ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  volume ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackVolume 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & volume ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackVolume ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               volume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackDimensions ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  width ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  height ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackDimensions 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackDimensions ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetTrackDimensions ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   & width , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   & height ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  width , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  height ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackDimensions ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  width ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  height ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackDimensions 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackDimensions ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & width , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & height ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackDimensions ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   width , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   height ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackUserData ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackUserData ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     UserDataObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackSoundLocalizationSettings ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  settings ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackSoundLocalizationSettings 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackSoundLocalizationSettings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetTrackSoundLocalizationSettings ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                         & settings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  settings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackSoundLocalizationSettings ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  settings ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackSoundLocalizationSettings 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackSoundLocalizationSettings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & settings ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetTrackSoundLocalizationSettings ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                         settings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_NewTrackMedia ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Media  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  mediaType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  timeScale ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewTrackMedia 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewTrackMedia ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lO&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & mediaType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & timeScale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  NewTrackMedia ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    mediaType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    timeScale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MediaObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackMedia ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Media  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackMedia 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackMedia ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackMedia ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MediaObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_InsertMediaIntoTrack ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  trackStart ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  mediaTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  mediaDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  mediaRate ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef InsertMediaIntoTrack 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( InsertMediaIntoTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lllO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & trackStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & mediaTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & mediaDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & mediaRate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  InsertMediaIntoTrack ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            trackStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            mediaTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            mediaDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            mediaRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_InsertTrackSegment ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  dstTrack ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  srcIn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  srcDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dstIn ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef InsertTrackSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( InsertTrackSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & dstTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & srcIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & srcDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dstIn ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  InsertTrackSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          dstTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          srcIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          srcDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          dstIn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_InsertEmptyTrackSegment ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dstIn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dstDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef InsertEmptyTrackSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( InsertEmptyTrackSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dstIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dstDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  InsertEmptyTrackSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dstIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dstDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_DeleteTrackSegment ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DeleteTrackSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DeleteTrackSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  DeleteTrackSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_ScaleTrackSegment ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  oldDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  newDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ScaleTrackSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ScaleTrackSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & oldDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  ScaleTrackSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         oldDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         newDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_IsScrapMovie ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Component  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef IsScrapMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( IsScrapMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  IsScrapMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_CopyTrackSettings ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  dstTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CopyTrackSettings 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CopyTrackSettings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & dstTrack ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CopyTrackSettings ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         dstTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_AddEmptyTrackToMovie ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  dstMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  dstTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddEmptyTrackToMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddEmptyTrackToMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & dstMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddEmptyTrackToMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            dstMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & dstTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  dstTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_AddClonedTrackToMovie ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  dstMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  dstTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddClonedTrackToMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddClonedTrackToMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & dstMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddClonedTrackToMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             dstMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & dstTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  dstTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_AddTrackReference ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  refTrack ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  refType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  addedIndex ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddTrackReference 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddTrackReference ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & refTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & refType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddTrackReference ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         refTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         & addedIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     addedIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_DeleteTrackReference ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  refType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DeleteTrackReference 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DeleteTrackReference ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  DeleteTrackReference ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackReference ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  refTrack ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  refType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackReference 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackReference ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & refTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetTrackReference ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         refTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackReference ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  refType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackReference 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackReference ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackReference ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        refType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetNextTrackReferenceType ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  refType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetNextTrackReferenceType 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetNextTrackReferenceType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & refType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetNextTrackReferenceType ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                refType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackReferenceCount ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  refType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackReferenceCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackReferenceCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & refType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackReferenceCount ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             refType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackEditRate ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  atTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackEditRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackEditRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & atTime ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackEditRate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       atTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackDataSize ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackDataSize 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackDataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackDataSize ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackDataSize64 ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									wide  dataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackDataSize64 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackDataSize64 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetTrackDataSize64 ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_Buildwide ,  dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_PtInTrack ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  pt ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PtInTrack 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PtInTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & pt ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  PtInTrack ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                pt ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackNextInterestingTime ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  interestingTimeFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  rate ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackNextInterestingTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackNextInterestingTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hlO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetTrackNextInterestingTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            rate , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & interestingTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & interestingDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackSegmentDisplayBoundsRgn ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackSegmentDisplayBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackSegmentDisplayBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackSegmentDisplayBoundsRgn ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                      time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                      duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackStatus ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackStatus 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackStatus ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetTrackStatus ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_SetTrackLoadSettings ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  preloadTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  preloadDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  preloadFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  defaultHints ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetTrackLoadSettings 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetTrackLoadSettings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " llll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & preloadTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & preloadDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & preloadFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & defaultHints ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetTrackLoadSettings ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     preloadTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     preloadDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     preloadFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     defaultHints ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_GetTrackLoadSettings ( TrackObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  preloadTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  preloadDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  preloadFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  defaultHints ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetTrackLoadSettings 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetTrackLoadSettings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetTrackLoadSettings ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & preloadTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & preloadDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & preloadFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & defaultHints ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " llll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     preloadTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     preloadDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     preloadFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     defaultHints ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  TrackObj_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " LoadTrackIntoRam " ,  ( PyCFunction ) TrackObj_LoadTrackIntoRam ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, TimeValue duration, long flags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackPict " ,  ( PyCFunction ) TrackObj_GetTrackPict ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time) -> (PicHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackClipRgn " ,  ( PyCFunction ) TrackObj_GetTrackClipRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackClipRgn " ,  ( PyCFunction ) TrackObj_SetTrackClipRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (RgnHandle theClip) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackDisplayBoundsRgn " ,  ( PyCFunction ) TrackObj_GetTrackDisplayBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackMovieBoundsRgn " ,  ( PyCFunction ) TrackObj_GetTrackMovieBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackBoundsRgn " ,  ( PyCFunction ) TrackObj_GetTrackBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackMatte " ,  ( PyCFunction ) TrackObj_GetTrackMatte ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (PixMapHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackMatte " ,  ( PyCFunction ) TrackObj_SetTrackMatte ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (PixMapHandle theMatte) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackID " ,  ( PyCFunction ) TrackObj_GetTrackID ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackMovie " ,  ( PyCFunction ) TrackObj_GetTrackMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackCreationTime " ,  ( PyCFunction ) TrackObj_GetTrackCreationTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (unsigned long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackModificationTime " ,  ( PyCFunction ) TrackObj_GetTrackModificationTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (unsigned long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackEnabled " ,  ( PyCFunction ) TrackObj_GetTrackEnabled ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackEnabled " ,  ( PyCFunction ) TrackObj_SetTrackEnabled ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean isEnabled) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackUsage " ,  ( PyCFunction ) TrackObj_GetTrackUsage ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackUsage " ,  ( PyCFunction ) TrackObj_SetTrackUsage ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long usage) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackDuration " ,  ( PyCFunction ) TrackObj_GetTrackDuration ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackOffset " ,  ( PyCFunction ) TrackObj_GetTrackOffset ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackOffset " ,  ( PyCFunction ) TrackObj_SetTrackOffset ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue movieOffsetTime) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackLayer " ,  ( PyCFunction ) TrackObj_GetTrackLayer ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackLayer " ,  ( PyCFunction ) TrackObj_SetTrackLayer ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short layer) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackAlternate " ,  ( PyCFunction ) TrackObj_GetTrackAlternate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackAlternate " ,  ( PyCFunction ) TrackObj_SetTrackAlternate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track alternateT) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackVolume " ,  ( PyCFunction ) TrackObj_GetTrackVolume ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackVolume " ,  ( PyCFunction ) TrackObj_SetTrackVolume ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short volume) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackDimensions " ,  ( PyCFunction ) TrackObj_GetTrackDimensions ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Fixed width, Fixed height) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackDimensions " ,  ( PyCFunction ) TrackObj_SetTrackDimensions ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Fixed width, Fixed height) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackUserData " ,  ( PyCFunction ) TrackObj_GetTrackUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (UserData _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackSoundLocalizationSettings " ,  ( PyCFunction ) TrackObj_GetTrackSoundLocalizationSettings ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Handle settings) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackSoundLocalizationSettings " ,  ( PyCFunction ) TrackObj_SetTrackSoundLocalizationSettings ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle settings) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewTrackMedia " ,  ( PyCFunction ) TrackObj_NewTrackMedia ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType mediaType, TimeScale timeScale, Handle dataRef, OSType dataRefType) -> (Media _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackMedia " ,  ( PyCFunction ) TrackObj_GetTrackMedia ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Media _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " InsertMediaIntoTrack " ,  ( PyCFunction ) TrackObj_InsertMediaIntoTrack ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue trackStart, TimeValue mediaTime, TimeValue mediaDuration, Fixed mediaRate) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " InsertTrackSegment " ,  ( PyCFunction ) TrackObj_InsertTrackSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track dstTrack, TimeValue srcIn, TimeValue srcDuration, TimeValue dstIn) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " InsertEmptyTrackSegment " ,  ( PyCFunction ) TrackObj_InsertEmptyTrackSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue dstIn, TimeValue dstDuration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " DeleteTrackSegment " ,  ( PyCFunction ) TrackObj_DeleteTrackSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ScaleTrackSegment " ,  ( PyCFunction ) TrackObj_ScaleTrackSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue oldDuration, TimeValue newDuration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " IsScrapMovie " ,  ( PyCFunction ) TrackObj_IsScrapMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Component _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CopyTrackSettings " ,  ( PyCFunction ) TrackObj_CopyTrackSettings ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track dstTrack) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddEmptyTrackToMovie " ,  ( PyCFunction ) TrackObj_AddEmptyTrackToMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie dstMovie, Handle dataRef, OSType dataRefType) -> (Track dstTrack) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " AddClonedTrackToMovie " ,  ( PyCFunction ) TrackObj_AddClonedTrackToMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie dstMovie, long flags) -> (Track dstTrack) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddTrackReference " ,  ( PyCFunction ) TrackObj_AddTrackReference ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track refTrack, OSType refType) -> (long addedIndex) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " DeleteTrackReference " ,  ( PyCFunction ) TrackObj_DeleteTrackReference ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType refType, long index) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackReference " ,  ( PyCFunction ) TrackObj_SetTrackReference ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track refTrack, OSType refType, long index) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackReference " ,  ( PyCFunction ) TrackObj_GetTrackReference ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType refType, long index) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetNextTrackReferenceType " ,  ( PyCFunction ) TrackObj_GetNextTrackReferenceType ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType refType) -> (OSType _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackReferenceCount " ,  ( PyCFunction ) TrackObj_GetTrackReferenceCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType refType) -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackEditRate " ,  ( PyCFunction ) TrackObj_GetTrackEditRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue atTime) -> (Fixed _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackDataSize " ,  ( PyCFunction ) TrackObj_GetTrackDataSize ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackDataSize64 " ,  ( PyCFunction ) TrackObj_GetTrackDataSize64 ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> (wide dataSize) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PtInTrack " ,  ( PyCFunction ) TrackObj_PtInTrack ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Point pt) -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackNextInterestingTime " ,  ( PyCFunction ) TrackObj_GetTrackNextInterestingTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackSegmentDisplayBoundsRgn " ,  ( PyCFunction ) TrackObj_GetTrackSegmentDisplayBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, TimeValue duration) -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackStatus " ,  ( PyCFunction ) TrackObj_GetTrackStatus ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetTrackLoadSettings " ,  ( PyCFunction ) TrackObj_SetTrackLoadSettings ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue preloadTime, TimeValue preloadDuration, long preloadFlags, long defaultHints) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetTrackLoadSettings " ,  ( PyCFunction ) TrackObj_GetTrackLoadSettings ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue preloadTime, TimeValue preloadDuration, long preloadFlags, long defaultHints) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define TrackObj_getsetlist NULL 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# define TrackObj_compare NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TrackObj_repr NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TrackObj_hash NULL 
  
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define TrackObj_tp_init 0 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TrackObj_tp_alloc PyType_GenericAlloc 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * TrackObj_tp_new ( PyTypeObject  * type ,  PyObject  * args ,  PyObject  * kwds )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  * kw [ ]  =  { " itself " ,  0 } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTupleAndKeywords ( args ,  kwds ,  " O& " ,  kw ,  TrackObj_Convert ,  & itself ) )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ( self  =  type - > tp_alloc ( type ,  0 ) )  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( ( TrackObject  * ) self ) - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define TrackObj_tp_free PyObject_Del 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  Track_Type  =  {  
						 
					
						
							
								
									
										
										
										
											2001-11-30 14:16:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_HEAD_INIT ( NULL ) 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									0 ,  /*ob_size*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-08 18:02:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									" _Qt.Track " ,  /*tp_name*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									sizeof ( TrackObject ) ,  /*tp_basicsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_itemsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* methods */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( destructor )  TrackObj_dealloc ,  /*tp_dealloc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_print*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									( getattrfunc ) 0 ,  /*tp_getattr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( setattrfunc ) 0 ,  /*tp_setattr*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									( cmpfunc )  TrackObj_compare ,  /*tp_compare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( reprfunc )  TrackObj_repr ,  /*tp_repr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyNumberMethods  * ) 0 ,  /* tp_as_number */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PySequenceMethods  * ) 0 ,  /* tp_as_sequence */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyMappingMethods  * ) 0 ,  /* tp_as_mapping */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( hashfunc )  TrackObj_hash ,  /*tp_hash*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_call*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_str*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericGetAttr ,  /*tp_getattro*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericSetAttr ,  /*tp_setattro */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_as_buffer*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,  /* tp_flags */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_doc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_traverse*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_clear*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_richcompare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_weaklistoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iter*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iternext*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									TrackObj_methods ,  /* tp_methods */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_members*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									TrackObj_getsetlist ,  /*tp_getset*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_base*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dict*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_get*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_set*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dictoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TrackObj_tp_init ,  /* tp_init */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TrackObj_tp_alloc ,  /* tp_alloc */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TrackObj_tp_new ,  /* tp_new */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TrackObj_tp_free ,  /* tp_free */ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* --------------------- End object type Track ---------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ----------------------- Object type Movie ------------------------ */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  Movie_Type ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-19 21:24:35 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MovieObj_Check(x) ((x)->ob_type == &Movie_Type || PyObject_TypeCheck((x), &Movie_Type)) 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								typedef  struct  MovieObject  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_HEAD 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  MovieObject ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyObject  * MovieObj_New ( Movie  itself )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieObject  * it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( itself  = =  NULL )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														PyErr_SetString ( Qt_Error , " Cannot create null Movie " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it  =  PyObject_NEW ( MovieObject ,  & Movie_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( it  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									it - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  ( PyObject  * ) it ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
									
										
										
										
											2001-09-04 22:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								int  MovieObj_Convert ( PyObject  * v ,  Movie  * p_itself )  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! MovieObj_Check ( v ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyErr_SetString ( PyExc_TypeError ,  " Movie required " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  0 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									* p_itself  =  ( ( MovieObject  * ) v ) - > ob_itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  1 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  void  MovieObj_dealloc ( MovieObject  * self )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeMovie ( self - > ob_itself ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-04-23 22:46:01 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_Del ( self ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_MoviesTask ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxMilliSecToUse ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MoviesTask 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MoviesTask ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxMilliSecToUse ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MoviesTask ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									           maxMilliSecToUse ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PrerollMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  Rate ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PrerollMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PrerollMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & Rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PrerollMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    Rate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_AbortPrePrerollMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AbortPrePrerollMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AbortPrePrerollMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & err ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									AbortPrePrerollMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_LoadMovieIntoRam ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef LoadMovieIntoRam 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( LoadMovieIntoRam ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  LoadMovieIntoRam ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieActive ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  active ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieActive 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieActive ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & active ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieActive ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               active ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieActive ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieActive 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieActive ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieActive ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_StartMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef StartMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( StartMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									StartMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_StopMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef StopMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( StopMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									StopMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GoToBeginningOfMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GoToBeginningOfMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GoToBeginningOfMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GoToBeginningOfMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GoToEndOfMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GoToEndOfMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GoToEndOfMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GoToEndOfMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_IsMovieDone ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef IsMovieDone 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( IsMovieDone ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  IsMovieDone ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePreviewMode ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePreviewMode 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePreviewMode ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMoviePreviewMode ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMoviePreviewMode ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  usePreview ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMoviePreviewMode 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMoviePreviewMode ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & usePreview ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMoviePreviewMode ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    usePreview ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_ShowMoviePoster ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ShowMoviePoster 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ShowMoviePoster ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ShowMoviePoster ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieTimeBase ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieTimeBase 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieTimeBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieTimeBase ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TimeBaseObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieMasterTimeBase ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  tb ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  slaveZero ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieMasterTimeBase 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieMasterTimeBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TimeBaseObj_Convert ,  & tb , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & slaveZero ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieMasterTimeBase ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       tb , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & slaveZero ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieMasterClock ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Component  clockMeister ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  slaveZero ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieMasterClock 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieMasterClock ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpObj_Convert ,  & clockMeister , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & slaveZero ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieMasterClock ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    clockMeister , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    & slaveZero ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieGWorld ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CGrafPtr  port ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GDHandle  gdh ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieGWorld 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieGWorld ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMovieGWorld ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               & port , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               & gdh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     GrafObj_New ,  port , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     OptResObj_New ,  gdh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieGWorld ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CGrafPtr  port ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GDHandle  gdh ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieGWorld 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieGWorld ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      GrafObj_Convert ,  & port , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      OptResObj_Convert ,  & gdh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieGWorld ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               port , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               gdh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieNaturalBoundsRect ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  naturalBounds ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieNaturalBoundsRect 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieNaturalBoundsRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMovieNaturalBoundsRect ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & naturalBounds ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildRect ,  & naturalBounds ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetNextTrackForCompositing ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  theTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetNextTrackForCompositing 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetNextTrackForCompositing ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & theTrack ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetNextTrackForCompositing ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 theTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetPrevTrackForCompositing ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  theTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetPrevTrackForCompositing 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetPrevTrackForCompositing ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & theTrack ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetPrevTrackForCompositing ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 theTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePict ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PicHandle  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePict 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePict ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMoviePict ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   time ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePosterPict ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PicHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePosterPict 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePosterPict ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMoviePosterPict ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_UpdateMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef UpdateMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( UpdateMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  UpdateMovie ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_InvalidateMovieRegion ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  invalidRgn ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef InvalidateMovieRegion 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( InvalidateMovieRegion ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & invalidRgn ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  InvalidateMovieRegion ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             invalidRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieBox ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  boxRect ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieBox 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieBox ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMovieBox ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            & boxRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildRect ,  & boxRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieBox ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  boxRect ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieBox 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieBox ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & boxRect ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieBox ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            & boxRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieDisplayClipRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieDisplayClipRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieDisplayClipRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieDisplayClipRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieDisplayClipRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  theClip ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieDisplayClipRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieDisplayClipRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theClip ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieDisplayClipRgn ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       theClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieClipRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieClipRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieClipRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieClipRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieClipRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  theClip ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieClipRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieClipRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theClip ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieClipRgn ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                theClip ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieDisplayBoundsRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieDisplayBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieDisplayBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieDisplayBoundsRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieBoundsRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieBoundsRgn ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieVideoOutput ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  vout ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieVideoOutput 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieVideoOutput ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & vout ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieVideoOutput ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    vout ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PutMovieIntoHandle ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  publicMovie ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PutMovieIntoHandle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PutMovieIntoHandle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & publicMovie ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PutMovieIntoHandle ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          publicMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PutMovieIntoDataFork ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  fRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  offset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PutMovieIntoDataFork 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PutMovieIntoDataFork ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & offset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxSize ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PutMovieIntoDataFork ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            offset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            maxSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PutMovieIntoDataFork64 ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  fRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									wide  offset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  maxSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PutMovieIntoDataFork64 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PutMovieIntoDataFork64 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_Getwide ,  & offset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxSize ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PutMovieIntoDataFork64 ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & offset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              maxSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieCreationTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieCreationTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieCreationTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieCreationTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieModificationTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieModificationTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieModificationTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieModificationTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieTimeScale ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieTimeScale 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieTimeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieTimeScale ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieTimeScale ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeScale  timeScale ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieTimeScale 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieTimeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & timeScale ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieTimeScale ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  timeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieDuration ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieDuration 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieDuration ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieRate ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieRate ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieRate ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  rate ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieRate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             rate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePreferredRate ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePreferredRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePreferredRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMoviePreferredRate ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildFixed ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMoviePreferredRate ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  rate ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMoviePreferredRate 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMoviePreferredRate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMoviePreferredRate ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      rate ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePreferredVolume ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePreferredVolume 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePreferredVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMoviePreferredVolume ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMoviePreferredVolume ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  volume ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMoviePreferredVolume 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMoviePreferredVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & volume ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMoviePreferredVolume ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        volume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieVolume ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieVolume 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieVolume ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieVolume ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  volume ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieVolume 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & volume ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieVolume ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									               volume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePreviewTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  previewTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  previewDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePreviewTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePreviewTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMoviePreviewTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    & previewTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    & previewDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     previewTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     previewDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMoviePreviewTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  previewTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  previewDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMoviePreviewTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMoviePreviewTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & previewTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & previewDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMoviePreviewTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    previewTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    previewDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMoviePosterTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviePosterTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviePosterTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMoviePosterTime ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMoviePosterTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  posterTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMoviePosterTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMoviePosterTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & posterTime ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMoviePosterTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   posterTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  selectionTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  selectionDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMovieSelection ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  & selectionTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  & selectionDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     selectionTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     selectionDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  selectionTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  selectionDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & selectionTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & selectionDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieSelection ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  selectionTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  selectionDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieActiveSegment ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieActiveSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieActiveSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieActiveSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieActiveSegment ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieActiveSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieActiveSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMovieActiveSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  currentTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                   & currentTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & currentTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  newtime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & newtime ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             & newtime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieTimeValue ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  newtime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieTimeValue 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieTimeValue ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newtime ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieTimeValue ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  newtime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieUserData ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieUserData ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     UserDataObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieTrackCount ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieTrackCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieTrackCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieTrackCount ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieTrack ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  trackID ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieTrack 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & trackID ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieTrack ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    trackID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieIndTrack ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieIndTrack 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieIndTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieIndTrack ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       index ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieIndTrackType ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  index ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  trackType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieIndTrackType 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieIndTrackType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & trackType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieIndTrackType ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           index , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           trackType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_NewMovieTrack ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  width ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  height ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  trackVolume ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieTrack 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & width , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & height , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & trackVolume ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  NewMovieTrack ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    width , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    height , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    trackVolume ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetAutoTrackAlternatesEnabled ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  enable ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetAutoTrackAlternatesEnabled 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetAutoTrackAlternatesEnabled ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & enable ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetAutoTrackAlternatesEnabled ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              enable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SelectMovieAlternates ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SelectMovieAlternates 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SelectMovieAlternates ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SelectMovieAlternates ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_InsertMovieSegment ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  dstMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  srcIn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  srcDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dstIn ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef InsertMovieSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( InsertMovieSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & dstMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & srcIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & srcDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dstIn ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  InsertMovieSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          dstMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          srcIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          srcDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          dstIn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_InsertEmptyMovieSegment ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dstIn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dstDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef InsertEmptyMovieSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( InsertEmptyMovieSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dstIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dstDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  InsertEmptyMovieSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dstIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dstDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_DeleteMovieSegment ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DeleteMovieSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DeleteMovieSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  DeleteMovieSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_ScaleMovieSegment ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  oldDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  newDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ScaleMovieSegment 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ScaleMovieSegment ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & oldDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  ScaleMovieSegment ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         oldDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         newDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_CutMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CutMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CutMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  CutMovieSelection ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_CopyMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CopyMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CopyMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  CopyMovieSelection ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PasteMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  src ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PasteMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PasteMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & src ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PasteMovieSelection ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                    src ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_AddMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  src ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & src ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									AddMovieSelection ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  src ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_ClearMovieSelection ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ClearMovieSelection 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ClearMovieSelection ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ClearMovieSelection ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PutMovieIntoTypedHandle ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  targetTrack ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  handleType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  publicMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  start ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  dur ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  userComp ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PutMovieIntoTypedHandle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PutMovieIntoTypedHandle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&lllO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & targetTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & handleType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & publicMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & start , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dur , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & userComp ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PutMovieIntoTypedHandle ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               targetTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               handleType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               publicMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               start , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dur , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               userComp ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_CopyMovieSettings ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  dstMovie ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CopyMovieSettings 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CopyMovieSettings ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & dstMovie ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CopyMovieSettings ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         dstMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_ConvertMovieToFile ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  onlyTrack ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  outputFile ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  fileType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creator ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ScriptCode  scriptTag ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  userComp ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ConvertMovieToFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ConvertMovieToFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&O&hlO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & onlyTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & outputFile , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & fileType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & userComp ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  ConvertMovieToFile ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          onlyTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & outputFile , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          fileType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & resID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          userComp ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     resID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieDataSize ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieDataSize 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieDataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieDataSize ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieDataSize64 ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									wide  dataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieDataSize64 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieDataSize64 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMovieDataSize64 ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_Buildwide ,  dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PtInMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  pt ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PtInMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PtInMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & pt ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  PtInMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                pt ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieLanguage ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  language ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieLanguage 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieLanguage ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & language ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMovieLanguage ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                 language ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieNextInterestingTime ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  interestingTimeFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  numMediaTypes ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  whichMediaTypes ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  rate ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  interestingDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieNextInterestingTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieNextInterestingTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hhO&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & numMediaTypes , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & whichMediaTypes , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & rate ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetMovieNextInterestingTime ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            interestingTimeFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            numMediaTypes , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & whichMediaTypes , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            rate , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & interestingTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & interestingDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     interestingDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_AddMovieResource ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resId ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  resName ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddMovieResource 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddMovieResource ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  resName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddMovieResource ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        & resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        resName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     resId ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_UpdateMovieResource ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resId ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  resName ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef UpdateMovieResource 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( UpdateMovieResource ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hhO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  resName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  UpdateMovieResource ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           resName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_HasMovieChanged ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef HasMovieChanged 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( HasMovieChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  HasMovieChanged ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_ClearMovieChanged ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ClearMovieChanged 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ClearMovieChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ClearMovieChanged ( _self - > ob_itself ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieDefaultDataRef ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieDefaultDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieDefaultDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMovieDefaultDataRef ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieDefaultDataRef ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieDefaultDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieDefaultDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMovieDefaultDataRef ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildOSType ,  dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMovieColorTable ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CTabHandle  ctab ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMovieColorTable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMovieColorTable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & ctab ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  SetMovieColorTable ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          ctab ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieColorTable ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CTabHandle  ctab ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieColorTable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieColorTable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMovieColorTable ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & ctab ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  ctab ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_FlattenMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  movieFlattenFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  theFile ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creator ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ScriptCode  scriptTag ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  createMovieFileFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resId ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  resName ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlattenMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlattenMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO&O&hlO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & movieFlattenFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & theFile , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createMovieFileFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  resName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FlattenMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             movieFlattenFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             & theFile , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             createMovieFileFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             & resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             resName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     resId ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_FlattenMovieData ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  movieFlattenFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  theFile ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creator ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ScriptCode  scriptTag ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  createMovieFileFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlattenMovieData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlattenMovieData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO&O&hl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & movieFlattenFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & theFile , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createMovieFileFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlattenMovieData ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       movieFlattenFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & theFile , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       createMovieFileFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_MovieSearchText ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Ptr  text ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  searchFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  searchTrack ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  searchTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  searchOffset ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MovieSearchText 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MovieSearchText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " sll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & text , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & searchFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  MovieSearchText ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       text , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       searchFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & searchTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & searchTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & searchOffset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  searchTrack , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     searchTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     searchOffset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetPosterBox ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  boxRect ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetPosterBox 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetPosterBox ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GetPosterBox ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             & boxRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildRect ,  & boxRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetPosterBox ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  boxRect ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetPosterBox 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetPosterBox ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & boxRect ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetPosterBox ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             & boxRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieSegmentDisplayBoundsRgn ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RgnHandle  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieSegmentDisplayBoundsRgn 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieSegmentDisplayBoundsRgn ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieSegmentDisplayBoundsRgn ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                      time , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                      duration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMovieStatus ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  firstProblemTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieStatus 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieStatus ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetMovieStatus ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & firstProblemTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TrackObj_New ,  firstProblemTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_NewMovieController ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieController  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  movieRect ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  someFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieController 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieController ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & movieRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & someFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  NewMovieController ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         & movieRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         someFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieCtlObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_PutMovieOnScrap ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  movieScrapFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PutMovieOnScrap 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PutMovieOnScrap ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & movieScrapFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PutMovieOnScrap ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       movieScrapFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_SetMoviePlayHints ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flagsMask ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SetMoviePlayHints 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SetMoviePlayHints ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flagsMask ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SetMoviePlayHints ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  flagsMask ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_GetMaxLoadedTimeInMovie ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  time ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMaxLoadedTimeInMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMaxLoadedTimeInMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMaxLoadedTimeInMovie ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & time ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     time ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_QTMovieNeedsTimeTable ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  needsTimeTable ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTMovieNeedsTimeTable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTMovieNeedsTimeTable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTMovieNeedsTimeTable ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & needsTimeTable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     needsTimeTable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_QTGetDataRefMaxFileOffset ( MovieObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  offset ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTGetDataRefMaxFileOffset 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTGetDataRefMaxFileOffset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTGetDataRefMaxFileOffset ( _self - > ob_itself , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & offset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     offset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  MovieObj_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " MoviesTask " ,  ( PyCFunction ) MovieObj_MoviesTask ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long maxMilliSecToUse) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PrerollMovie " ,  ( PyCFunction ) MovieObj_PrerollMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, Fixed Rate) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AbortPrePrerollMovie " ,  ( PyCFunction ) MovieObj_AbortPrePrerollMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSErr err) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " LoadMovieIntoRam " ,  ( PyCFunction ) MovieObj_LoadMovieIntoRam ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, TimeValue duration, long flags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieActive " ,  ( PyCFunction ) MovieObj_SetMovieActive ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean active) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieActive " ,  ( PyCFunction ) MovieObj_GetMovieActive ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " StartMovie " ,  ( PyCFunction ) MovieObj_StartMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " StopMovie " ,  ( PyCFunction ) MovieObj_StopMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GoToBeginningOfMovie " ,  ( PyCFunction ) MovieObj_GoToBeginningOfMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GoToEndOfMovie " ,  ( PyCFunction ) MovieObj_GoToEndOfMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " IsMovieDone " ,  ( PyCFunction ) MovieObj_IsMovieDone ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePreviewMode " ,  ( PyCFunction ) MovieObj_GetMoviePreviewMode ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMoviePreviewMode " ,  ( PyCFunction ) MovieObj_SetMoviePreviewMode ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean usePreview) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ShowMoviePoster " ,  ( PyCFunction ) MovieObj_ShowMoviePoster ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieTimeBase " ,  ( PyCFunction ) MovieObj_GetMovieTimeBase ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeBase _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieMasterTimeBase " ,  ( PyCFunction ) MovieObj_SetMovieMasterTimeBase ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeBase tb, TimeRecord slaveZero) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieMasterClock " ,  ( PyCFunction ) MovieObj_SetMovieMasterClock ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Component clockMeister, TimeRecord slaveZero) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieGWorld " ,  ( PyCFunction ) MovieObj_GetMovieGWorld ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (CGrafPtr port, GDHandle gdh) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieGWorld " ,  ( PyCFunction ) MovieObj_SetMovieGWorld ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (CGrafPtr port, GDHandle gdh) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieNaturalBoundsRect " ,  ( PyCFunction ) MovieObj_GetMovieNaturalBoundsRect ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Rect naturalBounds) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetNextTrackForCompositing " ,  ( PyCFunction ) MovieObj_GetNextTrackForCompositing ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track theTrack) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetPrevTrackForCompositing " ,  ( PyCFunction ) MovieObj_GetPrevTrackForCompositing ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track theTrack) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePict " ,  ( PyCFunction ) MovieObj_GetMoviePict ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time) -> (PicHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePosterPict " ,  ( PyCFunction ) MovieObj_GetMoviePosterPict ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (PicHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " UpdateMovie " ,  ( PyCFunction ) MovieObj_UpdateMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " InvalidateMovieRegion " ,  ( PyCFunction ) MovieObj_InvalidateMovieRegion ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (RgnHandle invalidRgn) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieBox " ,  ( PyCFunction ) MovieObj_GetMovieBox ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Rect boxRect) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieBox " ,  ( PyCFunction ) MovieObj_SetMovieBox ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Rect boxRect) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieDisplayClipRgn " ,  ( PyCFunction ) MovieObj_GetMovieDisplayClipRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieDisplayClipRgn " ,  ( PyCFunction ) MovieObj_SetMovieDisplayClipRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (RgnHandle theClip) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieClipRgn " ,  ( PyCFunction ) MovieObj_GetMovieClipRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieClipRgn " ,  ( PyCFunction ) MovieObj_SetMovieClipRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (RgnHandle theClip) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieDisplayBoundsRgn " ,  ( PyCFunction ) MovieObj_GetMovieDisplayBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieBoundsRgn " ,  ( PyCFunction ) MovieObj_GetMovieBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " SetMovieVideoOutput " ,  ( PyCFunction ) MovieObj_SetMovieVideoOutput ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (ComponentInstance vout) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PutMovieIntoHandle " ,  ( PyCFunction ) MovieObj_PutMovieIntoHandle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle publicMovie) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PutMovieIntoDataFork " ,  ( PyCFunction ) MovieObj_PutMovieIntoDataFork ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short fRefNum, long offset, long maxSize) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PutMovieIntoDataFork64 " ,  ( PyCFunction ) MovieObj_PutMovieIntoDataFork64 ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long fRefNum, wide offset, unsigned long maxSize) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieCreationTime " ,  ( PyCFunction ) MovieObj_GetMovieCreationTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (unsigned long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieModificationTime " ,  ( PyCFunction ) MovieObj_GetMovieModificationTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (unsigned long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieTimeScale " ,  ( PyCFunction ) MovieObj_GetMovieTimeScale ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeScale _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieTimeScale " ,  ( PyCFunction ) MovieObj_SetMovieTimeScale ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeScale timeScale) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieDuration " ,  ( PyCFunction ) MovieObj_GetMovieDuration ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieRate " ,  ( PyCFunction ) MovieObj_GetMovieRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Fixed _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieRate " ,  ( PyCFunction ) MovieObj_SetMovieRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Fixed rate) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePreferredRate " ,  ( PyCFunction ) MovieObj_GetMoviePreferredRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Fixed _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMoviePreferredRate " ,  ( PyCFunction ) MovieObj_SetMoviePreferredRate ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Fixed rate) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePreferredVolume " ,  ( PyCFunction ) MovieObj_GetMoviePreferredVolume ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMoviePreferredVolume " ,  ( PyCFunction ) MovieObj_SetMoviePreferredVolume ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short volume) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieVolume " ,  ( PyCFunction ) MovieObj_GetMovieVolume ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (short _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieVolume " ,  ( PyCFunction ) MovieObj_SetMovieVolume ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short volume) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePreviewTime " ,  ( PyCFunction ) MovieObj_GetMoviePreviewTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue previewTime, TimeValue previewDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMoviePreviewTime " ,  ( PyCFunction ) MovieObj_SetMoviePreviewTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue previewTime, TimeValue previewDuration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviePosterTime " ,  ( PyCFunction ) MovieObj_GetMoviePosterTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMoviePosterTime " ,  ( PyCFunction ) MovieObj_SetMoviePosterTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue posterTime) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieSelection " ,  ( PyCFunction ) MovieObj_GetMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue selectionTime, TimeValue selectionDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieSelection " ,  ( PyCFunction ) MovieObj_SetMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue selectionTime, TimeValue selectionDuration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieActiveSegment " ,  ( PyCFunction ) MovieObj_SetMovieActiveSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieActiveSegment " ,  ( PyCFunction ) MovieObj_GetMovieActiveSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue startTime, TimeValue duration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieTime " ,  ( PyCFunction ) MovieObj_GetMovieTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue _rv, TimeRecord currentTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieTime " ,  ( PyCFunction ) MovieObj_SetMovieTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord newtime) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieTimeValue " ,  ( PyCFunction ) MovieObj_SetMovieTimeValue ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue newtime) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieUserData " ,  ( PyCFunction ) MovieObj_GetMovieUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (UserData _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieTrackCount " ,  ( PyCFunction ) MovieObj_GetMovieTrackCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieTrack " ,  ( PyCFunction ) MovieObj_GetMovieTrack ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long trackID) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieIndTrack " ,  ( PyCFunction ) MovieObj_GetMovieIndTrack ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long index) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieIndTrackType " ,  ( PyCFunction ) MovieObj_GetMovieIndTrackType ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long index, OSType trackType, long flags) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieTrack " ,  ( PyCFunction ) MovieObj_NewMovieTrack ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Fixed width, Fixed height, short trackVolume) -> (Track _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetAutoTrackAlternatesEnabled " ,  ( PyCFunction ) MovieObj_SetAutoTrackAlternatesEnabled ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Boolean enable) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SelectMovieAlternates " ,  ( PyCFunction ) MovieObj_SelectMovieAlternates ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " InsertMovieSegment " ,  ( PyCFunction ) MovieObj_InsertMovieSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie dstMovie, TimeValue srcIn, TimeValue srcDuration, TimeValue dstIn) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " InsertEmptyMovieSegment " ,  ( PyCFunction ) MovieObj_InsertEmptyMovieSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue dstIn, TimeValue dstDuration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " DeleteMovieSegment " ,  ( PyCFunction ) MovieObj_DeleteMovieSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ScaleMovieSegment " ,  ( PyCFunction ) MovieObj_ScaleMovieSegment ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue oldDuration, TimeValue newDuration) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CutMovieSelection " ,  ( PyCFunction ) MovieObj_CutMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CopyMovieSelection " ,  ( PyCFunction ) MovieObj_CopyMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PasteMovieSelection " ,  ( PyCFunction ) MovieObj_PasteMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie src) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddMovieSelection " ,  ( PyCFunction ) MovieObj_AddMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie src) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ClearMovieSelection " ,  ( PyCFunction ) MovieObj_ClearMovieSelection ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PutMovieIntoTypedHandle " ,  ( PyCFunction ) MovieObj_PutMovieIntoTypedHandle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track targetTrack, OSType handleType, Handle publicMovie, TimeValue start, TimeValue dur, long flags, ComponentInstance userComp) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CopyMovieSettings " ,  ( PyCFunction ) MovieObj_CopyMovieSettings ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Movie dstMovie) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ConvertMovieToFile " ,  ( PyCFunction ) MovieObj_ConvertMovieToFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Track onlyTrack, FSSpec outputFile, OSType fileType, OSType creator, ScriptCode scriptTag, long flags, ComponentInstance userComp) -> (short resID) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieDataSize " ,  ( PyCFunction ) MovieObj_GetMovieDataSize ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> (long _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieDataSize64 " ,  ( PyCFunction ) MovieObj_GetMovieDataSize64 ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue startTime, TimeValue duration) -> (wide dataSize) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PtInMovie " ,  ( PyCFunction ) MovieObj_PtInMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Point pt) -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieLanguage " ,  ( PyCFunction ) MovieObj_SetMovieLanguage ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long language) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieNextInterestingTime " ,  ( PyCFunction ) MovieObj_GetMovieNextInterestingTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short interestingTimeFlags, short numMediaTypes, OSType whichMediaTypes, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddMovieResource " ,  ( PyCFunction ) MovieObj_AddMovieResource ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short resRefNum, Str255 resName) -> (short resId) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " UpdateMovieResource " ,  ( PyCFunction ) MovieObj_UpdateMovieResource ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short resRefNum, short resId, Str255 resName) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " HasMovieChanged " ,  ( PyCFunction ) MovieObj_HasMovieChanged ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Boolean _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ClearMovieChanged " ,  ( PyCFunction ) MovieObj_ClearMovieChanged ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieDefaultDataRef " ,  ( PyCFunction ) MovieObj_SetMovieDefaultDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle dataRef, OSType dataRefType) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieDefaultDataRef " ,  ( PyCFunction ) MovieObj_GetMovieDefaultDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Handle dataRef, OSType dataRefType) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMovieColorTable " ,  ( PyCFunction ) MovieObj_SetMovieColorTable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (CTabHandle ctab) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieColorTable " ,  ( PyCFunction ) MovieObj_GetMovieColorTable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (CTabHandle ctab) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlattenMovie " ,  ( PyCFunction ) MovieObj_FlattenMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long movieFlattenFlags, FSSpec theFile, OSType creator, ScriptCode scriptTag, long createMovieFileFlags, Str255 resName) -> (short resId) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlattenMovieData " ,  ( PyCFunction ) MovieObj_FlattenMovieData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long movieFlattenFlags, FSSpec theFile, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MovieSearchText " ,  ( PyCFunction ) MovieObj_MovieSearchText ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Ptr text, long size, long searchFlags) -> (Track searchTrack, TimeValue searchTime, long searchOffset) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetPosterBox " ,  ( PyCFunction ) MovieObj_GetPosterBox ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Rect boxRect) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetPosterBox " ,  ( PyCFunction ) MovieObj_SetPosterBox ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Rect boxRect) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieSegmentDisplayBoundsRgn " ,  ( PyCFunction ) MovieObj_GetMovieSegmentDisplayBoundsRgn ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue time, TimeValue duration) -> (RgnHandle _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieStatus " ,  ( PyCFunction ) MovieObj_GetMovieStatus ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (ComponentResult _rv, Track firstProblemTrack) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieController " ,  ( PyCFunction ) MovieObj_NewMovieController ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Rect movieRect, long someFlags) -> (MovieController _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PutMovieOnScrap " ,  ( PyCFunction ) MovieObj_PutMovieOnScrap ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long movieScrapFlags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SetMoviePlayHints " ,  ( PyCFunction ) MovieObj_SetMoviePlayHints ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long flags, long flagsMask) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMaxLoadedTimeInMovie " ,  ( PyCFunction ) MovieObj_GetMaxLoadedTimeInMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeValue time) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTMovieNeedsTimeTable " ,  ( PyCFunction ) MovieObj_QTMovieNeedsTimeTable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (Boolean needsTimeTable) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTGetDataRefMaxFileOffset " ,  ( PyCFunction ) MovieObj_QTGetDataRefMaxFileOffset ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType dataRefType, Handle dataRef) -> (long offset) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MovieObj_getsetlist NULL 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# define MovieObj_compare NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieObj_repr NULL 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieObj_hash NULL 
  
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# define MovieObj_tp_init 0 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieObj_tp_alloc PyType_GenericAlloc 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * MovieObj_tp_new ( PyTypeObject  * type ,  PyObject  * args ,  PyObject  * kwds )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  * kw [ ]  =  { " itself " ,  0 } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTupleAndKeywords ( args ,  kwds ,  " O& " ,  kw ,  MovieObj_Convert ,  & itself ) )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( ( self  =  type - > tp_alloc ( type ,  0 ) )  = =  NULL )  return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( ( MovieObject  * ) self ) - > ob_itself  =  itself ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  self ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# define MovieObj_tp_free PyObject_Del 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								PyTypeObject  Movie_Type  =  {  
						 
					
						
							
								
									
										
										
										
											2001-11-30 14:16:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyObject_HEAD_INIT ( NULL ) 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									0 ,  /*ob_size*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-08 18:02:58 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									" _Qt.Movie " ,  /*tp_name*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									sizeof ( MovieObject ) ,  /*tp_basicsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_itemsize*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* methods */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( destructor )  MovieObj_dealloc ,  /*tp_dealloc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_print*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									( getattrfunc ) 0 ,  /*tp_getattr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( setattrfunc ) 0 ,  /*tp_setattr*/ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									( cmpfunc )  MovieObj_compare ,  /*tp_compare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( reprfunc )  MovieObj_repr ,  /*tp_repr*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyNumberMethods  * ) 0 ,  /* tp_as_number */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PySequenceMethods  * ) 0 ,  /* tp_as_sequence */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( PyMappingMethods  * ) 0 ,  /* tp_as_mapping */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									( hashfunc )  MovieObj_hash ,  /*tp_hash*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_call*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_str*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericGetAttr ,  /*tp_getattro*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject_GenericSetAttr ,  /*tp_setattro */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_as_buffer*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,  /* tp_flags */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_doc*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_traverse*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_clear*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_richcompare*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_weaklistoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iter*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_iternext*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									MovieObj_methods ,  /* tp_methods */ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_members*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-11-29 23:40:48 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									MovieObj_getsetlist ,  /*tp_getset*/ 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									0 ,  /*tp_base*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dict*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_get*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_descr_set*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									0 ,  /*tp_dictoffset*/ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieObj_tp_init ,  /* tp_init */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieObj_tp_alloc ,  /* tp_alloc */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieObj_tp_new ,  /* tp_new */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieObj_tp_free ,  /* tp_free */ 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* --------------------- End object type Movie ---------------------- */  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_EnterMovies ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef EnterMovies 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( EnterMovies ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  EnterMovies ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_ExitMovies ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ExitMovies 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ExitMovies ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ExitMovies ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_GetMoviesError ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviesError 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviesError ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMoviesError ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_ClearMoviesStickyError ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ClearMoviesStickyError 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ClearMoviesStickyError ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ClearMoviesStickyError ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_GetMoviesStickyError ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMoviesStickyError 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMoviesStickyError ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMoviesStickyError ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_DisposeMatte ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PixMapHandle  theMatte ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DisposeMatte 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DisposeMatte ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theMatte ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DisposeMatte ( theMatte ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovie ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  NewMovie ( flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_GetDataHandler ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Component  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataHandlerSubType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetDataHandler 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetDataHandler ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataHandlerSubType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  GetDataHandler ( dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataHandlerSubType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_PasteHandleIntoMovie ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  h ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  handleType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  userComp ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef PasteHandleIntoMovie 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( PasteHandleIntoMovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & h , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & handleType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      MovieObj_Convert ,  & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & userComp ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  PasteHandleIntoMovie ( h , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            handleType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            userComp ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_GetMovieImporterForDataRef ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Component  importer ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetMovieImporterForDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetMovieImporterForDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetMovieImporterForDataRef ( dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  & importer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpObj_New ,  importer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTGetMIMETypeInfo ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char *  mimeStringStart ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  mimeStringLength ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  infoSelector ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  infoDataPtr ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  infoDataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTGetMIMETypeInfo 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTGetMIMETypeInfo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " shO&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & mimeStringStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & mimeStringLength , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & infoSelector , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & infoDataPtr ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTGetMIMETypeInfo ( mimeStringStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         mimeStringLength , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         infoSelector , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         infoDataPtr , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                         & infoDataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     infoDataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TrackTimeToMediaTime ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  value ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Track  theTrack ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TrackTimeToMediaTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TrackTimeToMediaTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & value , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      TrackObj_Convert ,  & theTrack ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TrackTimeToMediaTime ( value , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           theTrack ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewUserData ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  theUserData ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewUserData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewUserData ( & theUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     UserDataObj_New ,  theUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewUserDataFromHandle ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  h ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UserData  theUserData ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewUserDataFromHandle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewUserDataFromHandle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & h ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewUserDataFromHandle ( h , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & theUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     UserDataObj_New ,  theUserData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_CreateMovieFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  fileSpec ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creator ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ScriptCode  scriptTag ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  createMovieFileFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  newmovie ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CreateMovieFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CreateMovieFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&hl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createMovieFileFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CreateMovieFile ( & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       createMovieFileFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & newmovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " hO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  newmovie ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_OpenMovieFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  fileSpec ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SInt8  permission ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef OpenMovieFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( OpenMovieFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & permission ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  OpenMovieFile ( & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     & resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     permission ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     resRefNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_CloseMovieFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CloseMovieFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CloseMovieFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resRefNum ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CloseMovieFile ( resRefNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_DeleteMovieFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  fileSpec ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DeleteMovieFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DeleteMovieFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & fileSpec ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  DeleteMovieFile ( & fileSpec ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovieFromFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resId ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  newMovieFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  dataRefWasChanged ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieFromFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieFromFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hhh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newMovieFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewMovieFromFile ( & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        & resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        ( StringPtr ) 0 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        newMovieFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        & dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&hb " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     resId , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovieFromHandle ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  h ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  newMovieFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  dataRefWasChanged ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieFromHandle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieFromHandle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & h , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newMovieFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewMovieFromHandle ( & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          h , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          newMovieFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          & dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovieFromDataFork ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  fRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  fileOffset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  newMovieFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  dataRefWasChanged ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieFromDataFork 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieFromDataFork ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hlh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fileOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newMovieFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewMovieFromDataFork ( & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            fileOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            newMovieFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovieFromDataFork64 ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  theMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  fRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									wide  fileOffset ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  newMovieFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  dataRefWasChanged ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieFromDataFork64 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieFromDataFork64 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lO&h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_Getwide ,  & fileOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newMovieFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewMovieFromDataFork64 ( & theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              fRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & fileOffset , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              newMovieFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  theMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     dataRefWasChanged ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovieFromDataRef ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  m ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  id ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieFromDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieFromDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hO&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  NewMovieFromDataRef ( & m , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & id , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           dataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O&h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  m , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     id ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_RemoveMovieResource ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resRefNum ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  resId ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef RemoveMovieResource 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( RemoveMovieResource ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " hh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & resId ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  RemoveMovieResource ( resRefNum , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           resId ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_CreateShortcutMovieFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  fileSpec ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  creator ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ScriptCode  scriptTag ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  createMovieFileFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  targetDataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  targetDataRefType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CreateShortcutMovieFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CreateShortcutMovieFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&hlO&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createMovieFileFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & targetDataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & targetDataRefType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CreateShortcutMovieFile ( & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               creator , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               scriptTag , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               createMovieFileFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               targetDataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               targetDataRefType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * Qt_CanQuickTimeOpenFile ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  fileSpec ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  fileType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  fileNameExtension ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  outCanOpenWithGraphicsImporter ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  outCanOpenAsMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  outPreferGraphicsImporter ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UInt32  inFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CanQuickTimeOpenFile 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CanQuickTimeOpenFile ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & fileType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & fileNameExtension , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & inFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CanQuickTimeOpenFile ( & fileSpec , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            fileType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            fileNameExtension , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & outCanOpenWithGraphicsImporter , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & outCanOpenAsMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & outPreferGraphicsImporter , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            inFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " bbb " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     outCanOpenWithGraphicsImporter , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     outCanOpenAsMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     outPreferGraphicsImporter ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_CanQuickTimeOpenDataRef ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  dataRef ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataRefType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  outCanOpenWithGraphicsImporter ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  outCanOpenAsMovie ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  outPreferGraphicsImporter ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UInt32  inFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef CanQuickTimeOpenDataRef 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( CanQuickTimeOpenDataRef ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & inFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  CanQuickTimeOpenDataRef ( dataRef , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dataRefType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & outCanOpenWithGraphicsImporter , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & outCanOpenAsMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & outPreferGraphicsImporter , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               inFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " bbb " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     outCanOpenWithGraphicsImporter , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     outCanOpenAsMovie , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     outPreferGraphicsImporter ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewMovieFromScrap ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Movie  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  newMovieFlags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewMovieFromScrap 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewMovieFromScrap ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & newMovieFlags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  NewMovieFromScrap ( newMovieFlags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     MovieObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTNewAlias ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									FSSpec  fss ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									AliasHandle  alias ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  minimal ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTNewAlias 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTNewAlias ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFSSpec ,  & fss , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & minimal ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTNewAlias ( & fss , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  & alias , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  minimal ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  alias ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_EndFullScreen ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Ptr  fullState ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef EndFullScreen 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( EndFullScreen ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " sl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fullState , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  EndFullScreen ( fullState , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_AddSoundDescriptionExtension ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SoundDescriptionHandle  desc ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  extension ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  idType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddSoundDescriptionExtension 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddSoundDescriptionExtension ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & desc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & extension , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & idType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  AddSoundDescriptionExtension ( desc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    extension , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    idType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_GetSoundDescriptionExtension ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SoundDescriptionHandle  desc ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  extension ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  idType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef GetSoundDescriptionExtension 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( GetSoundDescriptionExtension ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & desc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & idType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  GetSoundDescriptionExtension ( desc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    & extension , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    idType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  extension ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_RemoveSoundDescriptionExtension ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SoundDescriptionHandle  desc ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  idType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef RemoveSoundDescriptionExtension 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( RemoveSoundDescriptionExtension ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & desc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & idType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  RemoveSoundDescriptionExtension ( desc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                       idType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTIsStandardParameterDialogEvent ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									EventRecord  pEvent ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTParameterDialog  createdDialog ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTIsStandardParameterDialogEvent 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTIsStandardParameterDialogEvent ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createdDialog ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTIsStandardParameterDialogEvent ( & pEvent , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                        createdDialog ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildEventRecord ,  & pEvent ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTDismissStandardParameterDialog ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTParameterDialog  createdDialog ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTDismissStandardParameterDialog 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTDismissStandardParameterDialog ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createdDialog ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTDismissStandardParameterDialog ( createdDialog ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTStandardParameterDialogDoAction ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTParameterDialog  createdDialog ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  action ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  params ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTStandardParameterDialogDoAction 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTStandardParameterDialogDoAction ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " lls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & createdDialog , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & action , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & params ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTStandardParameterDialogDoAction ( createdDialog , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                         action , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                         params ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTRegisterAccessKey ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  accessKeyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  accessKey ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTRegisterAccessKey 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTRegisterAccessKey ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  accessKeyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & accessKey ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTRegisterAccessKey ( accessKeyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           accessKey ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTUnregisterAccessKey ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  accessKeyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  accessKey ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTUnregisterAccessKey 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTUnregisterAccessKey ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  accessKeyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & accessKey ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTUnregisterAccessKey ( accessKeyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             accessKey ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_QTTextToNativeText ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSErr  _err ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  theText ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  encoding ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef QTTextToNativeText 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( QTTextToNativeText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & theText , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & encoding , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_err  =  QTTextToNativeText ( theText , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          encoding , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                          flags ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( _err  ! =  noErr )  return  PyMac_Error ( _err ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_VideoMediaResetStatistics ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef VideoMediaResetStatistics 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( VideoMediaResetStatistics ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  VideoMediaResetStatistics ( mh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_VideoMediaGetStatistics ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef VideoMediaGetStatistics 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( VideoMediaGetStatistics ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  VideoMediaGetStatistics ( mh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_VideoMediaGetStallCount ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  stalls ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef VideoMediaGetStallCount 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( VideoMediaGetStallCount ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  VideoMediaGetStallCount ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & stalls ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     stalls ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_VideoMediaSetCodecParameter ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CodecType  cType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  parameterID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  parameterChangeSeed ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  dataPtr ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef VideoMediaSetCodecParameter 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( VideoMediaSetCodecParameter ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&lsl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & cType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & parameterID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & parameterChangeSeed , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataPtr , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataSize ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  VideoMediaSetCodecParameter ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  cType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  parameterID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  parameterChangeSeed , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  dataPtr , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_VideoMediaGetCodecParameter ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									CodecType  cType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  parameterID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  outParameterData ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef VideoMediaGetCodecParameter 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( VideoMediaGetCodecParameter ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & cType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & parameterID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & outParameterData ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  VideoMediaGetCodecParameter ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  cType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  parameterID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  outParameterData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaAddTextSample ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Ptr  text ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									unsigned  long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  fontNumber ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  fontSize ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Style  textFace ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  textColor ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  backColor ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  textJustification ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  textBox ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  displayFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  scrollDelay ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteStart ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteEnd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  rgbHiliteColor ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaAddTextSample 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaAddTextSample ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&slhhbhllhhl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & text , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fontNumber , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fontSize , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & textFace , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & textJustification , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & displayFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scrollDelay , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaAddTextSample ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             text , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             fontNumber , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             fontSize , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             textFace , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & textColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & backColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             textJustification , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & textBox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             displayFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             scrollDelay , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & rgbHiliteColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO&O&O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & textColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & backColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildRect ,  & textBox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & rgbHiliteColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaAddTESample ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TEHandle  hTE ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  backColor ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  textJustification ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  textBox ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  displayFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  scrollDelay ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteStart ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteEnd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  rgbHiliteColor ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaAddTESample 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaAddTESample ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&hllhhl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & hTE , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & textJustification , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & displayFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & scrollDelay , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaAddTESample ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           hTE , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & backColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           textJustification , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & textBox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           displayFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           scrollDelay , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & rgbHiliteColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO&O&O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & backColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     PyMac_BuildRect ,  & textBox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & rgbHiliteColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaAddHiliteSample ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteStart ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteEnd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  rgbHiliteColor ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  duration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaAddHiliteSample 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaAddHiliteSample ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&hhl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & duration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaAddHiliteSample ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & rgbHiliteColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               duration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               & sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & rgbHiliteColor , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaDrawRaw ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GWorldPtr  gw ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GDHandle  gd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataSize ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TextDescriptionHandle  tdh ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaDrawRaw 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaDrawRaw ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&slO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      GWorldObj_Convert ,  & gw , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      OptResObj_Convert ,  & gd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataSize , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & tdh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaDrawRaw ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       gw , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       gd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       dataSize , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       tdh ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaSetTextProperty ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  atMediaTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  propertyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaSetTextProperty 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaSetTextProperty ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&llsl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & atMediaTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataSize ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaSetTextProperty ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               atMediaTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaRawSetup ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GWorldPtr  gw ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GDHandle  gd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataSize ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TextDescriptionHandle  tdh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleDuration ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaRawSetup 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaRawSetup ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&slO&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      GWorldObj_Convert ,  & gw , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      OptResObj_Convert ,  & gd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataSize , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & tdh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleDuration ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaRawSetup ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        gw , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        gd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        dataSize , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        tdh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        sampleDuration ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaRawIdle ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GWorldPtr  gw ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									GDHandle  gd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flagsIn ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flagsOut ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaRawIdle 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaRawIdle ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      GWorldObj_Convert ,  & gw , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      OptResObj_Convert ,  & gd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flagsIn ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaRawIdle ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       gw , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       gd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       flagsIn , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       & flagsOut ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     flagsOut ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaGetTextProperty ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  atMediaTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  propertyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  dataSize ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaGetTextProperty 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaGetTextProperty ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&llsl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & atMediaTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & dataSize ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaGetTextProperty ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               atMediaTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               dataSize ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaFindNextText ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Ptr  text ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  size ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  findFlags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  startTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  foundTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  foundDuration ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  offset ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaFindNextText 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaFindNextText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&slhl " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & text , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & findFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & startTime ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaFindNextText ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            text , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            size , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            findFlags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            startTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & foundTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & foundDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & offset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " llll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     foundTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     foundDuration , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     offset ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaHiliteTextSample ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  sampleTime ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteStart ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  hiliteEnd ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									RGBColor  rgbHiliteColor ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaHiliteTextSample 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaHiliteTextSample ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lhh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & hiliteEnd ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaHiliteTextSample ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                sampleTime , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                hiliteStart , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                hiliteEnd , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & rgbHiliteColor ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QdRGB_New ,  & rgbHiliteColor ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_TextMediaSetTextSampleData ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  data ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									OSType  dataType ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef TextMediaSetTextSampleData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( TextMediaSetTextSampleData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&sO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetOSType ,  & dataType ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  TextMediaSetTextSampleData ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 data , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 dataType ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaSetProperty ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  spriteIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  propertyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  propertyValue ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaSetProperty 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaSetProperty ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&hls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyValue ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaSetProperty ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             spriteIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             propertyValue ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetProperty ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  spriteIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  propertyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  propertyValue ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetProperty 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetProperty ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&hls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyValue ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetProperty ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             spriteIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             propertyValue ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaHitTestSprites ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  loc ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  spriteHitIndex ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaHitTestSprites 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaHitTestSprites ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & loc ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaHitTestSprites ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                loc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & spriteHitIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     spriteHitIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaCountSprites ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  numSprites ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaCountSprites 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaCountSprites ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaCountSprites ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              & numSprites ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     numSprites ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaCountImages ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  numImages ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaCountImages 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaCountImages ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaCountImages ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             & numImages ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     numImages ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetIndImageDescription ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  imageIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ImageDescriptionHandle  imageDescription ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetIndImageDescription 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetIndImageDescription ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&hO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & imageIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      ResObj_Convert ,  & imageDescription ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetIndImageDescription ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                        imageIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                        imageDescription ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetDisplayedSampleNumber ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  sampleNum ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetDisplayedSampleNumber 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetDisplayedSampleNumber ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetDisplayedSampleNumber ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                          & sampleNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     sampleNum ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetSpriteName ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  spriteName ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetSpriteName 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetSpriteName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  spriteName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetSpriteName ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               spriteName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetImageName ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  imageIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Str255  imageName ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetImageName 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetImageName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&hO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & imageIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetStr255 ,  imageName ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetImageName ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              imageIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                              imageName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaSetSpriteProperty ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  propertyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  propertyValue ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaSetSpriteProperty 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaSetSpriteProperty ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyValue ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaSetSpriteProperty ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   propertyValue ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetSpriteProperty ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  propertyType ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  propertyValue ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetSpriteProperty 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetSpriteProperty ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & propertyValue ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetSpriteProperty ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   propertyType , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   propertyValue ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaHitTestAllSprites ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  loc ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteHitID ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaHitTestAllSprites 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaHitTestAllSprites ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & loc ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaHitTestAllSprites ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   loc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   & spriteHitID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     spriteHitID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaHitTestOneSprite ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flags ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  loc ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  wasHit ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaHitTestOneSprite 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaHitTestOneSprite ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&llO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & loc ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaHitTestOneSprite ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  flags , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  loc , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  & wasHit ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lb " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     wasHit ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaSpriteIndexToID ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  spriteIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaSpriteIndexToID 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaSpriteIndexToID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteIndex ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaSpriteIndexToID ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 spriteIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & spriteID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     spriteID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaSpriteIDToIndex ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  spriteIndex ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaSpriteIDToIndex 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaSpriteIDToIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteID ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaSpriteIDToIndex ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 spriteID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & spriteIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     spriteIndex ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaSetActionVariable ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  variableID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									float  value ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaSetActionVariable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaSetActionVariable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&lf " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & variableID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & value ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaSetActionVariable ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   variableID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   & value ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetActionVariable ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  variableID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									float  value ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetActionVariable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetActionVariable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & variableID ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetActionVariable ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   variableID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                   & value ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lf " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     value ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaDisposeSprite ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  spriteID ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaDisposeSprite 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaDisposeSprite ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & spriteID ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaDisposeSprite ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                               spriteID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaSetActionVariableToString ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  variableID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Ptr  theCString ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaSetActionVariableToString 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaSetActionVariableToString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&ls " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & variableID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & theCString ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaSetActionVariableToString ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                           variableID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                           theCString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SpriteMediaGetActionVariableAsString ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTAtomID  variableID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  theCString ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SpriteMediaGetActionVariableAsString 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SpriteMediaGetActionVariableAsString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & variableID ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  SpriteMediaGetActionVariableAsString ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                           variableID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                           & theCString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  theCString ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaSetPan ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  xPercent ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  yPercent ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaSetPan 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaSetPan ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&hh " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & xPercent , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & yPercent ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaSetPan ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       xPercent , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                       yPercent ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaSetZoom ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									short  factor ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaSetZoom 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaSetZoom ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&h " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & factor ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaSetZoom ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                        factor ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaSetZoomRect ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  left ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  top ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  right ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  bottom ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaSetZoomRect 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaSetZoomRect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&llll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & left , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & top , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & right , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & bottom ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaSetZoomRect ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            left , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            top , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            right , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            bottom ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaGetRefConBounds ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  refCon ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  left ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  top ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  right ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  bottom ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaGetRefConBounds 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaGetRefConBounds ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & refCon ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaGetRefConBounds ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                refCon , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & left , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & top , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & right , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & bottom ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lllll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     left , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     top , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     right , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     bottom ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaGetRefConID ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  refCon ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  refConID ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaGetRefConID 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaGetRefConID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & refCon ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaGetRefConID ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            refCon , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            & refConID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     refConID ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaIDToRefCon ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  refConID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  refCon ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaIDToRefCon 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaIDToRefCon ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & refConID ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaIDToRefCon ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           refConID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           & refCon ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     refCon ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaGetDisplayedFrameNumber ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flashFrameNumber ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaGetDisplayedFrameNumber 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaGetDisplayedFrameNumber ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaGetDisplayedFrameNumber ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                        & flashFrameNumber ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     flashFrameNumber ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaFrameNumberToMovieTime ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  flashFrameNumber ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  movieTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaFrameNumberToMovieTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaFrameNumberToMovieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & flashFrameNumber ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaFrameNumberToMovieTime ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                       flashFrameNumber , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                       & movieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     movieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaFrameLabelToMovieTime ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Ptr  theLabel ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeValue  movieTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaFrameLabelToMovieTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaFrameLabelToMovieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & theLabel ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaFrameLabelToMovieTime ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                      theLabel , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                      & movieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     movieTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaGetFlashVariable ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  path ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  name ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Handle  theVariableCStringOut ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaGetFlashVariable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaGetFlashVariable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaGetFlashVariable ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & path , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & name , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & theVariableCStringOut ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lccO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     path , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     name , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     ResObj_New ,  theVariableCStringOut ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaSetFlashVariable ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  path ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  name ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  value ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  updateFocus ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaSetFlashVariable 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaSetFlashVariable ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & updateFocus ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaSetFlashVariable ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & path , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & name , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & value , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 updateFocus ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lccc " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     path , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     name , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     value ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaDoButtonActions ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  path ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  buttonID ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  transition ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaDoButtonActions 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaDoButtonActions ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&ll " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & buttonID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & transition ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaDoButtonActions ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & path , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                buttonID , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                transition ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lc " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     path ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_FlashMediaGetSupportedSwfVersion ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									UInt8  swfVersion ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef FlashMediaGetSupportedSwfVersion 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( FlashMediaGetSupportedSwfVersion ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  FlashMediaGetSupportedSwfVersion ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                       & swfVersion ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lb " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     swfVersion ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DGetCurrentGroup ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  group ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DGetCurrentGroup 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DGetCurrentGroup ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & group ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DGetCurrentGroup ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                             group ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DTranslateNamedObjectTo ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  objectName ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  x ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  y ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  z ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DTranslateNamedObjectTo 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DTranslateNamedObjectTo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & x , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & y , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & z ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DTranslateNamedObjectTo ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    & objectName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    x , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    y , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                    z ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lc " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     objectName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DScaleNamedObjectTo ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  objectName ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  xScale ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  yScale ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  zScale ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DScaleNamedObjectTo 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DScaleNamedObjectTo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & xScale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & yScale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & zScale ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DScaleNamedObjectTo ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                & objectName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                xScale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                yScale , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                zScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lc " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     objectName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DRotateNamedObjectTo ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									char  objectName ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  xDegrees ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  yDegrees ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Fixed  zDegrees ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DRotateNamedObjectTo 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DRotateNamedObjectTo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & xDegrees , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & yDegrees , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetFixed ,  & zDegrees ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DRotateNamedObjectTo ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 & objectName , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 xDegrees , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 yDegrees , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                 zDegrees ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lc " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     objectName ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DSetCameraData ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  cameraData ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DSetCameraData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DSetCameraData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & cameraData ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DSetCameraData ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           cameraData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DGetCameraData ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  cameraData ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DGetCameraData 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DGetCameraData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & cameraData ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DGetCameraData ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                           cameraData ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DSetCameraAngleAspect ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTFloatSingle  fov ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTFloatSingle  aspectRatioXToY ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DSetCameraAngleAspect 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DSetCameraAngleAspect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&ff " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & fov , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & aspectRatioXToY ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DSetCameraAngleAspect ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  fov , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  aspectRatioXToY ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DGetCameraAngleAspect ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTFloatSingle  fov ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									QTFloatSingle  aspectRatioXToY ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DGetCameraAngleAspect 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DGetCameraAngleAspect ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DGetCameraAngleAspect ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  & fov , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                  & aspectRatioXToY ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lff " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     fov , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     aspectRatioXToY ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DSetCameraRange ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  tQ3CameraRange ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DSetCameraRange 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DSetCameraRange ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & tQ3CameraRange ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DSetCameraRange ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            tQ3CameraRange ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_Media3DGetCameraRange ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MediaHandler  mh ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									void  *  tQ3CameraRange ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef Media3DGetCameraRange 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( Media3DGetCameraRange ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&s " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & tQ3CameraRange ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  Media3DGetCameraRange ( mh , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                            tQ3CameraRange ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_NewTimeBase ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeBase  _rv ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef NewTimeBase 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( NewTimeBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " " ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  NewTimeBase ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     TimeBaseObj_New ,  _rv ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_ConvertTime ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									TimeRecord  theTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									TimeBase  newBase ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ConvertTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ConvertTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O& " , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									                      TimeBaseObj_Convert ,  & newBase ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ConvertTime ( & theTime , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									            newBase ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & theTime ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_ConvertTimeScale ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									TimeRecord  theTime ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									TimeScale  newScale ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef ConvertTimeScale 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( ConvertTimeScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									                      & newScale ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									ConvertTimeScale ( & theTime , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									                 newScale ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & theTime ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_AddTime ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  dst ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  src ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AddTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AddTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & dst , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & src ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									AddTime ( & dst , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									        & src ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & dst ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_SubtractTime ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  dst ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									TimeRecord  src ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef SubtractTime 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( SubtractTime ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & dst , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      QtTimeRecord_Convert ,  & src ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									SubtractTime ( & dst , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									             & src ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     QtTimeRecord_New ,  & dst ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_MusicMediaGetIndexedTunePlayer ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentResult  _rv ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  ti ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  sampleDescIndex ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									ComponentInstance  tp ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MusicMediaGetIndexedTunePlayer 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MusicMediaGetIndexedTunePlayer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      CmpInstObj_Convert ,  & ti , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & sampleDescIndex ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_rv  =  MusicMediaGetIndexedTunePlayer ( ti , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                     sampleDescIndex , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                                     & tp ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_BuildValue ( " lO& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     _rv , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                     CmpInstObj_New ,  tp ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_AlignWindow ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  wp ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Boolean  front ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef AlignWindow 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( AlignWindow ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&b " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & wp , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & front ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									AlignWindow ( wp , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            front , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            ( Rect  * ) 0 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									            ( ICMAlignmentProcRecordPtr ) 0 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_DragAlignedWindow ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									WindowPtr  wp ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Point  startPt ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Rect  boundsRect ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef DragAlignedWindow 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( DragAlignedWindow ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " O&O&O& " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      WinObj_Convert ,  & wp , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetPoint ,  & startPt , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      PyMac_GetRect ,  & boundsRect ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									DragAlignedWindow ( wp , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  startPt , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  & boundsRect , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  ( Rect  * ) 0 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                  ( ICMAlignmentProcRecordPtr ) 0 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyObject  * Qt_MoviesTask ( PyObject  * _self ,  PyObject  * _args )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * _res  =  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									long  maxMilliSecToUse ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-03-24 23:04:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# ifndef MoviesTask 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyMac_PRECHECK ( MoviesTask ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# endif 
  
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									if  ( ! PyArg_ParseTuple ( _args ,  " l " , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									                      & maxMilliSecToUse ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return  NULL ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MoviesTask ( ( Movie ) 0 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									           maxMilliSecToUse ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( Py_None ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									_res  =  Py_None ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									return  _res ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								static  PyMethodDef  Qt_methods [ ]  =  {  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									{ " EnterMovies " ,  ( PyCFunction ) Qt_EnterMovies ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ExitMovies " ,  ( PyCFunction ) Qt_ExitMovies ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviesError " ,  ( PyCFunction ) Qt_GetMoviesError ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ClearMoviesStickyError " ,  ( PyCFunction ) Qt_ClearMoviesStickyError ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMoviesStickyError " ,  ( PyCFunction ) Qt_GetMoviesStickyError ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " DisposeMatte " ,  ( PyCFunction ) Qt_DisposeMatte ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (PixMapHandle theMatte) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovie " ,  ( PyCFunction ) Qt_NewMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long flags) -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetDataHandler " ,  ( PyCFunction ) Qt_GetDataHandler ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle dataRef, OSType dataHandlerSubType, long flags) -> (Component _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " PasteHandleIntoMovie " ,  ( PyCFunction ) Qt_PasteHandleIntoMovie ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle h, OSType handleType, Movie theMovie, long flags, ComponentInstance userComp) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetMovieImporterForDataRef " ,  ( PyCFunction ) Qt_GetMovieImporterForDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (OSType dataRefType, Handle dataRef, long flags) -> (Component importer) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " QTGetMIMETypeInfo " ,  ( PyCFunction ) Qt_QTGetMIMETypeInfo ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (char* mimeStringStart, short mimeStringLength, OSType infoSelector, void * infoDataPtr) -> (long infoDataSize) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TrackTimeToMediaTime " ,  ( PyCFunction ) Qt_TrackTimeToMediaTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeValue value, Track theTrack) -> (TimeValue _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewUserData " ,  ( PyCFunction ) Qt_NewUserData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (UserData theUserData) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewUserDataFromHandle " ,  ( PyCFunction ) Qt_NewUserDataFromHandle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle h) -> (UserData theUserData) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CreateMovieFile " ,  ( PyCFunction ) Qt_CreateMovieFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (FSSpec fileSpec, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (short resRefNum, Movie newmovie) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " OpenMovieFile " ,  ( PyCFunction ) Qt_OpenMovieFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (FSSpec fileSpec, SInt8 permission) -> (short resRefNum) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CloseMovieFile " ,  ( PyCFunction ) Qt_CloseMovieFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short resRefNum) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " DeleteMovieFile " ,  ( PyCFunction ) Qt_DeleteMovieFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (FSSpec fileSpec) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieFromFile " ,  ( PyCFunction ) Qt_NewMovieFromFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short resRefNum, short resId, short newMovieFlags) -> (Movie theMovie, short resId, Boolean dataRefWasChanged) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieFromHandle " ,  ( PyCFunction ) Qt_NewMovieFromHandle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle h, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieFromDataFork " ,  ( PyCFunction ) Qt_NewMovieFromDataFork ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short fRefNum, long fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieFromDataFork64 " ,  ( PyCFunction ) Qt_NewMovieFromDataFork64 ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long fRefNum, wide fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieFromDataRef " ,  ( PyCFunction ) Qt_NewMovieFromDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short flags, Handle dataRef, OSType dataRefType) -> (Movie m, short id) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " RemoveMovieResource " ,  ( PyCFunction ) Qt_RemoveMovieResource ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (short resRefNum, short resId) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " CreateShortcutMovieFile " ,  ( PyCFunction ) Qt_CreateShortcutMovieFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (FSSpec fileSpec, OSType creator, ScriptCode scriptTag, long createMovieFileFlags, Handle targetDataRef, OSType targetDataRefType) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " CanQuickTimeOpenFile " ,  ( PyCFunction ) Qt_CanQuickTimeOpenFile ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (FSSpec fileSpec, OSType fileType, OSType fileNameExtension, UInt32 inFlags) -> (Boolean outCanOpenWithGraphicsImporter, Boolean outCanOpenAsMovie, Boolean outPreferGraphicsImporter) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " CanQuickTimeOpenDataRef " ,  ( PyCFunction ) Qt_CanQuickTimeOpenDataRef ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle dataRef, OSType dataRefType, UInt32 inFlags) -> (Boolean outCanOpenWithGraphicsImporter, Boolean outCanOpenAsMovie, Boolean outPreferGraphicsImporter) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewMovieFromScrap " ,  ( PyCFunction ) Qt_NewMovieFromScrap ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long newMovieFlags) -> (Movie _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTNewAlias " ,  ( PyCFunction ) Qt_QTNewAlias ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (FSSpec fss, Boolean minimal) -> (AliasHandle alias) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " EndFullScreen " ,  ( PyCFunction ) Qt_EndFullScreen ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Ptr fullState, long flags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddSoundDescriptionExtension " ,  ( PyCFunction ) Qt_AddSoundDescriptionExtension ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (SoundDescriptionHandle desc, Handle extension, OSType idType) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " GetSoundDescriptionExtension " ,  ( PyCFunction ) Qt_GetSoundDescriptionExtension ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (SoundDescriptionHandle desc, OSType idType) -> (Handle extension) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " RemoveSoundDescriptionExtension " ,  ( PyCFunction ) Qt_RemoveSoundDescriptionExtension ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (SoundDescriptionHandle desc, OSType idType) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTIsStandardParameterDialogEvent " ,  ( PyCFunction ) Qt_QTIsStandardParameterDialogEvent ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (QTParameterDialog createdDialog) -> (EventRecord pEvent) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTDismissStandardParameterDialog " ,  ( PyCFunction ) Qt_QTDismissStandardParameterDialog ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (QTParameterDialog createdDialog) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTStandardParameterDialogDoAction " ,  ( PyCFunction ) Qt_QTStandardParameterDialogDoAction ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (QTParameterDialog createdDialog, long action, void * params) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTRegisterAccessKey " ,  ( PyCFunction ) Qt_QTRegisterAccessKey ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Str255 accessKeyType, long flags, Handle accessKey) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTUnregisterAccessKey " ,  ( PyCFunction ) Qt_QTUnregisterAccessKey ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Str255 accessKeyType, long flags, Handle accessKey) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " QTTextToNativeText " ,  ( PyCFunction ) Qt_QTTextToNativeText ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (Handle theText, long encoding, long flags) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " VideoMediaResetStatistics " ,  ( PyCFunction ) Qt_VideoMediaResetStatistics ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " VideoMediaGetStatistics " ,  ( PyCFunction ) Qt_VideoMediaGetStatistics ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " VideoMediaGetStallCount " ,  ( PyCFunction ) Qt_VideoMediaGetStallCount ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, unsigned long stalls) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " VideoMediaSetCodecParameter " ,  ( PyCFunction ) Qt_VideoMediaSetCodecParameter ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, CodecType cType, OSType parameterID, long parameterChangeSeed, void * dataPtr, long dataSize) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " VideoMediaGetCodecParameter " ,  ( PyCFunction ) Qt_VideoMediaGetCodecParameter ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, CodecType cType, OSType parameterID, Handle outParameterData) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaAddTextSample " ,  ( PyCFunction ) Qt_TextMediaAddTextSample ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Ptr text, unsigned long size, short fontNumber, short fontSize, Style textFace, short textJustification, long displayFlags, TimeValue scrollDelay, short hiliteStart, short hiliteEnd, TimeValue duration) -> (ComponentResult _rv, RGBColor textColor, RGBColor backColor, Rect textBox, RGBColor rgbHiliteColor, TimeValue sampleTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaAddTESample " ,  ( PyCFunction ) Qt_TextMediaAddTESample ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, TEHandle hTE, short textJustification, long displayFlags, TimeValue scrollDelay, short hiliteStart, short hiliteEnd, TimeValue duration) -> (ComponentResult _rv, RGBColor backColor, Rect textBox, RGBColor rgbHiliteColor, TimeValue sampleTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaAddHiliteSample " ,  ( PyCFunction ) Qt_TextMediaAddHiliteSample ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short hiliteStart, short hiliteEnd, TimeValue duration) -> (ComponentResult _rv, RGBColor rgbHiliteColor, TimeValue sampleTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaDrawRaw " ,  ( PyCFunction ) Qt_TextMediaDrawRaw ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, GWorldPtr gw, GDHandle gd, void * data, long dataSize, TextDescriptionHandle tdh) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaSetTextProperty " ,  ( PyCFunction ) Qt_TextMediaSetTextProperty ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, TimeValue atMediaTime, long propertyType, void * data, long dataSize) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaRawSetup " ,  ( PyCFunction ) Qt_TextMediaRawSetup ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, GWorldPtr gw, GDHandle gd, void * data, long dataSize, TextDescriptionHandle tdh, TimeValue sampleDuration) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaRawIdle " ,  ( PyCFunction ) Qt_TextMediaRawIdle ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, GWorldPtr gw, GDHandle gd, TimeValue sampleTime, long flagsIn) -> (ComponentResult _rv, long flagsOut) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " TextMediaGetTextProperty " ,  ( PyCFunction ) Qt_TextMediaGetTextProperty ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, TimeValue atMediaTime, long propertyType, void * data, long dataSize) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaFindNextText " ,  ( PyCFunction ) Qt_TextMediaFindNextText ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Ptr text, long size, short findFlags, TimeValue startTime) -> (ComponentResult _rv, TimeValue foundTime, TimeValue foundDuration, long offset) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaHiliteTextSample " ,  ( PyCFunction ) Qt_TextMediaHiliteTextSample ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, TimeValue sampleTime, short hiliteStart, short hiliteEnd) -> (ComponentResult _rv, RGBColor rgbHiliteColor) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " TextMediaSetTextSampleData " ,  ( PyCFunction ) Qt_TextMediaSetTextSampleData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, void * data, OSType dataType) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaSetProperty " ,  ( PyCFunction ) Qt_SpriteMediaSetProperty ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short spriteIndex, long propertyType, void * propertyValue) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetProperty " ,  ( PyCFunction ) Qt_SpriteMediaGetProperty ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short spriteIndex, long propertyType, void * propertyValue) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaHitTestSprites " ,  ( PyCFunction ) Qt_SpriteMediaHitTestSprites ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, short spriteHitIndex) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaCountSprites " ,  ( PyCFunction ) Qt_SpriteMediaCountSprites ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, short numSprites) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaCountImages " ,  ( PyCFunction ) Qt_SpriteMediaCountImages ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, short numImages) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetIndImageDescription " ,  ( PyCFunction ) Qt_SpriteMediaGetIndImageDescription ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short imageIndex, ImageDescriptionHandle imageDescription) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetDisplayedSampleNumber " ,  ( PyCFunction ) Qt_SpriteMediaGetDisplayedSampleNumber ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, long sampleNum) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetSpriteName " ,  ( PyCFunction ) Qt_SpriteMediaGetSpriteName ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID spriteID, Str255 spriteName) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetImageName " ,  ( PyCFunction ) Qt_SpriteMediaGetImageName ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short imageIndex, Str255 imageName) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaSetSpriteProperty " ,  ( PyCFunction ) Qt_SpriteMediaSetSpriteProperty ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID spriteID, long propertyType, void * propertyValue) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetSpriteProperty " ,  ( PyCFunction ) Qt_SpriteMediaGetSpriteProperty ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID spriteID, long propertyType, void * propertyValue) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaHitTestAllSprites " ,  ( PyCFunction ) Qt_SpriteMediaHitTestAllSprites ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, QTAtomID spriteHitID) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaHitTestOneSprite " ,  ( PyCFunction ) Qt_SpriteMediaHitTestOneSprite ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID spriteID, long flags, Point loc) -> (ComponentResult _rv, Boolean wasHit) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaSpriteIndexToID " ,  ( PyCFunction ) Qt_SpriteMediaSpriteIndexToID ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short spriteIndex) -> (ComponentResult _rv, QTAtomID spriteID) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaSpriteIDToIndex " ,  ( PyCFunction ) Qt_SpriteMediaSpriteIDToIndex ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID spriteID) -> (ComponentResult _rv, short spriteIndex) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaSetActionVariable " ,  ( PyCFunction ) Qt_SpriteMediaSetActionVariable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID variableID, float value) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetActionVariable " ,  ( PyCFunction ) Qt_SpriteMediaGetActionVariable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaDisposeSprite " ,  ( PyCFunction ) Qt_SpriteMediaDisposeSprite ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID spriteID) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaSetActionVariableToString " ,  ( PyCFunction ) Qt_SpriteMediaSetActionVariableToString ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID variableID, Ptr theCString) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SpriteMediaGetActionVariableAsString " ,  ( PyCFunction ) Qt_SpriteMediaGetActionVariableAsString ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, Handle theCString) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaSetPan " ,  ( PyCFunction ) Qt_FlashMediaSetPan ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short xPercent, short yPercent) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaSetZoom " ,  ( PyCFunction ) Qt_FlashMediaSetZoom ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, short factor) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaSetZoomRect " ,  ( PyCFunction ) Qt_FlashMediaSetZoomRect ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long left, long top, long right, long bottom) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaGetRefConBounds " ,  ( PyCFunction ) Qt_FlashMediaGetRefConBounds ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long refCon) -> (ComponentResult _rv, long left, long top, long right, long bottom) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaGetRefConID " ,  ( PyCFunction ) Qt_FlashMediaGetRefConID ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long refCon) -> (ComponentResult _rv, long refConID) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaIDToRefCon " ,  ( PyCFunction ) Qt_FlashMediaIDToRefCon ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long refConID) -> (ComponentResult _rv, long refCon) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaGetDisplayedFrameNumber " ,  ( PyCFunction ) Qt_FlashMediaGetDisplayedFrameNumber ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, long flashFrameNumber) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaFrameNumberToMovieTime " ,  ( PyCFunction ) Qt_FlashMediaFrameNumberToMovieTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long flashFrameNumber) -> (ComponentResult _rv, TimeValue movieTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " FlashMediaFrameLabelToMovieTime " ,  ( PyCFunction ) Qt_FlashMediaFrameLabelToMovieTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Ptr theLabel) -> (ComponentResult _rv, TimeValue movieTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " FlashMediaGetFlashVariable " ,  ( PyCFunction ) Qt_FlashMediaGetFlashVariable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, char path, char name, Handle theVariableCStringOut) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " FlashMediaSetFlashVariable " ,  ( PyCFunction ) Qt_FlashMediaSetFlashVariable ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Boolean updateFocus) -> (ComponentResult _rv, char path, char name, char value) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " FlashMediaDoButtonActions " ,  ( PyCFunction ) Qt_FlashMediaDoButtonActions ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, long buttonID, long transition) -> (ComponentResult _rv, char path) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-12-18 15:39:38 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									{ " FlashMediaGetSupportedSwfVersion " ,  ( PyCFunction ) Qt_FlashMediaGetSupportedSwfVersion ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, UInt8 swfVersion) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DGetCurrentGroup " ,  ( PyCFunction ) Qt_Media3DGetCurrentGroup ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, void * group) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DTranslateNamedObjectTo " ,  ( PyCFunction ) Qt_Media3DTranslateNamedObjectTo ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Fixed x, Fixed y, Fixed z) -> (ComponentResult _rv, char objectName) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DScaleNamedObjectTo " ,  ( PyCFunction ) Qt_Media3DScaleNamedObjectTo ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Fixed xScale, Fixed yScale, Fixed zScale) -> (ComponentResult _rv, char objectName) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DRotateNamedObjectTo " ,  ( PyCFunction ) Qt_Media3DRotateNamedObjectTo ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, Fixed xDegrees, Fixed yDegrees, Fixed zDegrees) -> (ComponentResult _rv, char objectName) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DSetCameraData " ,  ( PyCFunction ) Qt_Media3DSetCameraData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, void * cameraData) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DGetCameraData " ,  ( PyCFunction ) Qt_Media3DGetCameraData ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, void * cameraData) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DSetCameraAngleAspect " ,  ( PyCFunction ) Qt_Media3DSetCameraAngleAspect ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, QTFloatSingle fov, QTFloatSingle aspectRatioXToY) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DGetCameraAngleAspect " ,  ( PyCFunction ) Qt_Media3DGetCameraAngleAspect ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh) -> (ComponentResult _rv, QTFloatSingle fov, QTFloatSingle aspectRatioXToY) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DSetCameraRange " ,  ( PyCFunction ) Qt_Media3DSetCameraRange ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " Media3DGetCameraRange " ,  ( PyCFunction ) Qt_Media3DGetCameraRange ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " NewTimeBase " ,  ( PyCFunction ) Qt_NewTimeBase ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " () -> (TimeBase _rv) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ConvertTime " ,  ( PyCFunction ) Qt_ConvertTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeBase newBase) -> (TimeRecord theTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " ConvertTimeScale " ,  ( PyCFunction ) Qt_ConvertTimeScale ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeScale newScale) -> (TimeRecord theTime) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AddTime " ,  ( PyCFunction ) Qt_AddTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord dst, TimeRecord src) -> (TimeRecord dst) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " SubtractTime " ,  ( PyCFunction ) Qt_SubtractTime ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (TimeRecord dst, TimeRecord src) -> (TimeRecord dst) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MusicMediaGetIndexedTunePlayer " ,  ( PyCFunction ) Qt_MusicMediaGetIndexedTunePlayer ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (ComponentInstance ti, long sampleDescIndex) -> (ComponentResult _rv, ComponentInstance tp) " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " AlignWindow " ,  ( PyCFunction ) Qt_AlignWindow ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr wp, Boolean front) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " DragAlignedWindow " ,  ( PyCFunction ) Qt_DragAlignedWindow ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (WindowPtr wp, Point startPt, Rect boundsRect) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ " MoviesTask " ,  ( PyCFunction ) Qt_MoviesTask ,  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2002-08-16 09:09:31 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									 PyDoc_STR ( " (long maxMilliSecToUse) -> None " ) } , 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									{ NULL ,  NULL ,  0 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								void  init_Qt ( void )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * m ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyObject  * d ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_NEW ( Track ,  TrackObj_New ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_CONVERT ( Track ,  TrackObj_Convert ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_NEW ( Movie ,  MovieObj_New ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_CONVERT ( Movie ,  MovieObj_Convert ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_NEW ( MovieController ,  MovieCtlObj_New ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_CONVERT ( MovieController ,  MovieCtlObj_Convert ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_NEW ( TimeBase ,  TimeBaseObj_New ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_CONVERT ( TimeBase ,  TimeBaseObj_Convert ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_NEW ( UserData ,  UserDataObj_New ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_CONVERT ( UserData ,  UserDataObj_Convert ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_NEW ( Media ,  MediaObj_New ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										PyMac_INIT_TOOLBOX_OBJECT_CONVERT ( Media ,  MediaObj_Convert ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									m  =  Py_InitModule ( " _Qt " ,  Qt_methods ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									d  =  PyModule_GetDict ( m ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Qt_Error  =  PyMac_GetOSErrException ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									if  ( Qt_Error  = =  NULL  | | 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									    PyDict_SetItemString ( d ,  " Error " ,  Qt_Error )  ! =  0 ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										return ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									MovieController_Type . ob_type  =  & PyType_Type ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & MovieController_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " MovieController " ,  ( PyObject  * ) & MovieController_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Backward-compatible name */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & MovieController_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " MovieControllerType " ,  ( PyObject  * ) & MovieController_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									TimeBase_Type . ob_type  =  & PyType_Type ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & TimeBase_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " TimeBase " ,  ( PyObject  * ) & TimeBase_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Backward-compatible name */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & TimeBase_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " TimeBaseType " ,  ( PyObject  * ) & TimeBase_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									UserData_Type . ob_type  =  & PyType_Type ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & UserData_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " UserData " ,  ( PyObject  * ) & UserData_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Backward-compatible name */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & UserData_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " UserDataType " ,  ( PyObject  * ) & UserData_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									Media_Type . ob_type  =  & PyType_Type ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & Media_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " Media " ,  ( PyObject  * ) & Media_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Backward-compatible name */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & Media_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " MediaType " ,  ( PyObject  * ) & Media_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									Track_Type . ob_type  =  & PyType_Type ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & Track_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " Track " ,  ( PyObject  * ) & Track_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Backward-compatible name */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & Track_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " TrackType " ,  ( PyObject  * ) & Track_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									Movie_Type . ob_type  =  & PyType_Type ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & Movie_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2002-12-03 23:40:22 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " Movie " ,  ( PyObject  * ) & Movie_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									/* Backward-compatible name */ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									Py_INCREF ( & Movie_Type ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									PyModule_AddObject ( m ,  " MovieType " ,  ( PyObject  * ) & Movie_Type ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2001-08-23 14:02:09 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								/* ========================= End module _Qt ========================= */