2 /* =========================== Module _Qt =========================== */
9 #include "pywintoolbox.h"
12 #include "pymactoolbox.h"
15 /* Macro to test whether a weak-loaded CFM function exists */
16 #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
17 PyErr_SetString(PyExc_NotImplementedError, \
18 "Not available in this shared library/OS version"); \
23 #ifdef WITHOUT_FRAMEWORKS
26 /* #include <Carbon/Carbon.h> */
27 #include <QuickTime/QuickTime.h>
31 #ifdef USE_TOOLBOX_OBJECT_GLUE
32 extern PyObject
*_TrackObj_New(Track
);
33 extern int _TrackObj_Convert(PyObject
*, Track
*);
34 extern PyObject
*_MovieObj_New(Movie
);
35 extern int _MovieObj_Convert(PyObject
*, Movie
*);
36 extern PyObject
*_MovieCtlObj_New(MovieController
);
37 extern int _MovieCtlObj_Convert(PyObject
*, MovieController
*);
38 extern PyObject
*_TimeBaseObj_New(TimeBase
);
39 extern int _TimeBaseObj_Convert(PyObject
*, TimeBase
*);
40 extern PyObject
*_UserDataObj_New(UserData
);
41 extern int _UserDataObj_Convert(PyObject
*, UserData
*);
42 extern PyObject
*_MediaObj_New(Media
);
43 extern int _MediaObj_Convert(PyObject
*, Media
*);
45 #define TrackObj_New _TrackObj_New
46 #define TrackObj_Convert _TrackObj_Convert
47 #define MovieObj_New _MovieObj_New
48 #define MovieObj_Convert _MovieObj_Convert
49 #define MovieCtlObj_New _MovieCtlObj_New
50 #define MovieCtlObj_Convert _MovieCtlObj_Convert
51 #define TimeBaseObj_New _TimeBaseObj_New
52 #define TimeBaseObj_Convert _TimeBaseObj_Convert
53 #define UserDataObj_New _UserDataObj_New
54 #define UserDataObj_Convert _UserDataObj_Convert
55 #define MediaObj_New _MediaObj_New
56 #define MediaObj_Convert _MediaObj_Convert
59 /* Macro to allow us to GetNextInterestingTime without duration */
60 #define GetMediaNextInterestingTimeOnly(media, flags, time, rate, rv) GetMediaNextInterestingTime(media, flags, time, rate, rv, NULL)
63 ** Parse/generate time records
66 QtTimeRecord_New(TimeRecord
*itself
)
69 return Py_BuildValue("O&lO&", PyMac_Buildwide
, &itself
->value
, itself
->scale
,
70 TimeBaseObj_New
, itself
->base
);
72 return Py_BuildValue("O&lO", PyMac_Buildwide
, &itself
->value
, itself
->scale
,
77 QtTimeRecord_Convert(PyObject
*v
, TimeRecord
*p_itself
)
79 PyObject
*base
= NULL
;
80 if( !PyArg_ParseTuple(v
, "O&l|O", PyMac_Getwide
, &p_itself
->value
, &p_itself
->scale
,
83 if ( base
== NULL
|| base
== Py_None
)
84 p_itself
->base
= NULL
;
86 if ( !TimeBaseObj_Convert(base
, &p_itself
->base
) )
94 static PyObject
*Qt_Error
;
96 /* ------------------ Object type MovieController ------------------- */
98 PyTypeObject MovieController_Type
;
100 #define MovieCtlObj_Check(x) ((x)->ob_type == &MovieController_Type || PyObject_TypeCheck((x), &MovieController_Type))
102 typedef struct MovieControllerObject
{
104 MovieController ob_itself
;
105 } MovieControllerObject
;
107 PyObject
*MovieCtlObj_New(MovieController itself
)
109 MovieControllerObject
*it
;
110 if (itself
== NULL
) {
111 PyErr_SetString(Qt_Error
,"Cannot create null MovieController");
114 it
= PyObject_NEW(MovieControllerObject
, &MovieController_Type
);
115 if (it
== NULL
) return NULL
;
116 it
->ob_itself
= itself
;
117 return (PyObject
*)it
;
119 int MovieCtlObj_Convert(PyObject
*v
, MovieController
*p_itself
)
121 if (!MovieCtlObj_Check(v
))
123 PyErr_SetString(PyExc_TypeError
, "MovieController required");
126 *p_itself
= ((MovieControllerObject
*)v
)->ob_itself
;
130 static void MovieCtlObj_dealloc(MovieControllerObject
*self
)
132 DisposeMovieController(self
->ob_itself
);
133 self
->ob_type
->tp_free((PyObject
*)self
);
136 static PyObject
*MovieCtlObj_MCSetMovie(MovieControllerObject
*_self
, PyObject
*_args
)
138 PyObject
*_res
= NULL
;
141 WindowPtr movieWindow
;
144 PyMac_PRECHECK(MCSetMovie
);
146 if (!PyArg_ParseTuple(_args
, "O&O&O&",
147 MovieObj_Convert
, &theMovie
,
148 WinObj_Convert
, &movieWindow
,
149 PyMac_GetPoint
, &where
))
151 _rv
= MCSetMovie(_self
->ob_itself
,
155 _res
= Py_BuildValue("l",
160 static PyObject
*MovieCtlObj_MCGetIndMovie(MovieControllerObject
*_self
, PyObject
*_args
)
162 PyObject
*_res
= NULL
;
165 #ifndef MCGetIndMovie
166 PyMac_PRECHECK(MCGetIndMovie
);
168 if (!PyArg_ParseTuple(_args
, "h",
171 _rv
= MCGetIndMovie(_self
->ob_itself
,
173 _res
= Py_BuildValue("O&",
178 static PyObject
*MovieCtlObj_MCRemoveAllMovies(MovieControllerObject
*_self
, PyObject
*_args
)
180 PyObject
*_res
= NULL
;
182 #ifndef MCRemoveAllMovies
183 PyMac_PRECHECK(MCRemoveAllMovies
);
185 if (!PyArg_ParseTuple(_args
, ""))
187 _rv
= MCRemoveAllMovies(_self
->ob_itself
);
188 _res
= Py_BuildValue("l",
193 static PyObject
*MovieCtlObj_MCRemoveAMovie(MovieControllerObject
*_self
, PyObject
*_args
)
195 PyObject
*_res
= NULL
;
198 #ifndef MCRemoveAMovie
199 PyMac_PRECHECK(MCRemoveAMovie
);
201 if (!PyArg_ParseTuple(_args
, "O&",
202 MovieObj_Convert
, &m
))
204 _rv
= MCRemoveAMovie(_self
->ob_itself
,
206 _res
= Py_BuildValue("l",
211 static PyObject
*MovieCtlObj_MCRemoveMovie(MovieControllerObject
*_self
, PyObject
*_args
)
213 PyObject
*_res
= NULL
;
215 #ifndef MCRemoveMovie
216 PyMac_PRECHECK(MCRemoveMovie
);
218 if (!PyArg_ParseTuple(_args
, ""))
220 _rv
= MCRemoveMovie(_self
->ob_itself
);
221 _res
= Py_BuildValue("l",
226 static PyObject
*MovieCtlObj_MCIsPlayerEvent(MovieControllerObject
*_self
, PyObject
*_args
)
228 PyObject
*_res
= NULL
;
231 #ifndef MCIsPlayerEvent
232 PyMac_PRECHECK(MCIsPlayerEvent
);
234 if (!PyArg_ParseTuple(_args
, "O&",
235 PyMac_GetEventRecord
, &e
))
237 _rv
= MCIsPlayerEvent(_self
->ob_itself
,
239 _res
= Py_BuildValue("l",
244 static PyObject
*MovieCtlObj_MCDoAction(MovieControllerObject
*_self
, PyObject
*_args
)
246 PyObject
*_res
= NULL
;
251 PyMac_PRECHECK(MCDoAction
);
253 if (!PyArg_ParseTuple(_args
, "hs",
257 _rv
= MCDoAction(_self
->ob_itself
,
260 _res
= Py_BuildValue("l",
265 static PyObject
*MovieCtlObj_MCSetControllerAttached(MovieControllerObject
*_self
, PyObject
*_args
)
267 PyObject
*_res
= NULL
;
270 #ifndef MCSetControllerAttached
271 PyMac_PRECHECK(MCSetControllerAttached
);
273 if (!PyArg_ParseTuple(_args
, "b",
276 _rv
= MCSetControllerAttached(_self
->ob_itself
,
278 _res
= Py_BuildValue("l",
283 static PyObject
*MovieCtlObj_MCIsControllerAttached(MovieControllerObject
*_self
, PyObject
*_args
)
285 PyObject
*_res
= NULL
;
287 #ifndef MCIsControllerAttached
288 PyMac_PRECHECK(MCIsControllerAttached
);
290 if (!PyArg_ParseTuple(_args
, ""))
292 _rv
= MCIsControllerAttached(_self
->ob_itself
);
293 _res
= Py_BuildValue("l",
298 static PyObject
*MovieCtlObj_MCSetControllerPort(MovieControllerObject
*_self
, PyObject
*_args
)
300 PyObject
*_res
= NULL
;
303 #ifndef MCSetControllerPort
304 PyMac_PRECHECK(MCSetControllerPort
);
306 if (!PyArg_ParseTuple(_args
, "O&",
307 GrafObj_Convert
, &gp
))
309 _rv
= MCSetControllerPort(_self
->ob_itself
,
311 _res
= Py_BuildValue("l",
316 static PyObject
*MovieCtlObj_MCGetControllerPort(MovieControllerObject
*_self
, PyObject
*_args
)
318 PyObject
*_res
= NULL
;
320 #ifndef MCGetControllerPort
321 PyMac_PRECHECK(MCGetControllerPort
);
323 if (!PyArg_ParseTuple(_args
, ""))
325 _rv
= MCGetControllerPort(_self
->ob_itself
);
326 _res
= Py_BuildValue("O&",
331 static PyObject
*MovieCtlObj_MCSetVisible(MovieControllerObject
*_self
, PyObject
*_args
)
333 PyObject
*_res
= NULL
;
337 PyMac_PRECHECK(MCSetVisible
);
339 if (!PyArg_ParseTuple(_args
, "b",
342 _rv
= MCSetVisible(_self
->ob_itself
,
344 _res
= Py_BuildValue("l",
349 static PyObject
*MovieCtlObj_MCGetVisible(MovieControllerObject
*_self
, PyObject
*_args
)
351 PyObject
*_res
= NULL
;
354 PyMac_PRECHECK(MCGetVisible
);
356 if (!PyArg_ParseTuple(_args
, ""))
358 _rv
= MCGetVisible(_self
->ob_itself
);
359 _res
= Py_BuildValue("l",
364 static PyObject
*MovieCtlObj_MCGetControllerBoundsRect(MovieControllerObject
*_self
, PyObject
*_args
)
366 PyObject
*_res
= NULL
;
369 #ifndef MCGetControllerBoundsRect
370 PyMac_PRECHECK(MCGetControllerBoundsRect
);
372 if (!PyArg_ParseTuple(_args
, ""))
374 _rv
= MCGetControllerBoundsRect(_self
->ob_itself
,
376 _res
= Py_BuildValue("lO&",
378 PyMac_BuildRect
, &bounds
);
382 static PyObject
*MovieCtlObj_MCSetControllerBoundsRect(MovieControllerObject
*_self
, PyObject
*_args
)
384 PyObject
*_res
= NULL
;
387 #ifndef MCSetControllerBoundsRect
388 PyMac_PRECHECK(MCSetControllerBoundsRect
);
390 if (!PyArg_ParseTuple(_args
, "O&",
391 PyMac_GetRect
, &bounds
))
393 _rv
= MCSetControllerBoundsRect(_self
->ob_itself
,
395 _res
= Py_BuildValue("l",
400 static PyObject
*MovieCtlObj_MCGetControllerBoundsRgn(MovieControllerObject
*_self
, PyObject
*_args
)
402 PyObject
*_res
= NULL
;
404 #ifndef MCGetControllerBoundsRgn
405 PyMac_PRECHECK(MCGetControllerBoundsRgn
);
407 if (!PyArg_ParseTuple(_args
, ""))
409 _rv
= MCGetControllerBoundsRgn(_self
->ob_itself
);
410 _res
= Py_BuildValue("O&",
415 static PyObject
*MovieCtlObj_MCGetWindowRgn(MovieControllerObject
*_self
, PyObject
*_args
)
417 PyObject
*_res
= NULL
;
420 #ifndef MCGetWindowRgn
421 PyMac_PRECHECK(MCGetWindowRgn
);
423 if (!PyArg_ParseTuple(_args
, "O&",
426 _rv
= MCGetWindowRgn(_self
->ob_itself
,
428 _res
= Py_BuildValue("O&",
433 static PyObject
*MovieCtlObj_MCMovieChanged(MovieControllerObject
*_self
, PyObject
*_args
)
435 PyObject
*_res
= NULL
;
438 #ifndef MCMovieChanged
439 PyMac_PRECHECK(MCMovieChanged
);
441 if (!PyArg_ParseTuple(_args
, "O&",
442 MovieObj_Convert
, &m
))
444 _rv
= MCMovieChanged(_self
->ob_itself
,
446 _res
= Py_BuildValue("l",
451 static PyObject
*MovieCtlObj_MCSetDuration(MovieControllerObject
*_self
, PyObject
*_args
)
453 PyObject
*_res
= NULL
;
456 #ifndef MCSetDuration
457 PyMac_PRECHECK(MCSetDuration
);
459 if (!PyArg_ParseTuple(_args
, "l",
462 _rv
= MCSetDuration(_self
->ob_itself
,
464 _res
= Py_BuildValue("l",
469 static PyObject
*MovieCtlObj_MCGetCurrentTime(MovieControllerObject
*_self
, PyObject
*_args
)
471 PyObject
*_res
= NULL
;
474 #ifndef MCGetCurrentTime
475 PyMac_PRECHECK(MCGetCurrentTime
);
477 if (!PyArg_ParseTuple(_args
, ""))
479 _rv
= MCGetCurrentTime(_self
->ob_itself
,
481 _res
= Py_BuildValue("ll",
487 static PyObject
*MovieCtlObj_MCNewAttachedController(MovieControllerObject
*_self
, PyObject
*_args
)
489 PyObject
*_res
= NULL
;
494 #ifndef MCNewAttachedController
495 PyMac_PRECHECK(MCNewAttachedController
);
497 if (!PyArg_ParseTuple(_args
, "O&O&O&",
498 MovieObj_Convert
, &theMovie
,
500 PyMac_GetPoint
, &where
))
502 _rv
= MCNewAttachedController(_self
->ob_itself
,
506 _res
= Py_BuildValue("l",
511 static PyObject
*MovieCtlObj_MCDraw(MovieControllerObject
*_self
, PyObject
*_args
)
513 PyObject
*_res
= NULL
;
517 PyMac_PRECHECK(MCDraw
);
519 if (!PyArg_ParseTuple(_args
, "O&",
522 _rv
= MCDraw(_self
->ob_itself
,
524 _res
= Py_BuildValue("l",
529 static PyObject
*MovieCtlObj_MCActivate(MovieControllerObject
*_self
, PyObject
*_args
)
531 PyObject
*_res
= NULL
;
536 PyMac_PRECHECK(MCActivate
);
538 if (!PyArg_ParseTuple(_args
, "O&b",
542 _rv
= MCActivate(_self
->ob_itself
,
545 _res
= Py_BuildValue("l",
550 static PyObject
*MovieCtlObj_MCIdle(MovieControllerObject
*_self
, PyObject
*_args
)
552 PyObject
*_res
= NULL
;
555 PyMac_PRECHECK(MCIdle
);
557 if (!PyArg_ParseTuple(_args
, ""))
559 _rv
= MCIdle(_self
->ob_itself
);
560 _res
= Py_BuildValue("l",
565 static PyObject
*MovieCtlObj_MCKey(MovieControllerObject
*_self
, PyObject
*_args
)
567 PyObject
*_res
= NULL
;
572 PyMac_PRECHECK(MCKey
);
574 if (!PyArg_ParseTuple(_args
, "bl",
578 _rv
= MCKey(_self
->ob_itself
,
581 _res
= Py_BuildValue("l",
586 static PyObject
*MovieCtlObj_MCClick(MovieControllerObject
*_self
, PyObject
*_args
)
588 PyObject
*_res
= NULL
;
595 PyMac_PRECHECK(MCClick
);
597 if (!PyArg_ParseTuple(_args
, "O&O&ll",
599 PyMac_GetPoint
, &where
,
603 _rv
= MCClick(_self
->ob_itself
,
608 _res
= Py_BuildValue("l",
613 static PyObject
*MovieCtlObj_MCEnableEditing(MovieControllerObject
*_self
, PyObject
*_args
)
615 PyObject
*_res
= NULL
;
618 #ifndef MCEnableEditing
619 PyMac_PRECHECK(MCEnableEditing
);
621 if (!PyArg_ParseTuple(_args
, "b",
624 _rv
= MCEnableEditing(_self
->ob_itself
,
626 _res
= Py_BuildValue("l",
631 static PyObject
*MovieCtlObj_MCIsEditingEnabled(MovieControllerObject
*_self
, PyObject
*_args
)
633 PyObject
*_res
= NULL
;
635 #ifndef MCIsEditingEnabled
636 PyMac_PRECHECK(MCIsEditingEnabled
);
638 if (!PyArg_ParseTuple(_args
, ""))
640 _rv
= MCIsEditingEnabled(_self
->ob_itself
);
641 _res
= Py_BuildValue("l",
646 static PyObject
*MovieCtlObj_MCCopy(MovieControllerObject
*_self
, PyObject
*_args
)
648 PyObject
*_res
= NULL
;
651 PyMac_PRECHECK(MCCopy
);
653 if (!PyArg_ParseTuple(_args
, ""))
655 _rv
= MCCopy(_self
->ob_itself
);
656 _res
= Py_BuildValue("O&",
661 static PyObject
*MovieCtlObj_MCCut(MovieControllerObject
*_self
, PyObject
*_args
)
663 PyObject
*_res
= NULL
;
666 PyMac_PRECHECK(MCCut
);
668 if (!PyArg_ParseTuple(_args
, ""))
670 _rv
= MCCut(_self
->ob_itself
);
671 _res
= Py_BuildValue("O&",
676 static PyObject
*MovieCtlObj_MCPaste(MovieControllerObject
*_self
, PyObject
*_args
)
678 PyObject
*_res
= NULL
;
682 PyMac_PRECHECK(MCPaste
);
684 if (!PyArg_ParseTuple(_args
, "O&",
685 MovieObj_Convert
, &srcMovie
))
687 _rv
= MCPaste(_self
->ob_itself
,
689 _res
= Py_BuildValue("l",
694 static PyObject
*MovieCtlObj_MCClear(MovieControllerObject
*_self
, PyObject
*_args
)
696 PyObject
*_res
= NULL
;
699 PyMac_PRECHECK(MCClear
);
701 if (!PyArg_ParseTuple(_args
, ""))
703 _rv
= MCClear(_self
->ob_itself
);
704 _res
= Py_BuildValue("l",
709 static PyObject
*MovieCtlObj_MCUndo(MovieControllerObject
*_self
, PyObject
*_args
)
711 PyObject
*_res
= NULL
;
714 PyMac_PRECHECK(MCUndo
);
716 if (!PyArg_ParseTuple(_args
, ""))
718 _rv
= MCUndo(_self
->ob_itself
);
719 _res
= Py_BuildValue("l",
724 static PyObject
*MovieCtlObj_MCPositionController(MovieControllerObject
*_self
, PyObject
*_args
)
726 PyObject
*_res
= NULL
;
731 #ifndef MCPositionController
732 PyMac_PRECHECK(MCPositionController
);
734 if (!PyArg_ParseTuple(_args
, "O&O&l",
735 PyMac_GetRect
, &movieRect
,
736 PyMac_GetRect
, &controllerRect
,
739 _rv
= MCPositionController(_self
->ob_itself
,
743 _res
= Py_BuildValue("l",
748 static PyObject
*MovieCtlObj_MCGetControllerInfo(MovieControllerObject
*_self
, PyObject
*_args
)
750 PyObject
*_res
= NULL
;
753 #ifndef MCGetControllerInfo
754 PyMac_PRECHECK(MCGetControllerInfo
);
756 if (!PyArg_ParseTuple(_args
, ""))
758 _rv
= MCGetControllerInfo(_self
->ob_itself
,
760 _res
= Py_BuildValue("ll",
766 static PyObject
*MovieCtlObj_MCSetClip(MovieControllerObject
*_self
, PyObject
*_args
)
768 PyObject
*_res
= NULL
;
773 PyMac_PRECHECK(MCSetClip
);
775 if (!PyArg_ParseTuple(_args
, "O&O&",
776 ResObj_Convert
, &theClip
,
777 ResObj_Convert
, &movieClip
))
779 _rv
= MCSetClip(_self
->ob_itself
,
782 _res
= Py_BuildValue("l",
787 static PyObject
*MovieCtlObj_MCGetClip(MovieControllerObject
*_self
, PyObject
*_args
)
789 PyObject
*_res
= NULL
;
794 PyMac_PRECHECK(MCGetClip
);
796 if (!PyArg_ParseTuple(_args
, ""))
798 _rv
= MCGetClip(_self
->ob_itself
,
801 _res
= Py_BuildValue("lO&O&",
804 ResObj_New
, movieClip
);
808 static PyObject
*MovieCtlObj_MCDrawBadge(MovieControllerObject
*_self
, PyObject
*_args
)
810 PyObject
*_res
= NULL
;
815 PyMac_PRECHECK(MCDrawBadge
);
817 if (!PyArg_ParseTuple(_args
, "O&",
818 ResObj_Convert
, &movieRgn
))
820 _rv
= MCDrawBadge(_self
->ob_itself
,
823 _res
= Py_BuildValue("lO&",
825 ResObj_New
, badgeRgn
);
829 static PyObject
*MovieCtlObj_MCSetUpEditMenu(MovieControllerObject
*_self
, PyObject
*_args
)
831 PyObject
*_res
= NULL
;
835 #ifndef MCSetUpEditMenu
836 PyMac_PRECHECK(MCSetUpEditMenu
);
838 if (!PyArg_ParseTuple(_args
, "lO&",
840 MenuObj_Convert
, &mh
))
842 _rv
= MCSetUpEditMenu(_self
->ob_itself
,
845 _res
= Py_BuildValue("l",
850 static PyObject
*MovieCtlObj_MCGetMenuString(MovieControllerObject
*_self
, PyObject
*_args
)
852 PyObject
*_res
= NULL
;
857 #ifndef MCGetMenuString
858 PyMac_PRECHECK(MCGetMenuString
);
860 if (!PyArg_ParseTuple(_args
, "lhO&",
863 PyMac_GetStr255
, aString
))
865 _rv
= MCGetMenuString(_self
->ob_itself
,
869 _res
= Py_BuildValue("l",
874 static PyObject
*MovieCtlObj_MCPtInController(MovieControllerObject
*_self
, PyObject
*_args
)
876 PyObject
*_res
= NULL
;
879 Boolean inController
;
880 #ifndef MCPtInController
881 PyMac_PRECHECK(MCPtInController
);
883 if (!PyArg_ParseTuple(_args
, "O&",
884 PyMac_GetPoint
, &thePt
))
886 _rv
= MCPtInController(_self
->ob_itself
,
889 _res
= Py_BuildValue("lb",
895 static PyObject
*MovieCtlObj_MCInvalidate(MovieControllerObject
*_self
, PyObject
*_args
)
897 PyObject
*_res
= NULL
;
900 RgnHandle invalidRgn
;
902 PyMac_PRECHECK(MCInvalidate
);
904 if (!PyArg_ParseTuple(_args
, "O&O&",
906 ResObj_Convert
, &invalidRgn
))
908 _rv
= MCInvalidate(_self
->ob_itself
,
911 _res
= Py_BuildValue("l",
916 static PyObject
*MovieCtlObj_MCAdjustCursor(MovieControllerObject
*_self
, PyObject
*_args
)
918 PyObject
*_res
= NULL
;
923 #ifndef MCAdjustCursor
924 PyMac_PRECHECK(MCAdjustCursor
);
926 if (!PyArg_ParseTuple(_args
, "O&O&l",
928 PyMac_GetPoint
, &where
,
931 _rv
= MCAdjustCursor(_self
->ob_itself
,
935 _res
= Py_BuildValue("l",
940 static PyObject
*MovieCtlObj_MCGetInterfaceElement(MovieControllerObject
*_self
, PyObject
*_args
)
942 PyObject
*_res
= NULL
;
944 MCInterfaceElement whichElement
;
946 #ifndef MCGetInterfaceElement
947 PyMac_PRECHECK(MCGetInterfaceElement
);
949 if (!PyArg_ParseTuple(_args
, "ls",
953 _rv
= MCGetInterfaceElement(_self
->ob_itself
,
956 _res
= Py_BuildValue("l",
961 static PyObject
*MovieCtlObj_MCAddMovieSegment(MovieControllerObject
*_self
, PyObject
*_args
)
963 PyObject
*_res
= NULL
;
967 #ifndef MCAddMovieSegment
968 PyMac_PRECHECK(MCAddMovieSegment
);
970 if (!PyArg_ParseTuple(_args
, "O&b",
971 MovieObj_Convert
, &srcMovie
,
974 _rv
= MCAddMovieSegment(_self
->ob_itself
,
977 _res
= Py_BuildValue("l",
982 static PyObject
*MovieCtlObj_MCTrimMovieSegment(MovieControllerObject
*_self
, PyObject
*_args
)
984 PyObject
*_res
= NULL
;
986 #ifndef MCTrimMovieSegment
987 PyMac_PRECHECK(MCTrimMovieSegment
);
989 if (!PyArg_ParseTuple(_args
, ""))
991 _rv
= MCTrimMovieSegment(_self
->ob_itself
);
992 _res
= Py_BuildValue("l",
997 static PyMethodDef MovieCtlObj_methods
[] = {
998 {"MCSetMovie", (PyCFunction
)MovieCtlObj_MCSetMovie
, 1,
999 PyDoc_STR("(Movie theMovie, WindowPtr movieWindow, Point where) -> (ComponentResult _rv)")},
1000 {"MCGetIndMovie", (PyCFunction
)MovieCtlObj_MCGetIndMovie
, 1,
1001 PyDoc_STR("(short index) -> (Movie _rv)")},
1002 {"MCRemoveAllMovies", (PyCFunction
)MovieCtlObj_MCRemoveAllMovies
, 1,
1003 PyDoc_STR("() -> (ComponentResult _rv)")},
1004 {"MCRemoveAMovie", (PyCFunction
)MovieCtlObj_MCRemoveAMovie
, 1,
1005 PyDoc_STR("(Movie m) -> (ComponentResult _rv)")},
1006 {"MCRemoveMovie", (PyCFunction
)MovieCtlObj_MCRemoveMovie
, 1,
1007 PyDoc_STR("() -> (ComponentResult _rv)")},
1008 {"MCIsPlayerEvent", (PyCFunction
)MovieCtlObj_MCIsPlayerEvent
, 1,
1009 PyDoc_STR("(EventRecord e) -> (ComponentResult _rv)")},
1010 {"MCDoAction", (PyCFunction
)MovieCtlObj_MCDoAction
, 1,
1011 PyDoc_STR("(short action, void * params) -> (ComponentResult _rv)")},
1012 {"MCSetControllerAttached", (PyCFunction
)MovieCtlObj_MCSetControllerAttached
, 1,
1013 PyDoc_STR("(Boolean attach) -> (ComponentResult _rv)")},
1014 {"MCIsControllerAttached", (PyCFunction
)MovieCtlObj_MCIsControllerAttached
, 1,
1015 PyDoc_STR("() -> (ComponentResult _rv)")},
1016 {"MCSetControllerPort", (PyCFunction
)MovieCtlObj_MCSetControllerPort
, 1,
1017 PyDoc_STR("(CGrafPtr gp) -> (ComponentResult _rv)")},
1018 {"MCGetControllerPort", (PyCFunction
)MovieCtlObj_MCGetControllerPort
, 1,
1019 PyDoc_STR("() -> (CGrafPtr _rv)")},
1020 {"MCSetVisible", (PyCFunction
)MovieCtlObj_MCSetVisible
, 1,
1021 PyDoc_STR("(Boolean visible) -> (ComponentResult _rv)")},
1022 {"MCGetVisible", (PyCFunction
)MovieCtlObj_MCGetVisible
, 1,
1023 PyDoc_STR("() -> (ComponentResult _rv)")},
1024 {"MCGetControllerBoundsRect", (PyCFunction
)MovieCtlObj_MCGetControllerBoundsRect
, 1,
1025 PyDoc_STR("() -> (ComponentResult _rv, Rect bounds)")},
1026 {"MCSetControllerBoundsRect", (PyCFunction
)MovieCtlObj_MCSetControllerBoundsRect
, 1,
1027 PyDoc_STR("(Rect bounds) -> (ComponentResult _rv)")},
1028 {"MCGetControllerBoundsRgn", (PyCFunction
)MovieCtlObj_MCGetControllerBoundsRgn
, 1,
1029 PyDoc_STR("() -> (RgnHandle _rv)")},
1030 {"MCGetWindowRgn", (PyCFunction
)MovieCtlObj_MCGetWindowRgn
, 1,
1031 PyDoc_STR("(WindowPtr w) -> (RgnHandle _rv)")},
1032 {"MCMovieChanged", (PyCFunction
)MovieCtlObj_MCMovieChanged
, 1,
1033 PyDoc_STR("(Movie m) -> (ComponentResult _rv)")},
1034 {"MCSetDuration", (PyCFunction
)MovieCtlObj_MCSetDuration
, 1,
1035 PyDoc_STR("(TimeValue duration) -> (ComponentResult _rv)")},
1036 {"MCGetCurrentTime", (PyCFunction
)MovieCtlObj_MCGetCurrentTime
, 1,
1037 PyDoc_STR("() -> (TimeValue _rv, TimeScale scale)")},
1038 {"MCNewAttachedController", (PyCFunction
)MovieCtlObj_MCNewAttachedController
, 1,
1039 PyDoc_STR("(Movie theMovie, WindowPtr w, Point where) -> (ComponentResult _rv)")},
1040 {"MCDraw", (PyCFunction
)MovieCtlObj_MCDraw
, 1,
1041 PyDoc_STR("(WindowPtr w) -> (ComponentResult _rv)")},
1042 {"MCActivate", (PyCFunction
)MovieCtlObj_MCActivate
, 1,
1043 PyDoc_STR("(WindowPtr w, Boolean activate) -> (ComponentResult _rv)")},
1044 {"MCIdle", (PyCFunction
)MovieCtlObj_MCIdle
, 1,
1045 PyDoc_STR("() -> (ComponentResult _rv)")},
1046 {"MCKey", (PyCFunction
)MovieCtlObj_MCKey
, 1,
1047 PyDoc_STR("(SInt8 key, long modifiers) -> (ComponentResult _rv)")},
1048 {"MCClick", (PyCFunction
)MovieCtlObj_MCClick
, 1,
1049 PyDoc_STR("(WindowPtr w, Point where, long when, long modifiers) -> (ComponentResult _rv)")},
1050 {"MCEnableEditing", (PyCFunction
)MovieCtlObj_MCEnableEditing
, 1,
1051 PyDoc_STR("(Boolean enabled) -> (ComponentResult _rv)")},
1052 {"MCIsEditingEnabled", (PyCFunction
)MovieCtlObj_MCIsEditingEnabled
, 1,
1053 PyDoc_STR("() -> (long _rv)")},
1054 {"MCCopy", (PyCFunction
)MovieCtlObj_MCCopy
, 1,
1055 PyDoc_STR("() -> (Movie _rv)")},
1056 {"MCCut", (PyCFunction
)MovieCtlObj_MCCut
, 1,
1057 PyDoc_STR("() -> (Movie _rv)")},
1058 {"MCPaste", (PyCFunction
)MovieCtlObj_MCPaste
, 1,
1059 PyDoc_STR("(Movie srcMovie) -> (ComponentResult _rv)")},
1060 {"MCClear", (PyCFunction
)MovieCtlObj_MCClear
, 1,
1061 PyDoc_STR("() -> (ComponentResult _rv)")},
1062 {"MCUndo", (PyCFunction
)MovieCtlObj_MCUndo
, 1,
1063 PyDoc_STR("() -> (ComponentResult _rv)")},
1064 {"MCPositionController", (PyCFunction
)MovieCtlObj_MCPositionController
, 1,
1065 PyDoc_STR("(Rect movieRect, Rect controllerRect, long someFlags) -> (ComponentResult _rv)")},
1066 {"MCGetControllerInfo", (PyCFunction
)MovieCtlObj_MCGetControllerInfo
, 1,
1067 PyDoc_STR("() -> (ComponentResult _rv, long someFlags)")},
1068 {"MCSetClip", (PyCFunction
)MovieCtlObj_MCSetClip
, 1,
1069 PyDoc_STR("(RgnHandle theClip, RgnHandle movieClip) -> (ComponentResult _rv)")},
1070 {"MCGetClip", (PyCFunction
)MovieCtlObj_MCGetClip
, 1,
1071 PyDoc_STR("() -> (ComponentResult _rv, RgnHandle theClip, RgnHandle movieClip)")},
1072 {"MCDrawBadge", (PyCFunction
)MovieCtlObj_MCDrawBadge
, 1,
1073 PyDoc_STR("(RgnHandle movieRgn) -> (ComponentResult _rv, RgnHandle badgeRgn)")},
1074 {"MCSetUpEditMenu", (PyCFunction
)MovieCtlObj_MCSetUpEditMenu
, 1,
1075 PyDoc_STR("(long modifiers, MenuHandle mh) -> (ComponentResult _rv)")},
1076 {"MCGetMenuString", (PyCFunction
)MovieCtlObj_MCGetMenuString
, 1,
1077 PyDoc_STR("(long modifiers, short item, Str255 aString) -> (ComponentResult _rv)")},
1078 {"MCPtInController", (PyCFunction
)MovieCtlObj_MCPtInController
, 1,
1079 PyDoc_STR("(Point thePt) -> (ComponentResult _rv, Boolean inController)")},
1080 {"MCInvalidate", (PyCFunction
)MovieCtlObj_MCInvalidate
, 1,
1081 PyDoc_STR("(WindowPtr w, RgnHandle invalidRgn) -> (ComponentResult _rv)")},
1082 {"MCAdjustCursor", (PyCFunction
)MovieCtlObj_MCAdjustCursor
, 1,
1083 PyDoc_STR("(WindowPtr w, Point where, long modifiers) -> (ComponentResult _rv)")},
1084 {"MCGetInterfaceElement", (PyCFunction
)MovieCtlObj_MCGetInterfaceElement
, 1,
1085 PyDoc_STR("(MCInterfaceElement whichElement, void * element) -> (ComponentResult _rv)")},
1086 {"MCAddMovieSegment", (PyCFunction
)MovieCtlObj_MCAddMovieSegment
, 1,
1087 PyDoc_STR("(Movie srcMovie, Boolean scaled) -> (ComponentResult _rv)")},
1088 {"MCTrimMovieSegment", (PyCFunction
)MovieCtlObj_MCTrimMovieSegment
, 1,
1089 PyDoc_STR("() -> (ComponentResult _rv)")},
1093 #define MovieCtlObj_getsetlist NULL
1096 #define MovieCtlObj_compare NULL
1098 #define MovieCtlObj_repr NULL
1100 #define MovieCtlObj_hash NULL
1101 #define MovieCtlObj_tp_init 0
1103 #define MovieCtlObj_tp_alloc PyType_GenericAlloc
1105 static PyObject
*MovieCtlObj_tp_new(PyTypeObject
*type
, PyObject
*args
, PyObject
*kwds
)
1108 MovieController itself
;
1109 char *kw
[] = {"itself", 0};
1111 if (!PyArg_ParseTupleAndKeywords(args
, kwds
, "O&", kw
, MovieCtlObj_Convert
, &itself
)) return NULL
;
1112 if ((self
= type
->tp_alloc(type
, 0)) == NULL
) return NULL
;
1113 ((MovieControllerObject
*)self
)->ob_itself
= itself
;
1117 #define MovieCtlObj_tp_free PyObject_Del
1120 PyTypeObject MovieController_Type
= {
1121 PyObject_HEAD_INIT(NULL
)
1123 "_Qt.MovieController", /*tp_name*/
1124 sizeof(MovieControllerObject
), /*tp_basicsize*/
1127 (destructor
) MovieCtlObj_dealloc
, /*tp_dealloc*/
1129 (getattrfunc
)0, /*tp_getattr*/
1130 (setattrfunc
)0, /*tp_setattr*/
1131 (cmpfunc
) MovieCtlObj_compare
, /*tp_compare*/
1132 (reprfunc
) MovieCtlObj_repr
, /*tp_repr*/
1133 (PyNumberMethods
*)0, /* tp_as_number */
1134 (PySequenceMethods
*)0, /* tp_as_sequence */
1135 (PyMappingMethods
*)0, /* tp_as_mapping */
1136 (hashfunc
) MovieCtlObj_hash
, /*tp_hash*/
1139 PyObject_GenericGetAttr
, /*tp_getattro*/
1140 PyObject_GenericSetAttr
, /*tp_setattro */
1142 Py_TPFLAGS_DEFAULT
|Py_TPFLAGS_BASETYPE
, /* tp_flags */
1146 0, /*tp_richcompare*/
1147 0, /*tp_weaklistoffset*/
1150 MovieCtlObj_methods
, /* tp_methods */
1152 MovieCtlObj_getsetlist
, /*tp_getset*/
1157 0, /*tp_dictoffset*/
1158 MovieCtlObj_tp_init
, /* tp_init */
1159 MovieCtlObj_tp_alloc
, /* tp_alloc */
1160 MovieCtlObj_tp_new
, /* tp_new */
1161 MovieCtlObj_tp_free
, /* tp_free */
1164 /* ---------------- End object type MovieController ----------------- */
1167 /* ---------------------- Object type TimeBase ---------------------- */
1169 PyTypeObject TimeBase_Type
;
1171 #define TimeBaseObj_Check(x) ((x)->ob_type == &TimeBase_Type || PyObject_TypeCheck((x), &TimeBase_Type))
1173 typedef struct TimeBaseObject
{
1178 PyObject
*TimeBaseObj_New(TimeBase itself
)
1181 if (itself
== NULL
) {
1182 PyErr_SetString(Qt_Error
,"Cannot create null TimeBase");
1185 it
= PyObject_NEW(TimeBaseObject
, &TimeBase_Type
);
1186 if (it
== NULL
) return NULL
;
1187 it
->ob_itself
= itself
;
1188 return (PyObject
*)it
;
1190 int TimeBaseObj_Convert(PyObject
*v
, TimeBase
*p_itself
)
1192 if (!TimeBaseObj_Check(v
))
1194 PyErr_SetString(PyExc_TypeError
, "TimeBase required");
1197 *p_itself
= ((TimeBaseObject
*)v
)->ob_itself
;
1201 static void TimeBaseObj_dealloc(TimeBaseObject
*self
)
1203 /* Cleanup of self->ob_itself goes here */
1204 self
->ob_type
->tp_free((PyObject
*)self
);
1207 static PyObject
*TimeBaseObj_DisposeTimeBase(TimeBaseObject
*_self
, PyObject
*_args
)
1209 PyObject
*_res
= NULL
;
1210 #ifndef DisposeTimeBase
1211 PyMac_PRECHECK(DisposeTimeBase
);
1213 if (!PyArg_ParseTuple(_args
, ""))
1215 DisposeTimeBase(_self
->ob_itself
);
1221 static PyObject
*TimeBaseObj_GetTimeBaseTime(TimeBaseObject
*_self
, PyObject
*_args
)
1223 PyObject
*_res
= NULL
;
1227 #ifndef GetTimeBaseTime
1228 PyMac_PRECHECK(GetTimeBaseTime
);
1230 if (!PyArg_ParseTuple(_args
, "l",
1233 _rv
= GetTimeBaseTime(_self
->ob_itself
,
1236 _res
= Py_BuildValue("lO&",
1238 QtTimeRecord_New
, &tr
);
1242 static PyObject
*TimeBaseObj_SetTimeBaseTime(TimeBaseObject
*_self
, PyObject
*_args
)
1244 PyObject
*_res
= NULL
;
1246 #ifndef SetTimeBaseTime
1247 PyMac_PRECHECK(SetTimeBaseTime
);
1249 if (!PyArg_ParseTuple(_args
, "O&",
1250 QtTimeRecord_Convert
, &tr
))
1252 SetTimeBaseTime(_self
->ob_itself
,
1259 static PyObject
*TimeBaseObj_SetTimeBaseValue(TimeBaseObject
*_self
, PyObject
*_args
)
1261 PyObject
*_res
= NULL
;
1264 #ifndef SetTimeBaseValue
1265 PyMac_PRECHECK(SetTimeBaseValue
);
1267 if (!PyArg_ParseTuple(_args
, "ll",
1271 SetTimeBaseValue(_self
->ob_itself
,
1279 static PyObject
*TimeBaseObj_GetTimeBaseRate(TimeBaseObject
*_self
, PyObject
*_args
)
1281 PyObject
*_res
= NULL
;
1283 #ifndef GetTimeBaseRate
1284 PyMac_PRECHECK(GetTimeBaseRate
);
1286 if (!PyArg_ParseTuple(_args
, ""))
1288 _rv
= GetTimeBaseRate(_self
->ob_itself
);
1289 _res
= Py_BuildValue("O&",
1290 PyMac_BuildFixed
, _rv
);
1294 static PyObject
*TimeBaseObj_SetTimeBaseRate(TimeBaseObject
*_self
, PyObject
*_args
)
1296 PyObject
*_res
= NULL
;
1298 #ifndef SetTimeBaseRate
1299 PyMac_PRECHECK(SetTimeBaseRate
);
1301 if (!PyArg_ParseTuple(_args
, "O&",
1302 PyMac_GetFixed
, &r
))
1304 SetTimeBaseRate(_self
->ob_itself
,
1311 static PyObject
*TimeBaseObj_GetTimeBaseStartTime(TimeBaseObject
*_self
, PyObject
*_args
)
1313 PyObject
*_res
= NULL
;
1317 #ifndef GetTimeBaseStartTime
1318 PyMac_PRECHECK(GetTimeBaseStartTime
);
1320 if (!PyArg_ParseTuple(_args
, "l",
1323 _rv
= GetTimeBaseStartTime(_self
->ob_itself
,
1326 _res
= Py_BuildValue("lO&",
1328 QtTimeRecord_New
, &tr
);
1332 static PyObject
*TimeBaseObj_SetTimeBaseStartTime(TimeBaseObject
*_self
, PyObject
*_args
)
1334 PyObject
*_res
= NULL
;
1336 #ifndef SetTimeBaseStartTime
1337 PyMac_PRECHECK(SetTimeBaseStartTime
);
1339 if (!PyArg_ParseTuple(_args
, "O&",
1340 QtTimeRecord_Convert
, &tr
))
1342 SetTimeBaseStartTime(_self
->ob_itself
,
1349 static PyObject
*TimeBaseObj_GetTimeBaseStopTime(TimeBaseObject
*_self
, PyObject
*_args
)
1351 PyObject
*_res
= NULL
;
1355 #ifndef GetTimeBaseStopTime
1356 PyMac_PRECHECK(GetTimeBaseStopTime
);
1358 if (!PyArg_ParseTuple(_args
, "l",
1361 _rv
= GetTimeBaseStopTime(_self
->ob_itself
,
1364 _res
= Py_BuildValue("lO&",
1366 QtTimeRecord_New
, &tr
);
1370 static PyObject
*TimeBaseObj_SetTimeBaseStopTime(TimeBaseObject
*_self
, PyObject
*_args
)
1372 PyObject
*_res
= NULL
;
1374 #ifndef SetTimeBaseStopTime
1375 PyMac_PRECHECK(SetTimeBaseStopTime
);
1377 if (!PyArg_ParseTuple(_args
, "O&",
1378 QtTimeRecord_Convert
, &tr
))
1380 SetTimeBaseStopTime(_self
->ob_itself
,
1387 static PyObject
*TimeBaseObj_GetTimeBaseFlags(TimeBaseObject
*_self
, PyObject
*_args
)
1389 PyObject
*_res
= NULL
;
1391 #ifndef GetTimeBaseFlags
1392 PyMac_PRECHECK(GetTimeBaseFlags
);
1394 if (!PyArg_ParseTuple(_args
, ""))
1396 _rv
= GetTimeBaseFlags(_self
->ob_itself
);
1397 _res
= Py_BuildValue("l",
1402 static PyObject
*TimeBaseObj_SetTimeBaseFlags(TimeBaseObject
*_self
, PyObject
*_args
)
1404 PyObject
*_res
= NULL
;
1406 #ifndef SetTimeBaseFlags
1407 PyMac_PRECHECK(SetTimeBaseFlags
);
1409 if (!PyArg_ParseTuple(_args
, "l",
1412 SetTimeBaseFlags(_self
->ob_itself
,
1419 static PyObject
*TimeBaseObj_SetTimeBaseMasterTimeBase(TimeBaseObject
*_self
, PyObject
*_args
)
1421 PyObject
*_res
= NULL
;
1423 TimeRecord slaveZero
;
1424 #ifndef SetTimeBaseMasterTimeBase
1425 PyMac_PRECHECK(SetTimeBaseMasterTimeBase
);
1427 if (!PyArg_ParseTuple(_args
, "O&O&",
1428 TimeBaseObj_Convert
, &master
,
1429 QtTimeRecord_Convert
, &slaveZero
))
1431 SetTimeBaseMasterTimeBase(_self
->ob_itself
,
1439 static PyObject
*TimeBaseObj_GetTimeBaseMasterTimeBase(TimeBaseObject
*_self
, PyObject
*_args
)
1441 PyObject
*_res
= NULL
;
1443 #ifndef GetTimeBaseMasterTimeBase
1444 PyMac_PRECHECK(GetTimeBaseMasterTimeBase
);
1446 if (!PyArg_ParseTuple(_args
, ""))
1448 _rv
= GetTimeBaseMasterTimeBase(_self
->ob_itself
);
1449 _res
= Py_BuildValue("O&",
1450 TimeBaseObj_New
, _rv
);
1454 static PyObject
*TimeBaseObj_SetTimeBaseMasterClock(TimeBaseObject
*_self
, PyObject
*_args
)
1456 PyObject
*_res
= NULL
;
1457 Component clockMeister
;
1458 TimeRecord slaveZero
;
1459 #ifndef SetTimeBaseMasterClock
1460 PyMac_PRECHECK(SetTimeBaseMasterClock
);
1462 if (!PyArg_ParseTuple(_args
, "O&O&",
1463 CmpObj_Convert
, &clockMeister
,
1464 QtTimeRecord_Convert
, &slaveZero
))
1466 SetTimeBaseMasterClock(_self
->ob_itself
,
1474 static PyObject
*TimeBaseObj_GetTimeBaseMasterClock(TimeBaseObject
*_self
, PyObject
*_args
)
1476 PyObject
*_res
= NULL
;
1477 ComponentInstance _rv
;
1478 #ifndef GetTimeBaseMasterClock
1479 PyMac_PRECHECK(GetTimeBaseMasterClock
);
1481 if (!PyArg_ParseTuple(_args
, ""))
1483 _rv
= GetTimeBaseMasterClock(_self
->ob_itself
);
1484 _res
= Py_BuildValue("O&",
1485 CmpInstObj_New
, _rv
);
1489 static PyObject
*TimeBaseObj_GetTimeBaseStatus(TimeBaseObject
*_self
, PyObject
*_args
)
1491 PyObject
*_res
= NULL
;
1493 TimeRecord unpinnedTime
;
1494 #ifndef GetTimeBaseStatus
1495 PyMac_PRECHECK(GetTimeBaseStatus
);
1497 if (!PyArg_ParseTuple(_args
, ""))
1499 _rv
= GetTimeBaseStatus(_self
->ob_itself
,
1501 _res
= Py_BuildValue("lO&",
1503 QtTimeRecord_New
, &unpinnedTime
);
1507 static PyObject
*TimeBaseObj_SetTimeBaseZero(TimeBaseObject
*_self
, PyObject
*_args
)
1509 PyObject
*_res
= NULL
;
1511 #ifndef SetTimeBaseZero
1512 PyMac_PRECHECK(SetTimeBaseZero
);
1514 if (!PyArg_ParseTuple(_args
, "O&",
1515 QtTimeRecord_Convert
, &zero
))
1517 SetTimeBaseZero(_self
->ob_itself
,
1524 static PyObject
*TimeBaseObj_GetTimeBaseEffectiveRate(TimeBaseObject
*_self
, PyObject
*_args
)
1526 PyObject
*_res
= NULL
;
1528 #ifndef GetTimeBaseEffectiveRate
1529 PyMac_PRECHECK(GetTimeBaseEffectiveRate
);
1531 if (!PyArg_ParseTuple(_args
, ""))
1533 _rv
= GetTimeBaseEffectiveRate(_self
->ob_itself
);
1534 _res
= Py_BuildValue("O&",
1535 PyMac_BuildFixed
, _rv
);
1539 static PyMethodDef TimeBaseObj_methods
[] = {
1540 {"DisposeTimeBase", (PyCFunction
)TimeBaseObj_DisposeTimeBase
, 1,
1541 PyDoc_STR("() -> None")},
1542 {"GetTimeBaseTime", (PyCFunction
)TimeBaseObj_GetTimeBaseTime
, 1,
1543 PyDoc_STR("(TimeScale s) -> (TimeValue _rv, TimeRecord tr)")},
1544 {"SetTimeBaseTime", (PyCFunction
)TimeBaseObj_SetTimeBaseTime
, 1,
1545 PyDoc_STR("(TimeRecord tr) -> None")},
1546 {"SetTimeBaseValue", (PyCFunction
)TimeBaseObj_SetTimeBaseValue
, 1,
1547 PyDoc_STR("(TimeValue t, TimeScale s) -> None")},
1548 {"GetTimeBaseRate", (PyCFunction
)TimeBaseObj_GetTimeBaseRate
, 1,
1549 PyDoc_STR("() -> (Fixed _rv)")},
1550 {"SetTimeBaseRate", (PyCFunction
)TimeBaseObj_SetTimeBaseRate
, 1,
1551 PyDoc_STR("(Fixed r) -> None")},
1552 {"GetTimeBaseStartTime", (PyCFunction
)TimeBaseObj_GetTimeBaseStartTime
, 1,
1553 PyDoc_STR("(TimeScale s) -> (TimeValue _rv, TimeRecord tr)")},
1554 {"SetTimeBaseStartTime", (PyCFunction
)TimeBaseObj_SetTimeBaseStartTime
, 1,
1555 PyDoc_STR("(TimeRecord tr) -> None")},
1556 {"GetTimeBaseStopTime", (PyCFunction
)TimeBaseObj_GetTimeBaseStopTime
, 1,
1557 PyDoc_STR("(TimeScale s) -> (TimeValue _rv, TimeRecord tr)")},
1558 {"SetTimeBaseStopTime", (PyCFunction
)TimeBaseObj_SetTimeBaseStopTime
, 1,
1559 PyDoc_STR("(TimeRecord tr) -> None")},
1560 {"GetTimeBaseFlags", (PyCFunction
)TimeBaseObj_GetTimeBaseFlags
, 1,
1561 PyDoc_STR("() -> (long _rv)")},
1562 {"SetTimeBaseFlags", (PyCFunction
)TimeBaseObj_SetTimeBaseFlags
, 1,
1563 PyDoc_STR("(long timeBaseFlags) -> None")},
1564 {"SetTimeBaseMasterTimeBase", (PyCFunction
)TimeBaseObj_SetTimeBaseMasterTimeBase
, 1,
1565 PyDoc_STR("(TimeBase master, TimeRecord slaveZero) -> None")},
1566 {"GetTimeBaseMasterTimeBase", (PyCFunction
)TimeBaseObj_GetTimeBaseMasterTimeBase
, 1,
1567 PyDoc_STR("() -> (TimeBase _rv)")},
1568 {"SetTimeBaseMasterClock", (PyCFunction
)TimeBaseObj_SetTimeBaseMasterClock
, 1,
1569 PyDoc_STR("(Component clockMeister, TimeRecord slaveZero) -> None")},
1570 {"GetTimeBaseMasterClock", (PyCFunction
)TimeBaseObj_GetTimeBaseMasterClock
, 1,
1571 PyDoc_STR("() -> (ComponentInstance _rv)")},
1572 {"GetTimeBaseStatus", (PyCFunction
)TimeBaseObj_GetTimeBaseStatus
, 1,
1573 PyDoc_STR("() -> (long _rv, TimeRecord unpinnedTime)")},
1574 {"SetTimeBaseZero", (PyCFunction
)TimeBaseObj_SetTimeBaseZero
, 1,
1575 PyDoc_STR("(TimeRecord zero) -> None")},
1576 {"GetTimeBaseEffectiveRate", (PyCFunction
)TimeBaseObj_GetTimeBaseEffectiveRate
, 1,
1577 PyDoc_STR("() -> (Fixed _rv)")},
1581 #define TimeBaseObj_getsetlist NULL
1584 #define TimeBaseObj_compare NULL
1586 #define TimeBaseObj_repr NULL
1588 #define TimeBaseObj_hash NULL
1589 #define TimeBaseObj_tp_init 0
1591 #define TimeBaseObj_tp_alloc PyType_GenericAlloc
1593 static PyObject
*TimeBaseObj_tp_new(PyTypeObject
*type
, PyObject
*args
, PyObject
*kwds
)
1597 char *kw
[] = {"itself", 0};
1599 if (!PyArg_ParseTupleAndKeywords(args
, kwds
, "O&", kw
, TimeBaseObj_Convert
, &itself
)) return NULL
;
1600 if ((self
= type
->tp_alloc(type
, 0)) == NULL
) return NULL
;
1601 ((TimeBaseObject
*)self
)->ob_itself
= itself
;
1605 #define TimeBaseObj_tp_free PyObject_Del
1608 PyTypeObject TimeBase_Type
= {
1609 PyObject_HEAD_INIT(NULL
)
1611 "_Qt.TimeBase", /*tp_name*/
1612 sizeof(TimeBaseObject
), /*tp_basicsize*/
1615 (destructor
) TimeBaseObj_dealloc
, /*tp_dealloc*/
1617 (getattrfunc
)0, /*tp_getattr*/
1618 (setattrfunc
)0, /*tp_setattr*/
1619 (cmpfunc
) TimeBaseObj_compare
, /*tp_compare*/
1620 (reprfunc
) TimeBaseObj_repr
, /*tp_repr*/
1621 (PyNumberMethods
*)0, /* tp_as_number */
1622 (PySequenceMethods
*)0, /* tp_as_sequence */
1623 (PyMappingMethods
*)0, /* tp_as_mapping */
1624 (hashfunc
) TimeBaseObj_hash
, /*tp_hash*/
1627 PyObject_GenericGetAttr
, /*tp_getattro*/
1628 PyObject_GenericSetAttr
, /*tp_setattro */
1630 Py_TPFLAGS_DEFAULT
|Py_TPFLAGS_BASETYPE
, /* tp_flags */
1634 0, /*tp_richcompare*/
1635 0, /*tp_weaklistoffset*/
1638 TimeBaseObj_methods
, /* tp_methods */
1640 TimeBaseObj_getsetlist
, /*tp_getset*/
1645 0, /*tp_dictoffset*/
1646 TimeBaseObj_tp_init
, /* tp_init */
1647 TimeBaseObj_tp_alloc
, /* tp_alloc */
1648 TimeBaseObj_tp_new
, /* tp_new */
1649 TimeBaseObj_tp_free
, /* tp_free */
1652 /* -------------------- End object type TimeBase -------------------- */
1655 /* ---------------------- Object type UserData ---------------------- */
1657 PyTypeObject UserData_Type
;
1659 #define UserDataObj_Check(x) ((x)->ob_type == &UserData_Type || PyObject_TypeCheck((x), &UserData_Type))
1661 typedef struct UserDataObject
{
1666 PyObject
*UserDataObj_New(UserData itself
)
1669 if (itself
== NULL
) {
1670 PyErr_SetString(Qt_Error
,"Cannot create null UserData");
1673 it
= PyObject_NEW(UserDataObject
, &UserData_Type
);
1674 if (it
== NULL
) return NULL
;
1675 it
->ob_itself
= itself
;
1676 return (PyObject
*)it
;
1678 int UserDataObj_Convert(PyObject
*v
, UserData
*p_itself
)
1680 if (!UserDataObj_Check(v
))
1682 PyErr_SetString(PyExc_TypeError
, "UserData required");
1685 *p_itself
= ((UserDataObject
*)v
)->ob_itself
;
1689 static void UserDataObj_dealloc(UserDataObject
*self
)
1691 DisposeUserData(self
->ob_itself
);
1692 self
->ob_type
->tp_free((PyObject
*)self
);
1695 static PyObject
*UserDataObj_GetUserData(UserDataObject
*_self
, PyObject
*_args
)
1697 PyObject
*_res
= NULL
;
1703 PyMac_PRECHECK(GetUserData
);
1705 if (!PyArg_ParseTuple(_args
, "O&O&l",
1706 ResObj_Convert
, &data
,
1707 PyMac_GetOSType
, &udType
,
1710 _err
= GetUserData(_self
->ob_itself
,
1714 if (_err
!= noErr
) return PyMac_Error(_err
);
1720 static PyObject
*UserDataObj_AddUserData(UserDataObject
*_self
, PyObject
*_args
)
1722 PyObject
*_res
= NULL
;
1727 PyMac_PRECHECK(AddUserData
);
1729 if (!PyArg_ParseTuple(_args
, "O&O&",
1730 ResObj_Convert
, &data
,
1731 PyMac_GetOSType
, &udType
))
1733 _err
= AddUserData(_self
->ob_itself
,
1736 if (_err
!= noErr
) return PyMac_Error(_err
);
1742 static PyObject
*UserDataObj_RemoveUserData(UserDataObject
*_self
, PyObject
*_args
)
1744 PyObject
*_res
= NULL
;
1748 #ifndef RemoveUserData
1749 PyMac_PRECHECK(RemoveUserData
);
1751 if (!PyArg_ParseTuple(_args
, "O&l",
1752 PyMac_GetOSType
, &udType
,
1755 _err
= RemoveUserData(_self
->ob_itself
,
1758 if (_err
!= noErr
) return PyMac_Error(_err
);
1764 static PyObject
*UserDataObj_CountUserDataType(UserDataObject
*_self
, PyObject
*_args
)
1766 PyObject
*_res
= NULL
;
1769 #ifndef CountUserDataType
1770 PyMac_PRECHECK(CountUserDataType
);
1772 if (!PyArg_ParseTuple(_args
, "O&",
1773 PyMac_GetOSType
, &udType
))
1775 _rv
= CountUserDataType(_self
->ob_itself
,
1777 _res
= Py_BuildValue("h",
1782 static PyObject
*UserDataObj_GetNextUserDataType(UserDataObject
*_self
, PyObject
*_args
)
1784 PyObject
*_res
= NULL
;
1787 #ifndef GetNextUserDataType
1788 PyMac_PRECHECK(GetNextUserDataType
);
1790 if (!PyArg_ParseTuple(_args
, "O&",
1791 PyMac_GetOSType
, &udType
))
1793 _rv
= GetNextUserDataType(_self
->ob_itself
,
1795 _res
= Py_BuildValue("l",
1800 static PyObject
*UserDataObj_AddUserDataText(UserDataObject
*_self
, PyObject
*_args
)
1802 PyObject
*_res
= NULL
;
1808 #ifndef AddUserDataText
1809 PyMac_PRECHECK(AddUserDataText
);
1811 if (!PyArg_ParseTuple(_args
, "O&O&lh",
1812 ResObj_Convert
, &data
,
1813 PyMac_GetOSType
, &udType
,
1817 _err
= AddUserDataText(_self
->ob_itself
,
1822 if (_err
!= noErr
) return PyMac_Error(_err
);
1828 static PyObject
*UserDataObj_GetUserDataText(UserDataObject
*_self
, PyObject
*_args
)
1830 PyObject
*_res
= NULL
;
1836 #ifndef GetUserDataText
1837 PyMac_PRECHECK(GetUserDataText
);
1839 if (!PyArg_ParseTuple(_args
, "O&O&lh",
1840 ResObj_Convert
, &data
,
1841 PyMac_GetOSType
, &udType
,
1845 _err
= GetUserDataText(_self
->ob_itself
,
1850 if (_err
!= noErr
) return PyMac_Error(_err
);
1856 static PyObject
*UserDataObj_RemoveUserDataText(UserDataObject
*_self
, PyObject
*_args
)
1858 PyObject
*_res
= NULL
;
1863 #ifndef RemoveUserDataText
1864 PyMac_PRECHECK(RemoveUserDataText
);
1866 if (!PyArg_ParseTuple(_args
, "O&lh",
1867 PyMac_GetOSType
, &udType
,
1871 _err
= RemoveUserDataText(_self
->ob_itself
,
1875 if (_err
!= noErr
) return PyMac_Error(_err
);
1881 static PyObject
*UserDataObj_PutUserDataIntoHandle(UserDataObject
*_self
, PyObject
*_args
)
1883 PyObject
*_res
= NULL
;
1886 #ifndef PutUserDataIntoHandle
1887 PyMac_PRECHECK(PutUserDataIntoHandle
);
1889 if (!PyArg_ParseTuple(_args
, "O&",
1890 ResObj_Convert
, &h
))
1892 _err
= PutUserDataIntoHandle(_self
->ob_itself
,
1894 if (_err
!= noErr
) return PyMac_Error(_err
);
1900 static PyMethodDef UserDataObj_methods
[] = {
1901 {"GetUserData", (PyCFunction
)UserDataObj_GetUserData
, 1,
1902 PyDoc_STR("(Handle data, OSType udType, long index) -> None")},
1903 {"AddUserData", (PyCFunction
)UserDataObj_AddUserData
, 1,
1904 PyDoc_STR("(Handle data, OSType udType) -> None")},
1905 {"RemoveUserData", (PyCFunction
)UserDataObj_RemoveUserData
, 1,
1906 PyDoc_STR("(OSType udType, long index) -> None")},
1907 {"CountUserDataType", (PyCFunction
)UserDataObj_CountUserDataType
, 1,
1908 PyDoc_STR("(OSType udType) -> (short _rv)")},
1909 {"GetNextUserDataType", (PyCFunction
)UserDataObj_GetNextUserDataType
, 1,
1910 PyDoc_STR("(OSType udType) -> (long _rv)")},
1911 {"AddUserDataText", (PyCFunction
)UserDataObj_AddUserDataText
, 1,
1912 PyDoc_STR("(Handle data, OSType udType, long index, short itlRegionTag) -> None")},
1913 {"GetUserDataText", (PyCFunction
)UserDataObj_GetUserDataText
, 1,
1914 PyDoc_STR("(Handle data, OSType udType, long index, short itlRegionTag) -> None")},
1915 {"RemoveUserDataText", (PyCFunction
)UserDataObj_RemoveUserDataText
, 1,
1916 PyDoc_STR("(OSType udType, long index, short itlRegionTag) -> None")},
1917 {"PutUserDataIntoHandle", (PyCFunction
)UserDataObj_PutUserDataIntoHandle
, 1,
1918 PyDoc_STR("(Handle h) -> None")},
1922 #define UserDataObj_getsetlist NULL
1925 #define UserDataObj_compare NULL
1927 #define UserDataObj_repr NULL
1929 #define UserDataObj_hash NULL
1930 #define UserDataObj_tp_init 0
1932 #define UserDataObj_tp_alloc PyType_GenericAlloc
1934 static PyObject
*UserDataObj_tp_new(PyTypeObject
*type
, PyObject
*args
, PyObject
*kwds
)
1938 char *kw
[] = {"itself", 0};
1940 if (!PyArg_ParseTupleAndKeywords(args
, kwds
, "O&", kw
, UserDataObj_Convert
, &itself
)) return NULL
;
1941 if ((self
= type
->tp_alloc(type
, 0)) == NULL
) return NULL
;
1942 ((UserDataObject
*)self
)->ob_itself
= itself
;
1946 #define UserDataObj_tp_free PyObject_Del
1949 PyTypeObject UserData_Type
= {
1950 PyObject_HEAD_INIT(NULL
)
1952 "_Qt.UserData", /*tp_name*/
1953 sizeof(UserDataObject
), /*tp_basicsize*/
1956 (destructor
) UserDataObj_dealloc
, /*tp_dealloc*/
1958 (getattrfunc
)0, /*tp_getattr*/
1959 (setattrfunc
)0, /*tp_setattr*/
1960 (cmpfunc
) UserDataObj_compare
, /*tp_compare*/
1961 (reprfunc
) UserDataObj_repr
, /*tp_repr*/
1962 (PyNumberMethods
*)0, /* tp_as_number */
1963 (PySequenceMethods
*)0, /* tp_as_sequence */
1964 (PyMappingMethods
*)0, /* tp_as_mapping */
1965 (hashfunc
) UserDataObj_hash
, /*tp_hash*/
1968 PyObject_GenericGetAttr
, /*tp_getattro*/
1969 PyObject_GenericSetAttr
, /*tp_setattro */
1971 Py_TPFLAGS_DEFAULT
|Py_TPFLAGS_BASETYPE
, /* tp_flags */
1975 0, /*tp_richcompare*/
1976 0, /*tp_weaklistoffset*/
1979 UserDataObj_methods
, /* tp_methods */
1981 UserDataObj_getsetlist
, /*tp_getset*/
1986 0, /*tp_dictoffset*/
1987 UserDataObj_tp_init
, /* tp_init */
1988 UserDataObj_tp_alloc
, /* tp_alloc */
1989 UserDataObj_tp_new
, /* tp_new */
1990 UserDataObj_tp_free
, /* tp_free */
1993 /* -------------------- End object type UserData -------------------- */
1996 /* ----------------------- Object type Media ------------------------ */
1998 PyTypeObject Media_Type
;
2000 #define MediaObj_Check(x) ((x)->ob_type == &Media_Type || PyObject_TypeCheck((x), &Media_Type))
2002 typedef struct MediaObject
{
2007 PyObject
*MediaObj_New(Media itself
)
2010 if (itself
== NULL
) {
2011 PyErr_SetString(Qt_Error
,"Cannot create null Media");
2014 it
= PyObject_NEW(MediaObject
, &Media_Type
);
2015 if (it
== NULL
) return NULL
;
2016 it
->ob_itself
= itself
;
2017 return (PyObject
*)it
;
2019 int MediaObj_Convert(PyObject
*v
, Media
*p_itself
)
2021 if (!MediaObj_Check(v
))
2023 PyErr_SetString(PyExc_TypeError
, "Media required");
2026 *p_itself
= ((MediaObject
*)v
)->ob_itself
;
2030 static void MediaObj_dealloc(MediaObject
*self
)
2032 DisposeTrackMedia(self
->ob_itself
);
2033 self
->ob_type
->tp_free((PyObject
*)self
);
2036 static PyObject
*MediaObj_LoadMediaIntoRam(MediaObject
*_self
, PyObject
*_args
)
2038 PyObject
*_res
= NULL
;
2043 #ifndef LoadMediaIntoRam
2044 PyMac_PRECHECK(LoadMediaIntoRam
);
2046 if (!PyArg_ParseTuple(_args
, "lll",
2051 _err
= LoadMediaIntoRam(_self
->ob_itself
,
2055 if (_err
!= noErr
) return PyMac_Error(_err
);
2061 static PyObject
*MediaObj_GetMediaTrack(MediaObject
*_self
, PyObject
*_args
)
2063 PyObject
*_res
= NULL
;
2065 #ifndef GetMediaTrack
2066 PyMac_PRECHECK(GetMediaTrack
);
2068 if (!PyArg_ParseTuple(_args
, ""))
2070 _rv
= GetMediaTrack(_self
->ob_itself
);
2071 _res
= Py_BuildValue("O&",
2076 static PyObject
*MediaObj_GetMediaCreationTime(MediaObject
*_self
, PyObject
*_args
)
2078 PyObject
*_res
= NULL
;
2080 #ifndef GetMediaCreationTime
2081 PyMac_PRECHECK(GetMediaCreationTime
);
2083 if (!PyArg_ParseTuple(_args
, ""))
2085 _rv
= GetMediaCreationTime(_self
->ob_itself
);
2086 _res
= Py_BuildValue("l",
2091 static PyObject
*MediaObj_GetMediaModificationTime(MediaObject
*_self
, PyObject
*_args
)
2093 PyObject
*_res
= NULL
;
2095 #ifndef GetMediaModificationTime
2096 PyMac_PRECHECK(GetMediaModificationTime
);
2098 if (!PyArg_ParseTuple(_args
, ""))
2100 _rv
= GetMediaModificationTime(_self
->ob_itself
);
2101 _res
= Py_BuildValue("l",
2106 static PyObject
*MediaObj_GetMediaTimeScale(MediaObject
*_self
, PyObject
*_args
)
2108 PyObject
*_res
= NULL
;
2110 #ifndef GetMediaTimeScale
2111 PyMac_PRECHECK(GetMediaTimeScale
);
2113 if (!PyArg_ParseTuple(_args
, ""))
2115 _rv
= GetMediaTimeScale(_self
->ob_itself
);
2116 _res
= Py_BuildValue("l",
2121 static PyObject
*MediaObj_SetMediaTimeScale(MediaObject
*_self
, PyObject
*_args
)
2123 PyObject
*_res
= NULL
;
2124 TimeScale timeScale
;
2125 #ifndef SetMediaTimeScale
2126 PyMac_PRECHECK(SetMediaTimeScale
);
2128 if (!PyArg_ParseTuple(_args
, "l",
2131 SetMediaTimeScale(_self
->ob_itself
,
2138 static PyObject
*MediaObj_GetMediaDuration(MediaObject
*_self
, PyObject
*_args
)
2140 PyObject
*_res
= NULL
;
2142 #ifndef GetMediaDuration
2143 PyMac_PRECHECK(GetMediaDuration
);
2145 if (!PyArg_ParseTuple(_args
, ""))
2147 _rv
= GetMediaDuration(_self
->ob_itself
);
2148 _res
= Py_BuildValue("l",
2153 static PyObject
*MediaObj_GetMediaLanguage(MediaObject
*_self
, PyObject
*_args
)
2155 PyObject
*_res
= NULL
;
2157 #ifndef GetMediaLanguage
2158 PyMac_PRECHECK(GetMediaLanguage
);
2160 if (!PyArg_ParseTuple(_args
, ""))
2162 _rv
= GetMediaLanguage(_self
->ob_itself
);
2163 _res
= Py_BuildValue("h",
2168 static PyObject
*MediaObj_SetMediaLanguage(MediaObject
*_self
, PyObject
*_args
)
2170 PyObject
*_res
= NULL
;
2172 #ifndef SetMediaLanguage
2173 PyMac_PRECHECK(SetMediaLanguage
);
2175 if (!PyArg_ParseTuple(_args
, "h",
2178 SetMediaLanguage(_self
->ob_itself
,
2185 static PyObject
*MediaObj_GetMediaQuality(MediaObject
*_self
, PyObject
*_args
)
2187 PyObject
*_res
= NULL
;
2189 #ifndef GetMediaQuality
2190 PyMac_PRECHECK(GetMediaQuality
);
2192 if (!PyArg_ParseTuple(_args
, ""))
2194 _rv
= GetMediaQuality(_self
->ob_itself
);
2195 _res
= Py_BuildValue("h",
2200 static PyObject
*MediaObj_SetMediaQuality(MediaObject
*_self
, PyObject
*_args
)
2202 PyObject
*_res
= NULL
;
2204 #ifndef SetMediaQuality
2205 PyMac_PRECHECK(SetMediaQuality
);
2207 if (!PyArg_ParseTuple(_args
, "h",
2210 SetMediaQuality(_self
->ob_itself
,
2217 static PyObject
*MediaObj_GetMediaHandlerDescription(MediaObject
*_self
, PyObject
*_args
)
2219 PyObject
*_res
= NULL
;
2222 OSType creatorManufacturer
;
2223 #ifndef GetMediaHandlerDescription
2224 PyMac_PRECHECK(GetMediaHandlerDescription
);
2226 if (!PyArg_ParseTuple(_args
, "O&",
2227 PyMac_GetStr255
, creatorName
))
2229 GetMediaHandlerDescription(_self
->ob_itself
,
2232 &creatorManufacturer
);
2233 _res
= Py_BuildValue("O&O&",
2234 PyMac_BuildOSType
, mediaType
,
2235 PyMac_BuildOSType
, creatorManufacturer
);
2239 static PyObject
*MediaObj_GetMediaUserData(MediaObject
*_self
, PyObject
*_args
)
2241 PyObject
*_res
= NULL
;
2243 #ifndef GetMediaUserData
2244 PyMac_PRECHECK(GetMediaUserData
);
2246 if (!PyArg_ParseTuple(_args
, ""))
2248 _rv
= GetMediaUserData(_self
->ob_itself
);
2249 _res
= Py_BuildValue("O&",
2250 UserDataObj_New
, _rv
);
2254 static PyObject
*MediaObj_GetMediaHandler(MediaObject
*_self
, PyObject
*_args
)
2256 PyObject
*_res
= NULL
;
2258 #ifndef GetMediaHandler
2259 PyMac_PRECHECK(GetMediaHandler
);
2261 if (!PyArg_ParseTuple(_args
, ""))
2263 _rv
= GetMediaHandler(_self
->ob_itself
);
2264 _res
= Py_BuildValue("O&",
2265 CmpInstObj_New
, _rv
);
2269 static PyObject
*MediaObj_SetMediaHandler(MediaObject
*_self
, PyObject
*_args
)
2271 PyObject
*_res
= NULL
;
2273 MediaHandlerComponent mH
;
2274 #ifndef SetMediaHandler
2275 PyMac_PRECHECK(SetMediaHandler
);
2277 if (!PyArg_ParseTuple(_args
, "O&",
2278 CmpObj_Convert
, &mH
))
2280 _err
= SetMediaHandler(_self
->ob_itself
,
2282 if (_err
!= noErr
) return PyMac_Error(_err
);
2288 static PyObject
*MediaObj_BeginMediaEdits(MediaObject
*_self
, PyObject
*_args
)
2290 PyObject
*_res
= NULL
;
2292 #ifndef BeginMediaEdits
2293 PyMac_PRECHECK(BeginMediaEdits
);
2295 if (!PyArg_ParseTuple(_args
, ""))
2297 _err
= BeginMediaEdits(_self
->ob_itself
);
2298 if (_err
!= noErr
) return PyMac_Error(_err
);
2304 static PyObject
*MediaObj_EndMediaEdits(MediaObject
*_self
, PyObject
*_args
)
2306 PyObject
*_res
= NULL
;
2308 #ifndef EndMediaEdits
2309 PyMac_PRECHECK(EndMediaEdits
);
2311 if (!PyArg_ParseTuple(_args
, ""))
2313 _err
= EndMediaEdits(_self
->ob_itself
);
2314 if (_err
!= noErr
) return PyMac_Error(_err
);
2320 static PyObject
*MediaObj_SetMediaDefaultDataRefIndex(MediaObject
*_self
, PyObject
*_args
)
2322 PyObject
*_res
= NULL
;
2325 #ifndef SetMediaDefaultDataRefIndex
2326 PyMac_PRECHECK(SetMediaDefaultDataRefIndex
);
2328 if (!PyArg_ParseTuple(_args
, "h",
2331 _err
= SetMediaDefaultDataRefIndex(_self
->ob_itself
,
2333 if (_err
!= noErr
) return PyMac_Error(_err
);
2339 static PyObject
*MediaObj_GetMediaDataHandlerDescription(MediaObject
*_self
, PyObject
*_args
)
2341 PyObject
*_res
= NULL
;
2345 OSType creatorManufacturer
;
2346 #ifndef GetMediaDataHandlerDescription
2347 PyMac_PRECHECK(GetMediaDataHandlerDescription
);
2349 if (!PyArg_ParseTuple(_args
, "hO&",
2351 PyMac_GetStr255
, creatorName
))
2353 GetMediaDataHandlerDescription(_self
->ob_itself
,
2357 &creatorManufacturer
);
2358 _res
= Py_BuildValue("O&O&",
2359 PyMac_BuildOSType
, dhType
,
2360 PyMac_BuildOSType
, creatorManufacturer
);
2364 static PyObject
*MediaObj_GetMediaDataHandler(MediaObject
*_self
, PyObject
*_args
)
2366 PyObject
*_res
= NULL
;
2369 #ifndef GetMediaDataHandler
2370 PyMac_PRECHECK(GetMediaDataHandler
);
2372 if (!PyArg_ParseTuple(_args
, "h",
2375 _rv
= GetMediaDataHandler(_self
->ob_itself
,
2377 _res
= Py_BuildValue("O&",
2378 CmpInstObj_New
, _rv
);
2382 static PyObject
*MediaObj_SetMediaDataHandler(MediaObject
*_self
, PyObject
*_args
)
2384 PyObject
*_res
= NULL
;
2387 DataHandlerComponent dataHandler
;
2388 #ifndef SetMediaDataHandler
2389 PyMac_PRECHECK(SetMediaDataHandler
);
2391 if (!PyArg_ParseTuple(_args
, "hO&",
2393 CmpObj_Convert
, &dataHandler
))
2395 _err
= SetMediaDataHandler(_self
->ob_itself
,
2398 if (_err
!= noErr
) return PyMac_Error(_err
);
2404 static PyObject
*MediaObj_GetMediaSampleDescriptionCount(MediaObject
*_self
, PyObject
*_args
)
2406 PyObject
*_res
= NULL
;
2408 #ifndef GetMediaSampleDescriptionCount
2409 PyMac_PRECHECK(GetMediaSampleDescriptionCount
);
2411 if (!PyArg_ParseTuple(_args
, ""))
2413 _rv
= GetMediaSampleDescriptionCount(_self
->ob_itself
);
2414 _res
= Py_BuildValue("l",
2419 static PyObject
*MediaObj_GetMediaSampleDescription(MediaObject
*_self
, PyObject
*_args
)
2421 PyObject
*_res
= NULL
;
2423 SampleDescriptionHandle descH
;
2424 #ifndef GetMediaSampleDescription
2425 PyMac_PRECHECK(GetMediaSampleDescription
);
2427 if (!PyArg_ParseTuple(_args
, "lO&",
2429 ResObj_Convert
, &descH
))
2431 GetMediaSampleDescription(_self
->ob_itself
,
2439 static PyObject
*MediaObj_SetMediaSampleDescription(MediaObject
*_self
, PyObject
*_args
)
2441 PyObject
*_res
= NULL
;
2444 SampleDescriptionHandle descH
;
2445 #ifndef SetMediaSampleDescription
2446 PyMac_PRECHECK(SetMediaSampleDescription
);
2448 if (!PyArg_ParseTuple(_args
, "lO&",
2450 ResObj_Convert
, &descH
))
2452 _err
= SetMediaSampleDescription(_self
->ob_itself
,
2455 if (_err
!= noErr
) return PyMac_Error(_err
);
2461 static PyObject
*MediaObj_GetMediaSampleCount(MediaObject
*_self
, PyObject
*_args
)
2463 PyObject
*_res
= NULL
;
2465 #ifndef GetMediaSampleCount
2466 PyMac_PRECHECK(GetMediaSampleCount
);
2468 if (!PyArg_ParseTuple(_args
, ""))
2470 _rv
= GetMediaSampleCount(_self
->ob_itself
);
2471 _res
= Py_BuildValue("l",
2476 static PyObject
*MediaObj_GetMediaSyncSampleCount(MediaObject
*_self
, PyObject
*_args
)
2478 PyObject
*_res
= NULL
;
2480 #ifndef GetMediaSyncSampleCount
2481 PyMac_PRECHECK(GetMediaSyncSampleCount
);
2483 if (!PyArg_ParseTuple(_args
, ""))
2485 _rv
= GetMediaSyncSampleCount(_self
->ob_itself
);
2486 _res
= Py_BuildValue("l",
2491 static PyObject
*MediaObj_SampleNumToMediaTime(MediaObject
*_self
, PyObject
*_args
)
2493 PyObject
*_res
= NULL
;
2494 long logicalSampleNum
;
2495 TimeValue sampleTime
;
2496 TimeValue sampleDuration
;
2497 #ifndef SampleNumToMediaTime
2498 PyMac_PRECHECK(SampleNumToMediaTime
);
2500 if (!PyArg_ParseTuple(_args
, "l",
2503 SampleNumToMediaTime(_self
->ob_itself
,
2507 _res
= Py_BuildValue("ll",
2513 static PyObject
*MediaObj_MediaTimeToSampleNum(MediaObject
*_self
, PyObject
*_args
)
2515 PyObject
*_res
= NULL
;
2518 TimeValue sampleTime
;
2519 TimeValue sampleDuration
;
2520 #ifndef MediaTimeToSampleNum
2521 PyMac_PRECHECK(MediaTimeToSampleNum
);
2523 if (!PyArg_ParseTuple(_args
, "l",
2526 MediaTimeToSampleNum(_self
->ob_itself
,
2531 _res
= Py_BuildValue("lll",
2538 static PyObject
*MediaObj_AddMediaSample(MediaObject
*_self
, PyObject
*_args
)
2540 PyObject
*_res
= NULL
;
2545 TimeValue durationPerSample
;
2546 SampleDescriptionHandle sampleDescriptionH
;
2547 long numberOfSamples
;
2549 TimeValue sampleTime
;
2550 #ifndef AddMediaSample
2551 PyMac_PRECHECK(AddMediaSample
);
2553 if (!PyArg_ParseTuple(_args
, "O&lllO&lh",
2554 ResObj_Convert
, &dataIn
,
2558 ResObj_Convert
, &sampleDescriptionH
,
2562 _err
= AddMediaSample(_self
->ob_itself
,
2571 if (_err
!= noErr
) return PyMac_Error(_err
);
2572 _res
= Py_BuildValue("l",
2577 static PyObject
*MediaObj_AddMediaSampleReference(MediaObject
*_self
, PyObject
*_args
)
2579 PyObject
*_res
= NULL
;
2583 TimeValue durationPerSample
;
2584 SampleDescriptionHandle sampleDescriptionH
;
2585 long numberOfSamples
;
2587 TimeValue sampleTime
;
2588 #ifndef AddMediaSampleReference
2589 PyMac_PRECHECK(AddMediaSampleReference
);
2591 if (!PyArg_ParseTuple(_args
, "lllO&lh",
2595 ResObj_Convert
, &sampleDescriptionH
,
2599 _err
= AddMediaSampleReference(_self
->ob_itself
,
2607 if (_err
!= noErr
) return PyMac_Error(_err
);
2608 _res
= Py_BuildValue("l",
2613 static PyObject
*MediaObj_GetMediaSample(MediaObject
*_self
, PyObject
*_args
)
2615 PyObject
*_res
= NULL
;
2621 TimeValue sampleTime
;
2622 TimeValue durationPerSample
;
2623 SampleDescriptionHandle sampleDescriptionH
;
2624 long sampleDescriptionIndex
;
2625 long maxNumberOfSamples
;
2626 long numberOfSamples
;
2628 #ifndef GetMediaSample
2629 PyMac_PRECHECK(GetMediaSample
);
2631 if (!PyArg_ParseTuple(_args
, "O&llO&l",
2632 ResObj_Convert
, &dataOut
,
2635 ResObj_Convert
, &sampleDescriptionH
,
2636 &maxNumberOfSamples
))
2638 _err
= GetMediaSample(_self
->ob_itself
,
2646 &sampleDescriptionIndex
,
2650 if (_err
!= noErr
) return PyMac_Error(_err
);
2651 _res
= Py_BuildValue("lllllh",
2655 sampleDescriptionIndex
,
2661 static PyObject
*MediaObj_GetMediaSampleReference(MediaObject
*_self
, PyObject
*_args
)
2663 PyObject
*_res
= NULL
;
2668 TimeValue sampleTime
;
2669 TimeValue durationPerSample
;
2670 SampleDescriptionHandle sampleDescriptionH
;
2671 long sampleDescriptionIndex
;
2672 long maxNumberOfSamples
;
2673 long numberOfSamples
;
2675 #ifndef GetMediaSampleReference
2676 PyMac_PRECHECK(GetMediaSampleReference
);
2678 if (!PyArg_ParseTuple(_args
, "lO&l",
2680 ResObj_Convert
, &sampleDescriptionH
,
2681 &maxNumberOfSamples
))
2683 _err
= GetMediaSampleReference(_self
->ob_itself
,
2690 &sampleDescriptionIndex
,
2694 if (_err
!= noErr
) return PyMac_Error(_err
);
2695 _res
= Py_BuildValue("llllllh",
2700 sampleDescriptionIndex
,
2706 static PyObject
*MediaObj_SetMediaPreferredChunkSize(MediaObject
*_self
, PyObject
*_args
)
2708 PyObject
*_res
= NULL
;
2711 #ifndef SetMediaPreferredChunkSize
2712 PyMac_PRECHECK(SetMediaPreferredChunkSize
);
2714 if (!PyArg_ParseTuple(_args
, "l",
2717 _err
= SetMediaPreferredChunkSize(_self
->ob_itself
,
2719 if (_err
!= noErr
) return PyMac_Error(_err
);
2725 static PyObject
*MediaObj_GetMediaPreferredChunkSize(MediaObject
*_self
, PyObject
*_args
)
2727 PyObject
*_res
= NULL
;
2730 #ifndef GetMediaPreferredChunkSize
2731 PyMac_PRECHECK(GetMediaPreferredChunkSize
);
2733 if (!PyArg_ParseTuple(_args
, ""))
2735 _err
= GetMediaPreferredChunkSize(_self
->ob_itself
,
2737 if (_err
!= noErr
) return PyMac_Error(_err
);
2738 _res
= Py_BuildValue("l",
2743 static PyObject
*MediaObj_SetMediaShadowSync(MediaObject
*_self
, PyObject
*_args
)
2745 PyObject
*_res
= NULL
;
2747 long frameDiffSampleNum
;
2749 #ifndef SetMediaShadowSync
2750 PyMac_PRECHECK(SetMediaShadowSync
);
2752 if (!PyArg_ParseTuple(_args
, "ll",
2753 &frameDiffSampleNum
,
2756 _err
= SetMediaShadowSync(_self
->ob_itself
,
2759 if (_err
!= noErr
) return PyMac_Error(_err
);
2765 static PyObject
*MediaObj_GetMediaShadowSync(MediaObject
*_self
, PyObject
*_args
)
2767 PyObject
*_res
= NULL
;
2769 long frameDiffSampleNum
;
2771 #ifndef GetMediaShadowSync
2772 PyMac_PRECHECK(GetMediaShadowSync
);
2774 if (!PyArg_ParseTuple(_args
, "l",
2775 &frameDiffSampleNum
))
2777 _err
= GetMediaShadowSync(_self
->ob_itself
,
2780 if (_err
!= noErr
) return PyMac_Error(_err
);
2781 _res
= Py_BuildValue("l",
2786 static PyObject
*MediaObj_GetMediaDataSize(MediaObject
*_self
, PyObject
*_args
)
2788 PyObject
*_res
= NULL
;
2790 TimeValue startTime
;
2792 #ifndef GetMediaDataSize
2793 PyMac_PRECHECK(GetMediaDataSize
);
2795 if (!PyArg_ParseTuple(_args
, "ll",
2799 _rv
= GetMediaDataSize(_self
->ob_itself
,
2802 _res
= Py_BuildValue("l",
2807 static PyObject
*MediaObj_GetMediaDataSize64(MediaObject
*_self
, PyObject
*_args
)
2809 PyObject
*_res
= NULL
;
2811 TimeValue startTime
;
2814 #ifndef GetMediaDataSize64
2815 PyMac_PRECHECK(GetMediaDataSize64
);
2817 if (!PyArg_ParseTuple(_args
, "ll",
2821 _err
= GetMediaDataSize64(_self
->ob_itself
,
2825 if (_err
!= noErr
) return PyMac_Error(_err
);
2826 _res
= Py_BuildValue("O&",
2827 PyMac_Buildwide
, dataSize
);
2831 static PyObject
*MediaObj_GetMediaNextInterestingTime(MediaObject
*_self
, PyObject
*_args
)
2833 PyObject
*_res
= NULL
;
2834 short interestingTimeFlags
;
2837 TimeValue interestingTime
;
2838 TimeValue interestingDuration
;
2839 #ifndef GetMediaNextInterestingTime
2840 PyMac_PRECHECK(GetMediaNextInterestingTime
);
2842 if (!PyArg_ParseTuple(_args
, "hlO&",
2843 &interestingTimeFlags
,
2845 PyMac_GetFixed
, &rate
))
2847 GetMediaNextInterestingTime(_self
->ob_itself
,
2848 interestingTimeFlags
,
2852 &interestingDuration
);
2853 _res
= Py_BuildValue("ll",
2855 interestingDuration
);
2859 static PyObject
*MediaObj_GetMediaDataRef(MediaObject
*_self
, PyObject
*_args
)
2861 PyObject
*_res
= NULL
;
2866 long dataRefAttributes
;
2867 #ifndef GetMediaDataRef
2868 PyMac_PRECHECK(GetMediaDataRef
);
2870 if (!PyArg_ParseTuple(_args
, "h",
2873 _err
= GetMediaDataRef(_self
->ob_itself
,
2877 &dataRefAttributes
);
2878 if (_err
!= noErr
) return PyMac_Error(_err
);
2879 _res
= Py_BuildValue("O&O&l",
2880 ResObj_New
, dataRef
,
2881 PyMac_BuildOSType
, dataRefType
,
2886 static PyObject
*MediaObj_SetMediaDataRef(MediaObject
*_self
, PyObject
*_args
)
2888 PyObject
*_res
= NULL
;
2893 #ifndef SetMediaDataRef
2894 PyMac_PRECHECK(SetMediaDataRef
);
2896 if (!PyArg_ParseTuple(_args
, "hO&O&",
2898 ResObj_Convert
, &dataRef
,
2899 PyMac_GetOSType
, &dataRefType
))
2901 _err
= SetMediaDataRef(_self
->ob_itself
,
2905 if (_err
!= noErr
) return PyMac_Error(_err
);
2911 static PyObject
*MediaObj_SetMediaDataRefAttributes(MediaObject
*_self
, PyObject
*_args
)
2913 PyObject
*_res
= NULL
;
2916 long dataRefAttributes
;
2917 #ifndef SetMediaDataRefAttributes
2918 PyMac_PRECHECK(SetMediaDataRefAttributes
);
2920 if (!PyArg_ParseTuple(_args
, "hl",
2922 &dataRefAttributes
))
2924 _err
= SetMediaDataRefAttributes(_self
->ob_itself
,
2927 if (_err
!= noErr
) return PyMac_Error(_err
);
2933 static PyObject
*MediaObj_AddMediaDataRef(MediaObject
*_self
, PyObject
*_args
)
2935 PyObject
*_res
= NULL
;
2940 #ifndef AddMediaDataRef
2941 PyMac_PRECHECK(AddMediaDataRef
);
2943 if (!PyArg_ParseTuple(_args
, "O&O&",
2944 ResObj_Convert
, &dataRef
,
2945 PyMac_GetOSType
, &dataRefType
))
2947 _err
= AddMediaDataRef(_self
->ob_itself
,
2951 if (_err
!= noErr
) return PyMac_Error(_err
);
2952 _res
= Py_BuildValue("h",
2957 static PyObject
*MediaObj_GetMediaDataRefCount(MediaObject
*_self
, PyObject
*_args
)
2959 PyObject
*_res
= NULL
;
2962 #ifndef GetMediaDataRefCount
2963 PyMac_PRECHECK(GetMediaDataRefCount
);
2965 if (!PyArg_ParseTuple(_args
, ""))
2967 _err
= GetMediaDataRefCount(_self
->ob_itself
,
2969 if (_err
!= noErr
) return PyMac_Error(_err
);
2970 _res
= Py_BuildValue("h",
2975 static PyObject
*MediaObj_SetMediaPlayHints(MediaObject
*_self
, PyObject
*_args
)
2977 PyObject
*_res
= NULL
;
2980 #ifndef SetMediaPlayHints
2981 PyMac_PRECHECK(SetMediaPlayHints
);
2983 if (!PyArg_ParseTuple(_args
, "ll",
2987 SetMediaPlayHints(_self
->ob_itself
,
2995 static PyObject
*MediaObj_GetMediaPlayHints(MediaObject
*_self
, PyObject
*_args
)
2997 PyObject
*_res
= NULL
;
2999 #ifndef GetMediaPlayHints
3000 PyMac_PRECHECK(GetMediaPlayHints
);
3002 if (!PyArg_ParseTuple(_args
, ""))
3004 GetMediaPlayHints(_self
->ob_itself
,
3006 _res
= Py_BuildValue("l",
3011 static PyObject
*MediaObj_GetMediaNextInterestingTimeOnly(MediaObject
*_self
, PyObject
*_args
)
3013 PyObject
*_res
= NULL
;
3014 short interestingTimeFlags
;
3017 TimeValue interestingTime
;
3018 #ifndef GetMediaNextInterestingTimeOnly
3019 PyMac_PRECHECK(GetMediaNextInterestingTimeOnly
);
3021 if (!PyArg_ParseTuple(_args
, "hlO&",
3022 &interestingTimeFlags
,
3024 PyMac_GetFixed
, &rate
))
3026 GetMediaNextInterestingTimeOnly(_self
->ob_itself
,
3027 interestingTimeFlags
,
3031 _res
= Py_BuildValue("l",
3036 static PyMethodDef MediaObj_methods
[] = {
3037 {"LoadMediaIntoRam", (PyCFunction
)MediaObj_LoadMediaIntoRam
, 1,
3038 PyDoc_STR("(TimeValue time, TimeValue duration, long flags) -> None")},
3039 {"GetMediaTrack", (PyCFunction
)MediaObj_GetMediaTrack
, 1,
3040 PyDoc_STR("() -> (Track _rv)")},
3041 {"GetMediaCreationTime", (PyCFunction
)MediaObj_GetMediaCreationTime
, 1,
3042 PyDoc_STR("() -> (unsigned long _rv)")},
3043 {"GetMediaModificationTime", (PyCFunction
)MediaObj_GetMediaModificationTime
, 1,
3044 PyDoc_STR("() -> (unsigned long _rv)")},
3045 {"GetMediaTimeScale", (PyCFunction
)MediaObj_GetMediaTimeScale
, 1,
3046 PyDoc_STR("() -> (TimeScale _rv)")},
3047 {"SetMediaTimeScale", (PyCFunction
)MediaObj_SetMediaTimeScale
, 1,
3048 PyDoc_STR("(TimeScale timeScale) -> None")},
3049 {"GetMediaDuration", (PyCFunction
)MediaObj_GetMediaDuration
, 1,
3050 PyDoc_STR("() -> (TimeValue _rv)")},
3051 {"GetMediaLanguage", (PyCFunction
)MediaObj_GetMediaLanguage
, 1,
3052 PyDoc_STR("() -> (short _rv)")},
3053 {"SetMediaLanguage", (PyCFunction
)MediaObj_SetMediaLanguage
, 1,
3054 PyDoc_STR("(short language) -> None")},
3055 {"GetMediaQuality", (PyCFunction
)MediaObj_GetMediaQuality
, 1,
3056 PyDoc_STR("() -> (short _rv)")},
3057 {"SetMediaQuality", (PyCFunction
)MediaObj_SetMediaQuality
, 1,
3058 PyDoc_STR("(short quality) -> None")},
3059 {"GetMediaHandlerDescription", (PyCFunction
)MediaObj_GetMediaHandlerDescription
, 1,
3060 PyDoc_STR("(Str255 creatorName) -> (OSType mediaType, OSType creatorManufacturer)")},
3061 {"GetMediaUserData", (PyCFunction
)MediaObj_GetMediaUserData
, 1,
3062 PyDoc_STR("() -> (UserData _rv)")},
3063 {"GetMediaHandler", (PyCFunction
)MediaObj_GetMediaHandler
, 1,
3064 PyDoc_STR("() -> (MediaHandler _rv)")},
3065 {"SetMediaHandler", (PyCFunction
)MediaObj_SetMediaHandler
, 1,
3066 PyDoc_STR("(MediaHandlerComponent mH) -> None")},
3067 {"BeginMediaEdits", (PyCFunction
)MediaObj_BeginMediaEdits
, 1,
3068 PyDoc_STR("() -> None")},
3069 {"EndMediaEdits", (PyCFunction
)MediaObj_EndMediaEdits
, 1,
3070 PyDoc_STR("() -> None")},
3071 {"SetMediaDefaultDataRefIndex", (PyCFunction
)MediaObj_SetMediaDefaultDataRefIndex
, 1,
3072 PyDoc_STR("(short index) -> None")},
3073 {"GetMediaDataHandlerDescription", (PyCFunction
)MediaObj_GetMediaDataHandlerDescription
, 1,
3074 PyDoc_STR("(short index, Str255 creatorName) -> (OSType dhType, OSType creatorManufacturer)")},
3075 {"GetMediaDataHandler", (PyCFunction
)MediaObj_GetMediaDataHandler
, 1,
3076 PyDoc_STR("(short index) -> (DataHandler _rv)")},
3077 {"SetMediaDataHandler", (PyCFunction
)MediaObj_SetMediaDataHandler
, 1,
3078 PyDoc_STR("(short index, DataHandlerComponent dataHandler) -> None")},
3079 {"GetMediaSampleDescriptionCount", (PyCFunction
)MediaObj_GetMediaSampleDescriptionCount
, 1,
3080 PyDoc_STR("() -> (long _rv)")},
3081 {"GetMediaSampleDescription", (PyCFunction
)MediaObj_GetMediaSampleDescription
, 1,
3082 PyDoc_STR("(long index, SampleDescriptionHandle descH) -> None")},
3083 {"SetMediaSampleDescription", (PyCFunction
)MediaObj_SetMediaSampleDescription
, 1,
3084 PyDoc_STR("(long index, SampleDescriptionHandle descH) -> None")},
3085 {"GetMediaSampleCount", (PyCFunction
)MediaObj_GetMediaSampleCount
, 1,
3086 PyDoc_STR("() -> (long _rv)")},
3087 {"GetMediaSyncSampleCount", (PyCFunction
)MediaObj_GetMediaSyncSampleCount
, 1,
3088 PyDoc_STR("() -> (long _rv)")},
3089 {"SampleNumToMediaTime", (PyCFunction
)MediaObj_SampleNumToMediaTime
, 1,
3090 PyDoc_STR("(long logicalSampleNum) -> (TimeValue sampleTime, TimeValue sampleDuration)")},
3091 {"MediaTimeToSampleNum", (PyCFunction
)MediaObj_MediaTimeToSampleNum
, 1,
3092 PyDoc_STR("(TimeValue time) -> (long sampleNum, TimeValue sampleTime, TimeValue sampleDuration)")},
3093 {"AddMediaSample", (PyCFunction
)MediaObj_AddMediaSample
, 1,
3094 PyDoc_STR("(Handle dataIn, long inOffset, unsigned long size, TimeValue durationPerSample, SampleDescriptionHandle sampleDescriptionH, long numberOfSamples, short sampleFlags) -> (TimeValue sampleTime)")},
3095 {"AddMediaSampleReference", (PyCFunction
)MediaObj_AddMediaSampleReference
, 1,
3096 PyDoc_STR("(long dataOffset, unsigned long size, TimeValue durationPerSample, SampleDescriptionHandle sampleDescriptionH, long numberOfSamples, short sampleFlags) -> (TimeValue sampleTime)")},
3097 {"GetMediaSample", (PyCFunction
)MediaObj_GetMediaSample
, 1,
3098 PyDoc_STR("(Handle dataOut, long maxSizeToGrow, TimeValue time, SampleDescriptionHandle sampleDescriptionH, long maxNumberOfSamples) -> (long size, TimeValue sampleTime, TimeValue durationPerSample, long sampleDescriptionIndex, long numberOfSamples, short sampleFlags)")},
3099 {"GetMediaSampleReference", (PyCFunction
)MediaObj_GetMediaSampleReference
, 1,
3100 PyDoc_STR("(TimeValue time, SampleDescriptionHandle sampleDescriptionH, long maxNumberOfSamples) -> (long dataOffset, long size, TimeValue sampleTime, TimeValue durationPerSample, long sampleDescriptionIndex, long numberOfSamples, short sampleFlags)")},
3101 {"SetMediaPreferredChunkSize", (PyCFunction
)MediaObj_SetMediaPreferredChunkSize
, 1,
3102 PyDoc_STR("(long maxChunkSize) -> None")},
3103 {"GetMediaPreferredChunkSize", (PyCFunction
)MediaObj_GetMediaPreferredChunkSize
, 1,
3104 PyDoc_STR("() -> (long maxChunkSize)")},
3105 {"SetMediaShadowSync", (PyCFunction
)MediaObj_SetMediaShadowSync
, 1,
3106 PyDoc_STR("(long frameDiffSampleNum, long syncSampleNum) -> None")},
3107 {"GetMediaShadowSync", (PyCFunction
)MediaObj_GetMediaShadowSync
, 1,
3108 PyDoc_STR("(long frameDiffSampleNum) -> (long syncSampleNum)")},
3109 {"GetMediaDataSize", (PyCFunction
)MediaObj_GetMediaDataSize
, 1,
3110 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (long _rv)")},
3111 {"GetMediaDataSize64", (PyCFunction
)MediaObj_GetMediaDataSize64
, 1,
3112 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (wide dataSize)")},
3113 {"GetMediaNextInterestingTime", (PyCFunction
)MediaObj_GetMediaNextInterestingTime
, 1,
3114 PyDoc_STR("(short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration)")},
3115 {"GetMediaDataRef", (PyCFunction
)MediaObj_GetMediaDataRef
, 1,
3116 PyDoc_STR("(short index) -> (Handle dataRef, OSType dataRefType, long dataRefAttributes)")},
3117 {"SetMediaDataRef", (PyCFunction
)MediaObj_SetMediaDataRef
, 1,
3118 PyDoc_STR("(short index, Handle dataRef, OSType dataRefType) -> None")},
3119 {"SetMediaDataRefAttributes", (PyCFunction
)MediaObj_SetMediaDataRefAttributes
, 1,
3120 PyDoc_STR("(short index, long dataRefAttributes) -> None")},
3121 {"AddMediaDataRef", (PyCFunction
)MediaObj_AddMediaDataRef
, 1,
3122 PyDoc_STR("(Handle dataRef, OSType dataRefType) -> (short index)")},
3123 {"GetMediaDataRefCount", (PyCFunction
)MediaObj_GetMediaDataRefCount
, 1,
3124 PyDoc_STR("() -> (short count)")},
3125 {"SetMediaPlayHints", (PyCFunction
)MediaObj_SetMediaPlayHints
, 1,
3126 PyDoc_STR("(long flags, long flagsMask) -> None")},
3127 {"GetMediaPlayHints", (PyCFunction
)MediaObj_GetMediaPlayHints
, 1,
3128 PyDoc_STR("() -> (long flags)")},
3129 {"GetMediaNextInterestingTimeOnly", (PyCFunction
)MediaObj_GetMediaNextInterestingTimeOnly
, 1,
3130 PyDoc_STR("(short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime)")},
3134 #define MediaObj_getsetlist NULL
3137 #define MediaObj_compare NULL
3139 #define MediaObj_repr NULL
3141 #define MediaObj_hash NULL
3142 #define MediaObj_tp_init 0
3144 #define MediaObj_tp_alloc PyType_GenericAlloc
3146 static PyObject
*MediaObj_tp_new(PyTypeObject
*type
, PyObject
*args
, PyObject
*kwds
)
3150 char *kw
[] = {"itself", 0};
3152 if (!PyArg_ParseTupleAndKeywords(args
, kwds
, "O&", kw
, MediaObj_Convert
, &itself
)) return NULL
;
3153 if ((self
= type
->tp_alloc(type
, 0)) == NULL
) return NULL
;
3154 ((MediaObject
*)self
)->ob_itself
= itself
;
3158 #define MediaObj_tp_free PyObject_Del
3161 PyTypeObject Media_Type
= {
3162 PyObject_HEAD_INIT(NULL
)
3164 "_Qt.Media", /*tp_name*/
3165 sizeof(MediaObject
), /*tp_basicsize*/
3168 (destructor
) MediaObj_dealloc
, /*tp_dealloc*/
3170 (getattrfunc
)0, /*tp_getattr*/
3171 (setattrfunc
)0, /*tp_setattr*/
3172 (cmpfunc
) MediaObj_compare
, /*tp_compare*/
3173 (reprfunc
) MediaObj_repr
, /*tp_repr*/
3174 (PyNumberMethods
*)0, /* tp_as_number */
3175 (PySequenceMethods
*)0, /* tp_as_sequence */
3176 (PyMappingMethods
*)0, /* tp_as_mapping */
3177 (hashfunc
) MediaObj_hash
, /*tp_hash*/
3180 PyObject_GenericGetAttr
, /*tp_getattro*/
3181 PyObject_GenericSetAttr
, /*tp_setattro */
3183 Py_TPFLAGS_DEFAULT
|Py_TPFLAGS_BASETYPE
, /* tp_flags */
3187 0, /*tp_richcompare*/
3188 0, /*tp_weaklistoffset*/
3191 MediaObj_methods
, /* tp_methods */
3193 MediaObj_getsetlist
, /*tp_getset*/
3198 0, /*tp_dictoffset*/
3199 MediaObj_tp_init
, /* tp_init */
3200 MediaObj_tp_alloc
, /* tp_alloc */
3201 MediaObj_tp_new
, /* tp_new */
3202 MediaObj_tp_free
, /* tp_free */
3205 /* --------------------- End object type Media ---------------------- */
3208 /* ----------------------- Object type Track ------------------------ */
3210 PyTypeObject Track_Type
;
3212 #define TrackObj_Check(x) ((x)->ob_type == &Track_Type || PyObject_TypeCheck((x), &Track_Type))
3214 typedef struct TrackObject
{
3219 PyObject
*TrackObj_New(Track itself
)
3222 if (itself
== NULL
) {
3223 PyErr_SetString(Qt_Error
,"Cannot create null Track");
3226 it
= PyObject_NEW(TrackObject
, &Track_Type
);
3227 if (it
== NULL
) return NULL
;
3228 it
->ob_itself
= itself
;
3229 return (PyObject
*)it
;
3231 int TrackObj_Convert(PyObject
*v
, Track
*p_itself
)
3233 if (!TrackObj_Check(v
))
3235 PyErr_SetString(PyExc_TypeError
, "Track required");
3238 *p_itself
= ((TrackObject
*)v
)->ob_itself
;
3242 static void TrackObj_dealloc(TrackObject
*self
)
3244 DisposeMovieTrack(self
->ob_itself
);
3245 self
->ob_type
->tp_free((PyObject
*)self
);
3248 static PyObject
*TrackObj_LoadTrackIntoRam(TrackObject
*_self
, PyObject
*_args
)
3250 PyObject
*_res
= NULL
;
3255 #ifndef LoadTrackIntoRam
3256 PyMac_PRECHECK(LoadTrackIntoRam
);
3258 if (!PyArg_ParseTuple(_args
, "lll",
3263 _err
= LoadTrackIntoRam(_self
->ob_itself
,
3267 if (_err
!= noErr
) return PyMac_Error(_err
);
3273 static PyObject
*TrackObj_GetTrackPict(TrackObject
*_self
, PyObject
*_args
)
3275 PyObject
*_res
= NULL
;
3278 #ifndef GetTrackPict
3279 PyMac_PRECHECK(GetTrackPict
);
3281 if (!PyArg_ParseTuple(_args
, "l",
3284 _rv
= GetTrackPict(_self
->ob_itself
,
3286 _res
= Py_BuildValue("O&",
3291 static PyObject
*TrackObj_GetTrackClipRgn(TrackObject
*_self
, PyObject
*_args
)
3293 PyObject
*_res
= NULL
;
3295 #ifndef GetTrackClipRgn
3296 PyMac_PRECHECK(GetTrackClipRgn
);
3298 if (!PyArg_ParseTuple(_args
, ""))
3300 _rv
= GetTrackClipRgn(_self
->ob_itself
);
3301 _res
= Py_BuildValue("O&",
3306 static PyObject
*TrackObj_SetTrackClipRgn(TrackObject
*_self
, PyObject
*_args
)
3308 PyObject
*_res
= NULL
;
3310 #ifndef SetTrackClipRgn
3311 PyMac_PRECHECK(SetTrackClipRgn
);
3313 if (!PyArg_ParseTuple(_args
, "O&",
3314 ResObj_Convert
, &theClip
))
3316 SetTrackClipRgn(_self
->ob_itself
,
3323 static PyObject
*TrackObj_GetTrackDisplayBoundsRgn(TrackObject
*_self
, PyObject
*_args
)
3325 PyObject
*_res
= NULL
;
3327 #ifndef GetTrackDisplayBoundsRgn
3328 PyMac_PRECHECK(GetTrackDisplayBoundsRgn
);
3330 if (!PyArg_ParseTuple(_args
, ""))
3332 _rv
= GetTrackDisplayBoundsRgn(_self
->ob_itself
);
3333 _res
= Py_BuildValue("O&",
3338 static PyObject
*TrackObj_GetTrackMovieBoundsRgn(TrackObject
*_self
, PyObject
*_args
)
3340 PyObject
*_res
= NULL
;
3342 #ifndef GetTrackMovieBoundsRgn
3343 PyMac_PRECHECK(GetTrackMovieBoundsRgn
);
3345 if (!PyArg_ParseTuple(_args
, ""))
3347 _rv
= GetTrackMovieBoundsRgn(_self
->ob_itself
);
3348 _res
= Py_BuildValue("O&",
3353 static PyObject
*TrackObj_GetTrackBoundsRgn(TrackObject
*_self
, PyObject
*_args
)
3355 PyObject
*_res
= NULL
;
3357 #ifndef GetTrackBoundsRgn
3358 PyMac_PRECHECK(GetTrackBoundsRgn
);
3360 if (!PyArg_ParseTuple(_args
, ""))
3362 _rv
= GetTrackBoundsRgn(_self
->ob_itself
);
3363 _res
= Py_BuildValue("O&",
3368 static PyObject
*TrackObj_GetTrackMatte(TrackObject
*_self
, PyObject
*_args
)
3370 PyObject
*_res
= NULL
;
3372 #ifndef GetTrackMatte
3373 PyMac_PRECHECK(GetTrackMatte
);
3375 if (!PyArg_ParseTuple(_args
, ""))
3377 _rv
= GetTrackMatte(_self
->ob_itself
);
3378 _res
= Py_BuildValue("O&",
3383 static PyObject
*TrackObj_SetTrackMatte(TrackObject
*_self
, PyObject
*_args
)
3385 PyObject
*_res
= NULL
;
3386 PixMapHandle theMatte
;
3387 #ifndef SetTrackMatte
3388 PyMac_PRECHECK(SetTrackMatte
);
3390 if (!PyArg_ParseTuple(_args
, "O&",
3391 ResObj_Convert
, &theMatte
))
3393 SetTrackMatte(_self
->ob_itself
,
3400 static PyObject
*TrackObj_GetTrackID(TrackObject
*_self
, PyObject
*_args
)
3402 PyObject
*_res
= NULL
;
3405 PyMac_PRECHECK(GetTrackID
);
3407 if (!PyArg_ParseTuple(_args
, ""))
3409 _rv
= GetTrackID(_self
->ob_itself
);
3410 _res
= Py_BuildValue("l",
3415 static PyObject
*TrackObj_GetTrackMovie(TrackObject
*_self
, PyObject
*_args
)
3417 PyObject
*_res
= NULL
;
3419 #ifndef GetTrackMovie
3420 PyMac_PRECHECK(GetTrackMovie
);
3422 if (!PyArg_ParseTuple(_args
, ""))
3424 _rv
= GetTrackMovie(_self
->ob_itself
);
3425 _res
= Py_BuildValue("O&",
3430 static PyObject
*TrackObj_GetTrackCreationTime(TrackObject
*_self
, PyObject
*_args
)
3432 PyObject
*_res
= NULL
;
3434 #ifndef GetTrackCreationTime
3435 PyMac_PRECHECK(GetTrackCreationTime
);
3437 if (!PyArg_ParseTuple(_args
, ""))
3439 _rv
= GetTrackCreationTime(_self
->ob_itself
);
3440 _res
= Py_BuildValue("l",
3445 static PyObject
*TrackObj_GetTrackModificationTime(TrackObject
*_self
, PyObject
*_args
)
3447 PyObject
*_res
= NULL
;
3449 #ifndef GetTrackModificationTime
3450 PyMac_PRECHECK(GetTrackModificationTime
);
3452 if (!PyArg_ParseTuple(_args
, ""))
3454 _rv
= GetTrackModificationTime(_self
->ob_itself
);
3455 _res
= Py_BuildValue("l",
3460 static PyObject
*TrackObj_GetTrackEnabled(TrackObject
*_self
, PyObject
*_args
)
3462 PyObject
*_res
= NULL
;
3464 #ifndef GetTrackEnabled
3465 PyMac_PRECHECK(GetTrackEnabled
);
3467 if (!PyArg_ParseTuple(_args
, ""))
3469 _rv
= GetTrackEnabled(_self
->ob_itself
);
3470 _res
= Py_BuildValue("b",
3475 static PyObject
*TrackObj_SetTrackEnabled(TrackObject
*_self
, PyObject
*_args
)
3477 PyObject
*_res
= NULL
;
3479 #ifndef SetTrackEnabled
3480 PyMac_PRECHECK(SetTrackEnabled
);
3482 if (!PyArg_ParseTuple(_args
, "b",
3485 SetTrackEnabled(_self
->ob_itself
,
3492 static PyObject
*TrackObj_GetTrackUsage(TrackObject
*_self
, PyObject
*_args
)
3494 PyObject
*_res
= NULL
;
3496 #ifndef GetTrackUsage
3497 PyMac_PRECHECK(GetTrackUsage
);
3499 if (!PyArg_ParseTuple(_args
, ""))
3501 _rv
= GetTrackUsage(_self
->ob_itself
);
3502 _res
= Py_BuildValue("l",
3507 static PyObject
*TrackObj_SetTrackUsage(TrackObject
*_self
, PyObject
*_args
)
3509 PyObject
*_res
= NULL
;
3511 #ifndef SetTrackUsage
3512 PyMac_PRECHECK(SetTrackUsage
);
3514 if (!PyArg_ParseTuple(_args
, "l",
3517 SetTrackUsage(_self
->ob_itself
,
3524 static PyObject
*TrackObj_GetTrackDuration(TrackObject
*_self
, PyObject
*_args
)
3526 PyObject
*_res
= NULL
;
3528 #ifndef GetTrackDuration
3529 PyMac_PRECHECK(GetTrackDuration
);
3531 if (!PyArg_ParseTuple(_args
, ""))
3533 _rv
= GetTrackDuration(_self
->ob_itself
);
3534 _res
= Py_BuildValue("l",
3539 static PyObject
*TrackObj_GetTrackOffset(TrackObject
*_self
, PyObject
*_args
)
3541 PyObject
*_res
= NULL
;
3543 #ifndef GetTrackOffset
3544 PyMac_PRECHECK(GetTrackOffset
);
3546 if (!PyArg_ParseTuple(_args
, ""))
3548 _rv
= GetTrackOffset(_self
->ob_itself
);
3549 _res
= Py_BuildValue("l",
3554 static PyObject
*TrackObj_SetTrackOffset(TrackObject
*_self
, PyObject
*_args
)
3556 PyObject
*_res
= NULL
;
3557 TimeValue movieOffsetTime
;
3558 #ifndef SetTrackOffset
3559 PyMac_PRECHECK(SetTrackOffset
);
3561 if (!PyArg_ParseTuple(_args
, "l",
3564 SetTrackOffset(_self
->ob_itself
,
3571 static PyObject
*TrackObj_GetTrackLayer(TrackObject
*_self
, PyObject
*_args
)
3573 PyObject
*_res
= NULL
;
3575 #ifndef GetTrackLayer
3576 PyMac_PRECHECK(GetTrackLayer
);
3578 if (!PyArg_ParseTuple(_args
, ""))
3580 _rv
= GetTrackLayer(_self
->ob_itself
);
3581 _res
= Py_BuildValue("h",
3586 static PyObject
*TrackObj_SetTrackLayer(TrackObject
*_self
, PyObject
*_args
)
3588 PyObject
*_res
= NULL
;
3590 #ifndef SetTrackLayer
3591 PyMac_PRECHECK(SetTrackLayer
);
3593 if (!PyArg_ParseTuple(_args
, "h",
3596 SetTrackLayer(_self
->ob_itself
,
3603 static PyObject
*TrackObj_GetTrackAlternate(TrackObject
*_self
, PyObject
*_args
)
3605 PyObject
*_res
= NULL
;
3607 #ifndef GetTrackAlternate
3608 PyMac_PRECHECK(GetTrackAlternate
);
3610 if (!PyArg_ParseTuple(_args
, ""))
3612 _rv
= GetTrackAlternate(_self
->ob_itself
);
3613 _res
= Py_BuildValue("O&",
3618 static PyObject
*TrackObj_SetTrackAlternate(TrackObject
*_self
, PyObject
*_args
)
3620 PyObject
*_res
= NULL
;
3622 #ifndef SetTrackAlternate
3623 PyMac_PRECHECK(SetTrackAlternate
);
3625 if (!PyArg_ParseTuple(_args
, "O&",
3626 TrackObj_Convert
, &alternateT
))
3628 SetTrackAlternate(_self
->ob_itself
,
3635 static PyObject
*TrackObj_GetTrackVolume(TrackObject
*_self
, PyObject
*_args
)
3637 PyObject
*_res
= NULL
;
3639 #ifndef GetTrackVolume
3640 PyMac_PRECHECK(GetTrackVolume
);
3642 if (!PyArg_ParseTuple(_args
, ""))
3644 _rv
= GetTrackVolume(_self
->ob_itself
);
3645 _res
= Py_BuildValue("h",
3650 static PyObject
*TrackObj_SetTrackVolume(TrackObject
*_self
, PyObject
*_args
)
3652 PyObject
*_res
= NULL
;
3654 #ifndef SetTrackVolume
3655 PyMac_PRECHECK(SetTrackVolume
);
3657 if (!PyArg_ParseTuple(_args
, "h",
3660 SetTrackVolume(_self
->ob_itself
,
3667 static PyObject
*TrackObj_GetTrackDimensions(TrackObject
*_self
, PyObject
*_args
)
3669 PyObject
*_res
= NULL
;
3672 #ifndef GetTrackDimensions
3673 PyMac_PRECHECK(GetTrackDimensions
);
3675 if (!PyArg_ParseTuple(_args
, ""))
3677 GetTrackDimensions(_self
->ob_itself
,
3680 _res
= Py_BuildValue("O&O&",
3681 PyMac_BuildFixed
, width
,
3682 PyMac_BuildFixed
, height
);
3686 static PyObject
*TrackObj_SetTrackDimensions(TrackObject
*_self
, PyObject
*_args
)
3688 PyObject
*_res
= NULL
;
3691 #ifndef SetTrackDimensions
3692 PyMac_PRECHECK(SetTrackDimensions
);
3694 if (!PyArg_ParseTuple(_args
, "O&O&",
3695 PyMac_GetFixed
, &width
,
3696 PyMac_GetFixed
, &height
))
3698 SetTrackDimensions(_self
->ob_itself
,
3706 static PyObject
*TrackObj_GetTrackUserData(TrackObject
*_self
, PyObject
*_args
)
3708 PyObject
*_res
= NULL
;
3710 #ifndef GetTrackUserData
3711 PyMac_PRECHECK(GetTrackUserData
);
3713 if (!PyArg_ParseTuple(_args
, ""))
3715 _rv
= GetTrackUserData(_self
->ob_itself
);
3716 _res
= Py_BuildValue("O&",
3717 UserDataObj_New
, _rv
);
3721 static PyObject
*TrackObj_GetTrackSoundLocalizationSettings(TrackObject
*_self
, PyObject
*_args
)
3723 PyObject
*_res
= NULL
;
3726 #ifndef GetTrackSoundLocalizationSettings
3727 PyMac_PRECHECK(GetTrackSoundLocalizationSettings
);
3729 if (!PyArg_ParseTuple(_args
, ""))
3731 _err
= GetTrackSoundLocalizationSettings(_self
->ob_itself
,
3733 if (_err
!= noErr
) return PyMac_Error(_err
);
3734 _res
= Py_BuildValue("O&",
3735 ResObj_New
, settings
);
3739 static PyObject
*TrackObj_SetTrackSoundLocalizationSettings(TrackObject
*_self
, PyObject
*_args
)
3741 PyObject
*_res
= NULL
;
3744 #ifndef SetTrackSoundLocalizationSettings
3745 PyMac_PRECHECK(SetTrackSoundLocalizationSettings
);
3747 if (!PyArg_ParseTuple(_args
, "O&",
3748 ResObj_Convert
, &settings
))
3750 _err
= SetTrackSoundLocalizationSettings(_self
->ob_itself
,
3752 if (_err
!= noErr
) return PyMac_Error(_err
);
3758 static PyObject
*TrackObj_NewTrackMedia(TrackObject
*_self
, PyObject
*_args
)
3760 PyObject
*_res
= NULL
;
3763 TimeScale timeScale
;
3766 #ifndef NewTrackMedia
3767 PyMac_PRECHECK(NewTrackMedia
);
3769 if (!PyArg_ParseTuple(_args
, "O&lO&O&",
3770 PyMac_GetOSType
, &mediaType
,
3772 ResObj_Convert
, &dataRef
,
3773 PyMac_GetOSType
, &dataRefType
))
3775 _rv
= NewTrackMedia(_self
->ob_itself
,
3780 _res
= Py_BuildValue("O&",
3785 static PyObject
*TrackObj_GetTrackMedia(TrackObject
*_self
, PyObject
*_args
)
3787 PyObject
*_res
= NULL
;
3789 #ifndef GetTrackMedia
3790 PyMac_PRECHECK(GetTrackMedia
);
3792 if (!PyArg_ParseTuple(_args
, ""))
3794 _rv
= GetTrackMedia(_self
->ob_itself
);
3795 _res
= Py_BuildValue("O&",
3800 static PyObject
*TrackObj_InsertMediaIntoTrack(TrackObject
*_self
, PyObject
*_args
)
3802 PyObject
*_res
= NULL
;
3804 TimeValue trackStart
;
3805 TimeValue mediaTime
;
3806 TimeValue mediaDuration
;
3808 #ifndef InsertMediaIntoTrack
3809 PyMac_PRECHECK(InsertMediaIntoTrack
);
3811 if (!PyArg_ParseTuple(_args
, "lllO&",
3815 PyMac_GetFixed
, &mediaRate
))
3817 _err
= InsertMediaIntoTrack(_self
->ob_itself
,
3822 if (_err
!= noErr
) return PyMac_Error(_err
);
3828 static PyObject
*TrackObj_InsertTrackSegment(TrackObject
*_self
, PyObject
*_args
)
3830 PyObject
*_res
= NULL
;
3834 TimeValue srcDuration
;
3836 #ifndef InsertTrackSegment
3837 PyMac_PRECHECK(InsertTrackSegment
);
3839 if (!PyArg_ParseTuple(_args
, "O&lll",
3840 TrackObj_Convert
, &dstTrack
,
3845 _err
= InsertTrackSegment(_self
->ob_itself
,
3850 if (_err
!= noErr
) return PyMac_Error(_err
);
3856 static PyObject
*TrackObj_InsertEmptyTrackSegment(TrackObject
*_self
, PyObject
*_args
)
3858 PyObject
*_res
= NULL
;
3861 TimeValue dstDuration
;
3862 #ifndef InsertEmptyTrackSegment
3863 PyMac_PRECHECK(InsertEmptyTrackSegment
);
3865 if (!PyArg_ParseTuple(_args
, "ll",
3869 _err
= InsertEmptyTrackSegment(_self
->ob_itself
,
3872 if (_err
!= noErr
) return PyMac_Error(_err
);
3878 static PyObject
*TrackObj_DeleteTrackSegment(TrackObject
*_self
, PyObject
*_args
)
3880 PyObject
*_res
= NULL
;
3882 TimeValue startTime
;
3884 #ifndef DeleteTrackSegment
3885 PyMac_PRECHECK(DeleteTrackSegment
);
3887 if (!PyArg_ParseTuple(_args
, "ll",
3891 _err
= DeleteTrackSegment(_self
->ob_itself
,
3894 if (_err
!= noErr
) return PyMac_Error(_err
);
3900 static PyObject
*TrackObj_ScaleTrackSegment(TrackObject
*_self
, PyObject
*_args
)
3902 PyObject
*_res
= NULL
;
3904 TimeValue startTime
;
3905 TimeValue oldDuration
;
3906 TimeValue newDuration
;
3907 #ifndef ScaleTrackSegment
3908 PyMac_PRECHECK(ScaleTrackSegment
);
3910 if (!PyArg_ParseTuple(_args
, "lll",
3915 _err
= ScaleTrackSegment(_self
->ob_itself
,
3919 if (_err
!= noErr
) return PyMac_Error(_err
);
3925 static PyObject
*TrackObj_IsScrapMovie(TrackObject
*_self
, PyObject
*_args
)
3927 PyObject
*_res
= NULL
;
3929 #ifndef IsScrapMovie
3930 PyMac_PRECHECK(IsScrapMovie
);
3932 if (!PyArg_ParseTuple(_args
, ""))
3934 _rv
= IsScrapMovie(_self
->ob_itself
);
3935 _res
= Py_BuildValue("O&",
3940 static PyObject
*TrackObj_CopyTrackSettings(TrackObject
*_self
, PyObject
*_args
)
3942 PyObject
*_res
= NULL
;
3945 #ifndef CopyTrackSettings
3946 PyMac_PRECHECK(CopyTrackSettings
);
3948 if (!PyArg_ParseTuple(_args
, "O&",
3949 TrackObj_Convert
, &dstTrack
))
3951 _err
= CopyTrackSettings(_self
->ob_itself
,
3953 if (_err
!= noErr
) return PyMac_Error(_err
);
3959 static PyObject
*TrackObj_AddEmptyTrackToMovie(TrackObject
*_self
, PyObject
*_args
)
3961 PyObject
*_res
= NULL
;
3967 #ifndef AddEmptyTrackToMovie
3968 PyMac_PRECHECK(AddEmptyTrackToMovie
);
3970 if (!PyArg_ParseTuple(_args
, "O&O&O&",
3971 MovieObj_Convert
, &dstMovie
,
3972 ResObj_Convert
, &dataRef
,
3973 PyMac_GetOSType
, &dataRefType
))
3975 _err
= AddEmptyTrackToMovie(_self
->ob_itself
,
3980 if (_err
!= noErr
) return PyMac_Error(_err
);
3981 _res
= Py_BuildValue("O&",
3982 TrackObj_New
, dstTrack
);
3986 static PyObject
*TrackObj_AddClonedTrackToMovie(TrackObject
*_self
, PyObject
*_args
)
3988 PyObject
*_res
= NULL
;
3993 #ifndef AddClonedTrackToMovie
3994 PyMac_PRECHECK(AddClonedTrackToMovie
);
3996 if (!PyArg_ParseTuple(_args
, "O&l",
3997 MovieObj_Convert
, &dstMovie
,
4000 _err
= AddClonedTrackToMovie(_self
->ob_itself
,
4004 if (_err
!= noErr
) return PyMac_Error(_err
);
4005 _res
= Py_BuildValue("O&",
4006 TrackObj_New
, dstTrack
);
4010 static PyObject
*TrackObj_AddTrackReference(TrackObject
*_self
, PyObject
*_args
)
4012 PyObject
*_res
= NULL
;
4017 #ifndef AddTrackReference
4018 PyMac_PRECHECK(AddTrackReference
);
4020 if (!PyArg_ParseTuple(_args
, "O&O&",
4021 TrackObj_Convert
, &refTrack
,
4022 PyMac_GetOSType
, &refType
))
4024 _err
= AddTrackReference(_self
->ob_itself
,
4028 if (_err
!= noErr
) return PyMac_Error(_err
);
4029 _res
= Py_BuildValue("l",
4034 static PyObject
*TrackObj_DeleteTrackReference(TrackObject
*_self
, PyObject
*_args
)
4036 PyObject
*_res
= NULL
;
4040 #ifndef DeleteTrackReference
4041 PyMac_PRECHECK(DeleteTrackReference
);
4043 if (!PyArg_ParseTuple(_args
, "O&l",
4044 PyMac_GetOSType
, &refType
,
4047 _err
= DeleteTrackReference(_self
->ob_itself
,
4050 if (_err
!= noErr
) return PyMac_Error(_err
);
4056 static PyObject
*TrackObj_SetTrackReference(TrackObject
*_self
, PyObject
*_args
)
4058 PyObject
*_res
= NULL
;
4063 #ifndef SetTrackReference
4064 PyMac_PRECHECK(SetTrackReference
);
4066 if (!PyArg_ParseTuple(_args
, "O&O&l",
4067 TrackObj_Convert
, &refTrack
,
4068 PyMac_GetOSType
, &refType
,
4071 _err
= SetTrackReference(_self
->ob_itself
,
4075 if (_err
!= noErr
) return PyMac_Error(_err
);
4081 static PyObject
*TrackObj_GetTrackReference(TrackObject
*_self
, PyObject
*_args
)
4083 PyObject
*_res
= NULL
;
4087 #ifndef GetTrackReference
4088 PyMac_PRECHECK(GetTrackReference
);
4090 if (!PyArg_ParseTuple(_args
, "O&l",
4091 PyMac_GetOSType
, &refType
,
4094 _rv
= GetTrackReference(_self
->ob_itself
,
4097 _res
= Py_BuildValue("O&",
4102 static PyObject
*TrackObj_GetNextTrackReferenceType(TrackObject
*_self
, PyObject
*_args
)
4104 PyObject
*_res
= NULL
;
4107 #ifndef GetNextTrackReferenceType
4108 PyMac_PRECHECK(GetNextTrackReferenceType
);
4110 if (!PyArg_ParseTuple(_args
, "O&",
4111 PyMac_GetOSType
, &refType
))
4113 _rv
= GetNextTrackReferenceType(_self
->ob_itself
,
4115 _res
= Py_BuildValue("O&",
4116 PyMac_BuildOSType
, _rv
);
4120 static PyObject
*TrackObj_GetTrackReferenceCount(TrackObject
*_self
, PyObject
*_args
)
4122 PyObject
*_res
= NULL
;
4125 #ifndef GetTrackReferenceCount
4126 PyMac_PRECHECK(GetTrackReferenceCount
);
4128 if (!PyArg_ParseTuple(_args
, "O&",
4129 PyMac_GetOSType
, &refType
))
4131 _rv
= GetTrackReferenceCount(_self
->ob_itself
,
4133 _res
= Py_BuildValue("l",
4138 static PyObject
*TrackObj_GetTrackEditRate(TrackObject
*_self
, PyObject
*_args
)
4140 PyObject
*_res
= NULL
;
4143 #ifndef GetTrackEditRate
4144 PyMac_PRECHECK(GetTrackEditRate
);
4146 if (!PyArg_ParseTuple(_args
, "l",
4149 _rv
= GetTrackEditRate(_self
->ob_itself
,
4151 _res
= Py_BuildValue("O&",
4152 PyMac_BuildFixed
, _rv
);
4156 static PyObject
*TrackObj_GetTrackDataSize(TrackObject
*_self
, PyObject
*_args
)
4158 PyObject
*_res
= NULL
;
4160 TimeValue startTime
;
4162 #ifndef GetTrackDataSize
4163 PyMac_PRECHECK(GetTrackDataSize
);
4165 if (!PyArg_ParseTuple(_args
, "ll",
4169 _rv
= GetTrackDataSize(_self
->ob_itself
,
4172 _res
= Py_BuildValue("l",
4177 static PyObject
*TrackObj_GetTrackDataSize64(TrackObject
*_self
, PyObject
*_args
)
4179 PyObject
*_res
= NULL
;
4181 TimeValue startTime
;
4184 #ifndef GetTrackDataSize64
4185 PyMac_PRECHECK(GetTrackDataSize64
);
4187 if (!PyArg_ParseTuple(_args
, "ll",
4191 _err
= GetTrackDataSize64(_self
->ob_itself
,
4195 if (_err
!= noErr
) return PyMac_Error(_err
);
4196 _res
= Py_BuildValue("O&",
4197 PyMac_Buildwide
, dataSize
);
4201 static PyObject
*TrackObj_PtInTrack(TrackObject
*_self
, PyObject
*_args
)
4203 PyObject
*_res
= NULL
;
4207 PyMac_PRECHECK(PtInTrack
);
4209 if (!PyArg_ParseTuple(_args
, "O&",
4210 PyMac_GetPoint
, &pt
))
4212 _rv
= PtInTrack(_self
->ob_itself
,
4214 _res
= Py_BuildValue("b",
4219 static PyObject
*TrackObj_GetTrackNextInterestingTime(TrackObject
*_self
, PyObject
*_args
)
4221 PyObject
*_res
= NULL
;
4222 short interestingTimeFlags
;
4225 TimeValue interestingTime
;
4226 TimeValue interestingDuration
;
4227 #ifndef GetTrackNextInterestingTime
4228 PyMac_PRECHECK(GetTrackNextInterestingTime
);
4230 if (!PyArg_ParseTuple(_args
, "hlO&",
4231 &interestingTimeFlags
,
4233 PyMac_GetFixed
, &rate
))
4235 GetTrackNextInterestingTime(_self
->ob_itself
,
4236 interestingTimeFlags
,
4240 &interestingDuration
);
4241 _res
= Py_BuildValue("ll",
4243 interestingDuration
);
4247 static PyObject
*TrackObj_GetTrackSegmentDisplayBoundsRgn(TrackObject
*_self
, PyObject
*_args
)
4249 PyObject
*_res
= NULL
;
4253 #ifndef GetTrackSegmentDisplayBoundsRgn
4254 PyMac_PRECHECK(GetTrackSegmentDisplayBoundsRgn
);
4256 if (!PyArg_ParseTuple(_args
, "ll",
4260 _rv
= GetTrackSegmentDisplayBoundsRgn(_self
->ob_itself
,
4263 _res
= Py_BuildValue("O&",
4268 static PyObject
*TrackObj_GetTrackStatus(TrackObject
*_self
, PyObject
*_args
)
4270 PyObject
*_res
= NULL
;
4271 ComponentResult _rv
;
4272 #ifndef GetTrackStatus
4273 PyMac_PRECHECK(GetTrackStatus
);
4275 if (!PyArg_ParseTuple(_args
, ""))
4277 _rv
= GetTrackStatus(_self
->ob_itself
);
4278 _res
= Py_BuildValue("l",
4283 static PyObject
*TrackObj_SetTrackLoadSettings(TrackObject
*_self
, PyObject
*_args
)
4285 PyObject
*_res
= NULL
;
4286 TimeValue preloadTime
;
4287 TimeValue preloadDuration
;
4290 #ifndef SetTrackLoadSettings
4291 PyMac_PRECHECK(SetTrackLoadSettings
);
4293 if (!PyArg_ParseTuple(_args
, "llll",
4299 SetTrackLoadSettings(_self
->ob_itself
,
4309 static PyObject
*TrackObj_GetTrackLoadSettings(TrackObject
*_self
, PyObject
*_args
)
4311 PyObject
*_res
= NULL
;
4312 TimeValue preloadTime
;
4313 TimeValue preloadDuration
;
4316 #ifndef GetTrackLoadSettings
4317 PyMac_PRECHECK(GetTrackLoadSettings
);
4319 if (!PyArg_ParseTuple(_args
, ""))
4321 GetTrackLoadSettings(_self
->ob_itself
,
4326 _res
= Py_BuildValue("llll",
4334 static PyMethodDef TrackObj_methods
[] = {
4335 {"LoadTrackIntoRam", (PyCFunction
)TrackObj_LoadTrackIntoRam
, 1,
4336 PyDoc_STR("(TimeValue time, TimeValue duration, long flags) -> None")},
4337 {"GetTrackPict", (PyCFunction
)TrackObj_GetTrackPict
, 1,
4338 PyDoc_STR("(TimeValue time) -> (PicHandle _rv)")},
4339 {"GetTrackClipRgn", (PyCFunction
)TrackObj_GetTrackClipRgn
, 1,
4340 PyDoc_STR("() -> (RgnHandle _rv)")},
4341 {"SetTrackClipRgn", (PyCFunction
)TrackObj_SetTrackClipRgn
, 1,
4342 PyDoc_STR("(RgnHandle theClip) -> None")},
4343 {"GetTrackDisplayBoundsRgn", (PyCFunction
)TrackObj_GetTrackDisplayBoundsRgn
, 1,
4344 PyDoc_STR("() -> (RgnHandle _rv)")},
4345 {"GetTrackMovieBoundsRgn", (PyCFunction
)TrackObj_GetTrackMovieBoundsRgn
, 1,
4346 PyDoc_STR("() -> (RgnHandle _rv)")},
4347 {"GetTrackBoundsRgn", (PyCFunction
)TrackObj_GetTrackBoundsRgn
, 1,
4348 PyDoc_STR("() -> (RgnHandle _rv)")},
4349 {"GetTrackMatte", (PyCFunction
)TrackObj_GetTrackMatte
, 1,
4350 PyDoc_STR("() -> (PixMapHandle _rv)")},
4351 {"SetTrackMatte", (PyCFunction
)TrackObj_SetTrackMatte
, 1,
4352 PyDoc_STR("(PixMapHandle theMatte) -> None")},
4353 {"GetTrackID", (PyCFunction
)TrackObj_GetTrackID
, 1,
4354 PyDoc_STR("() -> (long _rv)")},
4355 {"GetTrackMovie", (PyCFunction
)TrackObj_GetTrackMovie
, 1,
4356 PyDoc_STR("() -> (Movie _rv)")},
4357 {"GetTrackCreationTime", (PyCFunction
)TrackObj_GetTrackCreationTime
, 1,
4358 PyDoc_STR("() -> (unsigned long _rv)")},
4359 {"GetTrackModificationTime", (PyCFunction
)TrackObj_GetTrackModificationTime
, 1,
4360 PyDoc_STR("() -> (unsigned long _rv)")},
4361 {"GetTrackEnabled", (PyCFunction
)TrackObj_GetTrackEnabled
, 1,
4362 PyDoc_STR("() -> (Boolean _rv)")},
4363 {"SetTrackEnabled", (PyCFunction
)TrackObj_SetTrackEnabled
, 1,
4364 PyDoc_STR("(Boolean isEnabled) -> None")},
4365 {"GetTrackUsage", (PyCFunction
)TrackObj_GetTrackUsage
, 1,
4366 PyDoc_STR("() -> (long _rv)")},
4367 {"SetTrackUsage", (PyCFunction
)TrackObj_SetTrackUsage
, 1,
4368 PyDoc_STR("(long usage) -> None")},
4369 {"GetTrackDuration", (PyCFunction
)TrackObj_GetTrackDuration
, 1,
4370 PyDoc_STR("() -> (TimeValue _rv)")},
4371 {"GetTrackOffset", (PyCFunction
)TrackObj_GetTrackOffset
, 1,
4372 PyDoc_STR("() -> (TimeValue _rv)")},
4373 {"SetTrackOffset", (PyCFunction
)TrackObj_SetTrackOffset
, 1,
4374 PyDoc_STR("(TimeValue movieOffsetTime) -> None")},
4375 {"GetTrackLayer", (PyCFunction
)TrackObj_GetTrackLayer
, 1,
4376 PyDoc_STR("() -> (short _rv)")},
4377 {"SetTrackLayer", (PyCFunction
)TrackObj_SetTrackLayer
, 1,
4378 PyDoc_STR("(short layer) -> None")},
4379 {"GetTrackAlternate", (PyCFunction
)TrackObj_GetTrackAlternate
, 1,
4380 PyDoc_STR("() -> (Track _rv)")},
4381 {"SetTrackAlternate", (PyCFunction
)TrackObj_SetTrackAlternate
, 1,
4382 PyDoc_STR("(Track alternateT) -> None")},
4383 {"GetTrackVolume", (PyCFunction
)TrackObj_GetTrackVolume
, 1,
4384 PyDoc_STR("() -> (short _rv)")},
4385 {"SetTrackVolume", (PyCFunction
)TrackObj_SetTrackVolume
, 1,
4386 PyDoc_STR("(short volume) -> None")},
4387 {"GetTrackDimensions", (PyCFunction
)TrackObj_GetTrackDimensions
, 1,
4388 PyDoc_STR("() -> (Fixed width, Fixed height)")},
4389 {"SetTrackDimensions", (PyCFunction
)TrackObj_SetTrackDimensions
, 1,
4390 PyDoc_STR("(Fixed width, Fixed height) -> None")},
4391 {"GetTrackUserData", (PyCFunction
)TrackObj_GetTrackUserData
, 1,
4392 PyDoc_STR("() -> (UserData _rv)")},
4393 {"GetTrackSoundLocalizationSettings", (PyCFunction
)TrackObj_GetTrackSoundLocalizationSettings
, 1,
4394 PyDoc_STR("() -> (Handle settings)")},
4395 {"SetTrackSoundLocalizationSettings", (PyCFunction
)TrackObj_SetTrackSoundLocalizationSettings
, 1,
4396 PyDoc_STR("(Handle settings) -> None")},
4397 {"NewTrackMedia", (PyCFunction
)TrackObj_NewTrackMedia
, 1,
4398 PyDoc_STR("(OSType mediaType, TimeScale timeScale, Handle dataRef, OSType dataRefType) -> (Media _rv)")},
4399 {"GetTrackMedia", (PyCFunction
)TrackObj_GetTrackMedia
, 1,
4400 PyDoc_STR("() -> (Media _rv)")},
4401 {"InsertMediaIntoTrack", (PyCFunction
)TrackObj_InsertMediaIntoTrack
, 1,
4402 PyDoc_STR("(TimeValue trackStart, TimeValue mediaTime, TimeValue mediaDuration, Fixed mediaRate) -> None")},
4403 {"InsertTrackSegment", (PyCFunction
)TrackObj_InsertTrackSegment
, 1,
4404 PyDoc_STR("(Track dstTrack, TimeValue srcIn, TimeValue srcDuration, TimeValue dstIn) -> None")},
4405 {"InsertEmptyTrackSegment", (PyCFunction
)TrackObj_InsertEmptyTrackSegment
, 1,
4406 PyDoc_STR("(TimeValue dstIn, TimeValue dstDuration) -> None")},
4407 {"DeleteTrackSegment", (PyCFunction
)TrackObj_DeleteTrackSegment
, 1,
4408 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> None")},
4409 {"ScaleTrackSegment", (PyCFunction
)TrackObj_ScaleTrackSegment
, 1,
4410 PyDoc_STR("(TimeValue startTime, TimeValue oldDuration, TimeValue newDuration) -> None")},
4411 {"IsScrapMovie", (PyCFunction
)TrackObj_IsScrapMovie
, 1,
4412 PyDoc_STR("() -> (Component _rv)")},
4413 {"CopyTrackSettings", (PyCFunction
)TrackObj_CopyTrackSettings
, 1,
4414 PyDoc_STR("(Track dstTrack) -> None")},
4415 {"AddEmptyTrackToMovie", (PyCFunction
)TrackObj_AddEmptyTrackToMovie
, 1,
4416 PyDoc_STR("(Movie dstMovie, Handle dataRef, OSType dataRefType) -> (Track dstTrack)")},
4417 {"AddClonedTrackToMovie", (PyCFunction
)TrackObj_AddClonedTrackToMovie
, 1,
4418 PyDoc_STR("(Movie dstMovie, long flags) -> (Track dstTrack)")},
4419 {"AddTrackReference", (PyCFunction
)TrackObj_AddTrackReference
, 1,
4420 PyDoc_STR("(Track refTrack, OSType refType) -> (long addedIndex)")},
4421 {"DeleteTrackReference", (PyCFunction
)TrackObj_DeleteTrackReference
, 1,
4422 PyDoc_STR("(OSType refType, long index) -> None")},
4423 {"SetTrackReference", (PyCFunction
)TrackObj_SetTrackReference
, 1,
4424 PyDoc_STR("(Track refTrack, OSType refType, long index) -> None")},
4425 {"GetTrackReference", (PyCFunction
)TrackObj_GetTrackReference
, 1,
4426 PyDoc_STR("(OSType refType, long index) -> (Track _rv)")},
4427 {"GetNextTrackReferenceType", (PyCFunction
)TrackObj_GetNextTrackReferenceType
, 1,
4428 PyDoc_STR("(OSType refType) -> (OSType _rv)")},
4429 {"GetTrackReferenceCount", (PyCFunction
)TrackObj_GetTrackReferenceCount
, 1,
4430 PyDoc_STR("(OSType refType) -> (long _rv)")},
4431 {"GetTrackEditRate", (PyCFunction
)TrackObj_GetTrackEditRate
, 1,
4432 PyDoc_STR("(TimeValue atTime) -> (Fixed _rv)")},
4433 {"GetTrackDataSize", (PyCFunction
)TrackObj_GetTrackDataSize
, 1,
4434 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (long _rv)")},
4435 {"GetTrackDataSize64", (PyCFunction
)TrackObj_GetTrackDataSize64
, 1,
4436 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (wide dataSize)")},
4437 {"PtInTrack", (PyCFunction
)TrackObj_PtInTrack
, 1,
4438 PyDoc_STR("(Point pt) -> (Boolean _rv)")},
4439 {"GetTrackNextInterestingTime", (PyCFunction
)TrackObj_GetTrackNextInterestingTime
, 1,
4440 PyDoc_STR("(short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration)")},
4441 {"GetTrackSegmentDisplayBoundsRgn", (PyCFunction
)TrackObj_GetTrackSegmentDisplayBoundsRgn
, 1,
4442 PyDoc_STR("(TimeValue time, TimeValue duration) -> (RgnHandle _rv)")},
4443 {"GetTrackStatus", (PyCFunction
)TrackObj_GetTrackStatus
, 1,
4444 PyDoc_STR("() -> (ComponentResult _rv)")},
4445 {"SetTrackLoadSettings", (PyCFunction
)TrackObj_SetTrackLoadSettings
, 1,
4446 PyDoc_STR("(TimeValue preloadTime, TimeValue preloadDuration, long preloadFlags, long defaultHints) -> None")},
4447 {"GetTrackLoadSettings", (PyCFunction
)TrackObj_GetTrackLoadSettings
, 1,
4448 PyDoc_STR("() -> (TimeValue preloadTime, TimeValue preloadDuration, long preloadFlags, long defaultHints)")},
4452 #define TrackObj_getsetlist NULL
4455 #define TrackObj_compare NULL
4457 #define TrackObj_repr NULL
4459 #define TrackObj_hash NULL
4460 #define TrackObj_tp_init 0
4462 #define TrackObj_tp_alloc PyType_GenericAlloc
4464 static PyObject
*TrackObj_tp_new(PyTypeObject
*type
, PyObject
*args
, PyObject
*kwds
)
4468 char *kw
[] = {"itself", 0};
4470 if (!PyArg_ParseTupleAndKeywords(args
, kwds
, "O&", kw
, TrackObj_Convert
, &itself
)) return NULL
;
4471 if ((self
= type
->tp_alloc(type
, 0)) == NULL
) return NULL
;
4472 ((TrackObject
*)self
)->ob_itself
= itself
;
4476 #define TrackObj_tp_free PyObject_Del
4479 PyTypeObject Track_Type
= {
4480 PyObject_HEAD_INIT(NULL
)
4482 "_Qt.Track", /*tp_name*/
4483 sizeof(TrackObject
), /*tp_basicsize*/
4486 (destructor
) TrackObj_dealloc
, /*tp_dealloc*/
4488 (getattrfunc
)0, /*tp_getattr*/
4489 (setattrfunc
)0, /*tp_setattr*/
4490 (cmpfunc
) TrackObj_compare
, /*tp_compare*/
4491 (reprfunc
) TrackObj_repr
, /*tp_repr*/
4492 (PyNumberMethods
*)0, /* tp_as_number */
4493 (PySequenceMethods
*)0, /* tp_as_sequence */
4494 (PyMappingMethods
*)0, /* tp_as_mapping */
4495 (hashfunc
) TrackObj_hash
, /*tp_hash*/
4498 PyObject_GenericGetAttr
, /*tp_getattro*/
4499 PyObject_GenericSetAttr
, /*tp_setattro */
4501 Py_TPFLAGS_DEFAULT
|Py_TPFLAGS_BASETYPE
, /* tp_flags */
4505 0, /*tp_richcompare*/
4506 0, /*tp_weaklistoffset*/
4509 TrackObj_methods
, /* tp_methods */
4511 TrackObj_getsetlist
, /*tp_getset*/
4516 0, /*tp_dictoffset*/
4517 TrackObj_tp_init
, /* tp_init */
4518 TrackObj_tp_alloc
, /* tp_alloc */
4519 TrackObj_tp_new
, /* tp_new */
4520 TrackObj_tp_free
, /* tp_free */
4523 /* --------------------- End object type Track ---------------------- */
4526 /* ----------------------- Object type Movie ------------------------ */
4528 PyTypeObject Movie_Type
;
4530 #define MovieObj_Check(x) ((x)->ob_type == &Movie_Type || PyObject_TypeCheck((x), &Movie_Type))
4532 typedef struct MovieObject
{
4537 PyObject
*MovieObj_New(Movie itself
)
4540 if (itself
== NULL
) {
4541 PyErr_SetString(Qt_Error
,"Cannot create null Movie");
4544 it
= PyObject_NEW(MovieObject
, &Movie_Type
);
4545 if (it
== NULL
) return NULL
;
4546 it
->ob_itself
= itself
;
4547 return (PyObject
*)it
;
4549 int MovieObj_Convert(PyObject
*v
, Movie
*p_itself
)
4551 if (!MovieObj_Check(v
))
4553 PyErr_SetString(PyExc_TypeError
, "Movie required");
4556 *p_itself
= ((MovieObject
*)v
)->ob_itself
;
4560 static void MovieObj_dealloc(MovieObject
*self
)
4562 DisposeMovie(self
->ob_itself
);
4563 self
->ob_type
->tp_free((PyObject
*)self
);
4566 static PyObject
*MovieObj_MoviesTask(MovieObject
*_self
, PyObject
*_args
)
4568 PyObject
*_res
= NULL
;
4569 long maxMilliSecToUse
;
4571 PyMac_PRECHECK(MoviesTask
);
4573 if (!PyArg_ParseTuple(_args
, "l",
4576 MoviesTask(_self
->ob_itself
,
4583 static PyObject
*MovieObj_PrerollMovie(MovieObject
*_self
, PyObject
*_args
)
4585 PyObject
*_res
= NULL
;
4589 #ifndef PrerollMovie
4590 PyMac_PRECHECK(PrerollMovie
);
4592 if (!PyArg_ParseTuple(_args
, "lO&",
4594 PyMac_GetFixed
, &Rate
))
4596 _err
= PrerollMovie(_self
->ob_itself
,
4599 if (_err
!= noErr
) return PyMac_Error(_err
);
4605 static PyObject
*MovieObj_AbortPrePrerollMovie(MovieObject
*_self
, PyObject
*_args
)
4607 PyObject
*_res
= NULL
;
4609 #ifndef AbortPrePrerollMovie
4610 PyMac_PRECHECK(AbortPrePrerollMovie
);
4612 if (!PyArg_ParseTuple(_args
, "h",
4615 AbortPrePrerollMovie(_self
->ob_itself
,
4622 static PyObject
*MovieObj_LoadMovieIntoRam(MovieObject
*_self
, PyObject
*_args
)
4624 PyObject
*_res
= NULL
;
4629 #ifndef LoadMovieIntoRam
4630 PyMac_PRECHECK(LoadMovieIntoRam
);
4632 if (!PyArg_ParseTuple(_args
, "lll",
4637 _err
= LoadMovieIntoRam(_self
->ob_itself
,
4641 if (_err
!= noErr
) return PyMac_Error(_err
);
4647 static PyObject
*MovieObj_SetMovieActive(MovieObject
*_self
, PyObject
*_args
)
4649 PyObject
*_res
= NULL
;
4651 #ifndef SetMovieActive
4652 PyMac_PRECHECK(SetMovieActive
);
4654 if (!PyArg_ParseTuple(_args
, "b",
4657 SetMovieActive(_self
->ob_itself
,
4664 static PyObject
*MovieObj_GetMovieActive(MovieObject
*_self
, PyObject
*_args
)
4666 PyObject
*_res
= NULL
;
4668 #ifndef GetMovieActive
4669 PyMac_PRECHECK(GetMovieActive
);
4671 if (!PyArg_ParseTuple(_args
, ""))
4673 _rv
= GetMovieActive(_self
->ob_itself
);
4674 _res
= Py_BuildValue("b",
4679 static PyObject
*MovieObj_StartMovie(MovieObject
*_self
, PyObject
*_args
)
4681 PyObject
*_res
= NULL
;
4683 PyMac_PRECHECK(StartMovie
);
4685 if (!PyArg_ParseTuple(_args
, ""))
4687 StartMovie(_self
->ob_itself
);
4693 static PyObject
*MovieObj_StopMovie(MovieObject
*_self
, PyObject
*_args
)
4695 PyObject
*_res
= NULL
;
4697 PyMac_PRECHECK(StopMovie
);
4699 if (!PyArg_ParseTuple(_args
, ""))
4701 StopMovie(_self
->ob_itself
);
4707 static PyObject
*MovieObj_GoToBeginningOfMovie(MovieObject
*_self
, PyObject
*_args
)
4709 PyObject
*_res
= NULL
;
4710 #ifndef GoToBeginningOfMovie
4711 PyMac_PRECHECK(GoToBeginningOfMovie
);
4713 if (!PyArg_ParseTuple(_args
, ""))
4715 GoToBeginningOfMovie(_self
->ob_itself
);
4721 static PyObject
*MovieObj_GoToEndOfMovie(MovieObject
*_self
, PyObject
*_args
)
4723 PyObject
*_res
= NULL
;
4724 #ifndef GoToEndOfMovie
4725 PyMac_PRECHECK(GoToEndOfMovie
);
4727 if (!PyArg_ParseTuple(_args
, ""))
4729 GoToEndOfMovie(_self
->ob_itself
);
4735 static PyObject
*MovieObj_IsMovieDone(MovieObject
*_self
, PyObject
*_args
)
4737 PyObject
*_res
= NULL
;
4740 PyMac_PRECHECK(IsMovieDone
);
4742 if (!PyArg_ParseTuple(_args
, ""))
4744 _rv
= IsMovieDone(_self
->ob_itself
);
4745 _res
= Py_BuildValue("b",
4750 static PyObject
*MovieObj_GetMoviePreviewMode(MovieObject
*_self
, PyObject
*_args
)
4752 PyObject
*_res
= NULL
;
4754 #ifndef GetMoviePreviewMode
4755 PyMac_PRECHECK(GetMoviePreviewMode
);
4757 if (!PyArg_ParseTuple(_args
, ""))
4759 _rv
= GetMoviePreviewMode(_self
->ob_itself
);
4760 _res
= Py_BuildValue("b",
4765 static PyObject
*MovieObj_SetMoviePreviewMode(MovieObject
*_self
, PyObject
*_args
)
4767 PyObject
*_res
= NULL
;
4769 #ifndef SetMoviePreviewMode
4770 PyMac_PRECHECK(SetMoviePreviewMode
);
4772 if (!PyArg_ParseTuple(_args
, "b",
4775 SetMoviePreviewMode(_self
->ob_itself
,
4782 static PyObject
*MovieObj_ShowMoviePoster(MovieObject
*_self
, PyObject
*_args
)
4784 PyObject
*_res
= NULL
;
4785 #ifndef ShowMoviePoster
4786 PyMac_PRECHECK(ShowMoviePoster
);
4788 if (!PyArg_ParseTuple(_args
, ""))
4790 ShowMoviePoster(_self
->ob_itself
);
4796 static PyObject
*MovieObj_GetMovieTimeBase(MovieObject
*_self
, PyObject
*_args
)
4798 PyObject
*_res
= NULL
;
4800 #ifndef GetMovieTimeBase
4801 PyMac_PRECHECK(GetMovieTimeBase
);
4803 if (!PyArg_ParseTuple(_args
, ""))
4805 _rv
= GetMovieTimeBase(_self
->ob_itself
);
4806 _res
= Py_BuildValue("O&",
4807 TimeBaseObj_New
, _rv
);
4811 static PyObject
*MovieObj_SetMovieMasterTimeBase(MovieObject
*_self
, PyObject
*_args
)
4813 PyObject
*_res
= NULL
;
4815 TimeRecord slaveZero
;
4816 #ifndef SetMovieMasterTimeBase
4817 PyMac_PRECHECK(SetMovieMasterTimeBase
);
4819 if (!PyArg_ParseTuple(_args
, "O&O&",
4820 TimeBaseObj_Convert
, &tb
,
4821 QtTimeRecord_Convert
, &slaveZero
))
4823 SetMovieMasterTimeBase(_self
->ob_itself
,
4831 static PyObject
*MovieObj_SetMovieMasterClock(MovieObject
*_self
, PyObject
*_args
)
4833 PyObject
*_res
= NULL
;
4834 Component clockMeister
;
4835 TimeRecord slaveZero
;
4836 #ifndef SetMovieMasterClock
4837 PyMac_PRECHECK(SetMovieMasterClock
);
4839 if (!PyArg_ParseTuple(_args
, "O&O&",
4840 CmpObj_Convert
, &clockMeister
,
4841 QtTimeRecord_Convert
, &slaveZero
))
4843 SetMovieMasterClock(_self
->ob_itself
,
4851 static PyObject
*MovieObj_GetMovieGWorld(MovieObject
*_self
, PyObject
*_args
)
4853 PyObject
*_res
= NULL
;
4856 #ifndef GetMovieGWorld
4857 PyMac_PRECHECK(GetMovieGWorld
);
4859 if (!PyArg_ParseTuple(_args
, ""))
4861 GetMovieGWorld(_self
->ob_itself
,
4864 _res
= Py_BuildValue("O&O&",
4866 OptResObj_New
, gdh
);
4870 static PyObject
*MovieObj_SetMovieGWorld(MovieObject
*_self
, PyObject
*_args
)
4872 PyObject
*_res
= NULL
;
4875 #ifndef SetMovieGWorld
4876 PyMac_PRECHECK(SetMovieGWorld
);
4878 if (!PyArg_ParseTuple(_args
, "O&O&",
4879 GrafObj_Convert
, &port
,
4880 OptResObj_Convert
, &gdh
))
4882 SetMovieGWorld(_self
->ob_itself
,
4890 static PyObject
*MovieObj_GetMovieNaturalBoundsRect(MovieObject
*_self
, PyObject
*_args
)
4892 PyObject
*_res
= NULL
;
4894 #ifndef GetMovieNaturalBoundsRect
4895 PyMac_PRECHECK(GetMovieNaturalBoundsRect
);
4897 if (!PyArg_ParseTuple(_args
, ""))
4899 GetMovieNaturalBoundsRect(_self
->ob_itself
,
4901 _res
= Py_BuildValue("O&",
4902 PyMac_BuildRect
, &naturalBounds
);
4906 static PyObject
*MovieObj_GetNextTrackForCompositing(MovieObject
*_self
, PyObject
*_args
)
4908 PyObject
*_res
= NULL
;
4911 #ifndef GetNextTrackForCompositing
4912 PyMac_PRECHECK(GetNextTrackForCompositing
);
4914 if (!PyArg_ParseTuple(_args
, "O&",
4915 TrackObj_Convert
, &theTrack
))
4917 _rv
= GetNextTrackForCompositing(_self
->ob_itself
,
4919 _res
= Py_BuildValue("O&",
4924 static PyObject
*MovieObj_GetPrevTrackForCompositing(MovieObject
*_self
, PyObject
*_args
)
4926 PyObject
*_res
= NULL
;
4929 #ifndef GetPrevTrackForCompositing
4930 PyMac_PRECHECK(GetPrevTrackForCompositing
);
4932 if (!PyArg_ParseTuple(_args
, "O&",
4933 TrackObj_Convert
, &theTrack
))
4935 _rv
= GetPrevTrackForCompositing(_self
->ob_itself
,
4937 _res
= Py_BuildValue("O&",
4942 static PyObject
*MovieObj_GetMoviePict(MovieObject
*_self
, PyObject
*_args
)
4944 PyObject
*_res
= NULL
;
4947 #ifndef GetMoviePict
4948 PyMac_PRECHECK(GetMoviePict
);
4950 if (!PyArg_ParseTuple(_args
, "l",
4953 _rv
= GetMoviePict(_self
->ob_itself
,
4955 _res
= Py_BuildValue("O&",
4960 static PyObject
*MovieObj_GetMoviePosterPict(MovieObject
*_self
, PyObject
*_args
)
4962 PyObject
*_res
= NULL
;
4964 #ifndef GetMoviePosterPict
4965 PyMac_PRECHECK(GetMoviePosterPict
);
4967 if (!PyArg_ParseTuple(_args
, ""))
4969 _rv
= GetMoviePosterPict(_self
->ob_itself
);
4970 _res
= Py_BuildValue("O&",
4975 static PyObject
*MovieObj_UpdateMovie(MovieObject
*_self
, PyObject
*_args
)
4977 PyObject
*_res
= NULL
;
4980 PyMac_PRECHECK(UpdateMovie
);
4982 if (!PyArg_ParseTuple(_args
, ""))
4984 _err
= UpdateMovie(_self
->ob_itself
);
4985 if (_err
!= noErr
) return PyMac_Error(_err
);
4991 static PyObject
*MovieObj_InvalidateMovieRegion(MovieObject
*_self
, PyObject
*_args
)
4993 PyObject
*_res
= NULL
;
4995 RgnHandle invalidRgn
;
4996 #ifndef InvalidateMovieRegion
4997 PyMac_PRECHECK(InvalidateMovieRegion
);
4999 if (!PyArg_ParseTuple(_args
, "O&",
5000 ResObj_Convert
, &invalidRgn
))
5002 _err
= InvalidateMovieRegion(_self
->ob_itself
,
5004 if (_err
!= noErr
) return PyMac_Error(_err
);
5010 static PyObject
*MovieObj_GetMovieBox(MovieObject
*_self
, PyObject
*_args
)
5012 PyObject
*_res
= NULL
;
5015 PyMac_PRECHECK(GetMovieBox
);
5017 if (!PyArg_ParseTuple(_args
, ""))
5019 GetMovieBox(_self
->ob_itself
,
5021 _res
= Py_BuildValue("O&",
5022 PyMac_BuildRect
, &boxRect
);
5026 static PyObject
*MovieObj_SetMovieBox(MovieObject
*_self
, PyObject
*_args
)
5028 PyObject
*_res
= NULL
;
5031 PyMac_PRECHECK(SetMovieBox
);
5033 if (!PyArg_ParseTuple(_args
, "O&",
5034 PyMac_GetRect
, &boxRect
))
5036 SetMovieBox(_self
->ob_itself
,
5043 static PyObject
*MovieObj_GetMovieDisplayClipRgn(MovieObject
*_self
, PyObject
*_args
)
5045 PyObject
*_res
= NULL
;
5047 #ifndef GetMovieDisplayClipRgn
5048 PyMac_PRECHECK(GetMovieDisplayClipRgn
);
5050 if (!PyArg_ParseTuple(_args
, ""))
5052 _rv
= GetMovieDisplayClipRgn(_self
->ob_itself
);
5053 _res
= Py_BuildValue("O&",
5058 static PyObject
*MovieObj_SetMovieDisplayClipRgn(MovieObject
*_self
, PyObject
*_args
)
5060 PyObject
*_res
= NULL
;
5062 #ifndef SetMovieDisplayClipRgn
5063 PyMac_PRECHECK(SetMovieDisplayClipRgn
);
5065 if (!PyArg_ParseTuple(_args
, "O&",
5066 ResObj_Convert
, &theClip
))
5068 SetMovieDisplayClipRgn(_self
->ob_itself
,
5075 static PyObject
*MovieObj_GetMovieClipRgn(MovieObject
*_self
, PyObject
*_args
)
5077 PyObject
*_res
= NULL
;
5079 #ifndef GetMovieClipRgn
5080 PyMac_PRECHECK(GetMovieClipRgn
);
5082 if (!PyArg_ParseTuple(_args
, ""))
5084 _rv
= GetMovieClipRgn(_self
->ob_itself
);
5085 _res
= Py_BuildValue("O&",
5090 static PyObject
*MovieObj_SetMovieClipRgn(MovieObject
*_self
, PyObject
*_args
)
5092 PyObject
*_res
= NULL
;
5094 #ifndef SetMovieClipRgn
5095 PyMac_PRECHECK(SetMovieClipRgn
);
5097 if (!PyArg_ParseTuple(_args
, "O&",
5098 ResObj_Convert
, &theClip
))
5100 SetMovieClipRgn(_self
->ob_itself
,
5107 static PyObject
*MovieObj_GetMovieDisplayBoundsRgn(MovieObject
*_self
, PyObject
*_args
)
5109 PyObject
*_res
= NULL
;
5111 #ifndef GetMovieDisplayBoundsRgn
5112 PyMac_PRECHECK(GetMovieDisplayBoundsRgn
);
5114 if (!PyArg_ParseTuple(_args
, ""))
5116 _rv
= GetMovieDisplayBoundsRgn(_self
->ob_itself
);
5117 _res
= Py_BuildValue("O&",
5122 static PyObject
*MovieObj_GetMovieBoundsRgn(MovieObject
*_self
, PyObject
*_args
)
5124 PyObject
*_res
= NULL
;
5126 #ifndef GetMovieBoundsRgn
5127 PyMac_PRECHECK(GetMovieBoundsRgn
);
5129 if (!PyArg_ParseTuple(_args
, ""))
5131 _rv
= GetMovieBoundsRgn(_self
->ob_itself
);
5132 _res
= Py_BuildValue("O&",
5137 static PyObject
*MovieObj_SetMovieVideoOutput(MovieObject
*_self
, PyObject
*_args
)
5139 PyObject
*_res
= NULL
;
5140 ComponentInstance vout
;
5141 #ifndef SetMovieVideoOutput
5142 PyMac_PRECHECK(SetMovieVideoOutput
);
5144 if (!PyArg_ParseTuple(_args
, "O&",
5145 CmpInstObj_Convert
, &vout
))
5147 SetMovieVideoOutput(_self
->ob_itself
,
5154 static PyObject
*MovieObj_PutMovieIntoHandle(MovieObject
*_self
, PyObject
*_args
)
5156 PyObject
*_res
= NULL
;
5159 #ifndef PutMovieIntoHandle
5160 PyMac_PRECHECK(PutMovieIntoHandle
);
5162 if (!PyArg_ParseTuple(_args
, "O&",
5163 ResObj_Convert
, &publicMovie
))
5165 _err
= PutMovieIntoHandle(_self
->ob_itself
,
5167 if (_err
!= noErr
) return PyMac_Error(_err
);
5173 static PyObject
*MovieObj_PutMovieIntoDataFork(MovieObject
*_self
, PyObject
*_args
)
5175 PyObject
*_res
= NULL
;
5180 #ifndef PutMovieIntoDataFork
5181 PyMac_PRECHECK(PutMovieIntoDataFork
);
5183 if (!PyArg_ParseTuple(_args
, "hll",
5188 _err
= PutMovieIntoDataFork(_self
->ob_itself
,
5192 if (_err
!= noErr
) return PyMac_Error(_err
);
5198 static PyObject
*MovieObj_PutMovieIntoDataFork64(MovieObject
*_self
, PyObject
*_args
)
5200 PyObject
*_res
= NULL
;
5204 unsigned long maxSize
;
5205 #ifndef PutMovieIntoDataFork64
5206 PyMac_PRECHECK(PutMovieIntoDataFork64
);
5208 if (!PyArg_ParseTuple(_args
, "lO&l",
5210 PyMac_Getwide
, &offset
,
5213 _err
= PutMovieIntoDataFork64(_self
->ob_itself
,
5217 if (_err
!= noErr
) return PyMac_Error(_err
);
5223 static PyObject
*MovieObj_GetMovieCreationTime(MovieObject
*_self
, PyObject
*_args
)
5225 PyObject
*_res
= NULL
;
5227 #ifndef GetMovieCreationTime
5228 PyMac_PRECHECK(GetMovieCreationTime
);
5230 if (!PyArg_ParseTuple(_args
, ""))
5232 _rv
= GetMovieCreationTime(_self
->ob_itself
);
5233 _res
= Py_BuildValue("l",
5238 static PyObject
*MovieObj_GetMovieModificationTime(MovieObject
*_self
, PyObject
*_args
)
5240 PyObject
*_res
= NULL
;
5242 #ifndef GetMovieModificationTime
5243 PyMac_PRECHECK(GetMovieModificationTime
);
5245 if (!PyArg_ParseTuple(_args
, ""))
5247 _rv
= GetMovieModificationTime(_self
->ob_itself
);
5248 _res
= Py_BuildValue("l",
5253 static PyObject
*MovieObj_GetMovieTimeScale(MovieObject
*_self
, PyObject
*_args
)
5255 PyObject
*_res
= NULL
;
5257 #ifndef GetMovieTimeScale
5258 PyMac_PRECHECK(GetMovieTimeScale
);
5260 if (!PyArg_ParseTuple(_args
, ""))
5262 _rv
= GetMovieTimeScale(_self
->ob_itself
);
5263 _res
= Py_BuildValue("l",
5268 static PyObject
*MovieObj_SetMovieTimeScale(MovieObject
*_self
, PyObject
*_args
)
5270 PyObject
*_res
= NULL
;
5271 TimeScale timeScale
;
5272 #ifndef SetMovieTimeScale
5273 PyMac_PRECHECK(SetMovieTimeScale
);
5275 if (!PyArg_ParseTuple(_args
, "l",
5278 SetMovieTimeScale(_self
->ob_itself
,
5285 static PyObject
*MovieObj_GetMovieDuration(MovieObject
*_self
, PyObject
*_args
)
5287 PyObject
*_res
= NULL
;
5289 #ifndef GetMovieDuration
5290 PyMac_PRECHECK(GetMovieDuration
);
5292 if (!PyArg_ParseTuple(_args
, ""))
5294 _rv
= GetMovieDuration(_self
->ob_itself
);
5295 _res
= Py_BuildValue("l",
5300 static PyObject
*MovieObj_GetMovieRate(MovieObject
*_self
, PyObject
*_args
)
5302 PyObject
*_res
= NULL
;
5304 #ifndef GetMovieRate
5305 PyMac_PRECHECK(GetMovieRate
);
5307 if (!PyArg_ParseTuple(_args
, ""))
5309 _rv
= GetMovieRate(_self
->ob_itself
);
5310 _res
= Py_BuildValue("O&",
5311 PyMac_BuildFixed
, _rv
);
5315 static PyObject
*MovieObj_SetMovieRate(MovieObject
*_self
, PyObject
*_args
)
5317 PyObject
*_res
= NULL
;
5319 #ifndef SetMovieRate
5320 PyMac_PRECHECK(SetMovieRate
);
5322 if (!PyArg_ParseTuple(_args
, "O&",
5323 PyMac_GetFixed
, &rate
))
5325 SetMovieRate(_self
->ob_itself
,
5332 static PyObject
*MovieObj_GetMoviePreferredRate(MovieObject
*_self
, PyObject
*_args
)
5334 PyObject
*_res
= NULL
;
5336 #ifndef GetMoviePreferredRate
5337 PyMac_PRECHECK(GetMoviePreferredRate
);
5339 if (!PyArg_ParseTuple(_args
, ""))
5341 _rv
= GetMoviePreferredRate(_self
->ob_itself
);
5342 _res
= Py_BuildValue("O&",
5343 PyMac_BuildFixed
, _rv
);
5347 static PyObject
*MovieObj_SetMoviePreferredRate(MovieObject
*_self
, PyObject
*_args
)
5349 PyObject
*_res
= NULL
;
5351 #ifndef SetMoviePreferredRate
5352 PyMac_PRECHECK(SetMoviePreferredRate
);
5354 if (!PyArg_ParseTuple(_args
, "O&",
5355 PyMac_GetFixed
, &rate
))
5357 SetMoviePreferredRate(_self
->ob_itself
,
5364 static PyObject
*MovieObj_GetMoviePreferredVolume(MovieObject
*_self
, PyObject
*_args
)
5366 PyObject
*_res
= NULL
;
5368 #ifndef GetMoviePreferredVolume
5369 PyMac_PRECHECK(GetMoviePreferredVolume
);
5371 if (!PyArg_ParseTuple(_args
, ""))
5373 _rv
= GetMoviePreferredVolume(_self
->ob_itself
);
5374 _res
= Py_BuildValue("h",
5379 static PyObject
*MovieObj_SetMoviePreferredVolume(MovieObject
*_self
, PyObject
*_args
)
5381 PyObject
*_res
= NULL
;
5383 #ifndef SetMoviePreferredVolume
5384 PyMac_PRECHECK(SetMoviePreferredVolume
);
5386 if (!PyArg_ParseTuple(_args
, "h",
5389 SetMoviePreferredVolume(_self
->ob_itself
,
5396 static PyObject
*MovieObj_GetMovieVolume(MovieObject
*_self
, PyObject
*_args
)
5398 PyObject
*_res
= NULL
;
5400 #ifndef GetMovieVolume
5401 PyMac_PRECHECK(GetMovieVolume
);
5403 if (!PyArg_ParseTuple(_args
, ""))
5405 _rv
= GetMovieVolume(_self
->ob_itself
);
5406 _res
= Py_BuildValue("h",
5411 static PyObject
*MovieObj_SetMovieVolume(MovieObject
*_self
, PyObject
*_args
)
5413 PyObject
*_res
= NULL
;
5415 #ifndef SetMovieVolume
5416 PyMac_PRECHECK(SetMovieVolume
);
5418 if (!PyArg_ParseTuple(_args
, "h",
5421 SetMovieVolume(_self
->ob_itself
,
5428 static PyObject
*MovieObj_GetMoviePreviewTime(MovieObject
*_self
, PyObject
*_args
)
5430 PyObject
*_res
= NULL
;
5431 TimeValue previewTime
;
5432 TimeValue previewDuration
;
5433 #ifndef GetMoviePreviewTime
5434 PyMac_PRECHECK(GetMoviePreviewTime
);
5436 if (!PyArg_ParseTuple(_args
, ""))
5438 GetMoviePreviewTime(_self
->ob_itself
,
5441 _res
= Py_BuildValue("ll",
5447 static PyObject
*MovieObj_SetMoviePreviewTime(MovieObject
*_self
, PyObject
*_args
)
5449 PyObject
*_res
= NULL
;
5450 TimeValue previewTime
;
5451 TimeValue previewDuration
;
5452 #ifndef SetMoviePreviewTime
5453 PyMac_PRECHECK(SetMoviePreviewTime
);
5455 if (!PyArg_ParseTuple(_args
, "ll",
5459 SetMoviePreviewTime(_self
->ob_itself
,
5467 static PyObject
*MovieObj_GetMoviePosterTime(MovieObject
*_self
, PyObject
*_args
)
5469 PyObject
*_res
= NULL
;
5471 #ifndef GetMoviePosterTime
5472 PyMac_PRECHECK(GetMoviePosterTime
);
5474 if (!PyArg_ParseTuple(_args
, ""))
5476 _rv
= GetMoviePosterTime(_self
->ob_itself
);
5477 _res
= Py_BuildValue("l",
5482 static PyObject
*MovieObj_SetMoviePosterTime(MovieObject
*_self
, PyObject
*_args
)
5484 PyObject
*_res
= NULL
;
5485 TimeValue posterTime
;
5486 #ifndef SetMoviePosterTime
5487 PyMac_PRECHECK(SetMoviePosterTime
);
5489 if (!PyArg_ParseTuple(_args
, "l",
5492 SetMoviePosterTime(_self
->ob_itself
,
5499 static PyObject
*MovieObj_GetMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5501 PyObject
*_res
= NULL
;
5502 TimeValue selectionTime
;
5503 TimeValue selectionDuration
;
5504 #ifndef GetMovieSelection
5505 PyMac_PRECHECK(GetMovieSelection
);
5507 if (!PyArg_ParseTuple(_args
, ""))
5509 GetMovieSelection(_self
->ob_itself
,
5511 &selectionDuration
);
5512 _res
= Py_BuildValue("ll",
5518 static PyObject
*MovieObj_SetMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5520 PyObject
*_res
= NULL
;
5521 TimeValue selectionTime
;
5522 TimeValue selectionDuration
;
5523 #ifndef SetMovieSelection
5524 PyMac_PRECHECK(SetMovieSelection
);
5526 if (!PyArg_ParseTuple(_args
, "ll",
5528 &selectionDuration
))
5530 SetMovieSelection(_self
->ob_itself
,
5538 static PyObject
*MovieObj_SetMovieActiveSegment(MovieObject
*_self
, PyObject
*_args
)
5540 PyObject
*_res
= NULL
;
5541 TimeValue startTime
;
5543 #ifndef SetMovieActiveSegment
5544 PyMac_PRECHECK(SetMovieActiveSegment
);
5546 if (!PyArg_ParseTuple(_args
, "ll",
5550 SetMovieActiveSegment(_self
->ob_itself
,
5558 static PyObject
*MovieObj_GetMovieActiveSegment(MovieObject
*_self
, PyObject
*_args
)
5560 PyObject
*_res
= NULL
;
5561 TimeValue startTime
;
5563 #ifndef GetMovieActiveSegment
5564 PyMac_PRECHECK(GetMovieActiveSegment
);
5566 if (!PyArg_ParseTuple(_args
, ""))
5568 GetMovieActiveSegment(_self
->ob_itself
,
5571 _res
= Py_BuildValue("ll",
5577 static PyObject
*MovieObj_GetMovieTime(MovieObject
*_self
, PyObject
*_args
)
5579 PyObject
*_res
= NULL
;
5581 TimeRecord currentTime
;
5582 #ifndef GetMovieTime
5583 PyMac_PRECHECK(GetMovieTime
);
5585 if (!PyArg_ParseTuple(_args
, ""))
5587 _rv
= GetMovieTime(_self
->ob_itself
,
5589 _res
= Py_BuildValue("lO&",
5591 QtTimeRecord_New
, ¤tTime
);
5595 static PyObject
*MovieObj_SetMovieTime(MovieObject
*_self
, PyObject
*_args
)
5597 PyObject
*_res
= NULL
;
5599 #ifndef SetMovieTime
5600 PyMac_PRECHECK(SetMovieTime
);
5602 if (!PyArg_ParseTuple(_args
, "O&",
5603 QtTimeRecord_Convert
, &newtime
))
5605 SetMovieTime(_self
->ob_itself
,
5612 static PyObject
*MovieObj_SetMovieTimeValue(MovieObject
*_self
, PyObject
*_args
)
5614 PyObject
*_res
= NULL
;
5616 #ifndef SetMovieTimeValue
5617 PyMac_PRECHECK(SetMovieTimeValue
);
5619 if (!PyArg_ParseTuple(_args
, "l",
5622 SetMovieTimeValue(_self
->ob_itself
,
5629 static PyObject
*MovieObj_GetMovieUserData(MovieObject
*_self
, PyObject
*_args
)
5631 PyObject
*_res
= NULL
;
5633 #ifndef GetMovieUserData
5634 PyMac_PRECHECK(GetMovieUserData
);
5636 if (!PyArg_ParseTuple(_args
, ""))
5638 _rv
= GetMovieUserData(_self
->ob_itself
);
5639 _res
= Py_BuildValue("O&",
5640 UserDataObj_New
, _rv
);
5644 static PyObject
*MovieObj_GetMovieTrackCount(MovieObject
*_self
, PyObject
*_args
)
5646 PyObject
*_res
= NULL
;
5648 #ifndef GetMovieTrackCount
5649 PyMac_PRECHECK(GetMovieTrackCount
);
5651 if (!PyArg_ParseTuple(_args
, ""))
5653 _rv
= GetMovieTrackCount(_self
->ob_itself
);
5654 _res
= Py_BuildValue("l",
5659 static PyObject
*MovieObj_GetMovieTrack(MovieObject
*_self
, PyObject
*_args
)
5661 PyObject
*_res
= NULL
;
5664 #ifndef GetMovieTrack
5665 PyMac_PRECHECK(GetMovieTrack
);
5667 if (!PyArg_ParseTuple(_args
, "l",
5670 _rv
= GetMovieTrack(_self
->ob_itself
,
5672 _res
= Py_BuildValue("O&",
5677 static PyObject
*MovieObj_GetMovieIndTrack(MovieObject
*_self
, PyObject
*_args
)
5679 PyObject
*_res
= NULL
;
5682 #ifndef GetMovieIndTrack
5683 PyMac_PRECHECK(GetMovieIndTrack
);
5685 if (!PyArg_ParseTuple(_args
, "l",
5688 _rv
= GetMovieIndTrack(_self
->ob_itself
,
5690 _res
= Py_BuildValue("O&",
5695 static PyObject
*MovieObj_GetMovieIndTrackType(MovieObject
*_self
, PyObject
*_args
)
5697 PyObject
*_res
= NULL
;
5702 #ifndef GetMovieIndTrackType
5703 PyMac_PRECHECK(GetMovieIndTrackType
);
5705 if (!PyArg_ParseTuple(_args
, "lO&l",
5707 PyMac_GetOSType
, &trackType
,
5710 _rv
= GetMovieIndTrackType(_self
->ob_itself
,
5714 _res
= Py_BuildValue("O&",
5719 static PyObject
*MovieObj_NewMovieTrack(MovieObject
*_self
, PyObject
*_args
)
5721 PyObject
*_res
= NULL
;
5726 #ifndef NewMovieTrack
5727 PyMac_PRECHECK(NewMovieTrack
);
5729 if (!PyArg_ParseTuple(_args
, "O&O&h",
5730 PyMac_GetFixed
, &width
,
5731 PyMac_GetFixed
, &height
,
5734 _rv
= NewMovieTrack(_self
->ob_itself
,
5738 _res
= Py_BuildValue("O&",
5743 static PyObject
*MovieObj_SetAutoTrackAlternatesEnabled(MovieObject
*_self
, PyObject
*_args
)
5745 PyObject
*_res
= NULL
;
5747 #ifndef SetAutoTrackAlternatesEnabled
5748 PyMac_PRECHECK(SetAutoTrackAlternatesEnabled
);
5750 if (!PyArg_ParseTuple(_args
, "b",
5753 SetAutoTrackAlternatesEnabled(_self
->ob_itself
,
5760 static PyObject
*MovieObj_SelectMovieAlternates(MovieObject
*_self
, PyObject
*_args
)
5762 PyObject
*_res
= NULL
;
5763 #ifndef SelectMovieAlternates
5764 PyMac_PRECHECK(SelectMovieAlternates
);
5766 if (!PyArg_ParseTuple(_args
, ""))
5768 SelectMovieAlternates(_self
->ob_itself
);
5774 static PyObject
*MovieObj_InsertMovieSegment(MovieObject
*_self
, PyObject
*_args
)
5776 PyObject
*_res
= NULL
;
5780 TimeValue srcDuration
;
5782 #ifndef InsertMovieSegment
5783 PyMac_PRECHECK(InsertMovieSegment
);
5785 if (!PyArg_ParseTuple(_args
, "O&lll",
5786 MovieObj_Convert
, &dstMovie
,
5791 _err
= InsertMovieSegment(_self
->ob_itself
,
5796 if (_err
!= noErr
) return PyMac_Error(_err
);
5802 static PyObject
*MovieObj_InsertEmptyMovieSegment(MovieObject
*_self
, PyObject
*_args
)
5804 PyObject
*_res
= NULL
;
5807 TimeValue dstDuration
;
5808 #ifndef InsertEmptyMovieSegment
5809 PyMac_PRECHECK(InsertEmptyMovieSegment
);
5811 if (!PyArg_ParseTuple(_args
, "ll",
5815 _err
= InsertEmptyMovieSegment(_self
->ob_itself
,
5818 if (_err
!= noErr
) return PyMac_Error(_err
);
5824 static PyObject
*MovieObj_DeleteMovieSegment(MovieObject
*_self
, PyObject
*_args
)
5826 PyObject
*_res
= NULL
;
5828 TimeValue startTime
;
5830 #ifndef DeleteMovieSegment
5831 PyMac_PRECHECK(DeleteMovieSegment
);
5833 if (!PyArg_ParseTuple(_args
, "ll",
5837 _err
= DeleteMovieSegment(_self
->ob_itself
,
5840 if (_err
!= noErr
) return PyMac_Error(_err
);
5846 static PyObject
*MovieObj_ScaleMovieSegment(MovieObject
*_self
, PyObject
*_args
)
5848 PyObject
*_res
= NULL
;
5850 TimeValue startTime
;
5851 TimeValue oldDuration
;
5852 TimeValue newDuration
;
5853 #ifndef ScaleMovieSegment
5854 PyMac_PRECHECK(ScaleMovieSegment
);
5856 if (!PyArg_ParseTuple(_args
, "lll",
5861 _err
= ScaleMovieSegment(_self
->ob_itself
,
5865 if (_err
!= noErr
) return PyMac_Error(_err
);
5871 static PyObject
*MovieObj_CutMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5873 PyObject
*_res
= NULL
;
5875 #ifndef CutMovieSelection
5876 PyMac_PRECHECK(CutMovieSelection
);
5878 if (!PyArg_ParseTuple(_args
, ""))
5880 _rv
= CutMovieSelection(_self
->ob_itself
);
5881 _res
= Py_BuildValue("O&",
5886 static PyObject
*MovieObj_CopyMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5888 PyObject
*_res
= NULL
;
5890 #ifndef CopyMovieSelection
5891 PyMac_PRECHECK(CopyMovieSelection
);
5893 if (!PyArg_ParseTuple(_args
, ""))
5895 _rv
= CopyMovieSelection(_self
->ob_itself
);
5896 _res
= Py_BuildValue("O&",
5901 static PyObject
*MovieObj_PasteMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5903 PyObject
*_res
= NULL
;
5905 #ifndef PasteMovieSelection
5906 PyMac_PRECHECK(PasteMovieSelection
);
5908 if (!PyArg_ParseTuple(_args
, "O&",
5909 MovieObj_Convert
, &src
))
5911 PasteMovieSelection(_self
->ob_itself
,
5918 static PyObject
*MovieObj_AddMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5920 PyObject
*_res
= NULL
;
5922 #ifndef AddMovieSelection
5923 PyMac_PRECHECK(AddMovieSelection
);
5925 if (!PyArg_ParseTuple(_args
, "O&",
5926 MovieObj_Convert
, &src
))
5928 AddMovieSelection(_self
->ob_itself
,
5935 static PyObject
*MovieObj_ClearMovieSelection(MovieObject
*_self
, PyObject
*_args
)
5937 PyObject
*_res
= NULL
;
5938 #ifndef ClearMovieSelection
5939 PyMac_PRECHECK(ClearMovieSelection
);
5941 if (!PyArg_ParseTuple(_args
, ""))
5943 ClearMovieSelection(_self
->ob_itself
);
5949 static PyObject
*MovieObj_PutMovieIntoTypedHandle(MovieObject
*_self
, PyObject
*_args
)
5951 PyObject
*_res
= NULL
;
5959 ComponentInstance userComp
;
5960 #ifndef PutMovieIntoTypedHandle
5961 PyMac_PRECHECK(PutMovieIntoTypedHandle
);
5963 if (!PyArg_ParseTuple(_args
, "O&O&O&lllO&",
5964 TrackObj_Convert
, &targetTrack
,
5965 PyMac_GetOSType
, &handleType
,
5966 ResObj_Convert
, &publicMovie
,
5970 CmpInstObj_Convert
, &userComp
))
5972 _err
= PutMovieIntoTypedHandle(_self
->ob_itself
,
5980 if (_err
!= noErr
) return PyMac_Error(_err
);
5986 static PyObject
*MovieObj_CopyMovieSettings(MovieObject
*_self
, PyObject
*_args
)
5988 PyObject
*_res
= NULL
;
5991 #ifndef CopyMovieSettings
5992 PyMac_PRECHECK(CopyMovieSettings
);
5994 if (!PyArg_ParseTuple(_args
, "O&",
5995 MovieObj_Convert
, &dstMovie
))
5997 _err
= CopyMovieSettings(_self
->ob_itself
,
5999 if (_err
!= noErr
) return PyMac_Error(_err
);
6005 static PyObject
*MovieObj_ConvertMovieToFile(MovieObject
*_self
, PyObject
*_args
)
6007 PyObject
*_res
= NULL
;
6013 ScriptCode scriptTag
;
6016 ComponentInstance userComp
;
6017 #ifndef ConvertMovieToFile
6018 PyMac_PRECHECK(ConvertMovieToFile
);
6020 if (!PyArg_ParseTuple(_args
, "O&O&O&O&hlO&",
6021 TrackObj_Convert
, &onlyTrack
,
6022 PyMac_GetFSSpec
, &outputFile
,
6023 PyMac_GetOSType
, &fileType
,
6024 PyMac_GetOSType
, &creator
,
6027 CmpInstObj_Convert
, &userComp
))
6029 _err
= ConvertMovieToFile(_self
->ob_itself
,
6038 if (_err
!= noErr
) return PyMac_Error(_err
);
6039 _res
= Py_BuildValue("h",
6044 static PyObject
*MovieObj_GetMovieDataSize(MovieObject
*_self
, PyObject
*_args
)
6046 PyObject
*_res
= NULL
;
6048 TimeValue startTime
;
6050 #ifndef GetMovieDataSize
6051 PyMac_PRECHECK(GetMovieDataSize
);
6053 if (!PyArg_ParseTuple(_args
, "ll",
6057 _rv
= GetMovieDataSize(_self
->ob_itself
,
6060 _res
= Py_BuildValue("l",
6065 static PyObject
*MovieObj_GetMovieDataSize64(MovieObject
*_self
, PyObject
*_args
)
6067 PyObject
*_res
= NULL
;
6069 TimeValue startTime
;
6072 #ifndef GetMovieDataSize64
6073 PyMac_PRECHECK(GetMovieDataSize64
);
6075 if (!PyArg_ParseTuple(_args
, "ll",
6079 _err
= GetMovieDataSize64(_self
->ob_itself
,
6083 if (_err
!= noErr
) return PyMac_Error(_err
);
6084 _res
= Py_BuildValue("O&",
6085 PyMac_Buildwide
, dataSize
);
6089 static PyObject
*MovieObj_PtInMovie(MovieObject
*_self
, PyObject
*_args
)
6091 PyObject
*_res
= NULL
;
6095 PyMac_PRECHECK(PtInMovie
);
6097 if (!PyArg_ParseTuple(_args
, "O&",
6098 PyMac_GetPoint
, &pt
))
6100 _rv
= PtInMovie(_self
->ob_itself
,
6102 _res
= Py_BuildValue("b",
6107 static PyObject
*MovieObj_SetMovieLanguage(MovieObject
*_self
, PyObject
*_args
)
6109 PyObject
*_res
= NULL
;
6111 #ifndef SetMovieLanguage
6112 PyMac_PRECHECK(SetMovieLanguage
);
6114 if (!PyArg_ParseTuple(_args
, "l",
6117 SetMovieLanguage(_self
->ob_itself
,
6124 static PyObject
*MovieObj_GetMovieNextInterestingTime(MovieObject
*_self
, PyObject
*_args
)
6126 PyObject
*_res
= NULL
;
6127 short interestingTimeFlags
;
6128 short numMediaTypes
;
6129 OSType whichMediaTypes
;
6132 TimeValue interestingTime
;
6133 TimeValue interestingDuration
;
6134 #ifndef GetMovieNextInterestingTime
6135 PyMac_PRECHECK(GetMovieNextInterestingTime
);
6137 if (!PyArg_ParseTuple(_args
, "hhO&lO&",
6138 &interestingTimeFlags
,
6140 PyMac_GetOSType
, &whichMediaTypes
,
6142 PyMac_GetFixed
, &rate
))
6144 GetMovieNextInterestingTime(_self
->ob_itself
,
6145 interestingTimeFlags
,
6151 &interestingDuration
);
6152 _res
= Py_BuildValue("ll",
6154 interestingDuration
);
6158 static PyObject
*MovieObj_AddMovieResource(MovieObject
*_self
, PyObject
*_args
)
6160 PyObject
*_res
= NULL
;
6165 #ifndef AddMovieResource
6166 PyMac_PRECHECK(AddMovieResource
);
6168 if (!PyArg_ParseTuple(_args
, "hO&",
6170 PyMac_GetStr255
, resName
))
6172 _err
= AddMovieResource(_self
->ob_itself
,
6176 if (_err
!= noErr
) return PyMac_Error(_err
);
6177 _res
= Py_BuildValue("h",
6182 static PyObject
*MovieObj_UpdateMovieResource(MovieObject
*_self
, PyObject
*_args
)
6184 PyObject
*_res
= NULL
;
6189 #ifndef UpdateMovieResource
6190 PyMac_PRECHECK(UpdateMovieResource
);
6192 if (!PyArg_ParseTuple(_args
, "hhO&",
6195 PyMac_GetStr255
, resName
))
6197 _err
= UpdateMovieResource(_self
->ob_itself
,
6201 if (_err
!= noErr
) return PyMac_Error(_err
);
6207 static PyObject
*MovieObj_HasMovieChanged(MovieObject
*_self
, PyObject
*_args
)
6209 PyObject
*_res
= NULL
;
6211 #ifndef HasMovieChanged
6212 PyMac_PRECHECK(HasMovieChanged
);
6214 if (!PyArg_ParseTuple(_args
, ""))
6216 _rv
= HasMovieChanged(_self
->ob_itself
);
6217 _res
= Py_BuildValue("b",
6222 static PyObject
*MovieObj_ClearMovieChanged(MovieObject
*_self
, PyObject
*_args
)
6224 PyObject
*_res
= NULL
;
6225 #ifndef ClearMovieChanged
6226 PyMac_PRECHECK(ClearMovieChanged
);
6228 if (!PyArg_ParseTuple(_args
, ""))
6230 ClearMovieChanged(_self
->ob_itself
);
6236 static PyObject
*MovieObj_SetMovieDefaultDataRef(MovieObject
*_self
, PyObject
*_args
)
6238 PyObject
*_res
= NULL
;
6242 #ifndef SetMovieDefaultDataRef
6243 PyMac_PRECHECK(SetMovieDefaultDataRef
);
6245 if (!PyArg_ParseTuple(_args
, "O&O&",
6246 ResObj_Convert
, &dataRef
,
6247 PyMac_GetOSType
, &dataRefType
))
6249 _err
= SetMovieDefaultDataRef(_self
->ob_itself
,
6252 if (_err
!= noErr
) return PyMac_Error(_err
);
6258 static PyObject
*MovieObj_GetMovieDefaultDataRef(MovieObject
*_self
, PyObject
*_args
)
6260 PyObject
*_res
= NULL
;
6264 #ifndef GetMovieDefaultDataRef
6265 PyMac_PRECHECK(GetMovieDefaultDataRef
);
6267 if (!PyArg_ParseTuple(_args
, ""))
6269 _err
= GetMovieDefaultDataRef(_self
->ob_itself
,
6272 if (_err
!= noErr
) return PyMac_Error(_err
);
6273 _res
= Py_BuildValue("O&O&",
6274 ResObj_New
, dataRef
,
6275 PyMac_BuildOSType
, dataRefType
);
6279 static PyObject
*MovieObj_SetMovieColorTable(MovieObject
*_self
, PyObject
*_args
)
6281 PyObject
*_res
= NULL
;
6284 #ifndef SetMovieColorTable
6285 PyMac_PRECHECK(SetMovieColorTable
);
6287 if (!PyArg_ParseTuple(_args
, "O&",
6288 ResObj_Convert
, &ctab
))
6290 _err
= SetMovieColorTable(_self
->ob_itself
,
6292 if (_err
!= noErr
) return PyMac_Error(_err
);
6298 static PyObject
*MovieObj_GetMovieColorTable(MovieObject
*_self
, PyObject
*_args
)
6300 PyObject
*_res
= NULL
;
6303 #ifndef GetMovieColorTable
6304 PyMac_PRECHECK(GetMovieColorTable
);
6306 if (!PyArg_ParseTuple(_args
, ""))
6308 _err
= GetMovieColorTable(_self
->ob_itself
,
6310 if (_err
!= noErr
) return PyMac_Error(_err
);
6311 _res
= Py_BuildValue("O&",
6316 static PyObject
*MovieObj_FlattenMovie(MovieObject
*_self
, PyObject
*_args
)
6318 PyObject
*_res
= NULL
;
6319 long movieFlattenFlags
;
6322 ScriptCode scriptTag
;
6323 long createMovieFileFlags
;
6326 #ifndef FlattenMovie
6327 PyMac_PRECHECK(FlattenMovie
);
6329 if (!PyArg_ParseTuple(_args
, "lO&O&hlO&",
6331 PyMac_GetFSSpec
, &theFile
,
6332 PyMac_GetOSType
, &creator
,
6334 &createMovieFileFlags
,
6335 PyMac_GetStr255
, resName
))
6337 FlattenMovie(_self
->ob_itself
,
6342 createMovieFileFlags
,
6345 _res
= Py_BuildValue("h",
6350 static PyObject
*MovieObj_FlattenMovieData(MovieObject
*_self
, PyObject
*_args
)
6352 PyObject
*_res
= NULL
;
6354 long movieFlattenFlags
;
6357 ScriptCode scriptTag
;
6358 long createMovieFileFlags
;
6359 #ifndef FlattenMovieData
6360 PyMac_PRECHECK(FlattenMovieData
);
6362 if (!PyArg_ParseTuple(_args
, "lO&O&hl",
6364 PyMac_GetFSSpec
, &theFile
,
6365 PyMac_GetOSType
, &creator
,
6367 &createMovieFileFlags
))
6369 _rv
= FlattenMovieData(_self
->ob_itself
,
6374 createMovieFileFlags
);
6375 _res
= Py_BuildValue("O&",
6380 static PyObject
*MovieObj_MovieSearchText(MovieObject
*_self
, PyObject
*_args
)
6382 PyObject
*_res
= NULL
;
6388 TimeValue searchTime
;
6390 #ifndef MovieSearchText
6391 PyMac_PRECHECK(MovieSearchText
);
6393 if (!PyArg_ParseTuple(_args
, "sll",
6398 _err
= MovieSearchText(_self
->ob_itself
,
6405 if (_err
!= noErr
) return PyMac_Error(_err
);
6406 _res
= Py_BuildValue("O&ll",
6407 TrackObj_New
, searchTrack
,
6413 static PyObject
*MovieObj_GetPosterBox(MovieObject
*_self
, PyObject
*_args
)
6415 PyObject
*_res
= NULL
;
6417 #ifndef GetPosterBox
6418 PyMac_PRECHECK(GetPosterBox
);
6420 if (!PyArg_ParseTuple(_args
, ""))
6422 GetPosterBox(_self
->ob_itself
,
6424 _res
= Py_BuildValue("O&",
6425 PyMac_BuildRect
, &boxRect
);
6429 static PyObject
*MovieObj_SetPosterBox(MovieObject
*_self
, PyObject
*_args
)
6431 PyObject
*_res
= NULL
;
6433 #ifndef SetPosterBox
6434 PyMac_PRECHECK(SetPosterBox
);
6436 if (!PyArg_ParseTuple(_args
, "O&",
6437 PyMac_GetRect
, &boxRect
))
6439 SetPosterBox(_self
->ob_itself
,
6446 static PyObject
*MovieObj_GetMovieSegmentDisplayBoundsRgn(MovieObject
*_self
, PyObject
*_args
)
6448 PyObject
*_res
= NULL
;
6452 #ifndef GetMovieSegmentDisplayBoundsRgn
6453 PyMac_PRECHECK(GetMovieSegmentDisplayBoundsRgn
);
6455 if (!PyArg_ParseTuple(_args
, "ll",
6459 _rv
= GetMovieSegmentDisplayBoundsRgn(_self
->ob_itself
,
6462 _res
= Py_BuildValue("O&",
6467 static PyObject
*MovieObj_GetMovieStatus(MovieObject
*_self
, PyObject
*_args
)
6469 PyObject
*_res
= NULL
;
6470 ComponentResult _rv
;
6471 Track firstProblemTrack
;
6472 #ifndef GetMovieStatus
6473 PyMac_PRECHECK(GetMovieStatus
);
6475 if (!PyArg_ParseTuple(_args
, ""))
6477 _rv
= GetMovieStatus(_self
->ob_itself
,
6478 &firstProblemTrack
);
6479 _res
= Py_BuildValue("lO&",
6481 TrackObj_New
, firstProblemTrack
);
6485 static PyObject
*MovieObj_NewMovieController(MovieObject
*_self
, PyObject
*_args
)
6487 PyObject
*_res
= NULL
;
6488 MovieController _rv
;
6491 #ifndef NewMovieController
6492 PyMac_PRECHECK(NewMovieController
);
6494 if (!PyArg_ParseTuple(_args
, "O&l",
6495 PyMac_GetRect
, &movieRect
,
6498 _rv
= NewMovieController(_self
->ob_itself
,
6501 _res
= Py_BuildValue("O&",
6502 MovieCtlObj_New
, _rv
);
6506 static PyObject
*MovieObj_PutMovieOnScrap(MovieObject
*_self
, PyObject
*_args
)
6508 PyObject
*_res
= NULL
;
6510 long movieScrapFlags
;
6511 #ifndef PutMovieOnScrap
6512 PyMac_PRECHECK(PutMovieOnScrap
);
6514 if (!PyArg_ParseTuple(_args
, "l",
6517 _err
= PutMovieOnScrap(_self
->ob_itself
,
6519 if (_err
!= noErr
) return PyMac_Error(_err
);
6525 static PyObject
*MovieObj_SetMoviePlayHints(MovieObject
*_self
, PyObject
*_args
)
6527 PyObject
*_res
= NULL
;
6530 #ifndef SetMoviePlayHints
6531 PyMac_PRECHECK(SetMoviePlayHints
);
6533 if (!PyArg_ParseTuple(_args
, "ll",
6537 SetMoviePlayHints(_self
->ob_itself
,
6545 static PyObject
*MovieObj_GetMaxLoadedTimeInMovie(MovieObject
*_self
, PyObject
*_args
)
6547 PyObject
*_res
= NULL
;
6550 #ifndef GetMaxLoadedTimeInMovie
6551 PyMac_PRECHECK(GetMaxLoadedTimeInMovie
);
6553 if (!PyArg_ParseTuple(_args
, ""))
6555 _err
= GetMaxLoadedTimeInMovie(_self
->ob_itself
,
6557 if (_err
!= noErr
) return PyMac_Error(_err
);
6558 _res
= Py_BuildValue("l",
6563 static PyObject
*MovieObj_QTMovieNeedsTimeTable(MovieObject
*_self
, PyObject
*_args
)
6565 PyObject
*_res
= NULL
;
6567 Boolean needsTimeTable
;
6568 #ifndef QTMovieNeedsTimeTable
6569 PyMac_PRECHECK(QTMovieNeedsTimeTable
);
6571 if (!PyArg_ParseTuple(_args
, ""))
6573 _err
= QTMovieNeedsTimeTable(_self
->ob_itself
,
6575 if (_err
!= noErr
) return PyMac_Error(_err
);
6576 _res
= Py_BuildValue("b",
6581 static PyObject
*MovieObj_QTGetDataRefMaxFileOffset(MovieObject
*_self
, PyObject
*_args
)
6583 PyObject
*_res
= NULL
;
6588 #ifndef QTGetDataRefMaxFileOffset
6589 PyMac_PRECHECK(QTGetDataRefMaxFileOffset
);
6591 if (!PyArg_ParseTuple(_args
, "O&O&",
6592 PyMac_GetOSType
, &dataRefType
,
6593 ResObj_Convert
, &dataRef
))
6595 _err
= QTGetDataRefMaxFileOffset(_self
->ob_itself
,
6599 if (_err
!= noErr
) return PyMac_Error(_err
);
6600 _res
= Py_BuildValue("l",
6605 static PyMethodDef MovieObj_methods
[] = {
6606 {"MoviesTask", (PyCFunction
)MovieObj_MoviesTask
, 1,
6607 PyDoc_STR("(long maxMilliSecToUse) -> None")},
6608 {"PrerollMovie", (PyCFunction
)MovieObj_PrerollMovie
, 1,
6609 PyDoc_STR("(TimeValue time, Fixed Rate) -> None")},
6610 {"AbortPrePrerollMovie", (PyCFunction
)MovieObj_AbortPrePrerollMovie
, 1,
6611 PyDoc_STR("(OSErr err) -> None")},
6612 {"LoadMovieIntoRam", (PyCFunction
)MovieObj_LoadMovieIntoRam
, 1,
6613 PyDoc_STR("(TimeValue time, TimeValue duration, long flags) -> None")},
6614 {"SetMovieActive", (PyCFunction
)MovieObj_SetMovieActive
, 1,
6615 PyDoc_STR("(Boolean active) -> None")},
6616 {"GetMovieActive", (PyCFunction
)MovieObj_GetMovieActive
, 1,
6617 PyDoc_STR("() -> (Boolean _rv)")},
6618 {"StartMovie", (PyCFunction
)MovieObj_StartMovie
, 1,
6619 PyDoc_STR("() -> None")},
6620 {"StopMovie", (PyCFunction
)MovieObj_StopMovie
, 1,
6621 PyDoc_STR("() -> None")},
6622 {"GoToBeginningOfMovie", (PyCFunction
)MovieObj_GoToBeginningOfMovie
, 1,
6623 PyDoc_STR("() -> None")},
6624 {"GoToEndOfMovie", (PyCFunction
)MovieObj_GoToEndOfMovie
, 1,
6625 PyDoc_STR("() -> None")},
6626 {"IsMovieDone", (PyCFunction
)MovieObj_IsMovieDone
, 1,
6627 PyDoc_STR("() -> (Boolean _rv)")},
6628 {"GetMoviePreviewMode", (PyCFunction
)MovieObj_GetMoviePreviewMode
, 1,
6629 PyDoc_STR("() -> (Boolean _rv)")},
6630 {"SetMoviePreviewMode", (PyCFunction
)MovieObj_SetMoviePreviewMode
, 1,
6631 PyDoc_STR("(Boolean usePreview) -> None")},
6632 {"ShowMoviePoster", (PyCFunction
)MovieObj_ShowMoviePoster
, 1,
6633 PyDoc_STR("() -> None")},
6634 {"GetMovieTimeBase", (PyCFunction
)MovieObj_GetMovieTimeBase
, 1,
6635 PyDoc_STR("() -> (TimeBase _rv)")},
6636 {"SetMovieMasterTimeBase", (PyCFunction
)MovieObj_SetMovieMasterTimeBase
, 1,
6637 PyDoc_STR("(TimeBase tb, TimeRecord slaveZero) -> None")},
6638 {"SetMovieMasterClock", (PyCFunction
)MovieObj_SetMovieMasterClock
, 1,
6639 PyDoc_STR("(Component clockMeister, TimeRecord slaveZero) -> None")},
6640 {"GetMovieGWorld", (PyCFunction
)MovieObj_GetMovieGWorld
, 1,
6641 PyDoc_STR("() -> (CGrafPtr port, GDHandle gdh)")},
6642 {"SetMovieGWorld", (PyCFunction
)MovieObj_SetMovieGWorld
, 1,
6643 PyDoc_STR("(CGrafPtr port, GDHandle gdh) -> None")},
6644 {"GetMovieNaturalBoundsRect", (PyCFunction
)MovieObj_GetMovieNaturalBoundsRect
, 1,
6645 PyDoc_STR("() -> (Rect naturalBounds)")},
6646 {"GetNextTrackForCompositing", (PyCFunction
)MovieObj_GetNextTrackForCompositing
, 1,
6647 PyDoc_STR("(Track theTrack) -> (Track _rv)")},
6648 {"GetPrevTrackForCompositing", (PyCFunction
)MovieObj_GetPrevTrackForCompositing
, 1,
6649 PyDoc_STR("(Track theTrack) -> (Track _rv)")},
6650 {"GetMoviePict", (PyCFunction
)MovieObj_GetMoviePict
, 1,
6651 PyDoc_STR("(TimeValue time) -> (PicHandle _rv)")},
6652 {"GetMoviePosterPict", (PyCFunction
)MovieObj_GetMoviePosterPict
, 1,
6653 PyDoc_STR("() -> (PicHandle _rv)")},
6654 {"UpdateMovie", (PyCFunction
)MovieObj_UpdateMovie
, 1,
6655 PyDoc_STR("() -> None")},
6656 {"InvalidateMovieRegion", (PyCFunction
)MovieObj_InvalidateMovieRegion
, 1,
6657 PyDoc_STR("(RgnHandle invalidRgn) -> None")},
6658 {"GetMovieBox", (PyCFunction
)MovieObj_GetMovieBox
, 1,
6659 PyDoc_STR("() -> (Rect boxRect)")},
6660 {"SetMovieBox", (PyCFunction
)MovieObj_SetMovieBox
, 1,
6661 PyDoc_STR("(Rect boxRect) -> None")},
6662 {"GetMovieDisplayClipRgn", (PyCFunction
)MovieObj_GetMovieDisplayClipRgn
, 1,
6663 PyDoc_STR("() -> (RgnHandle _rv)")},
6664 {"SetMovieDisplayClipRgn", (PyCFunction
)MovieObj_SetMovieDisplayClipRgn
, 1,
6665 PyDoc_STR("(RgnHandle theClip) -> None")},
6666 {"GetMovieClipRgn", (PyCFunction
)MovieObj_GetMovieClipRgn
, 1,
6667 PyDoc_STR("() -> (RgnHandle _rv)")},
6668 {"SetMovieClipRgn", (PyCFunction
)MovieObj_SetMovieClipRgn
, 1,
6669 PyDoc_STR("(RgnHandle theClip) -> None")},
6670 {"GetMovieDisplayBoundsRgn", (PyCFunction
)MovieObj_GetMovieDisplayBoundsRgn
, 1,
6671 PyDoc_STR("() -> (RgnHandle _rv)")},
6672 {"GetMovieBoundsRgn", (PyCFunction
)MovieObj_GetMovieBoundsRgn
, 1,
6673 PyDoc_STR("() -> (RgnHandle _rv)")},
6674 {"SetMovieVideoOutput", (PyCFunction
)MovieObj_SetMovieVideoOutput
, 1,
6675 PyDoc_STR("(ComponentInstance vout) -> None")},
6676 {"PutMovieIntoHandle", (PyCFunction
)MovieObj_PutMovieIntoHandle
, 1,
6677 PyDoc_STR("(Handle publicMovie) -> None")},
6678 {"PutMovieIntoDataFork", (PyCFunction
)MovieObj_PutMovieIntoDataFork
, 1,
6679 PyDoc_STR("(short fRefNum, long offset, long maxSize) -> None")},
6680 {"PutMovieIntoDataFork64", (PyCFunction
)MovieObj_PutMovieIntoDataFork64
, 1,
6681 PyDoc_STR("(long fRefNum, wide offset, unsigned long maxSize) -> None")},
6682 {"GetMovieCreationTime", (PyCFunction
)MovieObj_GetMovieCreationTime
, 1,
6683 PyDoc_STR("() -> (unsigned long _rv)")},
6684 {"GetMovieModificationTime", (PyCFunction
)MovieObj_GetMovieModificationTime
, 1,
6685 PyDoc_STR("() -> (unsigned long _rv)")},
6686 {"GetMovieTimeScale", (PyCFunction
)MovieObj_GetMovieTimeScale
, 1,
6687 PyDoc_STR("() -> (TimeScale _rv)")},
6688 {"SetMovieTimeScale", (PyCFunction
)MovieObj_SetMovieTimeScale
, 1,
6689 PyDoc_STR("(TimeScale timeScale) -> None")},
6690 {"GetMovieDuration", (PyCFunction
)MovieObj_GetMovieDuration
, 1,
6691 PyDoc_STR("() -> (TimeValue _rv)")},
6692 {"GetMovieRate", (PyCFunction
)MovieObj_GetMovieRate
, 1,
6693 PyDoc_STR("() -> (Fixed _rv)")},
6694 {"SetMovieRate", (PyCFunction
)MovieObj_SetMovieRate
, 1,
6695 PyDoc_STR("(Fixed rate) -> None")},
6696 {"GetMoviePreferredRate", (PyCFunction
)MovieObj_GetMoviePreferredRate
, 1,
6697 PyDoc_STR("() -> (Fixed _rv)")},
6698 {"SetMoviePreferredRate", (PyCFunction
)MovieObj_SetMoviePreferredRate
, 1,
6699 PyDoc_STR("(Fixed rate) -> None")},
6700 {"GetMoviePreferredVolume", (PyCFunction
)MovieObj_GetMoviePreferredVolume
, 1,
6701 PyDoc_STR("() -> (short _rv)")},
6702 {"SetMoviePreferredVolume", (PyCFunction
)MovieObj_SetMoviePreferredVolume
, 1,
6703 PyDoc_STR("(short volume) -> None")},
6704 {"GetMovieVolume", (PyCFunction
)MovieObj_GetMovieVolume
, 1,
6705 PyDoc_STR("() -> (short _rv)")},
6706 {"SetMovieVolume", (PyCFunction
)MovieObj_SetMovieVolume
, 1,
6707 PyDoc_STR("(short volume) -> None")},
6708 {"GetMoviePreviewTime", (PyCFunction
)MovieObj_GetMoviePreviewTime
, 1,
6709 PyDoc_STR("() -> (TimeValue previewTime, TimeValue previewDuration)")},
6710 {"SetMoviePreviewTime", (PyCFunction
)MovieObj_SetMoviePreviewTime
, 1,
6711 PyDoc_STR("(TimeValue previewTime, TimeValue previewDuration) -> None")},
6712 {"GetMoviePosterTime", (PyCFunction
)MovieObj_GetMoviePosterTime
, 1,
6713 PyDoc_STR("() -> (TimeValue _rv)")},
6714 {"SetMoviePosterTime", (PyCFunction
)MovieObj_SetMoviePosterTime
, 1,
6715 PyDoc_STR("(TimeValue posterTime) -> None")},
6716 {"GetMovieSelection", (PyCFunction
)MovieObj_GetMovieSelection
, 1,
6717 PyDoc_STR("() -> (TimeValue selectionTime, TimeValue selectionDuration)")},
6718 {"SetMovieSelection", (PyCFunction
)MovieObj_SetMovieSelection
, 1,
6719 PyDoc_STR("(TimeValue selectionTime, TimeValue selectionDuration) -> None")},
6720 {"SetMovieActiveSegment", (PyCFunction
)MovieObj_SetMovieActiveSegment
, 1,
6721 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> None")},
6722 {"GetMovieActiveSegment", (PyCFunction
)MovieObj_GetMovieActiveSegment
, 1,
6723 PyDoc_STR("() -> (TimeValue startTime, TimeValue duration)")},
6724 {"GetMovieTime", (PyCFunction
)MovieObj_GetMovieTime
, 1,
6725 PyDoc_STR("() -> (TimeValue _rv, TimeRecord currentTime)")},
6726 {"SetMovieTime", (PyCFunction
)MovieObj_SetMovieTime
, 1,
6727 PyDoc_STR("(TimeRecord newtime) -> None")},
6728 {"SetMovieTimeValue", (PyCFunction
)MovieObj_SetMovieTimeValue
, 1,
6729 PyDoc_STR("(TimeValue newtime) -> None")},
6730 {"GetMovieUserData", (PyCFunction
)MovieObj_GetMovieUserData
, 1,
6731 PyDoc_STR("() -> (UserData _rv)")},
6732 {"GetMovieTrackCount", (PyCFunction
)MovieObj_GetMovieTrackCount
, 1,
6733 PyDoc_STR("() -> (long _rv)")},
6734 {"GetMovieTrack", (PyCFunction
)MovieObj_GetMovieTrack
, 1,
6735 PyDoc_STR("(long trackID) -> (Track _rv)")},
6736 {"GetMovieIndTrack", (PyCFunction
)MovieObj_GetMovieIndTrack
, 1,
6737 PyDoc_STR("(long index) -> (Track _rv)")},
6738 {"GetMovieIndTrackType", (PyCFunction
)MovieObj_GetMovieIndTrackType
, 1,
6739 PyDoc_STR("(long index, OSType trackType, long flags) -> (Track _rv)")},
6740 {"NewMovieTrack", (PyCFunction
)MovieObj_NewMovieTrack
, 1,
6741 PyDoc_STR("(Fixed width, Fixed height, short trackVolume) -> (Track _rv)")},
6742 {"SetAutoTrackAlternatesEnabled", (PyCFunction
)MovieObj_SetAutoTrackAlternatesEnabled
, 1,
6743 PyDoc_STR("(Boolean enable) -> None")},
6744 {"SelectMovieAlternates", (PyCFunction
)MovieObj_SelectMovieAlternates
, 1,
6745 PyDoc_STR("() -> None")},
6746 {"InsertMovieSegment", (PyCFunction
)MovieObj_InsertMovieSegment
, 1,
6747 PyDoc_STR("(Movie dstMovie, TimeValue srcIn, TimeValue srcDuration, TimeValue dstIn) -> None")},
6748 {"InsertEmptyMovieSegment", (PyCFunction
)MovieObj_InsertEmptyMovieSegment
, 1,
6749 PyDoc_STR("(TimeValue dstIn, TimeValue dstDuration) -> None")},
6750 {"DeleteMovieSegment", (PyCFunction
)MovieObj_DeleteMovieSegment
, 1,
6751 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> None")},
6752 {"ScaleMovieSegment", (PyCFunction
)MovieObj_ScaleMovieSegment
, 1,
6753 PyDoc_STR("(TimeValue startTime, TimeValue oldDuration, TimeValue newDuration) -> None")},
6754 {"CutMovieSelection", (PyCFunction
)MovieObj_CutMovieSelection
, 1,
6755 PyDoc_STR("() -> (Movie _rv)")},
6756 {"CopyMovieSelection", (PyCFunction
)MovieObj_CopyMovieSelection
, 1,
6757 PyDoc_STR("() -> (Movie _rv)")},
6758 {"PasteMovieSelection", (PyCFunction
)MovieObj_PasteMovieSelection
, 1,
6759 PyDoc_STR("(Movie src) -> None")},
6760 {"AddMovieSelection", (PyCFunction
)MovieObj_AddMovieSelection
, 1,
6761 PyDoc_STR("(Movie src) -> None")},
6762 {"ClearMovieSelection", (PyCFunction
)MovieObj_ClearMovieSelection
, 1,
6763 PyDoc_STR("() -> None")},
6764 {"PutMovieIntoTypedHandle", (PyCFunction
)MovieObj_PutMovieIntoTypedHandle
, 1,
6765 PyDoc_STR("(Track targetTrack, OSType handleType, Handle publicMovie, TimeValue start, TimeValue dur, long flags, ComponentInstance userComp) -> None")},
6766 {"CopyMovieSettings", (PyCFunction
)MovieObj_CopyMovieSettings
, 1,
6767 PyDoc_STR("(Movie dstMovie) -> None")},
6768 {"ConvertMovieToFile", (PyCFunction
)MovieObj_ConvertMovieToFile
, 1,
6769 PyDoc_STR("(Track onlyTrack, FSSpec outputFile, OSType fileType, OSType creator, ScriptCode scriptTag, long flags, ComponentInstance userComp) -> (short resID)")},
6770 {"GetMovieDataSize", (PyCFunction
)MovieObj_GetMovieDataSize
, 1,
6771 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (long _rv)")},
6772 {"GetMovieDataSize64", (PyCFunction
)MovieObj_GetMovieDataSize64
, 1,
6773 PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (wide dataSize)")},
6774 {"PtInMovie", (PyCFunction
)MovieObj_PtInMovie
, 1,
6775 PyDoc_STR("(Point pt) -> (Boolean _rv)")},
6776 {"SetMovieLanguage", (PyCFunction
)MovieObj_SetMovieLanguage
, 1,
6777 PyDoc_STR("(long language) -> None")},
6778 {"GetMovieNextInterestingTime", (PyCFunction
)MovieObj_GetMovieNextInterestingTime
, 1,
6779 PyDoc_STR("(short interestingTimeFlags, short numMediaTypes, OSType whichMediaTypes, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration)")},
6780 {"AddMovieResource", (PyCFunction
)MovieObj_AddMovieResource
, 1,
6781 PyDoc_STR("(short resRefNum, Str255 resName) -> (short resId)")},
6782 {"UpdateMovieResource", (PyCFunction
)MovieObj_UpdateMovieResource
, 1,
6783 PyDoc_STR("(short resRefNum, short resId, Str255 resName) -> None")},
6784 {"HasMovieChanged", (PyCFunction
)MovieObj_HasMovieChanged
, 1,
6785 PyDoc_STR("() -> (Boolean _rv)")},
6786 {"ClearMovieChanged", (PyCFunction
)MovieObj_ClearMovieChanged
, 1,
6787 PyDoc_STR("() -> None")},
6788 {"SetMovieDefaultDataRef", (PyCFunction
)MovieObj_SetMovieDefaultDataRef
, 1,
6789 PyDoc_STR("(Handle dataRef, OSType dataRefType) -> None")},
6790 {"GetMovieDefaultDataRef", (PyCFunction
)MovieObj_GetMovieDefaultDataRef
, 1,
6791 PyDoc_STR("() -> (Handle dataRef, OSType dataRefType)")},
6792 {"SetMovieColorTable", (PyCFunction
)MovieObj_SetMovieColorTable
, 1,
6793 PyDoc_STR("(CTabHandle ctab) -> None")},
6794 {"GetMovieColorTable", (PyCFunction
)MovieObj_GetMovieColorTable
, 1,
6795 PyDoc_STR("() -> (CTabHandle ctab)")},
6796 {"FlattenMovie", (PyCFunction
)MovieObj_FlattenMovie
, 1,
6797 PyDoc_STR("(long movieFlattenFlags, FSSpec theFile, OSType creator, ScriptCode scriptTag, long createMovieFileFlags, Str255 resName) -> (short resId)")},
6798 {"FlattenMovieData", (PyCFunction
)MovieObj_FlattenMovieData
, 1,
6799 PyDoc_STR("(long movieFlattenFlags, FSSpec theFile, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (Movie _rv)")},
6800 {"MovieSearchText", (PyCFunction
)MovieObj_MovieSearchText
, 1,
6801 PyDoc_STR("(Ptr text, long size, long searchFlags) -> (Track searchTrack, TimeValue searchTime, long searchOffset)")},
6802 {"GetPosterBox", (PyCFunction
)MovieObj_GetPosterBox
, 1,
6803 PyDoc_STR("() -> (Rect boxRect)")},
6804 {"SetPosterBox", (PyCFunction
)MovieObj_SetPosterBox
, 1,
6805 PyDoc_STR("(Rect boxRect) -> None")},
6806 {"GetMovieSegmentDisplayBoundsRgn", (PyCFunction
)MovieObj_GetMovieSegmentDisplayBoundsRgn
, 1,
6807 PyDoc_STR("(TimeValue time, TimeValue duration) -> (RgnHandle _rv)")},
6808 {"GetMovieStatus", (PyCFunction
)MovieObj_GetMovieStatus
, 1,
6809 PyDoc_STR("() -> (ComponentResult _rv, Track firstProblemTrack)")},
6810 {"NewMovieController", (PyCFunction
)MovieObj_NewMovieController
, 1,
6811 PyDoc_STR("(Rect movieRect, long someFlags) -> (MovieController _rv)")},
6812 {"PutMovieOnScrap", (PyCFunction
)MovieObj_PutMovieOnScrap
, 1,
6813 PyDoc_STR("(long movieScrapFlags) -> None")},
6814 {"SetMoviePlayHints", (PyCFunction
)MovieObj_SetMoviePlayHints
, 1,
6815 PyDoc_STR("(long flags, long flagsMask) -> None")},
6816 {"GetMaxLoadedTimeInMovie", (PyCFunction
)MovieObj_GetMaxLoadedTimeInMovie
, 1,
6817 PyDoc_STR("() -> (TimeValue time)")},
6818 {"QTMovieNeedsTimeTable", (PyCFunction
)MovieObj_QTMovieNeedsTimeTable
, 1,
6819 PyDoc_STR("() -> (Boolean needsTimeTable)")},
6820 {"QTGetDataRefMaxFileOffset", (PyCFunction
)MovieObj_QTGetDataRefMaxFileOffset
, 1,
6821 PyDoc_STR("(OSType dataRefType, Handle dataRef) -> (long offset)")},
6825 #define MovieObj_getsetlist NULL
6828 #define MovieObj_compare NULL
6830 #define MovieObj_repr NULL
6832 #define MovieObj_hash NULL
6833 #define MovieObj_tp_init 0
6835 #define MovieObj_tp_alloc PyType_GenericAlloc
6837 static PyObject
*MovieObj_tp_new(PyTypeObject
*type
, PyObject
*args
, PyObject
*kwds
)
6841 char *kw
[] = {"itself", 0};
6843 if (!PyArg_ParseTupleAndKeywords(args
, kwds
, "O&", kw
, MovieObj_Convert
, &itself
)) return NULL
;
6844 if ((self
= type
->tp_alloc(type
, 0)) == NULL
) return NULL
;
6845 ((MovieObject
*)self
)->ob_itself
= itself
;
6849 #define MovieObj_tp_free PyObject_Del
6852 PyTypeObject Movie_Type
= {
6853 PyObject_HEAD_INIT(NULL
)
6855 "_Qt.Movie", /*tp_name*/
6856 sizeof(MovieObject
), /*tp_basicsize*/
6859 (destructor
) MovieObj_dealloc
, /*tp_dealloc*/
6861 (getattrfunc
)0, /*tp_getattr*/
6862 (setattrfunc
)0, /*tp_setattr*/
6863 (cmpfunc
) MovieObj_compare
, /*tp_compare*/
6864 (reprfunc
) MovieObj_repr
, /*tp_repr*/
6865 (PyNumberMethods
*)0, /* tp_as_number */
6866 (PySequenceMethods
*)0, /* tp_as_sequence */
6867 (PyMappingMethods
*)0, /* tp_as_mapping */
6868 (hashfunc
) MovieObj_hash
, /*tp_hash*/
6871 PyObject_GenericGetAttr
, /*tp_getattro*/
6872 PyObject_GenericSetAttr
, /*tp_setattro */
6874 Py_TPFLAGS_DEFAULT
|Py_TPFLAGS_BASETYPE
, /* tp_flags */
6878 0, /*tp_richcompare*/
6879 0, /*tp_weaklistoffset*/
6882 MovieObj_methods
, /* tp_methods */
6884 MovieObj_getsetlist
, /*tp_getset*/
6889 0, /*tp_dictoffset*/
6890 MovieObj_tp_init
, /* tp_init */
6891 MovieObj_tp_alloc
, /* tp_alloc */
6892 MovieObj_tp_new
, /* tp_new */
6893 MovieObj_tp_free
, /* tp_free */
6896 /* --------------------- End object type Movie ---------------------- */
6899 static PyObject
*Qt_EnterMovies(PyObject
*_self
, PyObject
*_args
)
6901 PyObject
*_res
= NULL
;
6904 PyMac_PRECHECK(EnterMovies
);
6906 if (!PyArg_ParseTuple(_args
, ""))
6908 _err
= EnterMovies();
6909 if (_err
!= noErr
) return PyMac_Error(_err
);
6915 static PyObject
*Qt_ExitMovies(PyObject
*_self
, PyObject
*_args
)
6917 PyObject
*_res
= NULL
;
6919 PyMac_PRECHECK(ExitMovies
);
6921 if (!PyArg_ParseTuple(_args
, ""))
6929 static PyObject
*Qt_GetMoviesError(PyObject
*_self
, PyObject
*_args
)
6931 PyObject
*_res
= NULL
;
6933 #ifndef GetMoviesError
6934 PyMac_PRECHECK(GetMoviesError
);
6936 if (!PyArg_ParseTuple(_args
, ""))
6938 _err
= GetMoviesError();
6939 if (_err
!= noErr
) return PyMac_Error(_err
);
6945 static PyObject
*Qt_ClearMoviesStickyError(PyObject
*_self
, PyObject
*_args
)
6947 PyObject
*_res
= NULL
;
6948 #ifndef ClearMoviesStickyError
6949 PyMac_PRECHECK(ClearMoviesStickyError
);
6951 if (!PyArg_ParseTuple(_args
, ""))
6953 ClearMoviesStickyError();
6959 static PyObject
*Qt_GetMoviesStickyError(PyObject
*_self
, PyObject
*_args
)
6961 PyObject
*_res
= NULL
;
6963 #ifndef GetMoviesStickyError
6964 PyMac_PRECHECK(GetMoviesStickyError
);
6966 if (!PyArg_ParseTuple(_args
, ""))
6968 _err
= GetMoviesStickyError();
6969 if (_err
!= noErr
) return PyMac_Error(_err
);
6975 static PyObject
*Qt_DisposeMatte(PyObject
*_self
, PyObject
*_args
)
6977 PyObject
*_res
= NULL
;
6978 PixMapHandle theMatte
;
6979 #ifndef DisposeMatte
6980 PyMac_PRECHECK(DisposeMatte
);
6982 if (!PyArg_ParseTuple(_args
, "O&",
6983 ResObj_Convert
, &theMatte
))
6985 DisposeMatte(theMatte
);
6991 static PyObject
*Qt_NewMovie(PyObject
*_self
, PyObject
*_args
)
6993 PyObject
*_res
= NULL
;
6997 PyMac_PRECHECK(NewMovie
);
6999 if (!PyArg_ParseTuple(_args
, "l",
7002 _rv
= NewMovie(flags
);
7003 _res
= Py_BuildValue("O&",
7008 static PyObject
*Qt_GetDataHandler(PyObject
*_self
, PyObject
*_args
)
7010 PyObject
*_res
= NULL
;
7013 OSType dataHandlerSubType
;
7015 #ifndef GetDataHandler
7016 PyMac_PRECHECK(GetDataHandler
);
7018 if (!PyArg_ParseTuple(_args
, "O&O&l",
7019 ResObj_Convert
, &dataRef
,
7020 PyMac_GetOSType
, &dataHandlerSubType
,
7023 _rv
= GetDataHandler(dataRef
,
7026 _res
= Py_BuildValue("O&",
7031 static PyObject
*Qt_PasteHandleIntoMovie(PyObject
*_self
, PyObject
*_args
)
7033 PyObject
*_res
= NULL
;
7039 ComponentInstance userComp
;
7040 #ifndef PasteHandleIntoMovie
7041 PyMac_PRECHECK(PasteHandleIntoMovie
);
7043 if (!PyArg_ParseTuple(_args
, "O&O&O&lO&",
7045 PyMac_GetOSType
, &handleType
,
7046 MovieObj_Convert
, &theMovie
,
7048 CmpInstObj_Convert
, &userComp
))
7050 _err
= PasteHandleIntoMovie(h
,
7055 if (_err
!= noErr
) return PyMac_Error(_err
);
7061 static PyObject
*Qt_GetMovieImporterForDataRef(PyObject
*_self
, PyObject
*_args
)
7063 PyObject
*_res
= NULL
;
7069 #ifndef GetMovieImporterForDataRef
7070 PyMac_PRECHECK(GetMovieImporterForDataRef
);
7072 if (!PyArg_ParseTuple(_args
, "O&O&l",
7073 PyMac_GetOSType
, &dataRefType
,
7074 ResObj_Convert
, &dataRef
,
7077 _err
= GetMovieImporterForDataRef(dataRefType
,
7081 if (_err
!= noErr
) return PyMac_Error(_err
);
7082 _res
= Py_BuildValue("O&",
7083 CmpObj_New
, importer
);
7087 static PyObject
*Qt_QTGetMIMETypeInfo(PyObject
*_self
, PyObject
*_args
)
7089 PyObject
*_res
= NULL
;
7091 char* mimeStringStart
;
7092 short mimeStringLength
;
7093 OSType infoSelector
;
7096 #ifndef QTGetMIMETypeInfo
7097 PyMac_PRECHECK(QTGetMIMETypeInfo
);
7099 if (!PyArg_ParseTuple(_args
, "shO&s",
7102 PyMac_GetOSType
, &infoSelector
,
7105 _err
= QTGetMIMETypeInfo(mimeStringStart
,
7110 if (_err
!= noErr
) return PyMac_Error(_err
);
7111 _res
= Py_BuildValue("l",
7116 static PyObject
*Qt_TrackTimeToMediaTime(PyObject
*_self
, PyObject
*_args
)
7118 PyObject
*_res
= NULL
;
7122 #ifndef TrackTimeToMediaTime
7123 PyMac_PRECHECK(TrackTimeToMediaTime
);
7125 if (!PyArg_ParseTuple(_args
, "lO&",
7127 TrackObj_Convert
, &theTrack
))
7129 _rv
= TrackTimeToMediaTime(value
,
7131 _res
= Py_BuildValue("l",
7136 static PyObject
*Qt_NewUserData(PyObject
*_self
, PyObject
*_args
)
7138 PyObject
*_res
= NULL
;
7140 UserData theUserData
;
7142 PyMac_PRECHECK(NewUserData
);
7144 if (!PyArg_ParseTuple(_args
, ""))
7146 _err
= NewUserData(&theUserData
);
7147 if (_err
!= noErr
) return PyMac_Error(_err
);
7148 _res
= Py_BuildValue("O&",
7149 UserDataObj_New
, theUserData
);
7153 static PyObject
*Qt_NewUserDataFromHandle(PyObject
*_self
, PyObject
*_args
)
7155 PyObject
*_res
= NULL
;
7158 UserData theUserData
;
7159 #ifndef NewUserDataFromHandle
7160 PyMac_PRECHECK(NewUserDataFromHandle
);
7162 if (!PyArg_ParseTuple(_args
, "O&",
7163 ResObj_Convert
, &h
))
7165 _err
= NewUserDataFromHandle(h
,
7167 if (_err
!= noErr
) return PyMac_Error(_err
);
7168 _res
= Py_BuildValue("O&",
7169 UserDataObj_New
, theUserData
);
7173 static PyObject
*Qt_CreateMovieFile(PyObject
*_self
, PyObject
*_args
)
7175 PyObject
*_res
= NULL
;
7179 ScriptCode scriptTag
;
7180 long createMovieFileFlags
;
7183 #ifndef CreateMovieFile
7184 PyMac_PRECHECK(CreateMovieFile
);
7186 if (!PyArg_ParseTuple(_args
, "O&O&hl",
7187 PyMac_GetFSSpec
, &fileSpec
,
7188 PyMac_GetOSType
, &creator
,
7190 &createMovieFileFlags
))
7192 _err
= CreateMovieFile(&fileSpec
,
7195 createMovieFileFlags
,
7198 if (_err
!= noErr
) return PyMac_Error(_err
);
7199 _res
= Py_BuildValue("hO&",
7201 MovieObj_New
, newmovie
);
7205 static PyObject
*Qt_OpenMovieFile(PyObject
*_self
, PyObject
*_args
)
7207 PyObject
*_res
= NULL
;
7212 #ifndef OpenMovieFile
7213 PyMac_PRECHECK(OpenMovieFile
);
7215 if (!PyArg_ParseTuple(_args
, "O&b",
7216 PyMac_GetFSSpec
, &fileSpec
,
7219 _err
= OpenMovieFile(&fileSpec
,
7222 if (_err
!= noErr
) return PyMac_Error(_err
);
7223 _res
= Py_BuildValue("h",
7228 static PyObject
*Qt_CloseMovieFile(PyObject
*_self
, PyObject
*_args
)
7230 PyObject
*_res
= NULL
;
7233 #ifndef CloseMovieFile
7234 PyMac_PRECHECK(CloseMovieFile
);
7236 if (!PyArg_ParseTuple(_args
, "h",
7239 _err
= CloseMovieFile(resRefNum
);
7240 if (_err
!= noErr
) return PyMac_Error(_err
);
7246 static PyObject
*Qt_DeleteMovieFile(PyObject
*_self
, PyObject
*_args
)
7248 PyObject
*_res
= NULL
;
7251 #ifndef DeleteMovieFile
7252 PyMac_PRECHECK(DeleteMovieFile
);
7254 if (!PyArg_ParseTuple(_args
, "O&",
7255 PyMac_GetFSSpec
, &fileSpec
))
7257 _err
= DeleteMovieFile(&fileSpec
);
7258 if (_err
!= noErr
) return PyMac_Error(_err
);
7264 static PyObject
*Qt_NewMovieFromFile(PyObject
*_self
, PyObject
*_args
)
7266 PyObject
*_res
= NULL
;
7271 short newMovieFlags
;
7272 Boolean dataRefWasChanged
;
7273 #ifndef NewMovieFromFile
7274 PyMac_PRECHECK(NewMovieFromFile
);
7276 if (!PyArg_ParseTuple(_args
, "hhh",
7281 _err
= NewMovieFromFile(&theMovie
,
7286 &dataRefWasChanged
);
7287 if (_err
!= noErr
) return PyMac_Error(_err
);
7288 _res
= Py_BuildValue("O&hb",
7289 MovieObj_New
, theMovie
,
7295 static PyObject
*Qt_NewMovieFromHandle(PyObject
*_self
, PyObject
*_args
)
7297 PyObject
*_res
= NULL
;
7301 short newMovieFlags
;
7302 Boolean dataRefWasChanged
;
7303 #ifndef NewMovieFromHandle
7304 PyMac_PRECHECK(NewMovieFromHandle
);
7306 if (!PyArg_ParseTuple(_args
, "O&h",
7310 _err
= NewMovieFromHandle(&theMovie
,
7313 &dataRefWasChanged
);
7314 if (_err
!= noErr
) return PyMac_Error(_err
);
7315 _res
= Py_BuildValue("O&b",
7316 MovieObj_New
, theMovie
,
7321 static PyObject
*Qt_NewMovieFromDataFork(PyObject
*_self
, PyObject
*_args
)
7323 PyObject
*_res
= NULL
;
7328 short newMovieFlags
;
7329 Boolean dataRefWasChanged
;
7330 #ifndef NewMovieFromDataFork
7331 PyMac_PRECHECK(NewMovieFromDataFork
);
7333 if (!PyArg_ParseTuple(_args
, "hlh",
7338 _err
= NewMovieFromDataFork(&theMovie
,
7342 &dataRefWasChanged
);
7343 if (_err
!= noErr
) return PyMac_Error(_err
);
7344 _res
= Py_BuildValue("O&b",
7345 MovieObj_New
, theMovie
,
7350 static PyObject
*Qt_NewMovieFromDataFork64(PyObject
*_self
, PyObject
*_args
)
7352 PyObject
*_res
= NULL
;
7357 short newMovieFlags
;
7358 Boolean dataRefWasChanged
;
7359 #ifndef NewMovieFromDataFork64
7360 PyMac_PRECHECK(NewMovieFromDataFork64
);
7362 if (!PyArg_ParseTuple(_args
, "lO&h",
7364 PyMac_Getwide
, &fileOffset
,
7367 _err
= NewMovieFromDataFork64(&theMovie
,
7371 &dataRefWasChanged
);
7372 if (_err
!= noErr
) return PyMac_Error(_err
);
7373 _res
= Py_BuildValue("O&b",
7374 MovieObj_New
, theMovie
,
7379 static PyObject
*Qt_NewMovieFromDataRef(PyObject
*_self
, PyObject
*_args
)
7381 PyObject
*_res
= NULL
;
7388 #ifndef NewMovieFromDataRef
7389 PyMac_PRECHECK(NewMovieFromDataRef
);
7391 if (!PyArg_ParseTuple(_args
, "hO&O&",
7393 ResObj_Convert
, &dataRef
,
7394 PyMac_GetOSType
, &dataRefType
))
7396 _err
= NewMovieFromDataRef(&m
,
7401 if (_err
!= noErr
) return PyMac_Error(_err
);
7402 _res
= Py_BuildValue("O&h",
7408 static PyObject
*Qt_RemoveMovieResource(PyObject
*_self
, PyObject
*_args
)
7410 PyObject
*_res
= NULL
;
7414 #ifndef RemoveMovieResource
7415 PyMac_PRECHECK(RemoveMovieResource
);
7417 if (!PyArg_ParseTuple(_args
, "hh",
7421 _err
= RemoveMovieResource(resRefNum
,
7423 if (_err
!= noErr
) return PyMac_Error(_err
);
7429 static PyObject
*Qt_CreateShortcutMovieFile(PyObject
*_self
, PyObject
*_args
)
7431 PyObject
*_res
= NULL
;
7435 ScriptCode scriptTag
;
7436 long createMovieFileFlags
;
7437 Handle targetDataRef
;
7438 OSType targetDataRefType
;
7439 #ifndef CreateShortcutMovieFile
7440 PyMac_PRECHECK(CreateShortcutMovieFile
);
7442 if (!PyArg_ParseTuple(_args
, "O&O&hlO&O&",
7443 PyMac_GetFSSpec
, &fileSpec
,
7444 PyMac_GetOSType
, &creator
,
7446 &createMovieFileFlags
,
7447 ResObj_Convert
, &targetDataRef
,
7448 PyMac_GetOSType
, &targetDataRefType
))
7450 _err
= CreateShortcutMovieFile(&fileSpec
,
7453 createMovieFileFlags
,
7456 if (_err
!= noErr
) return PyMac_Error(_err
);
7462 static PyObject
*Qt_CanQuickTimeOpenFile(PyObject
*_self
, PyObject
*_args
)
7464 PyObject
*_res
= NULL
;
7468 OSType fileNameExtension
;
7469 Boolean outCanOpenWithGraphicsImporter
;
7470 Boolean outCanOpenAsMovie
;
7471 Boolean outPreferGraphicsImporter
;
7473 #ifndef CanQuickTimeOpenFile
7474 PyMac_PRECHECK(CanQuickTimeOpenFile
);
7476 if (!PyArg_ParseTuple(_args
, "O&O&O&l",
7477 PyMac_GetFSSpec
, &fileSpec
,
7478 PyMac_GetOSType
, &fileType
,
7479 PyMac_GetOSType
, &fileNameExtension
,
7482 _err
= CanQuickTimeOpenFile(&fileSpec
,
7485 &outCanOpenWithGraphicsImporter
,
7487 &outPreferGraphicsImporter
,
7489 if (_err
!= noErr
) return PyMac_Error(_err
);
7490 _res
= Py_BuildValue("bbb",
7491 outCanOpenWithGraphicsImporter
,
7493 outPreferGraphicsImporter
);
7497 static PyObject
*Qt_CanQuickTimeOpenDataRef(PyObject
*_self
, PyObject
*_args
)
7499 PyObject
*_res
= NULL
;
7503 Boolean outCanOpenWithGraphicsImporter
;
7504 Boolean outCanOpenAsMovie
;
7505 Boolean outPreferGraphicsImporter
;
7507 #ifndef CanQuickTimeOpenDataRef
7508 PyMac_PRECHECK(CanQuickTimeOpenDataRef
);
7510 if (!PyArg_ParseTuple(_args
, "O&O&l",
7511 ResObj_Convert
, &dataRef
,
7512 PyMac_GetOSType
, &dataRefType
,
7515 _err
= CanQuickTimeOpenDataRef(dataRef
,
7517 &outCanOpenWithGraphicsImporter
,
7519 &outPreferGraphicsImporter
,
7521 if (_err
!= noErr
) return PyMac_Error(_err
);
7522 _res
= Py_BuildValue("bbb",
7523 outCanOpenWithGraphicsImporter
,
7525 outPreferGraphicsImporter
);
7529 static PyObject
*Qt_NewMovieFromScrap(PyObject
*_self
, PyObject
*_args
)
7531 PyObject
*_res
= NULL
;
7534 #ifndef NewMovieFromScrap
7535 PyMac_PRECHECK(NewMovieFromScrap
);
7537 if (!PyArg_ParseTuple(_args
, "l",
7540 _rv
= NewMovieFromScrap(newMovieFlags
);
7541 _res
= Py_BuildValue("O&",
7546 static PyObject
*Qt_QTNewAlias(PyObject
*_self
, PyObject
*_args
)
7548 PyObject
*_res
= NULL
;
7554 PyMac_PRECHECK(QTNewAlias
);
7556 if (!PyArg_ParseTuple(_args
, "O&b",
7557 PyMac_GetFSSpec
, &fss
,
7560 _err
= QTNewAlias(&fss
,
7563 if (_err
!= noErr
) return PyMac_Error(_err
);
7564 _res
= Py_BuildValue("O&",
7569 static PyObject
*Qt_EndFullScreen(PyObject
*_self
, PyObject
*_args
)
7571 PyObject
*_res
= NULL
;
7575 #ifndef EndFullScreen
7576 PyMac_PRECHECK(EndFullScreen
);
7578 if (!PyArg_ParseTuple(_args
, "sl",
7582 _err
= EndFullScreen(fullState
,
7584 if (_err
!= noErr
) return PyMac_Error(_err
);
7590 static PyObject
*Qt_AddSoundDescriptionExtension(PyObject
*_self
, PyObject
*_args
)
7592 PyObject
*_res
= NULL
;
7594 SoundDescriptionHandle desc
;
7597 #ifndef AddSoundDescriptionExtension
7598 PyMac_PRECHECK(AddSoundDescriptionExtension
);
7600 if (!PyArg_ParseTuple(_args
, "O&O&O&",
7601 ResObj_Convert
, &desc
,
7602 ResObj_Convert
, &extension
,
7603 PyMac_GetOSType
, &idType
))
7605 _err
= AddSoundDescriptionExtension(desc
,
7608 if (_err
!= noErr
) return PyMac_Error(_err
);
7614 static PyObject
*Qt_GetSoundDescriptionExtension(PyObject
*_self
, PyObject
*_args
)
7616 PyObject
*_res
= NULL
;
7618 SoundDescriptionHandle desc
;
7621 #ifndef GetSoundDescriptionExtension
7622 PyMac_PRECHECK(GetSoundDescriptionExtension
);
7624 if (!PyArg_ParseTuple(_args
, "O&O&",
7625 ResObj_Convert
, &desc
,
7626 PyMac_GetOSType
, &idType
))
7628 _err
= GetSoundDescriptionExtension(desc
,
7631 if (_err
!= noErr
) return PyMac_Error(_err
);
7632 _res
= Py_BuildValue("O&",
7633 ResObj_New
, extension
);
7637 static PyObject
*Qt_RemoveSoundDescriptionExtension(PyObject
*_self
, PyObject
*_args
)
7639 PyObject
*_res
= NULL
;
7641 SoundDescriptionHandle desc
;
7643 #ifndef RemoveSoundDescriptionExtension
7644 PyMac_PRECHECK(RemoveSoundDescriptionExtension
);
7646 if (!PyArg_ParseTuple(_args
, "O&O&",
7647 ResObj_Convert
, &desc
,
7648 PyMac_GetOSType
, &idType
))
7650 _err
= RemoveSoundDescriptionExtension(desc
,
7652 if (_err
!= noErr
) return PyMac_Error(_err
);
7658 static PyObject
*Qt_QTIsStandardParameterDialogEvent(PyObject
*_self
, PyObject
*_args
)
7660 PyObject
*_res
= NULL
;
7663 QTParameterDialog createdDialog
;
7664 #ifndef QTIsStandardParameterDialogEvent
7665 PyMac_PRECHECK(QTIsStandardParameterDialogEvent
);
7667 if (!PyArg_ParseTuple(_args
, "l",
7670 _err
= QTIsStandardParameterDialogEvent(&pEvent
,
7672 if (_err
!= noErr
) return PyMac_Error(_err
);
7673 _res
= Py_BuildValue("O&",
7674 PyMac_BuildEventRecord
, &pEvent
);
7678 static PyObject
*Qt_QTDismissStandardParameterDialog(PyObject
*_self
, PyObject
*_args
)
7680 PyObject
*_res
= NULL
;
7682 QTParameterDialog createdDialog
;
7683 #ifndef QTDismissStandardParameterDialog
7684 PyMac_PRECHECK(QTDismissStandardParameterDialog
);
7686 if (!PyArg_ParseTuple(_args
, "l",
7689 _err
= QTDismissStandardParameterDialog(createdDialog
);
7690 if (_err
!= noErr
) return PyMac_Error(_err
);
7696 static PyObject
*Qt_QTStandardParameterDialogDoAction(PyObject
*_self
, PyObject
*_args
)
7698 PyObject
*_res
= NULL
;
7700 QTParameterDialog createdDialog
;
7703 #ifndef QTStandardParameterDialogDoAction
7704 PyMac_PRECHECK(QTStandardParameterDialogDoAction
);
7706 if (!PyArg_ParseTuple(_args
, "lls",
7711 _err
= QTStandardParameterDialogDoAction(createdDialog
,
7714 if (_err
!= noErr
) return PyMac_Error(_err
);
7720 static PyObject
*Qt_QTRegisterAccessKey(PyObject
*_self
, PyObject
*_args
)
7722 PyObject
*_res
= NULL
;
7724 Str255 accessKeyType
;
7727 #ifndef QTRegisterAccessKey
7728 PyMac_PRECHECK(QTRegisterAccessKey
);
7730 if (!PyArg_ParseTuple(_args
, "O&lO&",
7731 PyMac_GetStr255
, accessKeyType
,
7733 ResObj_Convert
, &accessKey
))
7735 _err
= QTRegisterAccessKey(accessKeyType
,
7738 if (_err
!= noErr
) return PyMac_Error(_err
);
7744 static PyObject
*Qt_QTUnregisterAccessKey(PyObject
*_self
, PyObject
*_args
)
7746 PyObject
*_res
= NULL
;
7748 Str255 accessKeyType
;
7751 #ifndef QTUnregisterAccessKey
7752 PyMac_PRECHECK(QTUnregisterAccessKey
);
7754 if (!PyArg_ParseTuple(_args
, "O&lO&",
7755 PyMac_GetStr255
, accessKeyType
,
7757 ResObj_Convert
, &accessKey
))
7759 _err
= QTUnregisterAccessKey(accessKeyType
,
7762 if (_err
!= noErr
) return PyMac_Error(_err
);
7768 static PyObject
*Qt_QTTextToNativeText(PyObject
*_self
, PyObject
*_args
)
7770 PyObject
*_res
= NULL
;
7775 #ifndef QTTextToNativeText
7776 PyMac_PRECHECK(QTTextToNativeText
);
7778 if (!PyArg_ParseTuple(_args
, "O&ll",
7779 ResObj_Convert
, &theText
,
7783 _err
= QTTextToNativeText(theText
,
7786 if (_err
!= noErr
) return PyMac_Error(_err
);
7792 static PyObject
*Qt_VideoMediaResetStatistics(PyObject
*_self
, PyObject
*_args
)
7794 PyObject
*_res
= NULL
;
7795 ComponentResult _rv
;
7797 #ifndef VideoMediaResetStatistics
7798 PyMac_PRECHECK(VideoMediaResetStatistics
);
7800 if (!PyArg_ParseTuple(_args
, "O&",
7801 CmpInstObj_Convert
, &mh
))
7803 _rv
= VideoMediaResetStatistics(mh
);
7804 _res
= Py_BuildValue("l",
7809 static PyObject
*Qt_VideoMediaGetStatistics(PyObject
*_self
, PyObject
*_args
)
7811 PyObject
*_res
= NULL
;
7812 ComponentResult _rv
;
7814 #ifndef VideoMediaGetStatistics
7815 PyMac_PRECHECK(VideoMediaGetStatistics
);
7817 if (!PyArg_ParseTuple(_args
, "O&",
7818 CmpInstObj_Convert
, &mh
))
7820 _rv
= VideoMediaGetStatistics(mh
);
7821 _res
= Py_BuildValue("l",
7826 static PyObject
*Qt_VideoMediaGetStallCount(PyObject
*_self
, PyObject
*_args
)
7828 PyObject
*_res
= NULL
;
7829 ComponentResult _rv
;
7831 unsigned long stalls
;
7832 #ifndef VideoMediaGetStallCount
7833 PyMac_PRECHECK(VideoMediaGetStallCount
);
7835 if (!PyArg_ParseTuple(_args
, "O&",
7836 CmpInstObj_Convert
, &mh
))
7838 _rv
= VideoMediaGetStallCount(mh
,
7840 _res
= Py_BuildValue("ll",
7846 static PyObject
*Qt_VideoMediaSetCodecParameter(PyObject
*_self
, PyObject
*_args
)
7848 PyObject
*_res
= NULL
;
7849 ComponentResult _rv
;
7853 long parameterChangeSeed
;
7856 #ifndef VideoMediaSetCodecParameter
7857 PyMac_PRECHECK(VideoMediaSetCodecParameter
);
7859 if (!PyArg_ParseTuple(_args
, "O&O&O&lsl",
7860 CmpInstObj_Convert
, &mh
,
7861 PyMac_GetOSType
, &cType
,
7862 PyMac_GetOSType
, ¶meterID
,
7863 ¶meterChangeSeed
,
7867 _rv
= VideoMediaSetCodecParameter(mh
,
7870 parameterChangeSeed
,
7873 _res
= Py_BuildValue("l",
7878 static PyObject
*Qt_VideoMediaGetCodecParameter(PyObject
*_self
, PyObject
*_args
)
7880 PyObject
*_res
= NULL
;
7881 ComponentResult _rv
;
7885 Handle outParameterData
;
7886 #ifndef VideoMediaGetCodecParameter
7887 PyMac_PRECHECK(VideoMediaGetCodecParameter
);
7889 if (!PyArg_ParseTuple(_args
, "O&O&O&O&",
7890 CmpInstObj_Convert
, &mh
,
7891 PyMac_GetOSType
, &cType
,
7892 PyMac_GetOSType
, ¶meterID
,
7893 ResObj_Convert
, &outParameterData
))
7895 _rv
= VideoMediaGetCodecParameter(mh
,
7899 _res
= Py_BuildValue("l",
7904 static PyObject
*Qt_TextMediaAddTextSample(PyObject
*_self
, PyObject
*_args
)
7906 PyObject
*_res
= NULL
;
7907 ComponentResult _rv
;
7916 short textJustification
;
7919 TimeValue scrollDelay
;
7922 RGBColor rgbHiliteColor
;
7924 TimeValue sampleTime
;
7925 #ifndef TextMediaAddTextSample
7926 PyMac_PRECHECK(TextMediaAddTextSample
);
7928 if (!PyArg_ParseTuple(_args
, "O&slhhbhllhhl",
7929 CmpInstObj_Convert
, &mh
,
7942 _rv
= TextMediaAddTextSample(mh
,
7959 _res
= Py_BuildValue("lO&O&O&O&l",
7961 QdRGB_New
, &textColor
,
7962 QdRGB_New
, &backColor
,
7963 PyMac_BuildRect
, &textBox
,
7964 QdRGB_New
, &rgbHiliteColor
,
7969 static PyObject
*Qt_TextMediaAddTESample(PyObject
*_self
, PyObject
*_args
)
7971 PyObject
*_res
= NULL
;
7972 ComponentResult _rv
;
7976 short textJustification
;
7979 TimeValue scrollDelay
;
7982 RGBColor rgbHiliteColor
;
7984 TimeValue sampleTime
;
7985 #ifndef TextMediaAddTESample
7986 PyMac_PRECHECK(TextMediaAddTESample
);
7988 if (!PyArg_ParseTuple(_args
, "O&O&hllhhl",
7989 CmpInstObj_Convert
, &mh
,
7990 ResObj_Convert
, &hTE
,
7998 _rv
= TextMediaAddTESample(mh
,
8010 _res
= Py_BuildValue("lO&O&O&l",
8012 QdRGB_New
, &backColor
,
8013 PyMac_BuildRect
, &textBox
,
8014 QdRGB_New
, &rgbHiliteColor
,
8019 static PyObject
*Qt_TextMediaAddHiliteSample(PyObject
*_self
, PyObject
*_args
)
8021 PyObject
*_res
= NULL
;
8022 ComponentResult _rv
;
8026 RGBColor rgbHiliteColor
;
8028 TimeValue sampleTime
;
8029 #ifndef TextMediaAddHiliteSample
8030 PyMac_PRECHECK(TextMediaAddHiliteSample
);
8032 if (!PyArg_ParseTuple(_args
, "O&hhl",
8033 CmpInstObj_Convert
, &mh
,
8038 _rv
= TextMediaAddHiliteSample(mh
,
8044 _res
= Py_BuildValue("lO&l",
8046 QdRGB_New
, &rgbHiliteColor
,
8051 static PyObject
*Qt_TextMediaDrawRaw(PyObject
*_self
, PyObject
*_args
)
8053 PyObject
*_res
= NULL
;
8054 ComponentResult _rv
;
8060 TextDescriptionHandle tdh
;
8061 #ifndef TextMediaDrawRaw
8062 PyMac_PRECHECK(TextMediaDrawRaw
);
8064 if (!PyArg_ParseTuple(_args
, "O&O&O&slO&",
8065 CmpInstObj_Convert
, &mh
,
8066 GWorldObj_Convert
, &gw
,
8067 OptResObj_Convert
, &gd
,
8070 ResObj_Convert
, &tdh
))
8072 _rv
= TextMediaDrawRaw(mh
,
8078 _res
= Py_BuildValue("l",
8083 static PyObject
*Qt_TextMediaSetTextProperty(PyObject
*_self
, PyObject
*_args
)
8085 PyObject
*_res
= NULL
;
8086 ComponentResult _rv
;
8088 TimeValue atMediaTime
;
8092 #ifndef TextMediaSetTextProperty
8093 PyMac_PRECHECK(TextMediaSetTextProperty
);
8095 if (!PyArg_ParseTuple(_args
, "O&llsl",
8096 CmpInstObj_Convert
, &mh
,
8102 _rv
= TextMediaSetTextProperty(mh
,
8107 _res
= Py_BuildValue("l",
8112 static PyObject
*Qt_TextMediaRawSetup(PyObject
*_self
, PyObject
*_args
)
8114 PyObject
*_res
= NULL
;
8115 ComponentResult _rv
;
8121 TextDescriptionHandle tdh
;
8122 TimeValue sampleDuration
;
8123 #ifndef TextMediaRawSetup
8124 PyMac_PRECHECK(TextMediaRawSetup
);
8126 if (!PyArg_ParseTuple(_args
, "O&O&O&slO&l",
8127 CmpInstObj_Convert
, &mh
,
8128 GWorldObj_Convert
, &gw
,
8129 OptResObj_Convert
, &gd
,
8132 ResObj_Convert
, &tdh
,
8135 _rv
= TextMediaRawSetup(mh
,
8142 _res
= Py_BuildValue("l",
8147 static PyObject
*Qt_TextMediaRawIdle(PyObject
*_self
, PyObject
*_args
)
8149 PyObject
*_res
= NULL
;
8150 ComponentResult _rv
;
8154 TimeValue sampleTime
;
8157 #ifndef TextMediaRawIdle
8158 PyMac_PRECHECK(TextMediaRawIdle
);
8160 if (!PyArg_ParseTuple(_args
, "O&O&O&ll",
8161 CmpInstObj_Convert
, &mh
,
8162 GWorldObj_Convert
, &gw
,
8163 OptResObj_Convert
, &gd
,
8167 _rv
= TextMediaRawIdle(mh
,
8173 _res
= Py_BuildValue("ll",
8179 static PyObject
*Qt_TextMediaGetTextProperty(PyObject
*_self
, PyObject
*_args
)
8181 PyObject
*_res
= NULL
;
8182 ComponentResult _rv
;
8184 TimeValue atMediaTime
;
8188 #ifndef TextMediaGetTextProperty
8189 PyMac_PRECHECK(TextMediaGetTextProperty
);
8191 if (!PyArg_ParseTuple(_args
, "O&llsl",
8192 CmpInstObj_Convert
, &mh
,
8198 _rv
= TextMediaGetTextProperty(mh
,
8203 _res
= Py_BuildValue("l",
8208 static PyObject
*Qt_TextMediaFindNextText(PyObject
*_self
, PyObject
*_args
)
8210 PyObject
*_res
= NULL
;
8211 ComponentResult _rv
;
8216 TimeValue startTime
;
8217 TimeValue foundTime
;
8218 TimeValue foundDuration
;
8220 #ifndef TextMediaFindNextText
8221 PyMac_PRECHECK(TextMediaFindNextText
);
8223 if (!PyArg_ParseTuple(_args
, "O&slhl",
8224 CmpInstObj_Convert
, &mh
,
8230 _rv
= TextMediaFindNextText(mh
,
8238 _res
= Py_BuildValue("llll",
8246 static PyObject
*Qt_TextMediaHiliteTextSample(PyObject
*_self
, PyObject
*_args
)
8248 PyObject
*_res
= NULL
;
8249 ComponentResult _rv
;
8251 TimeValue sampleTime
;
8254 RGBColor rgbHiliteColor
;
8255 #ifndef TextMediaHiliteTextSample
8256 PyMac_PRECHECK(TextMediaHiliteTextSample
);
8258 if (!PyArg_ParseTuple(_args
, "O&lhh",
8259 CmpInstObj_Convert
, &mh
,
8264 _rv
= TextMediaHiliteTextSample(mh
,
8269 _res
= Py_BuildValue("lO&",
8271 QdRGB_New
, &rgbHiliteColor
);
8275 static PyObject
*Qt_TextMediaSetTextSampleData(PyObject
*_self
, PyObject
*_args
)
8277 PyObject
*_res
= NULL
;
8278 ComponentResult _rv
;
8282 #ifndef TextMediaSetTextSampleData
8283 PyMac_PRECHECK(TextMediaSetTextSampleData
);
8285 if (!PyArg_ParseTuple(_args
, "O&sO&",
8286 CmpInstObj_Convert
, &mh
,
8288 PyMac_GetOSType
, &dataType
))
8290 _rv
= TextMediaSetTextSampleData(mh
,
8293 _res
= Py_BuildValue("l",
8298 static PyObject
*Qt_SpriteMediaSetProperty(PyObject
*_self
, PyObject
*_args
)
8300 PyObject
*_res
= NULL
;
8301 ComponentResult _rv
;
8305 void * propertyValue
;
8306 #ifndef SpriteMediaSetProperty
8307 PyMac_PRECHECK(SpriteMediaSetProperty
);
8309 if (!PyArg_ParseTuple(_args
, "O&hls",
8310 CmpInstObj_Convert
, &mh
,
8315 _rv
= SpriteMediaSetProperty(mh
,
8319 _res
= Py_BuildValue("l",
8324 static PyObject
*Qt_SpriteMediaGetProperty(PyObject
*_self
, PyObject
*_args
)
8326 PyObject
*_res
= NULL
;
8327 ComponentResult _rv
;
8331 void * propertyValue
;
8332 #ifndef SpriteMediaGetProperty
8333 PyMac_PRECHECK(SpriteMediaGetProperty
);
8335 if (!PyArg_ParseTuple(_args
, "O&hls",
8336 CmpInstObj_Convert
, &mh
,
8341 _rv
= SpriteMediaGetProperty(mh
,
8345 _res
= Py_BuildValue("l",
8350 static PyObject
*Qt_SpriteMediaHitTestSprites(PyObject
*_self
, PyObject
*_args
)
8352 PyObject
*_res
= NULL
;
8353 ComponentResult _rv
;
8357 short spriteHitIndex
;
8358 #ifndef SpriteMediaHitTestSprites
8359 PyMac_PRECHECK(SpriteMediaHitTestSprites
);
8361 if (!PyArg_ParseTuple(_args
, "O&lO&",
8362 CmpInstObj_Convert
, &mh
,
8364 PyMac_GetPoint
, &loc
))
8366 _rv
= SpriteMediaHitTestSprites(mh
,
8370 _res
= Py_BuildValue("lh",
8376 static PyObject
*Qt_SpriteMediaCountSprites(PyObject
*_self
, PyObject
*_args
)
8378 PyObject
*_res
= NULL
;
8379 ComponentResult _rv
;
8382 #ifndef SpriteMediaCountSprites
8383 PyMac_PRECHECK(SpriteMediaCountSprites
);
8385 if (!PyArg_ParseTuple(_args
, "O&",
8386 CmpInstObj_Convert
, &mh
))
8388 _rv
= SpriteMediaCountSprites(mh
,
8390 _res
= Py_BuildValue("lh",
8396 static PyObject
*Qt_SpriteMediaCountImages(PyObject
*_self
, PyObject
*_args
)
8398 PyObject
*_res
= NULL
;
8399 ComponentResult _rv
;
8402 #ifndef SpriteMediaCountImages
8403 PyMac_PRECHECK(SpriteMediaCountImages
);
8405 if (!PyArg_ParseTuple(_args
, "O&",
8406 CmpInstObj_Convert
, &mh
))
8408 _rv
= SpriteMediaCountImages(mh
,
8410 _res
= Py_BuildValue("lh",
8416 static PyObject
*Qt_SpriteMediaGetIndImageDescription(PyObject
*_self
, PyObject
*_args
)
8418 PyObject
*_res
= NULL
;
8419 ComponentResult _rv
;
8422 ImageDescriptionHandle imageDescription
;
8423 #ifndef SpriteMediaGetIndImageDescription
8424 PyMac_PRECHECK(SpriteMediaGetIndImageDescription
);
8426 if (!PyArg_ParseTuple(_args
, "O&hO&",
8427 CmpInstObj_Convert
, &mh
,
8429 ResObj_Convert
, &imageDescription
))
8431 _rv
= SpriteMediaGetIndImageDescription(mh
,
8434 _res
= Py_BuildValue("l",
8439 static PyObject
*Qt_SpriteMediaGetDisplayedSampleNumber(PyObject
*_self
, PyObject
*_args
)
8441 PyObject
*_res
= NULL
;
8442 ComponentResult _rv
;
8445 #ifndef SpriteMediaGetDisplayedSampleNumber
8446 PyMac_PRECHECK(SpriteMediaGetDisplayedSampleNumber
);
8448 if (!PyArg_ParseTuple(_args
, "O&",
8449 CmpInstObj_Convert
, &mh
))
8451 _rv
= SpriteMediaGetDisplayedSampleNumber(mh
,
8453 _res
= Py_BuildValue("ll",
8459 static PyObject
*Qt_SpriteMediaGetSpriteName(PyObject
*_self
, PyObject
*_args
)
8461 PyObject
*_res
= NULL
;
8462 ComponentResult _rv
;
8466 #ifndef SpriteMediaGetSpriteName
8467 PyMac_PRECHECK(SpriteMediaGetSpriteName
);
8469 if (!PyArg_ParseTuple(_args
, "O&lO&",
8470 CmpInstObj_Convert
, &mh
,
8472 PyMac_GetStr255
, spriteName
))
8474 _rv
= SpriteMediaGetSpriteName(mh
,
8477 _res
= Py_BuildValue("l",
8482 static PyObject
*Qt_SpriteMediaGetImageName(PyObject
*_self
, PyObject
*_args
)
8484 PyObject
*_res
= NULL
;
8485 ComponentResult _rv
;
8489 #ifndef SpriteMediaGetImageName
8490 PyMac_PRECHECK(SpriteMediaGetImageName
);
8492 if (!PyArg_ParseTuple(_args
, "O&hO&",
8493 CmpInstObj_Convert
, &mh
,
8495 PyMac_GetStr255
, imageName
))
8497 _rv
= SpriteMediaGetImageName(mh
,
8500 _res
= Py_BuildValue("l",
8505 static PyObject
*Qt_SpriteMediaSetSpriteProperty(PyObject
*_self
, PyObject
*_args
)
8507 PyObject
*_res
= NULL
;
8508 ComponentResult _rv
;
8512 void * propertyValue
;
8513 #ifndef SpriteMediaSetSpriteProperty
8514 PyMac_PRECHECK(SpriteMediaSetSpriteProperty
);
8516 if (!PyArg_ParseTuple(_args
, "O&lls",
8517 CmpInstObj_Convert
, &mh
,
8522 _rv
= SpriteMediaSetSpriteProperty(mh
,
8526 _res
= Py_BuildValue("l",
8531 static PyObject
*Qt_SpriteMediaGetSpriteProperty(PyObject
*_self
, PyObject
*_args
)
8533 PyObject
*_res
= NULL
;
8534 ComponentResult _rv
;
8538 void * propertyValue
;
8539 #ifndef SpriteMediaGetSpriteProperty
8540 PyMac_PRECHECK(SpriteMediaGetSpriteProperty
);
8542 if (!PyArg_ParseTuple(_args
, "O&lls",
8543 CmpInstObj_Convert
, &mh
,
8548 _rv
= SpriteMediaGetSpriteProperty(mh
,
8552 _res
= Py_BuildValue("l",
8557 static PyObject
*Qt_SpriteMediaHitTestAllSprites(PyObject
*_self
, PyObject
*_args
)
8559 PyObject
*_res
= NULL
;
8560 ComponentResult _rv
;
8564 QTAtomID spriteHitID
;
8565 #ifndef SpriteMediaHitTestAllSprites
8566 PyMac_PRECHECK(SpriteMediaHitTestAllSprites
);
8568 if (!PyArg_ParseTuple(_args
, "O&lO&",
8569 CmpInstObj_Convert
, &mh
,
8571 PyMac_GetPoint
, &loc
))
8573 _rv
= SpriteMediaHitTestAllSprites(mh
,
8577 _res
= Py_BuildValue("ll",
8583 static PyObject
*Qt_SpriteMediaHitTestOneSprite(PyObject
*_self
, PyObject
*_args
)
8585 PyObject
*_res
= NULL
;
8586 ComponentResult _rv
;
8592 #ifndef SpriteMediaHitTestOneSprite
8593 PyMac_PRECHECK(SpriteMediaHitTestOneSprite
);
8595 if (!PyArg_ParseTuple(_args
, "O&llO&",
8596 CmpInstObj_Convert
, &mh
,
8599 PyMac_GetPoint
, &loc
))
8601 _rv
= SpriteMediaHitTestOneSprite(mh
,
8606 _res
= Py_BuildValue("lb",
8612 static PyObject
*Qt_SpriteMediaSpriteIndexToID(PyObject
*_self
, PyObject
*_args
)
8614 PyObject
*_res
= NULL
;
8615 ComponentResult _rv
;
8619 #ifndef SpriteMediaSpriteIndexToID
8620 PyMac_PRECHECK(SpriteMediaSpriteIndexToID
);
8622 if (!PyArg_ParseTuple(_args
, "O&h",
8623 CmpInstObj_Convert
, &mh
,
8626 _rv
= SpriteMediaSpriteIndexToID(mh
,
8629 _res
= Py_BuildValue("ll",
8635 static PyObject
*Qt_SpriteMediaSpriteIDToIndex(PyObject
*_self
, PyObject
*_args
)
8637 PyObject
*_res
= NULL
;
8638 ComponentResult _rv
;
8642 #ifndef SpriteMediaSpriteIDToIndex
8643 PyMac_PRECHECK(SpriteMediaSpriteIDToIndex
);
8645 if (!PyArg_ParseTuple(_args
, "O&l",
8646 CmpInstObj_Convert
, &mh
,
8649 _rv
= SpriteMediaSpriteIDToIndex(mh
,
8652 _res
= Py_BuildValue("lh",
8658 static PyObject
*Qt_SpriteMediaSetActionVariable(PyObject
*_self
, PyObject
*_args
)
8660 PyObject
*_res
= NULL
;
8661 ComponentResult _rv
;
8663 QTAtomID variableID
;
8665 #ifndef SpriteMediaSetActionVariable
8666 PyMac_PRECHECK(SpriteMediaSetActionVariable
);
8668 if (!PyArg_ParseTuple(_args
, "O&lf",
8669 CmpInstObj_Convert
, &mh
,
8673 _rv
= SpriteMediaSetActionVariable(mh
,
8676 _res
= Py_BuildValue("l",
8681 static PyObject
*Qt_SpriteMediaGetActionVariable(PyObject
*_self
, PyObject
*_args
)
8683 PyObject
*_res
= NULL
;
8684 ComponentResult _rv
;
8686 QTAtomID variableID
;
8688 #ifndef SpriteMediaGetActionVariable
8689 PyMac_PRECHECK(SpriteMediaGetActionVariable
);
8691 if (!PyArg_ParseTuple(_args
, "O&l",
8692 CmpInstObj_Convert
, &mh
,
8695 _rv
= SpriteMediaGetActionVariable(mh
,
8698 _res
= Py_BuildValue("lf",
8704 static PyObject
*Qt_SpriteMediaDisposeSprite(PyObject
*_self
, PyObject
*_args
)
8706 PyObject
*_res
= NULL
;
8707 ComponentResult _rv
;
8710 #ifndef SpriteMediaDisposeSprite
8711 PyMac_PRECHECK(SpriteMediaDisposeSprite
);
8713 if (!PyArg_ParseTuple(_args
, "O&l",
8714 CmpInstObj_Convert
, &mh
,
8717 _rv
= SpriteMediaDisposeSprite(mh
,
8719 _res
= Py_BuildValue("l",
8724 static PyObject
*Qt_SpriteMediaSetActionVariableToString(PyObject
*_self
, PyObject
*_args
)
8726 PyObject
*_res
= NULL
;
8727 ComponentResult _rv
;
8729 QTAtomID variableID
;
8731 #ifndef SpriteMediaSetActionVariableToString
8732 PyMac_PRECHECK(SpriteMediaSetActionVariableToString
);
8734 if (!PyArg_ParseTuple(_args
, "O&ls",
8735 CmpInstObj_Convert
, &mh
,
8739 _rv
= SpriteMediaSetActionVariableToString(mh
,
8742 _res
= Py_BuildValue("l",
8747 static PyObject
*Qt_SpriteMediaGetActionVariableAsString(PyObject
*_self
, PyObject
*_args
)
8749 PyObject
*_res
= NULL
;
8750 ComponentResult _rv
;
8752 QTAtomID variableID
;
8754 #ifndef SpriteMediaGetActionVariableAsString
8755 PyMac_PRECHECK(SpriteMediaGetActionVariableAsString
);
8757 if (!PyArg_ParseTuple(_args
, "O&l",
8758 CmpInstObj_Convert
, &mh
,
8761 _rv
= SpriteMediaGetActionVariableAsString(mh
,
8764 _res
= Py_BuildValue("lO&",
8766 ResObj_New
, theCString
);
8770 static PyObject
*Qt_FlashMediaSetPan(PyObject
*_self
, PyObject
*_args
)
8772 PyObject
*_res
= NULL
;
8773 ComponentResult _rv
;
8777 #ifndef FlashMediaSetPan
8778 PyMac_PRECHECK(FlashMediaSetPan
);
8780 if (!PyArg_ParseTuple(_args
, "O&hh",
8781 CmpInstObj_Convert
, &mh
,
8785 _rv
= FlashMediaSetPan(mh
,
8788 _res
= Py_BuildValue("l",
8793 static PyObject
*Qt_FlashMediaSetZoom(PyObject
*_self
, PyObject
*_args
)
8795 PyObject
*_res
= NULL
;
8796 ComponentResult _rv
;
8799 #ifndef FlashMediaSetZoom
8800 PyMac_PRECHECK(FlashMediaSetZoom
);
8802 if (!PyArg_ParseTuple(_args
, "O&h",
8803 CmpInstObj_Convert
, &mh
,
8806 _rv
= FlashMediaSetZoom(mh
,
8808 _res
= Py_BuildValue("l",
8813 static PyObject
*Qt_FlashMediaSetZoomRect(PyObject
*_self
, PyObject
*_args
)
8815 PyObject
*_res
= NULL
;
8816 ComponentResult _rv
;
8822 #ifndef FlashMediaSetZoomRect
8823 PyMac_PRECHECK(FlashMediaSetZoomRect
);
8825 if (!PyArg_ParseTuple(_args
, "O&llll",
8826 CmpInstObj_Convert
, &mh
,
8832 _rv
= FlashMediaSetZoomRect(mh
,
8837 _res
= Py_BuildValue("l",
8842 static PyObject
*Qt_FlashMediaGetRefConBounds(PyObject
*_self
, PyObject
*_args
)
8844 PyObject
*_res
= NULL
;
8845 ComponentResult _rv
;
8852 #ifndef FlashMediaGetRefConBounds
8853 PyMac_PRECHECK(FlashMediaGetRefConBounds
);
8855 if (!PyArg_ParseTuple(_args
, "O&l",
8856 CmpInstObj_Convert
, &mh
,
8859 _rv
= FlashMediaGetRefConBounds(mh
,
8865 _res
= Py_BuildValue("lllll",
8874 static PyObject
*Qt_FlashMediaGetRefConID(PyObject
*_self
, PyObject
*_args
)
8876 PyObject
*_res
= NULL
;
8877 ComponentResult _rv
;
8881 #ifndef FlashMediaGetRefConID
8882 PyMac_PRECHECK(FlashMediaGetRefConID
);
8884 if (!PyArg_ParseTuple(_args
, "O&l",
8885 CmpInstObj_Convert
, &mh
,
8888 _rv
= FlashMediaGetRefConID(mh
,
8891 _res
= Py_BuildValue("ll",
8897 static PyObject
*Qt_FlashMediaIDToRefCon(PyObject
*_self
, PyObject
*_args
)
8899 PyObject
*_res
= NULL
;
8900 ComponentResult _rv
;
8904 #ifndef FlashMediaIDToRefCon
8905 PyMac_PRECHECK(FlashMediaIDToRefCon
);
8907 if (!PyArg_ParseTuple(_args
, "O&l",
8908 CmpInstObj_Convert
, &mh
,
8911 _rv
= FlashMediaIDToRefCon(mh
,
8914 _res
= Py_BuildValue("ll",
8920 static PyObject
*Qt_FlashMediaGetDisplayedFrameNumber(PyObject
*_self
, PyObject
*_args
)
8922 PyObject
*_res
= NULL
;
8923 ComponentResult _rv
;
8925 long flashFrameNumber
;
8926 #ifndef FlashMediaGetDisplayedFrameNumber
8927 PyMac_PRECHECK(FlashMediaGetDisplayedFrameNumber
);
8929 if (!PyArg_ParseTuple(_args
, "O&",
8930 CmpInstObj_Convert
, &mh
))
8932 _rv
= FlashMediaGetDisplayedFrameNumber(mh
,
8934 _res
= Py_BuildValue("ll",
8940 static PyObject
*Qt_FlashMediaFrameNumberToMovieTime(PyObject
*_self
, PyObject
*_args
)
8942 PyObject
*_res
= NULL
;
8943 ComponentResult _rv
;
8945 long flashFrameNumber
;
8946 TimeValue movieTime
;
8947 #ifndef FlashMediaFrameNumberToMovieTime
8948 PyMac_PRECHECK(FlashMediaFrameNumberToMovieTime
);
8950 if (!PyArg_ParseTuple(_args
, "O&l",
8951 CmpInstObj_Convert
, &mh
,
8954 _rv
= FlashMediaFrameNumberToMovieTime(mh
,
8957 _res
= Py_BuildValue("ll",
8963 static PyObject
*Qt_FlashMediaFrameLabelToMovieTime(PyObject
*_self
, PyObject
*_args
)
8965 PyObject
*_res
= NULL
;
8966 ComponentResult _rv
;
8969 TimeValue movieTime
;
8970 #ifndef FlashMediaFrameLabelToMovieTime
8971 PyMac_PRECHECK(FlashMediaFrameLabelToMovieTime
);
8973 if (!PyArg_ParseTuple(_args
, "O&s",
8974 CmpInstObj_Convert
, &mh
,
8977 _rv
= FlashMediaFrameLabelToMovieTime(mh
,
8980 _res
= Py_BuildValue("ll",
8986 static PyObject
*Qt_FlashMediaGetFlashVariable(PyObject
*_self
, PyObject
*_args
)
8988 PyObject
*_res
= NULL
;
8989 ComponentResult _rv
;
8993 Handle theVariableCStringOut
;
8994 #ifndef FlashMediaGetFlashVariable
8995 PyMac_PRECHECK(FlashMediaGetFlashVariable
);
8997 if (!PyArg_ParseTuple(_args
, "O&",
8998 CmpInstObj_Convert
, &mh
))
9000 _rv
= FlashMediaGetFlashVariable(mh
,
9003 &theVariableCStringOut
);
9004 _res
= Py_BuildValue("lccO&",
9008 ResObj_New
, theVariableCStringOut
);
9012 static PyObject
*Qt_FlashMediaSetFlashVariable(PyObject
*_self
, PyObject
*_args
)
9014 PyObject
*_res
= NULL
;
9015 ComponentResult _rv
;
9020 Boolean updateFocus
;
9021 #ifndef FlashMediaSetFlashVariable
9022 PyMac_PRECHECK(FlashMediaSetFlashVariable
);
9024 if (!PyArg_ParseTuple(_args
, "O&b",
9025 CmpInstObj_Convert
, &mh
,
9028 _rv
= FlashMediaSetFlashVariable(mh
,
9033 _res
= Py_BuildValue("lccc",
9041 static PyObject
*Qt_FlashMediaDoButtonActions(PyObject
*_self
, PyObject
*_args
)
9043 PyObject
*_res
= NULL
;
9044 ComponentResult _rv
;
9049 #ifndef FlashMediaDoButtonActions
9050 PyMac_PRECHECK(FlashMediaDoButtonActions
);
9052 if (!PyArg_ParseTuple(_args
, "O&ll",
9053 CmpInstObj_Convert
, &mh
,
9057 _rv
= FlashMediaDoButtonActions(mh
,
9061 _res
= Py_BuildValue("lc",
9067 static PyObject
*Qt_FlashMediaGetSupportedSwfVersion(PyObject
*_self
, PyObject
*_args
)
9069 PyObject
*_res
= NULL
;
9070 ComponentResult _rv
;
9073 #ifndef FlashMediaGetSupportedSwfVersion
9074 PyMac_PRECHECK(FlashMediaGetSupportedSwfVersion
);
9076 if (!PyArg_ParseTuple(_args
, "O&",
9077 CmpInstObj_Convert
, &mh
))
9079 _rv
= FlashMediaGetSupportedSwfVersion(mh
,
9081 _res
= Py_BuildValue("lb",
9087 static PyObject
*Qt_Media3DGetCurrentGroup(PyObject
*_self
, PyObject
*_args
)
9089 PyObject
*_res
= NULL
;
9090 ComponentResult _rv
;
9093 #ifndef Media3DGetCurrentGroup
9094 PyMac_PRECHECK(Media3DGetCurrentGroup
);
9096 if (!PyArg_ParseTuple(_args
, "O&s",
9097 CmpInstObj_Convert
, &mh
,
9100 _rv
= Media3DGetCurrentGroup(mh
,
9102 _res
= Py_BuildValue("l",
9107 static PyObject
*Qt_Media3DTranslateNamedObjectTo(PyObject
*_self
, PyObject
*_args
)
9109 PyObject
*_res
= NULL
;
9110 ComponentResult _rv
;
9116 #ifndef Media3DTranslateNamedObjectTo
9117 PyMac_PRECHECK(Media3DTranslateNamedObjectTo
);
9119 if (!PyArg_ParseTuple(_args
, "O&O&O&O&",
9120 CmpInstObj_Convert
, &mh
,
9123 PyMac_GetFixed
, &z
))
9125 _rv
= Media3DTranslateNamedObjectTo(mh
,
9130 _res
= Py_BuildValue("lc",
9136 static PyObject
*Qt_Media3DScaleNamedObjectTo(PyObject
*_self
, PyObject
*_args
)
9138 PyObject
*_res
= NULL
;
9139 ComponentResult _rv
;
9145 #ifndef Media3DScaleNamedObjectTo
9146 PyMac_PRECHECK(Media3DScaleNamedObjectTo
);
9148 if (!PyArg_ParseTuple(_args
, "O&O&O&O&",
9149 CmpInstObj_Convert
, &mh
,
9150 PyMac_GetFixed
, &xScale
,
9151 PyMac_GetFixed
, &yScale
,
9152 PyMac_GetFixed
, &zScale
))
9154 _rv
= Media3DScaleNamedObjectTo(mh
,
9159 _res
= Py_BuildValue("lc",
9165 static PyObject
*Qt_Media3DRotateNamedObjectTo(PyObject
*_self
, PyObject
*_args
)
9167 PyObject
*_res
= NULL
;
9168 ComponentResult _rv
;
9174 #ifndef Media3DRotateNamedObjectTo
9175 PyMac_PRECHECK(Media3DRotateNamedObjectTo
);
9177 if (!PyArg_ParseTuple(_args
, "O&O&O&O&",
9178 CmpInstObj_Convert
, &mh
,
9179 PyMac_GetFixed
, &xDegrees
,
9180 PyMac_GetFixed
, &yDegrees
,
9181 PyMac_GetFixed
, &zDegrees
))
9183 _rv
= Media3DRotateNamedObjectTo(mh
,
9188 _res
= Py_BuildValue("lc",
9194 static PyObject
*Qt_Media3DSetCameraData(PyObject
*_self
, PyObject
*_args
)
9196 PyObject
*_res
= NULL
;
9197 ComponentResult _rv
;
9200 #ifndef Media3DSetCameraData
9201 PyMac_PRECHECK(Media3DSetCameraData
);
9203 if (!PyArg_ParseTuple(_args
, "O&s",
9204 CmpInstObj_Convert
, &mh
,
9207 _rv
= Media3DSetCameraData(mh
,
9209 _res
= Py_BuildValue("l",
9214 static PyObject
*Qt_Media3DGetCameraData(PyObject
*_self
, PyObject
*_args
)
9216 PyObject
*_res
= NULL
;
9217 ComponentResult _rv
;
9220 #ifndef Media3DGetCameraData
9221 PyMac_PRECHECK(Media3DGetCameraData
);
9223 if (!PyArg_ParseTuple(_args
, "O&s",
9224 CmpInstObj_Convert
, &mh
,
9227 _rv
= Media3DGetCameraData(mh
,
9229 _res
= Py_BuildValue("l",
9234 static PyObject
*Qt_Media3DSetCameraAngleAspect(PyObject
*_self
, PyObject
*_args
)
9236 PyObject
*_res
= NULL
;
9237 ComponentResult _rv
;
9240 QTFloatSingle aspectRatioXToY
;
9241 #ifndef Media3DSetCameraAngleAspect
9242 PyMac_PRECHECK(Media3DSetCameraAngleAspect
);
9244 if (!PyArg_ParseTuple(_args
, "O&ff",
9245 CmpInstObj_Convert
, &mh
,
9249 _rv
= Media3DSetCameraAngleAspect(mh
,
9252 _res
= Py_BuildValue("l",
9257 static PyObject
*Qt_Media3DGetCameraAngleAspect(PyObject
*_self
, PyObject
*_args
)
9259 PyObject
*_res
= NULL
;
9260 ComponentResult _rv
;
9263 QTFloatSingle aspectRatioXToY
;
9264 #ifndef Media3DGetCameraAngleAspect
9265 PyMac_PRECHECK(Media3DGetCameraAngleAspect
);
9267 if (!PyArg_ParseTuple(_args
, "O&",
9268 CmpInstObj_Convert
, &mh
))
9270 _rv
= Media3DGetCameraAngleAspect(mh
,
9273 _res
= Py_BuildValue("lff",
9280 static PyObject
*Qt_Media3DSetCameraRange(PyObject
*_self
, PyObject
*_args
)
9282 PyObject
*_res
= NULL
;
9283 ComponentResult _rv
;
9285 void * tQ3CameraRange
;
9286 #ifndef Media3DSetCameraRange
9287 PyMac_PRECHECK(Media3DSetCameraRange
);
9289 if (!PyArg_ParseTuple(_args
, "O&s",
9290 CmpInstObj_Convert
, &mh
,
9293 _rv
= Media3DSetCameraRange(mh
,
9295 _res
= Py_BuildValue("l",
9300 static PyObject
*Qt_Media3DGetCameraRange(PyObject
*_self
, PyObject
*_args
)
9302 PyObject
*_res
= NULL
;
9303 ComponentResult _rv
;
9305 void * tQ3CameraRange
;
9306 #ifndef Media3DGetCameraRange
9307 PyMac_PRECHECK(Media3DGetCameraRange
);
9309 if (!PyArg_ParseTuple(_args
, "O&s",
9310 CmpInstObj_Convert
, &mh
,
9313 _rv
= Media3DGetCameraRange(mh
,
9315 _res
= Py_BuildValue("l",
9320 static PyObject
*Qt_NewTimeBase(PyObject
*_self
, PyObject
*_args
)
9322 PyObject
*_res
= NULL
;
9325 PyMac_PRECHECK(NewTimeBase
);
9327 if (!PyArg_ParseTuple(_args
, ""))
9329 _rv
= NewTimeBase();
9330 _res
= Py_BuildValue("O&",
9331 TimeBaseObj_New
, _rv
);
9335 static PyObject
*Qt_ConvertTime(PyObject
*_self
, PyObject
*_args
)
9337 PyObject
*_res
= NULL
;
9341 PyMac_PRECHECK(ConvertTime
);
9343 if (!PyArg_ParseTuple(_args
, "O&O&",
9344 QtTimeRecord_Convert
, &theTime
,
9345 TimeBaseObj_Convert
, &newBase
))
9347 ConvertTime(&theTime
,
9349 _res
= Py_BuildValue("O&",
9350 QtTimeRecord_New
, &theTime
);
9354 static PyObject
*Qt_ConvertTimeScale(PyObject
*_self
, PyObject
*_args
)
9356 PyObject
*_res
= NULL
;
9359 #ifndef ConvertTimeScale
9360 PyMac_PRECHECK(ConvertTimeScale
);
9362 if (!PyArg_ParseTuple(_args
, "O&l",
9363 QtTimeRecord_Convert
, &theTime
,
9366 ConvertTimeScale(&theTime
,
9368 _res
= Py_BuildValue("O&",
9369 QtTimeRecord_New
, &theTime
);
9373 static PyObject
*Qt_AddTime(PyObject
*_self
, PyObject
*_args
)
9375 PyObject
*_res
= NULL
;
9379 PyMac_PRECHECK(AddTime
);
9381 if (!PyArg_ParseTuple(_args
, "O&O&",
9382 QtTimeRecord_Convert
, &dst
,
9383 QtTimeRecord_Convert
, &src
))
9387 _res
= Py_BuildValue("O&",
9388 QtTimeRecord_New
, &dst
);
9392 static PyObject
*Qt_SubtractTime(PyObject
*_self
, PyObject
*_args
)
9394 PyObject
*_res
= NULL
;
9397 #ifndef SubtractTime
9398 PyMac_PRECHECK(SubtractTime
);
9400 if (!PyArg_ParseTuple(_args
, "O&O&",
9401 QtTimeRecord_Convert
, &dst
,
9402 QtTimeRecord_Convert
, &src
))
9406 _res
= Py_BuildValue("O&",
9407 QtTimeRecord_New
, &dst
);
9411 static PyObject
*Qt_MusicMediaGetIndexedTunePlayer(PyObject
*_self
, PyObject
*_args
)
9413 PyObject
*_res
= NULL
;
9414 ComponentResult _rv
;
9415 ComponentInstance ti
;
9416 long sampleDescIndex
;
9417 ComponentInstance tp
;
9418 #ifndef MusicMediaGetIndexedTunePlayer
9419 PyMac_PRECHECK(MusicMediaGetIndexedTunePlayer
);
9421 if (!PyArg_ParseTuple(_args
, "O&l",
9422 CmpInstObj_Convert
, &ti
,
9425 _rv
= MusicMediaGetIndexedTunePlayer(ti
,
9428 _res
= Py_BuildValue("lO&",
9430 CmpInstObj_New
, tp
);
9434 static PyObject
*Qt_AlignWindow(PyObject
*_self
, PyObject
*_args
)
9436 PyObject
*_res
= NULL
;
9440 PyMac_PRECHECK(AlignWindow
);
9442 if (!PyArg_ParseTuple(_args
, "O&b",
9443 WinObj_Convert
, &wp
,
9449 (ICMAlignmentProcRecordPtr
)0);
9455 static PyObject
*Qt_DragAlignedWindow(PyObject
*_self
, PyObject
*_args
)
9457 PyObject
*_res
= NULL
;
9461 #ifndef DragAlignedWindow
9462 PyMac_PRECHECK(DragAlignedWindow
);
9464 if (!PyArg_ParseTuple(_args
, "O&O&O&",
9465 WinObj_Convert
, &wp
,
9466 PyMac_GetPoint
, &startPt
,
9467 PyMac_GetRect
, &boundsRect
))
9469 DragAlignedWindow(wp
,
9473 (ICMAlignmentProcRecordPtr
)0);
9479 static PyObject
*Qt_MoviesTask(PyObject
*_self
, PyObject
*_args
)
9481 PyObject
*_res
= NULL
;
9482 long maxMilliSecToUse
;
9484 PyMac_PRECHECK(MoviesTask
);
9486 if (!PyArg_ParseTuple(_args
, "l",
9489 MoviesTask((Movie
)0,
9496 static PyMethodDef Qt_methods
[] = {
9497 {"EnterMovies", (PyCFunction
)Qt_EnterMovies
, 1,
9498 PyDoc_STR("() -> None")},
9499 {"ExitMovies", (PyCFunction
)Qt_ExitMovies
, 1,
9500 PyDoc_STR("() -> None")},
9501 {"GetMoviesError", (PyCFunction
)Qt_GetMoviesError
, 1,
9502 PyDoc_STR("() -> None")},
9503 {"ClearMoviesStickyError", (PyCFunction
)Qt_ClearMoviesStickyError
, 1,
9504 PyDoc_STR("() -> None")},
9505 {"GetMoviesStickyError", (PyCFunction
)Qt_GetMoviesStickyError
, 1,
9506 PyDoc_STR("() -> None")},
9507 {"DisposeMatte", (PyCFunction
)Qt_DisposeMatte
, 1,
9508 PyDoc_STR("(PixMapHandle theMatte) -> None")},
9509 {"NewMovie", (PyCFunction
)Qt_NewMovie
, 1,
9510 PyDoc_STR("(long flags) -> (Movie _rv)")},
9511 {"GetDataHandler", (PyCFunction
)Qt_GetDataHandler
, 1,
9512 PyDoc_STR("(Handle dataRef, OSType dataHandlerSubType, long flags) -> (Component _rv)")},
9513 {"PasteHandleIntoMovie", (PyCFunction
)Qt_PasteHandleIntoMovie
, 1,
9514 PyDoc_STR("(Handle h, OSType handleType, Movie theMovie, long flags, ComponentInstance userComp) -> None")},
9515 {"GetMovieImporterForDataRef", (PyCFunction
)Qt_GetMovieImporterForDataRef
, 1,
9516 PyDoc_STR("(OSType dataRefType, Handle dataRef, long flags) -> (Component importer)")},
9517 {"QTGetMIMETypeInfo", (PyCFunction
)Qt_QTGetMIMETypeInfo
, 1,
9518 PyDoc_STR("(char* mimeStringStart, short mimeStringLength, OSType infoSelector, void * infoDataPtr) -> (long infoDataSize)")},
9519 {"TrackTimeToMediaTime", (PyCFunction
)Qt_TrackTimeToMediaTime
, 1,
9520 PyDoc_STR("(TimeValue value, Track theTrack) -> (TimeValue _rv)")},
9521 {"NewUserData", (PyCFunction
)Qt_NewUserData
, 1,
9522 PyDoc_STR("() -> (UserData theUserData)")},
9523 {"NewUserDataFromHandle", (PyCFunction
)Qt_NewUserDataFromHandle
, 1,
9524 PyDoc_STR("(Handle h) -> (UserData theUserData)")},
9525 {"CreateMovieFile", (PyCFunction
)Qt_CreateMovieFile
, 1,
9526 PyDoc_STR("(FSSpec fileSpec, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (short resRefNum, Movie newmovie)")},
9527 {"OpenMovieFile", (PyCFunction
)Qt_OpenMovieFile
, 1,
9528 PyDoc_STR("(FSSpec fileSpec, SInt8 permission) -> (short resRefNum)")},
9529 {"CloseMovieFile", (PyCFunction
)Qt_CloseMovieFile
, 1,
9530 PyDoc_STR("(short resRefNum) -> None")},
9531 {"DeleteMovieFile", (PyCFunction
)Qt_DeleteMovieFile
, 1,
9532 PyDoc_STR("(FSSpec fileSpec) -> None")},
9533 {"NewMovieFromFile", (PyCFunction
)Qt_NewMovieFromFile
, 1,
9534 PyDoc_STR("(short resRefNum, short resId, short newMovieFlags) -> (Movie theMovie, short resId, Boolean dataRefWasChanged)")},
9535 {"NewMovieFromHandle", (PyCFunction
)Qt_NewMovieFromHandle
, 1,
9536 PyDoc_STR("(Handle h, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)")},
9537 {"NewMovieFromDataFork", (PyCFunction
)Qt_NewMovieFromDataFork
, 1,
9538 PyDoc_STR("(short fRefNum, long fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)")},
9539 {"NewMovieFromDataFork64", (PyCFunction
)Qt_NewMovieFromDataFork64
, 1,
9540 PyDoc_STR("(long fRefNum, wide fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)")},
9541 {"NewMovieFromDataRef", (PyCFunction
)Qt_NewMovieFromDataRef
, 1,
9542 PyDoc_STR("(short flags, Handle dataRef, OSType dataRefType) -> (Movie m, short id)")},
9543 {"RemoveMovieResource", (PyCFunction
)Qt_RemoveMovieResource
, 1,
9544 PyDoc_STR("(short resRefNum, short resId) -> None")},
9545 {"CreateShortcutMovieFile", (PyCFunction
)Qt_CreateShortcutMovieFile
, 1,
9546 PyDoc_STR("(FSSpec fileSpec, OSType creator, ScriptCode scriptTag, long createMovieFileFlags, Handle targetDataRef, OSType targetDataRefType) -> None")},
9547 {"CanQuickTimeOpenFile", (PyCFunction
)Qt_CanQuickTimeOpenFile
, 1,
9548 PyDoc_STR("(FSSpec fileSpec, OSType fileType, OSType fileNameExtension, UInt32 inFlags) -> (Boolean outCanOpenWithGraphicsImporter, Boolean outCanOpenAsMovie, Boolean outPreferGraphicsImporter)")},
9549 {"CanQuickTimeOpenDataRef", (PyCFunction
)Qt_CanQuickTimeOpenDataRef
, 1,
9550 PyDoc_STR("(Handle dataRef, OSType dataRefType, UInt32 inFlags) -> (Boolean outCanOpenWithGraphicsImporter, Boolean outCanOpenAsMovie, Boolean outPreferGraphicsImporter)")},
9551 {"NewMovieFromScrap", (PyCFunction
)Qt_NewMovieFromScrap
, 1,
9552 PyDoc_STR("(long newMovieFlags) -> (Movie _rv)")},
9553 {"QTNewAlias", (PyCFunction
)Qt_QTNewAlias
, 1,
9554 PyDoc_STR("(FSSpec fss, Boolean minimal) -> (AliasHandle alias)")},
9555 {"EndFullScreen", (PyCFunction
)Qt_EndFullScreen
, 1,
9556 PyDoc_STR("(Ptr fullState, long flags) -> None")},
9557 {"AddSoundDescriptionExtension", (PyCFunction
)Qt_AddSoundDescriptionExtension
, 1,
9558 PyDoc_STR("(SoundDescriptionHandle desc, Handle extension, OSType idType) -> None")},
9559 {"GetSoundDescriptionExtension", (PyCFunction
)Qt_GetSoundDescriptionExtension
, 1,
9560 PyDoc_STR("(SoundDescriptionHandle desc, OSType idType) -> (Handle extension)")},
9561 {"RemoveSoundDescriptionExtension", (PyCFunction
)Qt_RemoveSoundDescriptionExtension
, 1,
9562 PyDoc_STR("(SoundDescriptionHandle desc, OSType idType) -> None")},
9563 {"QTIsStandardParameterDialogEvent", (PyCFunction
)Qt_QTIsStandardParameterDialogEvent
, 1,
9564 PyDoc_STR("(QTParameterDialog createdDialog) -> (EventRecord pEvent)")},
9565 {"QTDismissStandardParameterDialog", (PyCFunction
)Qt_QTDismissStandardParameterDialog
, 1,
9566 PyDoc_STR("(QTParameterDialog createdDialog) -> None")},
9567 {"QTStandardParameterDialogDoAction", (PyCFunction
)Qt_QTStandardParameterDialogDoAction
, 1,
9568 PyDoc_STR("(QTParameterDialog createdDialog, long action, void * params) -> None")},
9569 {"QTRegisterAccessKey", (PyCFunction
)Qt_QTRegisterAccessKey
, 1,
9570 PyDoc_STR("(Str255 accessKeyType, long flags, Handle accessKey) -> None")},
9571 {"QTUnregisterAccessKey", (PyCFunction
)Qt_QTUnregisterAccessKey
, 1,
9572 PyDoc_STR("(Str255 accessKeyType, long flags, Handle accessKey) -> None")},
9573 {"QTTextToNativeText", (PyCFunction
)Qt_QTTextToNativeText
, 1,
9574 PyDoc_STR("(Handle theText, long encoding, long flags) -> None")},
9575 {"VideoMediaResetStatistics", (PyCFunction
)Qt_VideoMediaResetStatistics
, 1,
9576 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")},
9577 {"VideoMediaGetStatistics", (PyCFunction
)Qt_VideoMediaGetStatistics
, 1,
9578 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")},
9579 {"VideoMediaGetStallCount", (PyCFunction
)Qt_VideoMediaGetStallCount
, 1,
9580 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, unsigned long stalls)")},
9581 {"VideoMediaSetCodecParameter", (PyCFunction
)Qt_VideoMediaSetCodecParameter
, 1,
9582 PyDoc_STR("(MediaHandler mh, CodecType cType, OSType parameterID, long parameterChangeSeed, void * dataPtr, long dataSize) -> (ComponentResult _rv)")},
9583 {"VideoMediaGetCodecParameter", (PyCFunction
)Qt_VideoMediaGetCodecParameter
, 1,
9584 PyDoc_STR("(MediaHandler mh, CodecType cType, OSType parameterID, Handle outParameterData) -> (ComponentResult _rv)")},
9585 {"TextMediaAddTextSample", (PyCFunction
)Qt_TextMediaAddTextSample
, 1,
9586 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)")},
9587 {"TextMediaAddTESample", (PyCFunction
)Qt_TextMediaAddTESample
, 1,
9588 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)")},
9589 {"TextMediaAddHiliteSample", (PyCFunction
)Qt_TextMediaAddHiliteSample
, 1,
9590 PyDoc_STR("(MediaHandler mh, short hiliteStart, short hiliteEnd, TimeValue duration) -> (ComponentResult _rv, RGBColor rgbHiliteColor, TimeValue sampleTime)")},
9591 {"TextMediaDrawRaw", (PyCFunction
)Qt_TextMediaDrawRaw
, 1,
9592 PyDoc_STR("(MediaHandler mh, GWorldPtr gw, GDHandle gd, void * data, long dataSize, TextDescriptionHandle tdh) -> (ComponentResult _rv)")},
9593 {"TextMediaSetTextProperty", (PyCFunction
)Qt_TextMediaSetTextProperty
, 1,
9594 PyDoc_STR("(MediaHandler mh, TimeValue atMediaTime, long propertyType, void * data, long dataSize) -> (ComponentResult _rv)")},
9595 {"TextMediaRawSetup", (PyCFunction
)Qt_TextMediaRawSetup
, 1,
9596 PyDoc_STR("(MediaHandler mh, GWorldPtr gw, GDHandle gd, void * data, long dataSize, TextDescriptionHandle tdh, TimeValue sampleDuration) -> (ComponentResult _rv)")},
9597 {"TextMediaRawIdle", (PyCFunction
)Qt_TextMediaRawIdle
, 1,
9598 PyDoc_STR("(MediaHandler mh, GWorldPtr gw, GDHandle gd, TimeValue sampleTime, long flagsIn) -> (ComponentResult _rv, long flagsOut)")},
9599 {"TextMediaGetTextProperty", (PyCFunction
)Qt_TextMediaGetTextProperty
, 1,
9600 PyDoc_STR("(MediaHandler mh, TimeValue atMediaTime, long propertyType, void * data, long dataSize) -> (ComponentResult _rv)")},
9601 {"TextMediaFindNextText", (PyCFunction
)Qt_TextMediaFindNextText
, 1,
9602 PyDoc_STR("(MediaHandler mh, Ptr text, long size, short findFlags, TimeValue startTime) -> (ComponentResult _rv, TimeValue foundTime, TimeValue foundDuration, long offset)")},
9603 {"TextMediaHiliteTextSample", (PyCFunction
)Qt_TextMediaHiliteTextSample
, 1,
9604 PyDoc_STR("(MediaHandler mh, TimeValue sampleTime, short hiliteStart, short hiliteEnd) -> (ComponentResult _rv, RGBColor rgbHiliteColor)")},
9605 {"TextMediaSetTextSampleData", (PyCFunction
)Qt_TextMediaSetTextSampleData
, 1,
9606 PyDoc_STR("(MediaHandler mh, void * data, OSType dataType) -> (ComponentResult _rv)")},
9607 {"SpriteMediaSetProperty", (PyCFunction
)Qt_SpriteMediaSetProperty
, 1,
9608 PyDoc_STR("(MediaHandler mh, short spriteIndex, long propertyType, void * propertyValue) -> (ComponentResult _rv)")},
9609 {"SpriteMediaGetProperty", (PyCFunction
)Qt_SpriteMediaGetProperty
, 1,
9610 PyDoc_STR("(MediaHandler mh, short spriteIndex, long propertyType, void * propertyValue) -> (ComponentResult _rv)")},
9611 {"SpriteMediaHitTestSprites", (PyCFunction
)Qt_SpriteMediaHitTestSprites
, 1,
9612 PyDoc_STR("(MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, short spriteHitIndex)")},
9613 {"SpriteMediaCountSprites", (PyCFunction
)Qt_SpriteMediaCountSprites
, 1,
9614 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short numSprites)")},
9615 {"SpriteMediaCountImages", (PyCFunction
)Qt_SpriteMediaCountImages
, 1,
9616 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short numImages)")},
9617 {"SpriteMediaGetIndImageDescription", (PyCFunction
)Qt_SpriteMediaGetIndImageDescription
, 1,
9618 PyDoc_STR("(MediaHandler mh, short imageIndex, ImageDescriptionHandle imageDescription) -> (ComponentResult _rv)")},
9619 {"SpriteMediaGetDisplayedSampleNumber", (PyCFunction
)Qt_SpriteMediaGetDisplayedSampleNumber
, 1,
9620 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long sampleNum)")},
9621 {"SpriteMediaGetSpriteName", (PyCFunction
)Qt_SpriteMediaGetSpriteName
, 1,
9622 PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, Str255 spriteName) -> (ComponentResult _rv)")},
9623 {"SpriteMediaGetImageName", (PyCFunction
)Qt_SpriteMediaGetImageName
, 1,
9624 PyDoc_STR("(MediaHandler mh, short imageIndex, Str255 imageName) -> (ComponentResult _rv)")},
9625 {"SpriteMediaSetSpriteProperty", (PyCFunction
)Qt_SpriteMediaSetSpriteProperty
, 1,
9626 PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, long propertyType, void * propertyValue) -> (ComponentResult _rv)")},
9627 {"SpriteMediaGetSpriteProperty", (PyCFunction
)Qt_SpriteMediaGetSpriteProperty
, 1,
9628 PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, long propertyType, void * propertyValue) -> (ComponentResult _rv)")},
9629 {"SpriteMediaHitTestAllSprites", (PyCFunction
)Qt_SpriteMediaHitTestAllSprites
, 1,
9630 PyDoc_STR("(MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, QTAtomID spriteHitID)")},
9631 {"SpriteMediaHitTestOneSprite", (PyCFunction
)Qt_SpriteMediaHitTestOneSprite
, 1,
9632 PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, long flags, Point loc) -> (ComponentResult _rv, Boolean wasHit)")},
9633 {"SpriteMediaSpriteIndexToID", (PyCFunction
)Qt_SpriteMediaSpriteIndexToID
, 1,
9634 PyDoc_STR("(MediaHandler mh, short spriteIndex) -> (ComponentResult _rv, QTAtomID spriteID)")},
9635 {"SpriteMediaSpriteIDToIndex", (PyCFunction
)Qt_SpriteMediaSpriteIDToIndex
, 1,
9636 PyDoc_STR("(MediaHandler mh, QTAtomID spriteID) -> (ComponentResult _rv, short spriteIndex)")},
9637 {"SpriteMediaSetActionVariable", (PyCFunction
)Qt_SpriteMediaSetActionVariable
, 1,
9638 PyDoc_STR("(MediaHandler mh, QTAtomID variableID, float value) -> (ComponentResult _rv)")},
9639 {"SpriteMediaGetActionVariable", (PyCFunction
)Qt_SpriteMediaGetActionVariable
, 1,
9640 PyDoc_STR("(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value)")},
9641 {"SpriteMediaDisposeSprite", (PyCFunction
)Qt_SpriteMediaDisposeSprite
, 1,
9642 PyDoc_STR("(MediaHandler mh, QTAtomID spriteID) -> (ComponentResult _rv)")},
9643 {"SpriteMediaSetActionVariableToString", (PyCFunction
)Qt_SpriteMediaSetActionVariableToString
, 1,
9644 PyDoc_STR("(MediaHandler mh, QTAtomID variableID, Ptr theCString) -> (ComponentResult _rv)")},
9645 {"SpriteMediaGetActionVariableAsString", (PyCFunction
)Qt_SpriteMediaGetActionVariableAsString
, 1,
9646 PyDoc_STR("(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, Handle theCString)")},
9647 {"FlashMediaSetPan", (PyCFunction
)Qt_FlashMediaSetPan
, 1,
9648 PyDoc_STR("(MediaHandler mh, short xPercent, short yPercent) -> (ComponentResult _rv)")},
9649 {"FlashMediaSetZoom", (PyCFunction
)Qt_FlashMediaSetZoom
, 1,
9650 PyDoc_STR("(MediaHandler mh, short factor) -> (ComponentResult _rv)")},
9651 {"FlashMediaSetZoomRect", (PyCFunction
)Qt_FlashMediaSetZoomRect
, 1,
9652 PyDoc_STR("(MediaHandler mh, long left, long top, long right, long bottom) -> (ComponentResult _rv)")},
9653 {"FlashMediaGetRefConBounds", (PyCFunction
)Qt_FlashMediaGetRefConBounds
, 1,
9654 PyDoc_STR("(MediaHandler mh, long refCon) -> (ComponentResult _rv, long left, long top, long right, long bottom)")},
9655 {"FlashMediaGetRefConID", (PyCFunction
)Qt_FlashMediaGetRefConID
, 1,
9656 PyDoc_STR("(MediaHandler mh, long refCon) -> (ComponentResult _rv, long refConID)")},
9657 {"FlashMediaIDToRefCon", (PyCFunction
)Qt_FlashMediaIDToRefCon
, 1,
9658 PyDoc_STR("(MediaHandler mh, long refConID) -> (ComponentResult _rv, long refCon)")},
9659 {"FlashMediaGetDisplayedFrameNumber", (PyCFunction
)Qt_FlashMediaGetDisplayedFrameNumber
, 1,
9660 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long flashFrameNumber)")},
9661 {"FlashMediaFrameNumberToMovieTime", (PyCFunction
)Qt_FlashMediaFrameNumberToMovieTime
, 1,
9662 PyDoc_STR("(MediaHandler mh, long flashFrameNumber) -> (ComponentResult _rv, TimeValue movieTime)")},
9663 {"FlashMediaFrameLabelToMovieTime", (PyCFunction
)Qt_FlashMediaFrameLabelToMovieTime
, 1,
9664 PyDoc_STR("(MediaHandler mh, Ptr theLabel) -> (ComponentResult _rv, TimeValue movieTime)")},
9665 {"FlashMediaGetFlashVariable", (PyCFunction
)Qt_FlashMediaGetFlashVariable
, 1,
9666 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, char path, char name, Handle theVariableCStringOut)")},
9667 {"FlashMediaSetFlashVariable", (PyCFunction
)Qt_FlashMediaSetFlashVariable
, 1,
9668 PyDoc_STR("(MediaHandler mh, Boolean updateFocus) -> (ComponentResult _rv, char path, char name, char value)")},
9669 {"FlashMediaDoButtonActions", (PyCFunction
)Qt_FlashMediaDoButtonActions
, 1,
9670 PyDoc_STR("(MediaHandler mh, long buttonID, long transition) -> (ComponentResult _rv, char path)")},
9671 {"FlashMediaGetSupportedSwfVersion", (PyCFunction
)Qt_FlashMediaGetSupportedSwfVersion
, 1,
9672 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, UInt8 swfVersion)")},
9673 {"Media3DGetCurrentGroup", (PyCFunction
)Qt_Media3DGetCurrentGroup
, 1,
9674 PyDoc_STR("(MediaHandler mh, void * group) -> (ComponentResult _rv)")},
9675 {"Media3DTranslateNamedObjectTo", (PyCFunction
)Qt_Media3DTranslateNamedObjectTo
, 1,
9676 PyDoc_STR("(MediaHandler mh, Fixed x, Fixed y, Fixed z) -> (ComponentResult _rv, char objectName)")},
9677 {"Media3DScaleNamedObjectTo", (PyCFunction
)Qt_Media3DScaleNamedObjectTo
, 1,
9678 PyDoc_STR("(MediaHandler mh, Fixed xScale, Fixed yScale, Fixed zScale) -> (ComponentResult _rv, char objectName)")},
9679 {"Media3DRotateNamedObjectTo", (PyCFunction
)Qt_Media3DRotateNamedObjectTo
, 1,
9680 PyDoc_STR("(MediaHandler mh, Fixed xDegrees, Fixed yDegrees, Fixed zDegrees) -> (ComponentResult _rv, char objectName)")},
9681 {"Media3DSetCameraData", (PyCFunction
)Qt_Media3DSetCameraData
, 1,
9682 PyDoc_STR("(MediaHandler mh, void * cameraData) -> (ComponentResult _rv)")},
9683 {"Media3DGetCameraData", (PyCFunction
)Qt_Media3DGetCameraData
, 1,
9684 PyDoc_STR("(MediaHandler mh, void * cameraData) -> (ComponentResult _rv)")},
9685 {"Media3DSetCameraAngleAspect", (PyCFunction
)Qt_Media3DSetCameraAngleAspect
, 1,
9686 PyDoc_STR("(MediaHandler mh, QTFloatSingle fov, QTFloatSingle aspectRatioXToY) -> (ComponentResult _rv)")},
9687 {"Media3DGetCameraAngleAspect", (PyCFunction
)Qt_Media3DGetCameraAngleAspect
, 1,
9688 PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, QTFloatSingle fov, QTFloatSingle aspectRatioXToY)")},
9689 {"Media3DSetCameraRange", (PyCFunction
)Qt_Media3DSetCameraRange
, 1,
9690 PyDoc_STR("(MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv)")},
9691 {"Media3DGetCameraRange", (PyCFunction
)Qt_Media3DGetCameraRange
, 1,
9692 PyDoc_STR("(MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv)")},
9693 {"NewTimeBase", (PyCFunction
)Qt_NewTimeBase
, 1,
9694 PyDoc_STR("() -> (TimeBase _rv)")},
9695 {"ConvertTime", (PyCFunction
)Qt_ConvertTime
, 1,
9696 PyDoc_STR("(TimeRecord theTime, TimeBase newBase) -> (TimeRecord theTime)")},
9697 {"ConvertTimeScale", (PyCFunction
)Qt_ConvertTimeScale
, 1,
9698 PyDoc_STR("(TimeRecord theTime, TimeScale newScale) -> (TimeRecord theTime)")},
9699 {"AddTime", (PyCFunction
)Qt_AddTime
, 1,
9700 PyDoc_STR("(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)")},
9701 {"SubtractTime", (PyCFunction
)Qt_SubtractTime
, 1,
9702 PyDoc_STR("(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)")},
9703 {"MusicMediaGetIndexedTunePlayer", (PyCFunction
)Qt_MusicMediaGetIndexedTunePlayer
, 1,
9704 PyDoc_STR("(ComponentInstance ti, long sampleDescIndex) -> (ComponentResult _rv, ComponentInstance tp)")},
9705 {"AlignWindow", (PyCFunction
)Qt_AlignWindow
, 1,
9706 PyDoc_STR("(WindowPtr wp, Boolean front) -> None")},
9707 {"DragAlignedWindow", (PyCFunction
)Qt_DragAlignedWindow
, 1,
9708 PyDoc_STR("(WindowPtr wp, Point startPt, Rect boundsRect) -> None")},
9709 {"MoviesTask", (PyCFunction
)Qt_MoviesTask
, 1,
9710 PyDoc_STR("(long maxMilliSecToUse) -> None")},
9724 PyMac_INIT_TOOLBOX_OBJECT_NEW(Track
, TrackObj_New
);
9725 PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Track
, TrackObj_Convert
);
9726 PyMac_INIT_TOOLBOX_OBJECT_NEW(Movie
, MovieObj_New
);
9727 PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Movie
, MovieObj_Convert
);
9728 PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieController
, MovieCtlObj_New
);
9729 PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieController
, MovieCtlObj_Convert
);
9730 PyMac_INIT_TOOLBOX_OBJECT_NEW(TimeBase
, TimeBaseObj_New
);
9731 PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TimeBase
, TimeBaseObj_Convert
);
9732 PyMac_INIT_TOOLBOX_OBJECT_NEW(UserData
, UserDataObj_New
);
9733 PyMac_INIT_TOOLBOX_OBJECT_CONVERT(UserData
, UserDataObj_Convert
);
9734 PyMac_INIT_TOOLBOX_OBJECT_NEW(Media
, MediaObj_New
);
9735 PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Media
, MediaObj_Convert
);
9738 m
= Py_InitModule("_Qt", Qt_methods
);
9739 d
= PyModule_GetDict(m
);
9740 Qt_Error
= PyMac_GetOSErrException();
9741 if (Qt_Error
== NULL
||
9742 PyDict_SetItemString(d
, "Error", Qt_Error
) != 0)
9744 MovieController_Type
.ob_type
= &PyType_Type
;
9745 if (PyType_Ready(&MovieController_Type
) < 0) return;
9746 Py_INCREF(&MovieController_Type
);
9747 PyModule_AddObject(m
, "MovieController", (PyObject
*)&MovieController_Type
);
9748 /* Backward-compatible name */
9749 Py_INCREF(&MovieController_Type
);
9750 PyModule_AddObject(m
, "MovieControllerType", (PyObject
*)&MovieController_Type
);
9751 TimeBase_Type
.ob_type
= &PyType_Type
;
9752 if (PyType_Ready(&TimeBase_Type
) < 0) return;
9753 Py_INCREF(&TimeBase_Type
);
9754 PyModule_AddObject(m
, "TimeBase", (PyObject
*)&TimeBase_Type
);
9755 /* Backward-compatible name */
9756 Py_INCREF(&TimeBase_Type
);
9757 PyModule_AddObject(m
, "TimeBaseType", (PyObject
*)&TimeBase_Type
);
9758 UserData_Type
.ob_type
= &PyType_Type
;
9759 if (PyType_Ready(&UserData_Type
) < 0) return;
9760 Py_INCREF(&UserData_Type
);
9761 PyModule_AddObject(m
, "UserData", (PyObject
*)&UserData_Type
);
9762 /* Backward-compatible name */
9763 Py_INCREF(&UserData_Type
);
9764 PyModule_AddObject(m
, "UserDataType", (PyObject
*)&UserData_Type
);
9765 Media_Type
.ob_type
= &PyType_Type
;
9766 if (PyType_Ready(&Media_Type
) < 0) return;
9767 Py_INCREF(&Media_Type
);
9768 PyModule_AddObject(m
, "Media", (PyObject
*)&Media_Type
);
9769 /* Backward-compatible name */
9770 Py_INCREF(&Media_Type
);
9771 PyModule_AddObject(m
, "MediaType", (PyObject
*)&Media_Type
);
9772 Track_Type
.ob_type
= &PyType_Type
;
9773 if (PyType_Ready(&Track_Type
) < 0) return;
9774 Py_INCREF(&Track_Type
);
9775 PyModule_AddObject(m
, "Track", (PyObject
*)&Track_Type
);
9776 /* Backward-compatible name */
9777 Py_INCREF(&Track_Type
);
9778 PyModule_AddObject(m
, "TrackType", (PyObject
*)&Track_Type
);
9779 Movie_Type
.ob_type
= &PyType_Type
;
9780 if (PyType_Ready(&Movie_Type
) < 0) return;
9781 Py_INCREF(&Movie_Type
);
9782 PyModule_AddObject(m
, "Movie", (PyObject
*)&Movie_Type
);
9783 /* Backward-compatible name */
9784 Py_INCREF(&Movie_Type
);
9785 PyModule_AddObject(m
, "MovieType", (PyObject
*)&Movie_Type
);
9788 /* ========================= End module _Qt ========================= */