| 1 | n/a | |
|---|
| 2 | n/a | /* =========================== Module _Qt =========================== */ |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | #include "Python.h" |
|---|
| 5 | n/a | |
|---|
| 6 | n/a | |
|---|
| 7 | n/a | #ifndef __LP64__ |
|---|
| 8 | n/a | |
|---|
| 9 | n/a | #include "pymactoolbox.h" |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | /* Macro to test whether a weak-loaded CFM function exists */ |
|---|
| 12 | n/a | #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ |
|---|
| 13 | n/a | PyErr_SetString(PyExc_NotImplementedError, \ |
|---|
| 14 | n/a | "Not available in this shared library/OS version"); \ |
|---|
| 15 | n/a | return NULL; \ |
|---|
| 16 | n/a | }} while(0) |
|---|
| 17 | n/a | |
|---|
| 18 | n/a | |
|---|
| 19 | n/a | #include <QuickTime/QuickTime.h> |
|---|
| 20 | n/a | |
|---|
| 21 | n/a | |
|---|
| 22 | n/a | #ifdef USE_TOOLBOX_OBJECT_GLUE |
|---|
| 23 | n/a | extern PyObject *_TrackObj_New(Track); |
|---|
| 24 | n/a | extern int _TrackObj_Convert(PyObject *, Track *); |
|---|
| 25 | n/a | extern PyObject *_MovieObj_New(Movie); |
|---|
| 26 | n/a | extern int _MovieObj_Convert(PyObject *, Movie *); |
|---|
| 27 | n/a | extern PyObject *_MovieCtlObj_New(MovieController); |
|---|
| 28 | n/a | extern int _MovieCtlObj_Convert(PyObject *, MovieController *); |
|---|
| 29 | n/a | extern PyObject *_TimeBaseObj_New(TimeBase); |
|---|
| 30 | n/a | extern int _TimeBaseObj_Convert(PyObject *, TimeBase *); |
|---|
| 31 | n/a | extern PyObject *_UserDataObj_New(UserData); |
|---|
| 32 | n/a | extern int _UserDataObj_Convert(PyObject *, UserData *); |
|---|
| 33 | n/a | extern PyObject *_MediaObj_New(Media); |
|---|
| 34 | n/a | extern int _MediaObj_Convert(PyObject *, Media *); |
|---|
| 35 | n/a | |
|---|
| 36 | n/a | #define TrackObj_New _TrackObj_New |
|---|
| 37 | n/a | #define TrackObj_Convert _TrackObj_Convert |
|---|
| 38 | n/a | #define MovieObj_New _MovieObj_New |
|---|
| 39 | n/a | #define MovieObj_Convert _MovieObj_Convert |
|---|
| 40 | n/a | #define MovieCtlObj_New _MovieCtlObj_New |
|---|
| 41 | n/a | #define MovieCtlObj_Convert _MovieCtlObj_Convert |
|---|
| 42 | n/a | #define TimeBaseObj_New _TimeBaseObj_New |
|---|
| 43 | n/a | #define TimeBaseObj_Convert _TimeBaseObj_Convert |
|---|
| 44 | n/a | #define UserDataObj_New _UserDataObj_New |
|---|
| 45 | n/a | #define UserDataObj_Convert _UserDataObj_Convert |
|---|
| 46 | n/a | #define MediaObj_New _MediaObj_New |
|---|
| 47 | n/a | #define MediaObj_Convert _MediaObj_Convert |
|---|
| 48 | n/a | #endif |
|---|
| 49 | n/a | |
|---|
| 50 | n/a | /* Macro to allow us to GetNextInterestingTime without duration */ |
|---|
| 51 | n/a | #define GetMediaNextInterestingTimeOnly(media, flags, time, rate, rv) GetMediaNextInterestingTime(media, flags, time, rate, rv, NULL) |
|---|
| 52 | n/a | |
|---|
| 53 | n/a | /* |
|---|
| 54 | n/a | ** Parse/generate time records |
|---|
| 55 | n/a | */ |
|---|
| 56 | n/a | static PyObject * |
|---|
| 57 | n/a | QtTimeRecord_New(TimeRecord *itself) |
|---|
| 58 | n/a | { |
|---|
| 59 | n/a | if (itself->base) |
|---|
| 60 | n/a | return Py_BuildValue("O&lO&", PyMac_Buildwide, &itself->value, itself->scale, |
|---|
| 61 | n/a | TimeBaseObj_New, itself->base); |
|---|
| 62 | n/a | else |
|---|
| 63 | n/a | return Py_BuildValue("O&lO", PyMac_Buildwide, &itself->value, itself->scale, |
|---|
| 64 | n/a | Py_None); |
|---|
| 65 | n/a | } |
|---|
| 66 | n/a | |
|---|
| 67 | n/a | static int |
|---|
| 68 | n/a | QtTimeRecord_Convert(PyObject *v, TimeRecord *p_itself) |
|---|
| 69 | n/a | { |
|---|
| 70 | n/a | PyObject *base = NULL; |
|---|
| 71 | n/a | if( !PyArg_ParseTuple(v, "O&l|O", PyMac_Getwide, &p_itself->value, &p_itself->scale, |
|---|
| 72 | n/a | &base) ) |
|---|
| 73 | n/a | return 0; |
|---|
| 74 | n/a | if ( base == NULL || base == Py_None ) |
|---|
| 75 | n/a | p_itself->base = NULL; |
|---|
| 76 | n/a | else |
|---|
| 77 | n/a | if ( !TimeBaseObj_Convert(base, &p_itself->base) ) |
|---|
| 78 | n/a | return 0; |
|---|
| 79 | n/a | return 1; |
|---|
| 80 | n/a | } |
|---|
| 81 | n/a | |
|---|
| 82 | n/a | static int |
|---|
| 83 | n/a | QtMusicMIDIPacket_Convert(PyObject *v, MusicMIDIPacket *p_itself) |
|---|
| 84 | n/a | { |
|---|
| 85 | n/a | int dummy; |
|---|
| 86 | n/a | |
|---|
| 87 | n/a | if( !PyArg_ParseTuple(v, "hls#", &p_itself->length, &p_itself->reserved, p_itself->data, dummy) ) |
|---|
| 88 | n/a | return 0; |
|---|
| 89 | n/a | return 1; |
|---|
| 90 | n/a | } |
|---|
| 91 | n/a | |
|---|
| 92 | n/a | |
|---|
| 93 | n/a | |
|---|
| 94 | n/a | |
|---|
| 95 | n/a | static PyObject *Qt_Error; |
|---|
| 96 | n/a | |
|---|
| 97 | n/a | /* -------------------- Object type IdleManager --------------------- */ |
|---|
| 98 | n/a | |
|---|
| 99 | n/a | PyTypeObject IdleManager_Type; |
|---|
| 100 | n/a | |
|---|
| 101 | n/a | #define IdleManagerObj_Check(x) ((x)->ob_type == &IdleManager_Type || PyObject_TypeCheck((x), &IdleManager_Type)) |
|---|
| 102 | n/a | |
|---|
| 103 | n/a | typedef struct IdleManagerObject { |
|---|
| 104 | n/a | PyObject_HEAD |
|---|
| 105 | n/a | IdleManager ob_itself; |
|---|
| 106 | n/a | } IdleManagerObject; |
|---|
| 107 | n/a | |
|---|
| 108 | n/a | PyObject *IdleManagerObj_New(IdleManager itself) |
|---|
| 109 | n/a | { |
|---|
| 110 | n/a | IdleManagerObject *it; |
|---|
| 111 | n/a | if (itself == NULL) { |
|---|
| 112 | n/a | PyErr_SetString(Qt_Error,"Cannot create IdleManager from NULL pointer"); |
|---|
| 113 | n/a | return NULL; |
|---|
| 114 | n/a | } |
|---|
| 115 | n/a | it = PyObject_NEW(IdleManagerObject, &IdleManager_Type); |
|---|
| 116 | n/a | if (it == NULL) return NULL; |
|---|
| 117 | n/a | it->ob_itself = itself; |
|---|
| 118 | n/a | return (PyObject *)it; |
|---|
| 119 | n/a | } |
|---|
| 120 | n/a | |
|---|
| 121 | n/a | int IdleManagerObj_Convert(PyObject *v, IdleManager *p_itself) |
|---|
| 122 | n/a | { |
|---|
| 123 | n/a | if (v == Py_None) |
|---|
| 124 | n/a | { |
|---|
| 125 | n/a | *p_itself = NULL; |
|---|
| 126 | n/a | return 1; |
|---|
| 127 | n/a | } |
|---|
| 128 | n/a | if (!IdleManagerObj_Check(v)) |
|---|
| 129 | n/a | { |
|---|
| 130 | n/a | PyErr_SetString(PyExc_TypeError, "IdleManager required"); |
|---|
| 131 | n/a | return 0; |
|---|
| 132 | n/a | } |
|---|
| 133 | n/a | *p_itself = ((IdleManagerObject *)v)->ob_itself; |
|---|
| 134 | n/a | return 1; |
|---|
| 135 | n/a | } |
|---|
| 136 | n/a | |
|---|
| 137 | n/a | static void IdleManagerObj_dealloc(IdleManagerObject *self) |
|---|
| 138 | n/a | { |
|---|
| 139 | n/a | /* Cleanup of self->ob_itself goes here */ |
|---|
| 140 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 141 | n/a | } |
|---|
| 142 | n/a | |
|---|
| 143 | n/a | static PyMethodDef IdleManagerObj_methods[] = { |
|---|
| 144 | n/a | {NULL, NULL, 0} |
|---|
| 145 | n/a | }; |
|---|
| 146 | n/a | |
|---|
| 147 | n/a | #define IdleManagerObj_getsetlist NULL |
|---|
| 148 | n/a | |
|---|
| 149 | n/a | |
|---|
| 150 | n/a | #define IdleManagerObj_compare NULL |
|---|
| 151 | n/a | |
|---|
| 152 | n/a | #define IdleManagerObj_repr NULL |
|---|
| 153 | n/a | |
|---|
| 154 | n/a | #define IdleManagerObj_hash NULL |
|---|
| 155 | n/a | #define IdleManagerObj_tp_init 0 |
|---|
| 156 | n/a | |
|---|
| 157 | n/a | #define IdleManagerObj_tp_alloc PyType_GenericAlloc |
|---|
| 158 | n/a | |
|---|
| 159 | n/a | static PyObject *IdleManagerObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 160 | n/a | { |
|---|
| 161 | n/a | PyObject *_self; |
|---|
| 162 | n/a | IdleManager itself; |
|---|
| 163 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 164 | n/a | |
|---|
| 165 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, IdleManagerObj_Convert, &itself)) return NULL; |
|---|
| 166 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 167 | n/a | ((IdleManagerObject *)_self)->ob_itself = itself; |
|---|
| 168 | n/a | return _self; |
|---|
| 169 | n/a | } |
|---|
| 170 | n/a | |
|---|
| 171 | n/a | #define IdleManagerObj_tp_free PyObject_Del |
|---|
| 172 | n/a | |
|---|
| 173 | n/a | |
|---|
| 174 | n/a | PyTypeObject IdleManager_Type = { |
|---|
| 175 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 176 | n/a | 0, /*ob_size*/ |
|---|
| 177 | n/a | "_Qt.IdleManager", /*tp_name*/ |
|---|
| 178 | n/a | sizeof(IdleManagerObject), /*tp_basicsize*/ |
|---|
| 179 | n/a | 0, /*tp_itemsize*/ |
|---|
| 180 | n/a | /* methods */ |
|---|
| 181 | n/a | (destructor) IdleManagerObj_dealloc, /*tp_dealloc*/ |
|---|
| 182 | n/a | 0, /*tp_print*/ |
|---|
| 183 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 184 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 185 | n/a | (cmpfunc) IdleManagerObj_compare, /*tp_compare*/ |
|---|
| 186 | n/a | (reprfunc) IdleManagerObj_repr, /*tp_repr*/ |
|---|
| 187 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 188 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 189 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 190 | n/a | (hashfunc) IdleManagerObj_hash, /*tp_hash*/ |
|---|
| 191 | n/a | 0, /*tp_call*/ |
|---|
| 192 | n/a | 0, /*tp_str*/ |
|---|
| 193 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 194 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 195 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 196 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 197 | n/a | 0, /*tp_doc*/ |
|---|
| 198 | n/a | 0, /*tp_traverse*/ |
|---|
| 199 | n/a | 0, /*tp_clear*/ |
|---|
| 200 | n/a | 0, /*tp_richcompare*/ |
|---|
| 201 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 202 | n/a | 0, /*tp_iter*/ |
|---|
| 203 | n/a | 0, /*tp_iternext*/ |
|---|
| 204 | n/a | IdleManagerObj_methods, /* tp_methods */ |
|---|
| 205 | n/a | 0, /*tp_members*/ |
|---|
| 206 | n/a | IdleManagerObj_getsetlist, /*tp_getset*/ |
|---|
| 207 | n/a | 0, /*tp_base*/ |
|---|
| 208 | n/a | 0, /*tp_dict*/ |
|---|
| 209 | n/a | 0, /*tp_descr_get*/ |
|---|
| 210 | n/a | 0, /*tp_descr_set*/ |
|---|
| 211 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 212 | n/a | IdleManagerObj_tp_init, /* tp_init */ |
|---|
| 213 | n/a | IdleManagerObj_tp_alloc, /* tp_alloc */ |
|---|
| 214 | n/a | IdleManagerObj_tp_new, /* tp_new */ |
|---|
| 215 | n/a | IdleManagerObj_tp_free, /* tp_free */ |
|---|
| 216 | n/a | }; |
|---|
| 217 | n/a | |
|---|
| 218 | n/a | /* ------------------ End object type IdleManager ------------------- */ |
|---|
| 219 | n/a | |
|---|
| 220 | n/a | |
|---|
| 221 | n/a | /* ------------------ Object type MovieController ------------------- */ |
|---|
| 222 | n/a | |
|---|
| 223 | n/a | PyTypeObject MovieController_Type; |
|---|
| 224 | n/a | |
|---|
| 225 | n/a | #define MovieCtlObj_Check(x) ((x)->ob_type == &MovieController_Type || PyObject_TypeCheck((x), &MovieController_Type)) |
|---|
| 226 | n/a | |
|---|
| 227 | n/a | typedef struct MovieControllerObject { |
|---|
| 228 | n/a | PyObject_HEAD |
|---|
| 229 | n/a | MovieController ob_itself; |
|---|
| 230 | n/a | } MovieControllerObject; |
|---|
| 231 | n/a | |
|---|
| 232 | n/a | PyObject *MovieCtlObj_New(MovieController itself) |
|---|
| 233 | n/a | { |
|---|
| 234 | n/a | MovieControllerObject *it; |
|---|
| 235 | n/a | if (itself == NULL) { |
|---|
| 236 | n/a | PyErr_SetString(Qt_Error,"Cannot create MovieController from NULL pointer"); |
|---|
| 237 | n/a | return NULL; |
|---|
| 238 | n/a | } |
|---|
| 239 | n/a | it = PyObject_NEW(MovieControllerObject, &MovieController_Type); |
|---|
| 240 | n/a | if (it == NULL) return NULL; |
|---|
| 241 | n/a | it->ob_itself = itself; |
|---|
| 242 | n/a | return (PyObject *)it; |
|---|
| 243 | n/a | } |
|---|
| 244 | n/a | |
|---|
| 245 | n/a | int MovieCtlObj_Convert(PyObject *v, MovieController *p_itself) |
|---|
| 246 | n/a | { |
|---|
| 247 | n/a | if (v == Py_None) |
|---|
| 248 | n/a | { |
|---|
| 249 | n/a | *p_itself = NULL; |
|---|
| 250 | n/a | return 1; |
|---|
| 251 | n/a | } |
|---|
| 252 | n/a | if (!MovieCtlObj_Check(v)) |
|---|
| 253 | n/a | { |
|---|
| 254 | n/a | PyErr_SetString(PyExc_TypeError, "MovieController required"); |
|---|
| 255 | n/a | return 0; |
|---|
| 256 | n/a | } |
|---|
| 257 | n/a | *p_itself = ((MovieControllerObject *)v)->ob_itself; |
|---|
| 258 | n/a | return 1; |
|---|
| 259 | n/a | } |
|---|
| 260 | n/a | |
|---|
| 261 | n/a | static void MovieCtlObj_dealloc(MovieControllerObject *self) |
|---|
| 262 | n/a | { |
|---|
| 263 | n/a | if (self->ob_itself) DisposeMovieController(self->ob_itself); |
|---|
| 264 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 265 | n/a | } |
|---|
| 266 | n/a | |
|---|
| 267 | n/a | static PyObject *MovieCtlObj_MCSetMovie(MovieControllerObject *_self, PyObject *_args) |
|---|
| 268 | n/a | { |
|---|
| 269 | n/a | PyObject *_res = NULL; |
|---|
| 270 | n/a | ComponentResult _rv; |
|---|
| 271 | n/a | Movie theMovie; |
|---|
| 272 | n/a | WindowPtr movieWindow; |
|---|
| 273 | n/a | Point where; |
|---|
| 274 | n/a | #ifndef MCSetMovie |
|---|
| 275 | n/a | PyMac_PRECHECK(MCSetMovie); |
|---|
| 276 | n/a | #endif |
|---|
| 277 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 278 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 279 | n/a | WinObj_Convert, &movieWindow, |
|---|
| 280 | n/a | PyMac_GetPoint, &where)) |
|---|
| 281 | n/a | return NULL; |
|---|
| 282 | n/a | _rv = MCSetMovie(_self->ob_itself, |
|---|
| 283 | n/a | theMovie, |
|---|
| 284 | n/a | movieWindow, |
|---|
| 285 | n/a | where); |
|---|
| 286 | n/a | _res = Py_BuildValue("l", |
|---|
| 287 | n/a | _rv); |
|---|
| 288 | n/a | return _res; |
|---|
| 289 | n/a | } |
|---|
| 290 | n/a | |
|---|
| 291 | n/a | static PyObject *MovieCtlObj_MCGetIndMovie(MovieControllerObject *_self, PyObject *_args) |
|---|
| 292 | n/a | { |
|---|
| 293 | n/a | PyObject *_res = NULL; |
|---|
| 294 | n/a | Movie _rv; |
|---|
| 295 | n/a | short index; |
|---|
| 296 | n/a | #ifndef MCGetIndMovie |
|---|
| 297 | n/a | PyMac_PRECHECK(MCGetIndMovie); |
|---|
| 298 | n/a | #endif |
|---|
| 299 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 300 | n/a | &index)) |
|---|
| 301 | n/a | return NULL; |
|---|
| 302 | n/a | _rv = MCGetIndMovie(_self->ob_itself, |
|---|
| 303 | n/a | index); |
|---|
| 304 | n/a | _res = Py_BuildValue("O&", |
|---|
| 305 | n/a | MovieObj_New, _rv); |
|---|
| 306 | n/a | return _res; |
|---|
| 307 | n/a | } |
|---|
| 308 | n/a | |
|---|
| 309 | n/a | static PyObject *MovieCtlObj_MCRemoveAllMovies(MovieControllerObject *_self, PyObject *_args) |
|---|
| 310 | n/a | { |
|---|
| 311 | n/a | PyObject *_res = NULL; |
|---|
| 312 | n/a | ComponentResult _rv; |
|---|
| 313 | n/a | #ifndef MCRemoveAllMovies |
|---|
| 314 | n/a | PyMac_PRECHECK(MCRemoveAllMovies); |
|---|
| 315 | n/a | #endif |
|---|
| 316 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 317 | n/a | return NULL; |
|---|
| 318 | n/a | _rv = MCRemoveAllMovies(_self->ob_itself); |
|---|
| 319 | n/a | _res = Py_BuildValue("l", |
|---|
| 320 | n/a | _rv); |
|---|
| 321 | n/a | return _res; |
|---|
| 322 | n/a | } |
|---|
| 323 | n/a | |
|---|
| 324 | n/a | static PyObject *MovieCtlObj_MCRemoveAMovie(MovieControllerObject *_self, PyObject *_args) |
|---|
| 325 | n/a | { |
|---|
| 326 | n/a | PyObject *_res = NULL; |
|---|
| 327 | n/a | ComponentResult _rv; |
|---|
| 328 | n/a | Movie m; |
|---|
| 329 | n/a | #ifndef MCRemoveAMovie |
|---|
| 330 | n/a | PyMac_PRECHECK(MCRemoveAMovie); |
|---|
| 331 | n/a | #endif |
|---|
| 332 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 333 | n/a | MovieObj_Convert, &m)) |
|---|
| 334 | n/a | return NULL; |
|---|
| 335 | n/a | _rv = MCRemoveAMovie(_self->ob_itself, |
|---|
| 336 | n/a | m); |
|---|
| 337 | n/a | _res = Py_BuildValue("l", |
|---|
| 338 | n/a | _rv); |
|---|
| 339 | n/a | return _res; |
|---|
| 340 | n/a | } |
|---|
| 341 | n/a | |
|---|
| 342 | n/a | static PyObject *MovieCtlObj_MCRemoveMovie(MovieControllerObject *_self, PyObject *_args) |
|---|
| 343 | n/a | { |
|---|
| 344 | n/a | PyObject *_res = NULL; |
|---|
| 345 | n/a | ComponentResult _rv; |
|---|
| 346 | n/a | #ifndef MCRemoveMovie |
|---|
| 347 | n/a | PyMac_PRECHECK(MCRemoveMovie); |
|---|
| 348 | n/a | #endif |
|---|
| 349 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 350 | n/a | return NULL; |
|---|
| 351 | n/a | _rv = MCRemoveMovie(_self->ob_itself); |
|---|
| 352 | n/a | _res = Py_BuildValue("l", |
|---|
| 353 | n/a | _rv); |
|---|
| 354 | n/a | return _res; |
|---|
| 355 | n/a | } |
|---|
| 356 | n/a | |
|---|
| 357 | n/a | static PyObject *MovieCtlObj_MCIsPlayerEvent(MovieControllerObject *_self, PyObject *_args) |
|---|
| 358 | n/a | { |
|---|
| 359 | n/a | PyObject *_res = NULL; |
|---|
| 360 | n/a | ComponentResult _rv; |
|---|
| 361 | n/a | EventRecord e; |
|---|
| 362 | n/a | #ifndef MCIsPlayerEvent |
|---|
| 363 | n/a | PyMac_PRECHECK(MCIsPlayerEvent); |
|---|
| 364 | n/a | #endif |
|---|
| 365 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 366 | n/a | PyMac_GetEventRecord, &e)) |
|---|
| 367 | n/a | return NULL; |
|---|
| 368 | n/a | _rv = MCIsPlayerEvent(_self->ob_itself, |
|---|
| 369 | n/a | &e); |
|---|
| 370 | n/a | _res = Py_BuildValue("l", |
|---|
| 371 | n/a | _rv); |
|---|
| 372 | n/a | return _res; |
|---|
| 373 | n/a | } |
|---|
| 374 | n/a | |
|---|
| 375 | n/a | static PyObject *MovieCtlObj_MCDoAction(MovieControllerObject *_self, PyObject *_args) |
|---|
| 376 | n/a | { |
|---|
| 377 | n/a | PyObject *_res = NULL; |
|---|
| 378 | n/a | ComponentResult _rv; |
|---|
| 379 | n/a | short action; |
|---|
| 380 | n/a | void * params; |
|---|
| 381 | n/a | #ifndef MCDoAction |
|---|
| 382 | n/a | PyMac_PRECHECK(MCDoAction); |
|---|
| 383 | n/a | #endif |
|---|
| 384 | n/a | if (!PyArg_ParseTuple(_args, "hs", |
|---|
| 385 | n/a | &action, |
|---|
| 386 | n/a | ¶ms)) |
|---|
| 387 | n/a | return NULL; |
|---|
| 388 | n/a | _rv = MCDoAction(_self->ob_itself, |
|---|
| 389 | n/a | action, |
|---|
| 390 | n/a | params); |
|---|
| 391 | n/a | _res = Py_BuildValue("l", |
|---|
| 392 | n/a | _rv); |
|---|
| 393 | n/a | return _res; |
|---|
| 394 | n/a | } |
|---|
| 395 | n/a | |
|---|
| 396 | n/a | static PyObject *MovieCtlObj_MCSetControllerAttached(MovieControllerObject *_self, PyObject *_args) |
|---|
| 397 | n/a | { |
|---|
| 398 | n/a | PyObject *_res = NULL; |
|---|
| 399 | n/a | ComponentResult _rv; |
|---|
| 400 | n/a | Boolean attach; |
|---|
| 401 | n/a | #ifndef MCSetControllerAttached |
|---|
| 402 | n/a | PyMac_PRECHECK(MCSetControllerAttached); |
|---|
| 403 | n/a | #endif |
|---|
| 404 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 405 | n/a | &attach)) |
|---|
| 406 | n/a | return NULL; |
|---|
| 407 | n/a | _rv = MCSetControllerAttached(_self->ob_itself, |
|---|
| 408 | n/a | attach); |
|---|
| 409 | n/a | _res = Py_BuildValue("l", |
|---|
| 410 | n/a | _rv); |
|---|
| 411 | n/a | return _res; |
|---|
| 412 | n/a | } |
|---|
| 413 | n/a | |
|---|
| 414 | n/a | static PyObject *MovieCtlObj_MCIsControllerAttached(MovieControllerObject *_self, PyObject *_args) |
|---|
| 415 | n/a | { |
|---|
| 416 | n/a | PyObject *_res = NULL; |
|---|
| 417 | n/a | ComponentResult _rv; |
|---|
| 418 | n/a | #ifndef MCIsControllerAttached |
|---|
| 419 | n/a | PyMac_PRECHECK(MCIsControllerAttached); |
|---|
| 420 | n/a | #endif |
|---|
| 421 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 422 | n/a | return NULL; |
|---|
| 423 | n/a | _rv = MCIsControllerAttached(_self->ob_itself); |
|---|
| 424 | n/a | _res = Py_BuildValue("l", |
|---|
| 425 | n/a | _rv); |
|---|
| 426 | n/a | return _res; |
|---|
| 427 | n/a | } |
|---|
| 428 | n/a | |
|---|
| 429 | n/a | static PyObject *MovieCtlObj_MCSetControllerPort(MovieControllerObject *_self, PyObject *_args) |
|---|
| 430 | n/a | { |
|---|
| 431 | n/a | PyObject *_res = NULL; |
|---|
| 432 | n/a | ComponentResult _rv; |
|---|
| 433 | n/a | CGrafPtr gp; |
|---|
| 434 | n/a | #ifndef MCSetControllerPort |
|---|
| 435 | n/a | PyMac_PRECHECK(MCSetControllerPort); |
|---|
| 436 | n/a | #endif |
|---|
| 437 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 438 | n/a | GrafObj_Convert, &gp)) |
|---|
| 439 | n/a | return NULL; |
|---|
| 440 | n/a | _rv = MCSetControllerPort(_self->ob_itself, |
|---|
| 441 | n/a | gp); |
|---|
| 442 | n/a | _res = Py_BuildValue("l", |
|---|
| 443 | n/a | _rv); |
|---|
| 444 | n/a | return _res; |
|---|
| 445 | n/a | } |
|---|
| 446 | n/a | |
|---|
| 447 | n/a | static PyObject *MovieCtlObj_MCGetControllerPort(MovieControllerObject *_self, PyObject *_args) |
|---|
| 448 | n/a | { |
|---|
| 449 | n/a | PyObject *_res = NULL; |
|---|
| 450 | n/a | CGrafPtr _rv; |
|---|
| 451 | n/a | #ifndef MCGetControllerPort |
|---|
| 452 | n/a | PyMac_PRECHECK(MCGetControllerPort); |
|---|
| 453 | n/a | #endif |
|---|
| 454 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 455 | n/a | return NULL; |
|---|
| 456 | n/a | _rv = MCGetControllerPort(_self->ob_itself); |
|---|
| 457 | n/a | _res = Py_BuildValue("O&", |
|---|
| 458 | n/a | GrafObj_New, _rv); |
|---|
| 459 | n/a | return _res; |
|---|
| 460 | n/a | } |
|---|
| 461 | n/a | |
|---|
| 462 | n/a | static PyObject *MovieCtlObj_MCSetVisible(MovieControllerObject *_self, PyObject *_args) |
|---|
| 463 | n/a | { |
|---|
| 464 | n/a | PyObject *_res = NULL; |
|---|
| 465 | n/a | ComponentResult _rv; |
|---|
| 466 | n/a | Boolean visible; |
|---|
| 467 | n/a | #ifndef MCSetVisible |
|---|
| 468 | n/a | PyMac_PRECHECK(MCSetVisible); |
|---|
| 469 | n/a | #endif |
|---|
| 470 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 471 | n/a | &visible)) |
|---|
| 472 | n/a | return NULL; |
|---|
| 473 | n/a | _rv = MCSetVisible(_self->ob_itself, |
|---|
| 474 | n/a | visible); |
|---|
| 475 | n/a | _res = Py_BuildValue("l", |
|---|
| 476 | n/a | _rv); |
|---|
| 477 | n/a | return _res; |
|---|
| 478 | n/a | } |
|---|
| 479 | n/a | |
|---|
| 480 | n/a | static PyObject *MovieCtlObj_MCGetVisible(MovieControllerObject *_self, PyObject *_args) |
|---|
| 481 | n/a | { |
|---|
| 482 | n/a | PyObject *_res = NULL; |
|---|
| 483 | n/a | ComponentResult _rv; |
|---|
| 484 | n/a | #ifndef MCGetVisible |
|---|
| 485 | n/a | PyMac_PRECHECK(MCGetVisible); |
|---|
| 486 | n/a | #endif |
|---|
| 487 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 488 | n/a | return NULL; |
|---|
| 489 | n/a | _rv = MCGetVisible(_self->ob_itself); |
|---|
| 490 | n/a | _res = Py_BuildValue("l", |
|---|
| 491 | n/a | _rv); |
|---|
| 492 | n/a | return _res; |
|---|
| 493 | n/a | } |
|---|
| 494 | n/a | |
|---|
| 495 | n/a | static PyObject *MovieCtlObj_MCGetControllerBoundsRect(MovieControllerObject *_self, PyObject *_args) |
|---|
| 496 | n/a | { |
|---|
| 497 | n/a | PyObject *_res = NULL; |
|---|
| 498 | n/a | ComponentResult _rv; |
|---|
| 499 | n/a | Rect bounds; |
|---|
| 500 | n/a | #ifndef MCGetControllerBoundsRect |
|---|
| 501 | n/a | PyMac_PRECHECK(MCGetControllerBoundsRect); |
|---|
| 502 | n/a | #endif |
|---|
| 503 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 504 | n/a | return NULL; |
|---|
| 505 | n/a | _rv = MCGetControllerBoundsRect(_self->ob_itself, |
|---|
| 506 | n/a | &bounds); |
|---|
| 507 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 508 | n/a | _rv, |
|---|
| 509 | n/a | PyMac_BuildRect, &bounds); |
|---|
| 510 | n/a | return _res; |
|---|
| 511 | n/a | } |
|---|
| 512 | n/a | |
|---|
| 513 | n/a | static PyObject *MovieCtlObj_MCSetControllerBoundsRect(MovieControllerObject *_self, PyObject *_args) |
|---|
| 514 | n/a | { |
|---|
| 515 | n/a | PyObject *_res = NULL; |
|---|
| 516 | n/a | ComponentResult _rv; |
|---|
| 517 | n/a | Rect bounds; |
|---|
| 518 | n/a | #ifndef MCSetControllerBoundsRect |
|---|
| 519 | n/a | PyMac_PRECHECK(MCSetControllerBoundsRect); |
|---|
| 520 | n/a | #endif |
|---|
| 521 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 522 | n/a | PyMac_GetRect, &bounds)) |
|---|
| 523 | n/a | return NULL; |
|---|
| 524 | n/a | _rv = MCSetControllerBoundsRect(_self->ob_itself, |
|---|
| 525 | n/a | &bounds); |
|---|
| 526 | n/a | _res = Py_BuildValue("l", |
|---|
| 527 | n/a | _rv); |
|---|
| 528 | n/a | return _res; |
|---|
| 529 | n/a | } |
|---|
| 530 | n/a | |
|---|
| 531 | n/a | static PyObject *MovieCtlObj_MCGetControllerBoundsRgn(MovieControllerObject *_self, PyObject *_args) |
|---|
| 532 | n/a | { |
|---|
| 533 | n/a | PyObject *_res = NULL; |
|---|
| 534 | n/a | RgnHandle _rv; |
|---|
| 535 | n/a | #ifndef MCGetControllerBoundsRgn |
|---|
| 536 | n/a | PyMac_PRECHECK(MCGetControllerBoundsRgn); |
|---|
| 537 | n/a | #endif |
|---|
| 538 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 539 | n/a | return NULL; |
|---|
| 540 | n/a | _rv = MCGetControllerBoundsRgn(_self->ob_itself); |
|---|
| 541 | n/a | _res = Py_BuildValue("O&", |
|---|
| 542 | n/a | ResObj_New, _rv); |
|---|
| 543 | n/a | return _res; |
|---|
| 544 | n/a | } |
|---|
| 545 | n/a | |
|---|
| 546 | n/a | static PyObject *MovieCtlObj_MCGetWindowRgn(MovieControllerObject *_self, PyObject *_args) |
|---|
| 547 | n/a | { |
|---|
| 548 | n/a | PyObject *_res = NULL; |
|---|
| 549 | n/a | RgnHandle _rv; |
|---|
| 550 | n/a | WindowPtr w; |
|---|
| 551 | n/a | #ifndef MCGetWindowRgn |
|---|
| 552 | n/a | PyMac_PRECHECK(MCGetWindowRgn); |
|---|
| 553 | n/a | #endif |
|---|
| 554 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 555 | n/a | WinObj_Convert, &w)) |
|---|
| 556 | n/a | return NULL; |
|---|
| 557 | n/a | _rv = MCGetWindowRgn(_self->ob_itself, |
|---|
| 558 | n/a | w); |
|---|
| 559 | n/a | _res = Py_BuildValue("O&", |
|---|
| 560 | n/a | ResObj_New, _rv); |
|---|
| 561 | n/a | return _res; |
|---|
| 562 | n/a | } |
|---|
| 563 | n/a | |
|---|
| 564 | n/a | static PyObject *MovieCtlObj_MCMovieChanged(MovieControllerObject *_self, PyObject *_args) |
|---|
| 565 | n/a | { |
|---|
| 566 | n/a | PyObject *_res = NULL; |
|---|
| 567 | n/a | ComponentResult _rv; |
|---|
| 568 | n/a | Movie m; |
|---|
| 569 | n/a | #ifndef MCMovieChanged |
|---|
| 570 | n/a | PyMac_PRECHECK(MCMovieChanged); |
|---|
| 571 | n/a | #endif |
|---|
| 572 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 573 | n/a | MovieObj_Convert, &m)) |
|---|
| 574 | n/a | return NULL; |
|---|
| 575 | n/a | _rv = MCMovieChanged(_self->ob_itself, |
|---|
| 576 | n/a | m); |
|---|
| 577 | n/a | _res = Py_BuildValue("l", |
|---|
| 578 | n/a | _rv); |
|---|
| 579 | n/a | return _res; |
|---|
| 580 | n/a | } |
|---|
| 581 | n/a | |
|---|
| 582 | n/a | static PyObject *MovieCtlObj_MCSetDuration(MovieControllerObject *_self, PyObject *_args) |
|---|
| 583 | n/a | { |
|---|
| 584 | n/a | PyObject *_res = NULL; |
|---|
| 585 | n/a | ComponentResult _rv; |
|---|
| 586 | n/a | TimeValue duration; |
|---|
| 587 | n/a | #ifndef MCSetDuration |
|---|
| 588 | n/a | PyMac_PRECHECK(MCSetDuration); |
|---|
| 589 | n/a | #endif |
|---|
| 590 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 591 | n/a | &duration)) |
|---|
| 592 | n/a | return NULL; |
|---|
| 593 | n/a | _rv = MCSetDuration(_self->ob_itself, |
|---|
| 594 | n/a | duration); |
|---|
| 595 | n/a | _res = Py_BuildValue("l", |
|---|
| 596 | n/a | _rv); |
|---|
| 597 | n/a | return _res; |
|---|
| 598 | n/a | } |
|---|
| 599 | n/a | |
|---|
| 600 | n/a | static PyObject *MovieCtlObj_MCGetCurrentTime(MovieControllerObject *_self, PyObject *_args) |
|---|
| 601 | n/a | { |
|---|
| 602 | n/a | PyObject *_res = NULL; |
|---|
| 603 | n/a | TimeValue _rv; |
|---|
| 604 | n/a | TimeScale scale; |
|---|
| 605 | n/a | #ifndef MCGetCurrentTime |
|---|
| 606 | n/a | PyMac_PRECHECK(MCGetCurrentTime); |
|---|
| 607 | n/a | #endif |
|---|
| 608 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 609 | n/a | return NULL; |
|---|
| 610 | n/a | _rv = MCGetCurrentTime(_self->ob_itself, |
|---|
| 611 | n/a | &scale); |
|---|
| 612 | n/a | _res = Py_BuildValue("ll", |
|---|
| 613 | n/a | _rv, |
|---|
| 614 | n/a | scale); |
|---|
| 615 | n/a | return _res; |
|---|
| 616 | n/a | } |
|---|
| 617 | n/a | |
|---|
| 618 | n/a | static PyObject *MovieCtlObj_MCNewAttachedController(MovieControllerObject *_self, PyObject *_args) |
|---|
| 619 | n/a | { |
|---|
| 620 | n/a | PyObject *_res = NULL; |
|---|
| 621 | n/a | ComponentResult _rv; |
|---|
| 622 | n/a | Movie theMovie; |
|---|
| 623 | n/a | WindowPtr w; |
|---|
| 624 | n/a | Point where; |
|---|
| 625 | n/a | #ifndef MCNewAttachedController |
|---|
| 626 | n/a | PyMac_PRECHECK(MCNewAttachedController); |
|---|
| 627 | n/a | #endif |
|---|
| 628 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 629 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 630 | n/a | WinObj_Convert, &w, |
|---|
| 631 | n/a | PyMac_GetPoint, &where)) |
|---|
| 632 | n/a | return NULL; |
|---|
| 633 | n/a | _rv = MCNewAttachedController(_self->ob_itself, |
|---|
| 634 | n/a | theMovie, |
|---|
| 635 | n/a | w, |
|---|
| 636 | n/a | where); |
|---|
| 637 | n/a | _res = Py_BuildValue("l", |
|---|
| 638 | n/a | _rv); |
|---|
| 639 | n/a | return _res; |
|---|
| 640 | n/a | } |
|---|
| 641 | n/a | |
|---|
| 642 | n/a | static PyObject *MovieCtlObj_MCDraw(MovieControllerObject *_self, PyObject *_args) |
|---|
| 643 | n/a | { |
|---|
| 644 | n/a | PyObject *_res = NULL; |
|---|
| 645 | n/a | ComponentResult _rv; |
|---|
| 646 | n/a | WindowPtr w; |
|---|
| 647 | n/a | #ifndef MCDraw |
|---|
| 648 | n/a | PyMac_PRECHECK(MCDraw); |
|---|
| 649 | n/a | #endif |
|---|
| 650 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 651 | n/a | WinObj_Convert, &w)) |
|---|
| 652 | n/a | return NULL; |
|---|
| 653 | n/a | _rv = MCDraw(_self->ob_itself, |
|---|
| 654 | n/a | w); |
|---|
| 655 | n/a | _res = Py_BuildValue("l", |
|---|
| 656 | n/a | _rv); |
|---|
| 657 | n/a | return _res; |
|---|
| 658 | n/a | } |
|---|
| 659 | n/a | |
|---|
| 660 | n/a | static PyObject *MovieCtlObj_MCActivate(MovieControllerObject *_self, PyObject *_args) |
|---|
| 661 | n/a | { |
|---|
| 662 | n/a | PyObject *_res = NULL; |
|---|
| 663 | n/a | ComponentResult _rv; |
|---|
| 664 | n/a | WindowPtr w; |
|---|
| 665 | n/a | Boolean activate; |
|---|
| 666 | n/a | #ifndef MCActivate |
|---|
| 667 | n/a | PyMac_PRECHECK(MCActivate); |
|---|
| 668 | n/a | #endif |
|---|
| 669 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 670 | n/a | WinObj_Convert, &w, |
|---|
| 671 | n/a | &activate)) |
|---|
| 672 | n/a | return NULL; |
|---|
| 673 | n/a | _rv = MCActivate(_self->ob_itself, |
|---|
| 674 | n/a | w, |
|---|
| 675 | n/a | activate); |
|---|
| 676 | n/a | _res = Py_BuildValue("l", |
|---|
| 677 | n/a | _rv); |
|---|
| 678 | n/a | return _res; |
|---|
| 679 | n/a | } |
|---|
| 680 | n/a | |
|---|
| 681 | n/a | static PyObject *MovieCtlObj_MCIdle(MovieControllerObject *_self, PyObject *_args) |
|---|
| 682 | n/a | { |
|---|
| 683 | n/a | PyObject *_res = NULL; |
|---|
| 684 | n/a | ComponentResult _rv; |
|---|
| 685 | n/a | #ifndef MCIdle |
|---|
| 686 | n/a | PyMac_PRECHECK(MCIdle); |
|---|
| 687 | n/a | #endif |
|---|
| 688 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 689 | n/a | return NULL; |
|---|
| 690 | n/a | _rv = MCIdle(_self->ob_itself); |
|---|
| 691 | n/a | _res = Py_BuildValue("l", |
|---|
| 692 | n/a | _rv); |
|---|
| 693 | n/a | return _res; |
|---|
| 694 | n/a | } |
|---|
| 695 | n/a | |
|---|
| 696 | n/a | static PyObject *MovieCtlObj_MCKey(MovieControllerObject *_self, PyObject *_args) |
|---|
| 697 | n/a | { |
|---|
| 698 | n/a | PyObject *_res = NULL; |
|---|
| 699 | n/a | ComponentResult _rv; |
|---|
| 700 | n/a | SInt8 key; |
|---|
| 701 | n/a | long modifiers; |
|---|
| 702 | n/a | #ifndef MCKey |
|---|
| 703 | n/a | PyMac_PRECHECK(MCKey); |
|---|
| 704 | n/a | #endif |
|---|
| 705 | n/a | if (!PyArg_ParseTuple(_args, "bl", |
|---|
| 706 | n/a | &key, |
|---|
| 707 | n/a | &modifiers)) |
|---|
| 708 | n/a | return NULL; |
|---|
| 709 | n/a | _rv = MCKey(_self->ob_itself, |
|---|
| 710 | n/a | key, |
|---|
| 711 | n/a | modifiers); |
|---|
| 712 | n/a | _res = Py_BuildValue("l", |
|---|
| 713 | n/a | _rv); |
|---|
| 714 | n/a | return _res; |
|---|
| 715 | n/a | } |
|---|
| 716 | n/a | |
|---|
| 717 | n/a | static PyObject *MovieCtlObj_MCClick(MovieControllerObject *_self, PyObject *_args) |
|---|
| 718 | n/a | { |
|---|
| 719 | n/a | PyObject *_res = NULL; |
|---|
| 720 | n/a | ComponentResult _rv; |
|---|
| 721 | n/a | WindowPtr w; |
|---|
| 722 | n/a | Point where; |
|---|
| 723 | n/a | long when; |
|---|
| 724 | n/a | long modifiers; |
|---|
| 725 | n/a | #ifndef MCClick |
|---|
| 726 | n/a | PyMac_PRECHECK(MCClick); |
|---|
| 727 | n/a | #endif |
|---|
| 728 | n/a | if (!PyArg_ParseTuple(_args, "O&O&ll", |
|---|
| 729 | n/a | WinObj_Convert, &w, |
|---|
| 730 | n/a | PyMac_GetPoint, &where, |
|---|
| 731 | n/a | &when, |
|---|
| 732 | n/a | &modifiers)) |
|---|
| 733 | n/a | return NULL; |
|---|
| 734 | n/a | _rv = MCClick(_self->ob_itself, |
|---|
| 735 | n/a | w, |
|---|
| 736 | n/a | where, |
|---|
| 737 | n/a | when, |
|---|
| 738 | n/a | modifiers); |
|---|
| 739 | n/a | _res = Py_BuildValue("l", |
|---|
| 740 | n/a | _rv); |
|---|
| 741 | n/a | return _res; |
|---|
| 742 | n/a | } |
|---|
| 743 | n/a | |
|---|
| 744 | n/a | static PyObject *MovieCtlObj_MCEnableEditing(MovieControllerObject *_self, PyObject *_args) |
|---|
| 745 | n/a | { |
|---|
| 746 | n/a | PyObject *_res = NULL; |
|---|
| 747 | n/a | ComponentResult _rv; |
|---|
| 748 | n/a | Boolean enabled; |
|---|
| 749 | n/a | #ifndef MCEnableEditing |
|---|
| 750 | n/a | PyMac_PRECHECK(MCEnableEditing); |
|---|
| 751 | n/a | #endif |
|---|
| 752 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 753 | n/a | &enabled)) |
|---|
| 754 | n/a | return NULL; |
|---|
| 755 | n/a | _rv = MCEnableEditing(_self->ob_itself, |
|---|
| 756 | n/a | enabled); |
|---|
| 757 | n/a | _res = Py_BuildValue("l", |
|---|
| 758 | n/a | _rv); |
|---|
| 759 | n/a | return _res; |
|---|
| 760 | n/a | } |
|---|
| 761 | n/a | |
|---|
| 762 | n/a | static PyObject *MovieCtlObj_MCIsEditingEnabled(MovieControllerObject *_self, PyObject *_args) |
|---|
| 763 | n/a | { |
|---|
| 764 | n/a | PyObject *_res = NULL; |
|---|
| 765 | n/a | long _rv; |
|---|
| 766 | n/a | #ifndef MCIsEditingEnabled |
|---|
| 767 | n/a | PyMac_PRECHECK(MCIsEditingEnabled); |
|---|
| 768 | n/a | #endif |
|---|
| 769 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 770 | n/a | return NULL; |
|---|
| 771 | n/a | _rv = MCIsEditingEnabled(_self->ob_itself); |
|---|
| 772 | n/a | _res = Py_BuildValue("l", |
|---|
| 773 | n/a | _rv); |
|---|
| 774 | n/a | return _res; |
|---|
| 775 | n/a | } |
|---|
| 776 | n/a | |
|---|
| 777 | n/a | static PyObject *MovieCtlObj_MCCopy(MovieControllerObject *_self, PyObject *_args) |
|---|
| 778 | n/a | { |
|---|
| 779 | n/a | PyObject *_res = NULL; |
|---|
| 780 | n/a | Movie _rv; |
|---|
| 781 | n/a | #ifndef MCCopy |
|---|
| 782 | n/a | PyMac_PRECHECK(MCCopy); |
|---|
| 783 | n/a | #endif |
|---|
| 784 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 785 | n/a | return NULL; |
|---|
| 786 | n/a | _rv = MCCopy(_self->ob_itself); |
|---|
| 787 | n/a | _res = Py_BuildValue("O&", |
|---|
| 788 | n/a | MovieObj_New, _rv); |
|---|
| 789 | n/a | return _res; |
|---|
| 790 | n/a | } |
|---|
| 791 | n/a | |
|---|
| 792 | n/a | static PyObject *MovieCtlObj_MCCut(MovieControllerObject *_self, PyObject *_args) |
|---|
| 793 | n/a | { |
|---|
| 794 | n/a | PyObject *_res = NULL; |
|---|
| 795 | n/a | Movie _rv; |
|---|
| 796 | n/a | #ifndef MCCut |
|---|
| 797 | n/a | PyMac_PRECHECK(MCCut); |
|---|
| 798 | n/a | #endif |
|---|
| 799 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 800 | n/a | return NULL; |
|---|
| 801 | n/a | _rv = MCCut(_self->ob_itself); |
|---|
| 802 | n/a | _res = Py_BuildValue("O&", |
|---|
| 803 | n/a | MovieObj_New, _rv); |
|---|
| 804 | n/a | return _res; |
|---|
| 805 | n/a | } |
|---|
| 806 | n/a | |
|---|
| 807 | n/a | static PyObject *MovieCtlObj_MCPaste(MovieControllerObject *_self, PyObject *_args) |
|---|
| 808 | n/a | { |
|---|
| 809 | n/a | PyObject *_res = NULL; |
|---|
| 810 | n/a | ComponentResult _rv; |
|---|
| 811 | n/a | Movie srcMovie; |
|---|
| 812 | n/a | #ifndef MCPaste |
|---|
| 813 | n/a | PyMac_PRECHECK(MCPaste); |
|---|
| 814 | n/a | #endif |
|---|
| 815 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 816 | n/a | MovieObj_Convert, &srcMovie)) |
|---|
| 817 | n/a | return NULL; |
|---|
| 818 | n/a | _rv = MCPaste(_self->ob_itself, |
|---|
| 819 | n/a | srcMovie); |
|---|
| 820 | n/a | _res = Py_BuildValue("l", |
|---|
| 821 | n/a | _rv); |
|---|
| 822 | n/a | return _res; |
|---|
| 823 | n/a | } |
|---|
| 824 | n/a | |
|---|
| 825 | n/a | static PyObject *MovieCtlObj_MCClear(MovieControllerObject *_self, PyObject *_args) |
|---|
| 826 | n/a | { |
|---|
| 827 | n/a | PyObject *_res = NULL; |
|---|
| 828 | n/a | ComponentResult _rv; |
|---|
| 829 | n/a | #ifndef MCClear |
|---|
| 830 | n/a | PyMac_PRECHECK(MCClear); |
|---|
| 831 | n/a | #endif |
|---|
| 832 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 833 | n/a | return NULL; |
|---|
| 834 | n/a | _rv = MCClear(_self->ob_itself); |
|---|
| 835 | n/a | _res = Py_BuildValue("l", |
|---|
| 836 | n/a | _rv); |
|---|
| 837 | n/a | return _res; |
|---|
| 838 | n/a | } |
|---|
| 839 | n/a | |
|---|
| 840 | n/a | static PyObject *MovieCtlObj_MCUndo(MovieControllerObject *_self, PyObject *_args) |
|---|
| 841 | n/a | { |
|---|
| 842 | n/a | PyObject *_res = NULL; |
|---|
| 843 | n/a | ComponentResult _rv; |
|---|
| 844 | n/a | #ifndef MCUndo |
|---|
| 845 | n/a | PyMac_PRECHECK(MCUndo); |
|---|
| 846 | n/a | #endif |
|---|
| 847 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 848 | n/a | return NULL; |
|---|
| 849 | n/a | _rv = MCUndo(_self->ob_itself); |
|---|
| 850 | n/a | _res = Py_BuildValue("l", |
|---|
| 851 | n/a | _rv); |
|---|
| 852 | n/a | return _res; |
|---|
| 853 | n/a | } |
|---|
| 854 | n/a | |
|---|
| 855 | n/a | static PyObject *MovieCtlObj_MCPositionController(MovieControllerObject *_self, PyObject *_args) |
|---|
| 856 | n/a | { |
|---|
| 857 | n/a | PyObject *_res = NULL; |
|---|
| 858 | n/a | ComponentResult _rv; |
|---|
| 859 | n/a | Rect movieRect; |
|---|
| 860 | n/a | Rect controllerRect; |
|---|
| 861 | n/a | long someFlags; |
|---|
| 862 | n/a | #ifndef MCPositionController |
|---|
| 863 | n/a | PyMac_PRECHECK(MCPositionController); |
|---|
| 864 | n/a | #endif |
|---|
| 865 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 866 | n/a | PyMac_GetRect, &movieRect, |
|---|
| 867 | n/a | PyMac_GetRect, &controllerRect, |
|---|
| 868 | n/a | &someFlags)) |
|---|
| 869 | n/a | return NULL; |
|---|
| 870 | n/a | _rv = MCPositionController(_self->ob_itself, |
|---|
| 871 | n/a | &movieRect, |
|---|
| 872 | n/a | &controllerRect, |
|---|
| 873 | n/a | someFlags); |
|---|
| 874 | n/a | _res = Py_BuildValue("l", |
|---|
| 875 | n/a | _rv); |
|---|
| 876 | n/a | return _res; |
|---|
| 877 | n/a | } |
|---|
| 878 | n/a | |
|---|
| 879 | n/a | static PyObject *MovieCtlObj_MCGetControllerInfo(MovieControllerObject *_self, PyObject *_args) |
|---|
| 880 | n/a | { |
|---|
| 881 | n/a | PyObject *_res = NULL; |
|---|
| 882 | n/a | ComponentResult _rv; |
|---|
| 883 | n/a | long someFlags; |
|---|
| 884 | n/a | #ifndef MCGetControllerInfo |
|---|
| 885 | n/a | PyMac_PRECHECK(MCGetControllerInfo); |
|---|
| 886 | n/a | #endif |
|---|
| 887 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 888 | n/a | return NULL; |
|---|
| 889 | n/a | _rv = MCGetControllerInfo(_self->ob_itself, |
|---|
| 890 | n/a | &someFlags); |
|---|
| 891 | n/a | _res = Py_BuildValue("ll", |
|---|
| 892 | n/a | _rv, |
|---|
| 893 | n/a | someFlags); |
|---|
| 894 | n/a | return _res; |
|---|
| 895 | n/a | } |
|---|
| 896 | n/a | |
|---|
| 897 | n/a | static PyObject *MovieCtlObj_MCSetClip(MovieControllerObject *_self, PyObject *_args) |
|---|
| 898 | n/a | { |
|---|
| 899 | n/a | PyObject *_res = NULL; |
|---|
| 900 | n/a | ComponentResult _rv; |
|---|
| 901 | n/a | RgnHandle theClip; |
|---|
| 902 | n/a | RgnHandle movieClip; |
|---|
| 903 | n/a | #ifndef MCSetClip |
|---|
| 904 | n/a | PyMac_PRECHECK(MCSetClip); |
|---|
| 905 | n/a | #endif |
|---|
| 906 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 907 | n/a | ResObj_Convert, &theClip, |
|---|
| 908 | n/a | ResObj_Convert, &movieClip)) |
|---|
| 909 | n/a | return NULL; |
|---|
| 910 | n/a | _rv = MCSetClip(_self->ob_itself, |
|---|
| 911 | n/a | theClip, |
|---|
| 912 | n/a | movieClip); |
|---|
| 913 | n/a | _res = Py_BuildValue("l", |
|---|
| 914 | n/a | _rv); |
|---|
| 915 | n/a | return _res; |
|---|
| 916 | n/a | } |
|---|
| 917 | n/a | |
|---|
| 918 | n/a | static PyObject *MovieCtlObj_MCGetClip(MovieControllerObject *_self, PyObject *_args) |
|---|
| 919 | n/a | { |
|---|
| 920 | n/a | PyObject *_res = NULL; |
|---|
| 921 | n/a | ComponentResult _rv; |
|---|
| 922 | n/a | RgnHandle theClip; |
|---|
| 923 | n/a | RgnHandle movieClip; |
|---|
| 924 | n/a | #ifndef MCGetClip |
|---|
| 925 | n/a | PyMac_PRECHECK(MCGetClip); |
|---|
| 926 | n/a | #endif |
|---|
| 927 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 928 | n/a | return NULL; |
|---|
| 929 | n/a | _rv = MCGetClip(_self->ob_itself, |
|---|
| 930 | n/a | &theClip, |
|---|
| 931 | n/a | &movieClip); |
|---|
| 932 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 933 | n/a | _rv, |
|---|
| 934 | n/a | ResObj_New, theClip, |
|---|
| 935 | n/a | ResObj_New, movieClip); |
|---|
| 936 | n/a | return _res; |
|---|
| 937 | n/a | } |
|---|
| 938 | n/a | |
|---|
| 939 | n/a | static PyObject *MovieCtlObj_MCDrawBadge(MovieControllerObject *_self, PyObject *_args) |
|---|
| 940 | n/a | { |
|---|
| 941 | n/a | PyObject *_res = NULL; |
|---|
| 942 | n/a | ComponentResult _rv; |
|---|
| 943 | n/a | RgnHandle movieRgn; |
|---|
| 944 | n/a | RgnHandle badgeRgn; |
|---|
| 945 | n/a | #ifndef MCDrawBadge |
|---|
| 946 | n/a | PyMac_PRECHECK(MCDrawBadge); |
|---|
| 947 | n/a | #endif |
|---|
| 948 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 949 | n/a | ResObj_Convert, &movieRgn)) |
|---|
| 950 | n/a | return NULL; |
|---|
| 951 | n/a | _rv = MCDrawBadge(_self->ob_itself, |
|---|
| 952 | n/a | movieRgn, |
|---|
| 953 | n/a | &badgeRgn); |
|---|
| 954 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 955 | n/a | _rv, |
|---|
| 956 | n/a | ResObj_New, badgeRgn); |
|---|
| 957 | n/a | return _res; |
|---|
| 958 | n/a | } |
|---|
| 959 | n/a | |
|---|
| 960 | n/a | static PyObject *MovieCtlObj_MCSetUpEditMenu(MovieControllerObject *_self, PyObject *_args) |
|---|
| 961 | n/a | { |
|---|
| 962 | n/a | PyObject *_res = NULL; |
|---|
| 963 | n/a | ComponentResult _rv; |
|---|
| 964 | n/a | long modifiers; |
|---|
| 965 | n/a | MenuHandle mh; |
|---|
| 966 | n/a | #ifndef MCSetUpEditMenu |
|---|
| 967 | n/a | PyMac_PRECHECK(MCSetUpEditMenu); |
|---|
| 968 | n/a | #endif |
|---|
| 969 | n/a | if (!PyArg_ParseTuple(_args, "lO&", |
|---|
| 970 | n/a | &modifiers, |
|---|
| 971 | n/a | MenuObj_Convert, &mh)) |
|---|
| 972 | n/a | return NULL; |
|---|
| 973 | n/a | _rv = MCSetUpEditMenu(_self->ob_itself, |
|---|
| 974 | n/a | modifiers, |
|---|
| 975 | n/a | mh); |
|---|
| 976 | n/a | _res = Py_BuildValue("l", |
|---|
| 977 | n/a | _rv); |
|---|
| 978 | n/a | return _res; |
|---|
| 979 | n/a | } |
|---|
| 980 | n/a | |
|---|
| 981 | n/a | static PyObject *MovieCtlObj_MCGetMenuString(MovieControllerObject *_self, PyObject *_args) |
|---|
| 982 | n/a | { |
|---|
| 983 | n/a | PyObject *_res = NULL; |
|---|
| 984 | n/a | ComponentResult _rv; |
|---|
| 985 | n/a | long modifiers; |
|---|
| 986 | n/a | short item; |
|---|
| 987 | n/a | Str255 aString; |
|---|
| 988 | n/a | #ifndef MCGetMenuString |
|---|
| 989 | n/a | PyMac_PRECHECK(MCGetMenuString); |
|---|
| 990 | n/a | #endif |
|---|
| 991 | n/a | if (!PyArg_ParseTuple(_args, "lhO&", |
|---|
| 992 | n/a | &modifiers, |
|---|
| 993 | n/a | &item, |
|---|
| 994 | n/a | PyMac_GetStr255, aString)) |
|---|
| 995 | n/a | return NULL; |
|---|
| 996 | n/a | _rv = MCGetMenuString(_self->ob_itself, |
|---|
| 997 | n/a | modifiers, |
|---|
| 998 | n/a | item, |
|---|
| 999 | n/a | aString); |
|---|
| 1000 | n/a | _res = Py_BuildValue("l", |
|---|
| 1001 | n/a | _rv); |
|---|
| 1002 | n/a | return _res; |
|---|
| 1003 | n/a | } |
|---|
| 1004 | n/a | |
|---|
| 1005 | n/a | static PyObject *MovieCtlObj_MCPtInController(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1006 | n/a | { |
|---|
| 1007 | n/a | PyObject *_res = NULL; |
|---|
| 1008 | n/a | ComponentResult _rv; |
|---|
| 1009 | n/a | Point thePt; |
|---|
| 1010 | n/a | Boolean inController; |
|---|
| 1011 | n/a | #ifndef MCPtInController |
|---|
| 1012 | n/a | PyMac_PRECHECK(MCPtInController); |
|---|
| 1013 | n/a | #endif |
|---|
| 1014 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1015 | n/a | PyMac_GetPoint, &thePt)) |
|---|
| 1016 | n/a | return NULL; |
|---|
| 1017 | n/a | _rv = MCPtInController(_self->ob_itself, |
|---|
| 1018 | n/a | thePt, |
|---|
| 1019 | n/a | &inController); |
|---|
| 1020 | n/a | _res = Py_BuildValue("lb", |
|---|
| 1021 | n/a | _rv, |
|---|
| 1022 | n/a | inController); |
|---|
| 1023 | n/a | return _res; |
|---|
| 1024 | n/a | } |
|---|
| 1025 | n/a | |
|---|
| 1026 | n/a | static PyObject *MovieCtlObj_MCInvalidate(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1027 | n/a | { |
|---|
| 1028 | n/a | PyObject *_res = NULL; |
|---|
| 1029 | n/a | ComponentResult _rv; |
|---|
| 1030 | n/a | WindowPtr w; |
|---|
| 1031 | n/a | RgnHandle invalidRgn; |
|---|
| 1032 | n/a | #ifndef MCInvalidate |
|---|
| 1033 | n/a | PyMac_PRECHECK(MCInvalidate); |
|---|
| 1034 | n/a | #endif |
|---|
| 1035 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 1036 | n/a | WinObj_Convert, &w, |
|---|
| 1037 | n/a | ResObj_Convert, &invalidRgn)) |
|---|
| 1038 | n/a | return NULL; |
|---|
| 1039 | n/a | _rv = MCInvalidate(_self->ob_itself, |
|---|
| 1040 | n/a | w, |
|---|
| 1041 | n/a | invalidRgn); |
|---|
| 1042 | n/a | _res = Py_BuildValue("l", |
|---|
| 1043 | n/a | _rv); |
|---|
| 1044 | n/a | return _res; |
|---|
| 1045 | n/a | } |
|---|
| 1046 | n/a | |
|---|
| 1047 | n/a | static PyObject *MovieCtlObj_MCAdjustCursor(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1048 | n/a | { |
|---|
| 1049 | n/a | PyObject *_res = NULL; |
|---|
| 1050 | n/a | ComponentResult _rv; |
|---|
| 1051 | n/a | WindowPtr w; |
|---|
| 1052 | n/a | Point where; |
|---|
| 1053 | n/a | long modifiers; |
|---|
| 1054 | n/a | #ifndef MCAdjustCursor |
|---|
| 1055 | n/a | PyMac_PRECHECK(MCAdjustCursor); |
|---|
| 1056 | n/a | #endif |
|---|
| 1057 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 1058 | n/a | WinObj_Convert, &w, |
|---|
| 1059 | n/a | PyMac_GetPoint, &where, |
|---|
| 1060 | n/a | &modifiers)) |
|---|
| 1061 | n/a | return NULL; |
|---|
| 1062 | n/a | _rv = MCAdjustCursor(_self->ob_itself, |
|---|
| 1063 | n/a | w, |
|---|
| 1064 | n/a | where, |
|---|
| 1065 | n/a | modifiers); |
|---|
| 1066 | n/a | _res = Py_BuildValue("l", |
|---|
| 1067 | n/a | _rv); |
|---|
| 1068 | n/a | return _res; |
|---|
| 1069 | n/a | } |
|---|
| 1070 | n/a | |
|---|
| 1071 | n/a | static PyObject *MovieCtlObj_MCGetInterfaceElement(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1072 | n/a | { |
|---|
| 1073 | n/a | PyObject *_res = NULL; |
|---|
| 1074 | n/a | ComponentResult _rv; |
|---|
| 1075 | n/a | MCInterfaceElement whichElement; |
|---|
| 1076 | n/a | void * element; |
|---|
| 1077 | n/a | #ifndef MCGetInterfaceElement |
|---|
| 1078 | n/a | PyMac_PRECHECK(MCGetInterfaceElement); |
|---|
| 1079 | n/a | #endif |
|---|
| 1080 | n/a | if (!PyArg_ParseTuple(_args, "ls", |
|---|
| 1081 | n/a | &whichElement, |
|---|
| 1082 | n/a | &element)) |
|---|
| 1083 | n/a | return NULL; |
|---|
| 1084 | n/a | _rv = MCGetInterfaceElement(_self->ob_itself, |
|---|
| 1085 | n/a | whichElement, |
|---|
| 1086 | n/a | element); |
|---|
| 1087 | n/a | _res = Py_BuildValue("l", |
|---|
| 1088 | n/a | _rv); |
|---|
| 1089 | n/a | return _res; |
|---|
| 1090 | n/a | } |
|---|
| 1091 | n/a | |
|---|
| 1092 | n/a | static PyObject *MovieCtlObj_MCAddMovieSegment(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1093 | n/a | { |
|---|
| 1094 | n/a | PyObject *_res = NULL; |
|---|
| 1095 | n/a | ComponentResult _rv; |
|---|
| 1096 | n/a | Movie srcMovie; |
|---|
| 1097 | n/a | Boolean scaled; |
|---|
| 1098 | n/a | #ifndef MCAddMovieSegment |
|---|
| 1099 | n/a | PyMac_PRECHECK(MCAddMovieSegment); |
|---|
| 1100 | n/a | #endif |
|---|
| 1101 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 1102 | n/a | MovieObj_Convert, &srcMovie, |
|---|
| 1103 | n/a | &scaled)) |
|---|
| 1104 | n/a | return NULL; |
|---|
| 1105 | n/a | _rv = MCAddMovieSegment(_self->ob_itself, |
|---|
| 1106 | n/a | srcMovie, |
|---|
| 1107 | n/a | scaled); |
|---|
| 1108 | n/a | _res = Py_BuildValue("l", |
|---|
| 1109 | n/a | _rv); |
|---|
| 1110 | n/a | return _res; |
|---|
| 1111 | n/a | } |
|---|
| 1112 | n/a | |
|---|
| 1113 | n/a | static PyObject *MovieCtlObj_MCTrimMovieSegment(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1114 | n/a | { |
|---|
| 1115 | n/a | PyObject *_res = NULL; |
|---|
| 1116 | n/a | ComponentResult _rv; |
|---|
| 1117 | n/a | #ifndef MCTrimMovieSegment |
|---|
| 1118 | n/a | PyMac_PRECHECK(MCTrimMovieSegment); |
|---|
| 1119 | n/a | #endif |
|---|
| 1120 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1121 | n/a | return NULL; |
|---|
| 1122 | n/a | _rv = MCTrimMovieSegment(_self->ob_itself); |
|---|
| 1123 | n/a | _res = Py_BuildValue("l", |
|---|
| 1124 | n/a | _rv); |
|---|
| 1125 | n/a | return _res; |
|---|
| 1126 | n/a | } |
|---|
| 1127 | n/a | |
|---|
| 1128 | n/a | static PyObject *MovieCtlObj_MCSetIdleManager(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1129 | n/a | { |
|---|
| 1130 | n/a | PyObject *_res = NULL; |
|---|
| 1131 | n/a | ComponentResult _rv; |
|---|
| 1132 | n/a | IdleManager im; |
|---|
| 1133 | n/a | #ifndef MCSetIdleManager |
|---|
| 1134 | n/a | PyMac_PRECHECK(MCSetIdleManager); |
|---|
| 1135 | n/a | #endif |
|---|
| 1136 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1137 | n/a | IdleManagerObj_Convert, &im)) |
|---|
| 1138 | n/a | return NULL; |
|---|
| 1139 | n/a | _rv = MCSetIdleManager(_self->ob_itself, |
|---|
| 1140 | n/a | im); |
|---|
| 1141 | n/a | _res = Py_BuildValue("l", |
|---|
| 1142 | n/a | _rv); |
|---|
| 1143 | n/a | return _res; |
|---|
| 1144 | n/a | } |
|---|
| 1145 | n/a | |
|---|
| 1146 | n/a | static PyObject *MovieCtlObj_MCSetControllerCapabilities(MovieControllerObject *_self, PyObject *_args) |
|---|
| 1147 | n/a | { |
|---|
| 1148 | n/a | PyObject *_res = NULL; |
|---|
| 1149 | n/a | ComponentResult _rv; |
|---|
| 1150 | n/a | long flags; |
|---|
| 1151 | n/a | long flagsMask; |
|---|
| 1152 | n/a | #ifndef MCSetControllerCapabilities |
|---|
| 1153 | n/a | PyMac_PRECHECK(MCSetControllerCapabilities); |
|---|
| 1154 | n/a | #endif |
|---|
| 1155 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 1156 | n/a | &flags, |
|---|
| 1157 | n/a | &flagsMask)) |
|---|
| 1158 | n/a | return NULL; |
|---|
| 1159 | n/a | _rv = MCSetControllerCapabilities(_self->ob_itself, |
|---|
| 1160 | n/a | flags, |
|---|
| 1161 | n/a | flagsMask); |
|---|
| 1162 | n/a | _res = Py_BuildValue("l", |
|---|
| 1163 | n/a | _rv); |
|---|
| 1164 | n/a | return _res; |
|---|
| 1165 | n/a | } |
|---|
| 1166 | n/a | |
|---|
| 1167 | n/a | static PyMethodDef MovieCtlObj_methods[] = { |
|---|
| 1168 | n/a | {"MCSetMovie", (PyCFunction)MovieCtlObj_MCSetMovie, 1, |
|---|
| 1169 | n/a | PyDoc_STR("(Movie theMovie, WindowPtr movieWindow, Point where) -> (ComponentResult _rv)")}, |
|---|
| 1170 | n/a | {"MCGetIndMovie", (PyCFunction)MovieCtlObj_MCGetIndMovie, 1, |
|---|
| 1171 | n/a | PyDoc_STR("(short index) -> (Movie _rv)")}, |
|---|
| 1172 | n/a | {"MCRemoveAllMovies", (PyCFunction)MovieCtlObj_MCRemoveAllMovies, 1, |
|---|
| 1173 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1174 | n/a | {"MCRemoveAMovie", (PyCFunction)MovieCtlObj_MCRemoveAMovie, 1, |
|---|
| 1175 | n/a | PyDoc_STR("(Movie m) -> (ComponentResult _rv)")}, |
|---|
| 1176 | n/a | {"MCRemoveMovie", (PyCFunction)MovieCtlObj_MCRemoveMovie, 1, |
|---|
| 1177 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1178 | n/a | {"MCIsPlayerEvent", (PyCFunction)MovieCtlObj_MCIsPlayerEvent, 1, |
|---|
| 1179 | n/a | PyDoc_STR("(EventRecord e) -> (ComponentResult _rv)")}, |
|---|
| 1180 | n/a | {"MCDoAction", (PyCFunction)MovieCtlObj_MCDoAction, 1, |
|---|
| 1181 | n/a | PyDoc_STR("(short action, void * params) -> (ComponentResult _rv)")}, |
|---|
| 1182 | n/a | {"MCSetControllerAttached", (PyCFunction)MovieCtlObj_MCSetControllerAttached, 1, |
|---|
| 1183 | n/a | PyDoc_STR("(Boolean attach) -> (ComponentResult _rv)")}, |
|---|
| 1184 | n/a | {"MCIsControllerAttached", (PyCFunction)MovieCtlObj_MCIsControllerAttached, 1, |
|---|
| 1185 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1186 | n/a | {"MCSetControllerPort", (PyCFunction)MovieCtlObj_MCSetControllerPort, 1, |
|---|
| 1187 | n/a | PyDoc_STR("(CGrafPtr gp) -> (ComponentResult _rv)")}, |
|---|
| 1188 | n/a | {"MCGetControllerPort", (PyCFunction)MovieCtlObj_MCGetControllerPort, 1, |
|---|
| 1189 | n/a | PyDoc_STR("() -> (CGrafPtr _rv)")}, |
|---|
| 1190 | n/a | {"MCSetVisible", (PyCFunction)MovieCtlObj_MCSetVisible, 1, |
|---|
| 1191 | n/a | PyDoc_STR("(Boolean visible) -> (ComponentResult _rv)")}, |
|---|
| 1192 | n/a | {"MCGetVisible", (PyCFunction)MovieCtlObj_MCGetVisible, 1, |
|---|
| 1193 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1194 | n/a | {"MCGetControllerBoundsRect", (PyCFunction)MovieCtlObj_MCGetControllerBoundsRect, 1, |
|---|
| 1195 | n/a | PyDoc_STR("() -> (ComponentResult _rv, Rect bounds)")}, |
|---|
| 1196 | n/a | {"MCSetControllerBoundsRect", (PyCFunction)MovieCtlObj_MCSetControllerBoundsRect, 1, |
|---|
| 1197 | n/a | PyDoc_STR("(Rect bounds) -> (ComponentResult _rv)")}, |
|---|
| 1198 | n/a | {"MCGetControllerBoundsRgn", (PyCFunction)MovieCtlObj_MCGetControllerBoundsRgn, 1, |
|---|
| 1199 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 1200 | n/a | {"MCGetWindowRgn", (PyCFunction)MovieCtlObj_MCGetWindowRgn, 1, |
|---|
| 1201 | n/a | PyDoc_STR("(WindowPtr w) -> (RgnHandle _rv)")}, |
|---|
| 1202 | n/a | {"MCMovieChanged", (PyCFunction)MovieCtlObj_MCMovieChanged, 1, |
|---|
| 1203 | n/a | PyDoc_STR("(Movie m) -> (ComponentResult _rv)")}, |
|---|
| 1204 | n/a | {"MCSetDuration", (PyCFunction)MovieCtlObj_MCSetDuration, 1, |
|---|
| 1205 | n/a | PyDoc_STR("(TimeValue duration) -> (ComponentResult _rv)")}, |
|---|
| 1206 | n/a | {"MCGetCurrentTime", (PyCFunction)MovieCtlObj_MCGetCurrentTime, 1, |
|---|
| 1207 | n/a | PyDoc_STR("() -> (TimeValue _rv, TimeScale scale)")}, |
|---|
| 1208 | n/a | {"MCNewAttachedController", (PyCFunction)MovieCtlObj_MCNewAttachedController, 1, |
|---|
| 1209 | n/a | PyDoc_STR("(Movie theMovie, WindowPtr w, Point where) -> (ComponentResult _rv)")}, |
|---|
| 1210 | n/a | {"MCDraw", (PyCFunction)MovieCtlObj_MCDraw, 1, |
|---|
| 1211 | n/a | PyDoc_STR("(WindowPtr w) -> (ComponentResult _rv)")}, |
|---|
| 1212 | n/a | {"MCActivate", (PyCFunction)MovieCtlObj_MCActivate, 1, |
|---|
| 1213 | n/a | PyDoc_STR("(WindowPtr w, Boolean activate) -> (ComponentResult _rv)")}, |
|---|
| 1214 | n/a | {"MCIdle", (PyCFunction)MovieCtlObj_MCIdle, 1, |
|---|
| 1215 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1216 | n/a | {"MCKey", (PyCFunction)MovieCtlObj_MCKey, 1, |
|---|
| 1217 | n/a | PyDoc_STR("(SInt8 key, long modifiers) -> (ComponentResult _rv)")}, |
|---|
| 1218 | n/a | {"MCClick", (PyCFunction)MovieCtlObj_MCClick, 1, |
|---|
| 1219 | n/a | PyDoc_STR("(WindowPtr w, Point where, long when, long modifiers) -> (ComponentResult _rv)")}, |
|---|
| 1220 | n/a | {"MCEnableEditing", (PyCFunction)MovieCtlObj_MCEnableEditing, 1, |
|---|
| 1221 | n/a | PyDoc_STR("(Boolean enabled) -> (ComponentResult _rv)")}, |
|---|
| 1222 | n/a | {"MCIsEditingEnabled", (PyCFunction)MovieCtlObj_MCIsEditingEnabled, 1, |
|---|
| 1223 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 1224 | n/a | {"MCCopy", (PyCFunction)MovieCtlObj_MCCopy, 1, |
|---|
| 1225 | n/a | PyDoc_STR("() -> (Movie _rv)")}, |
|---|
| 1226 | n/a | {"MCCut", (PyCFunction)MovieCtlObj_MCCut, 1, |
|---|
| 1227 | n/a | PyDoc_STR("() -> (Movie _rv)")}, |
|---|
| 1228 | n/a | {"MCPaste", (PyCFunction)MovieCtlObj_MCPaste, 1, |
|---|
| 1229 | n/a | PyDoc_STR("(Movie srcMovie) -> (ComponentResult _rv)")}, |
|---|
| 1230 | n/a | {"MCClear", (PyCFunction)MovieCtlObj_MCClear, 1, |
|---|
| 1231 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1232 | n/a | {"MCUndo", (PyCFunction)MovieCtlObj_MCUndo, 1, |
|---|
| 1233 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1234 | n/a | {"MCPositionController", (PyCFunction)MovieCtlObj_MCPositionController, 1, |
|---|
| 1235 | n/a | PyDoc_STR("(Rect movieRect, Rect controllerRect, long someFlags) -> (ComponentResult _rv)")}, |
|---|
| 1236 | n/a | {"MCGetControllerInfo", (PyCFunction)MovieCtlObj_MCGetControllerInfo, 1, |
|---|
| 1237 | n/a | PyDoc_STR("() -> (ComponentResult _rv, long someFlags)")}, |
|---|
| 1238 | n/a | {"MCSetClip", (PyCFunction)MovieCtlObj_MCSetClip, 1, |
|---|
| 1239 | n/a | PyDoc_STR("(RgnHandle theClip, RgnHandle movieClip) -> (ComponentResult _rv)")}, |
|---|
| 1240 | n/a | {"MCGetClip", (PyCFunction)MovieCtlObj_MCGetClip, 1, |
|---|
| 1241 | n/a | PyDoc_STR("() -> (ComponentResult _rv, RgnHandle theClip, RgnHandle movieClip)")}, |
|---|
| 1242 | n/a | {"MCDrawBadge", (PyCFunction)MovieCtlObj_MCDrawBadge, 1, |
|---|
| 1243 | n/a | PyDoc_STR("(RgnHandle movieRgn) -> (ComponentResult _rv, RgnHandle badgeRgn)")}, |
|---|
| 1244 | n/a | {"MCSetUpEditMenu", (PyCFunction)MovieCtlObj_MCSetUpEditMenu, 1, |
|---|
| 1245 | n/a | PyDoc_STR("(long modifiers, MenuHandle mh) -> (ComponentResult _rv)")}, |
|---|
| 1246 | n/a | {"MCGetMenuString", (PyCFunction)MovieCtlObj_MCGetMenuString, 1, |
|---|
| 1247 | n/a | PyDoc_STR("(long modifiers, short item, Str255 aString) -> (ComponentResult _rv)")}, |
|---|
| 1248 | n/a | {"MCPtInController", (PyCFunction)MovieCtlObj_MCPtInController, 1, |
|---|
| 1249 | n/a | PyDoc_STR("(Point thePt) -> (ComponentResult _rv, Boolean inController)")}, |
|---|
| 1250 | n/a | {"MCInvalidate", (PyCFunction)MovieCtlObj_MCInvalidate, 1, |
|---|
| 1251 | n/a | PyDoc_STR("(WindowPtr w, RgnHandle invalidRgn) -> (ComponentResult _rv)")}, |
|---|
| 1252 | n/a | {"MCAdjustCursor", (PyCFunction)MovieCtlObj_MCAdjustCursor, 1, |
|---|
| 1253 | n/a | PyDoc_STR("(WindowPtr w, Point where, long modifiers) -> (ComponentResult _rv)")}, |
|---|
| 1254 | n/a | {"MCGetInterfaceElement", (PyCFunction)MovieCtlObj_MCGetInterfaceElement, 1, |
|---|
| 1255 | n/a | PyDoc_STR("(MCInterfaceElement whichElement, void * element) -> (ComponentResult _rv)")}, |
|---|
| 1256 | n/a | {"MCAddMovieSegment", (PyCFunction)MovieCtlObj_MCAddMovieSegment, 1, |
|---|
| 1257 | n/a | PyDoc_STR("(Movie srcMovie, Boolean scaled) -> (ComponentResult _rv)")}, |
|---|
| 1258 | n/a | {"MCTrimMovieSegment", (PyCFunction)MovieCtlObj_MCTrimMovieSegment, 1, |
|---|
| 1259 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 1260 | n/a | {"MCSetIdleManager", (PyCFunction)MovieCtlObj_MCSetIdleManager, 1, |
|---|
| 1261 | n/a | PyDoc_STR("(IdleManager im) -> (ComponentResult _rv)")}, |
|---|
| 1262 | n/a | {"MCSetControllerCapabilities", (PyCFunction)MovieCtlObj_MCSetControllerCapabilities, 1, |
|---|
| 1263 | n/a | PyDoc_STR("(long flags, long flagsMask) -> (ComponentResult _rv)")}, |
|---|
| 1264 | n/a | {NULL, NULL, 0} |
|---|
| 1265 | n/a | }; |
|---|
| 1266 | n/a | |
|---|
| 1267 | n/a | #define MovieCtlObj_getsetlist NULL |
|---|
| 1268 | n/a | |
|---|
| 1269 | n/a | |
|---|
| 1270 | n/a | #define MovieCtlObj_compare NULL |
|---|
| 1271 | n/a | |
|---|
| 1272 | n/a | #define MovieCtlObj_repr NULL |
|---|
| 1273 | n/a | |
|---|
| 1274 | n/a | #define MovieCtlObj_hash NULL |
|---|
| 1275 | n/a | #define MovieCtlObj_tp_init 0 |
|---|
| 1276 | n/a | |
|---|
| 1277 | n/a | #define MovieCtlObj_tp_alloc PyType_GenericAlloc |
|---|
| 1278 | n/a | |
|---|
| 1279 | n/a | static PyObject *MovieCtlObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 1280 | n/a | { |
|---|
| 1281 | n/a | PyObject *_self; |
|---|
| 1282 | n/a | MovieController itself; |
|---|
| 1283 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 1284 | n/a | |
|---|
| 1285 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, MovieCtlObj_Convert, &itself)) return NULL; |
|---|
| 1286 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 1287 | n/a | ((MovieControllerObject *)_self)->ob_itself = itself; |
|---|
| 1288 | n/a | return _self; |
|---|
| 1289 | n/a | } |
|---|
| 1290 | n/a | |
|---|
| 1291 | n/a | #define MovieCtlObj_tp_free PyObject_Del |
|---|
| 1292 | n/a | |
|---|
| 1293 | n/a | |
|---|
| 1294 | n/a | PyTypeObject MovieController_Type = { |
|---|
| 1295 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 1296 | n/a | 0, /*ob_size*/ |
|---|
| 1297 | n/a | "_Qt.MovieController", /*tp_name*/ |
|---|
| 1298 | n/a | sizeof(MovieControllerObject), /*tp_basicsize*/ |
|---|
| 1299 | n/a | 0, /*tp_itemsize*/ |
|---|
| 1300 | n/a | /* methods */ |
|---|
| 1301 | n/a | (destructor) MovieCtlObj_dealloc, /*tp_dealloc*/ |
|---|
| 1302 | n/a | 0, /*tp_print*/ |
|---|
| 1303 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 1304 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 1305 | n/a | (cmpfunc) MovieCtlObj_compare, /*tp_compare*/ |
|---|
| 1306 | n/a | (reprfunc) MovieCtlObj_repr, /*tp_repr*/ |
|---|
| 1307 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 1308 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 1309 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 1310 | n/a | (hashfunc) MovieCtlObj_hash, /*tp_hash*/ |
|---|
| 1311 | n/a | 0, /*tp_call*/ |
|---|
| 1312 | n/a | 0, /*tp_str*/ |
|---|
| 1313 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 1314 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 1315 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 1316 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 1317 | n/a | 0, /*tp_doc*/ |
|---|
| 1318 | n/a | 0, /*tp_traverse*/ |
|---|
| 1319 | n/a | 0, /*tp_clear*/ |
|---|
| 1320 | n/a | 0, /*tp_richcompare*/ |
|---|
| 1321 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 1322 | n/a | 0, /*tp_iter*/ |
|---|
| 1323 | n/a | 0, /*tp_iternext*/ |
|---|
| 1324 | n/a | MovieCtlObj_methods, /* tp_methods */ |
|---|
| 1325 | n/a | 0, /*tp_members*/ |
|---|
| 1326 | n/a | MovieCtlObj_getsetlist, /*tp_getset*/ |
|---|
| 1327 | n/a | 0, /*tp_base*/ |
|---|
| 1328 | n/a | 0, /*tp_dict*/ |
|---|
| 1329 | n/a | 0, /*tp_descr_get*/ |
|---|
| 1330 | n/a | 0, /*tp_descr_set*/ |
|---|
| 1331 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 1332 | n/a | MovieCtlObj_tp_init, /* tp_init */ |
|---|
| 1333 | n/a | MovieCtlObj_tp_alloc, /* tp_alloc */ |
|---|
| 1334 | n/a | MovieCtlObj_tp_new, /* tp_new */ |
|---|
| 1335 | n/a | MovieCtlObj_tp_free, /* tp_free */ |
|---|
| 1336 | n/a | }; |
|---|
| 1337 | n/a | |
|---|
| 1338 | n/a | /* ---------------- End object type MovieController ----------------- */ |
|---|
| 1339 | n/a | |
|---|
| 1340 | n/a | |
|---|
| 1341 | n/a | /* ---------------------- Object type TimeBase ---------------------- */ |
|---|
| 1342 | n/a | |
|---|
| 1343 | n/a | PyTypeObject TimeBase_Type; |
|---|
| 1344 | n/a | |
|---|
| 1345 | n/a | #define TimeBaseObj_Check(x) ((x)->ob_type == &TimeBase_Type || PyObject_TypeCheck((x), &TimeBase_Type)) |
|---|
| 1346 | n/a | |
|---|
| 1347 | n/a | typedef struct TimeBaseObject { |
|---|
| 1348 | n/a | PyObject_HEAD |
|---|
| 1349 | n/a | TimeBase ob_itself; |
|---|
| 1350 | n/a | } TimeBaseObject; |
|---|
| 1351 | n/a | |
|---|
| 1352 | n/a | PyObject *TimeBaseObj_New(TimeBase itself) |
|---|
| 1353 | n/a | { |
|---|
| 1354 | n/a | TimeBaseObject *it; |
|---|
| 1355 | n/a | if (itself == NULL) { |
|---|
| 1356 | n/a | PyErr_SetString(Qt_Error,"Cannot create TimeBase from NULL pointer"); |
|---|
| 1357 | n/a | return NULL; |
|---|
| 1358 | n/a | } |
|---|
| 1359 | n/a | it = PyObject_NEW(TimeBaseObject, &TimeBase_Type); |
|---|
| 1360 | n/a | if (it == NULL) return NULL; |
|---|
| 1361 | n/a | it->ob_itself = itself; |
|---|
| 1362 | n/a | return (PyObject *)it; |
|---|
| 1363 | n/a | } |
|---|
| 1364 | n/a | |
|---|
| 1365 | n/a | int TimeBaseObj_Convert(PyObject *v, TimeBase *p_itself) |
|---|
| 1366 | n/a | { |
|---|
| 1367 | n/a | if (v == Py_None) |
|---|
| 1368 | n/a | { |
|---|
| 1369 | n/a | *p_itself = NULL; |
|---|
| 1370 | n/a | return 1; |
|---|
| 1371 | n/a | } |
|---|
| 1372 | n/a | if (!TimeBaseObj_Check(v)) |
|---|
| 1373 | n/a | { |
|---|
| 1374 | n/a | PyErr_SetString(PyExc_TypeError, "TimeBase required"); |
|---|
| 1375 | n/a | return 0; |
|---|
| 1376 | n/a | } |
|---|
| 1377 | n/a | *p_itself = ((TimeBaseObject *)v)->ob_itself; |
|---|
| 1378 | n/a | return 1; |
|---|
| 1379 | n/a | } |
|---|
| 1380 | n/a | |
|---|
| 1381 | n/a | static void TimeBaseObj_dealloc(TimeBaseObject *self) |
|---|
| 1382 | n/a | { |
|---|
| 1383 | n/a | /* Cleanup of self->ob_itself goes here */ |
|---|
| 1384 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 1385 | n/a | } |
|---|
| 1386 | n/a | |
|---|
| 1387 | n/a | static PyObject *TimeBaseObj_DisposeTimeBase(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1388 | n/a | { |
|---|
| 1389 | n/a | PyObject *_res = NULL; |
|---|
| 1390 | n/a | #ifndef DisposeTimeBase |
|---|
| 1391 | n/a | PyMac_PRECHECK(DisposeTimeBase); |
|---|
| 1392 | n/a | #endif |
|---|
| 1393 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1394 | n/a | return NULL; |
|---|
| 1395 | n/a | DisposeTimeBase(_self->ob_itself); |
|---|
| 1396 | n/a | Py_INCREF(Py_None); |
|---|
| 1397 | n/a | _res = Py_None; |
|---|
| 1398 | n/a | return _res; |
|---|
| 1399 | n/a | } |
|---|
| 1400 | n/a | |
|---|
| 1401 | n/a | static PyObject *TimeBaseObj_GetTimeBaseTime(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1402 | n/a | { |
|---|
| 1403 | n/a | PyObject *_res = NULL; |
|---|
| 1404 | n/a | TimeValue _rv; |
|---|
| 1405 | n/a | TimeScale s; |
|---|
| 1406 | n/a | TimeRecord tr; |
|---|
| 1407 | n/a | #ifndef GetTimeBaseTime |
|---|
| 1408 | n/a | PyMac_PRECHECK(GetTimeBaseTime); |
|---|
| 1409 | n/a | #endif |
|---|
| 1410 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 1411 | n/a | &s)) |
|---|
| 1412 | n/a | return NULL; |
|---|
| 1413 | n/a | _rv = GetTimeBaseTime(_self->ob_itself, |
|---|
| 1414 | n/a | s, |
|---|
| 1415 | n/a | &tr); |
|---|
| 1416 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 1417 | n/a | _rv, |
|---|
| 1418 | n/a | QtTimeRecord_New, &tr); |
|---|
| 1419 | n/a | return _res; |
|---|
| 1420 | n/a | } |
|---|
| 1421 | n/a | |
|---|
| 1422 | n/a | static PyObject *TimeBaseObj_SetTimeBaseTime(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1423 | n/a | { |
|---|
| 1424 | n/a | PyObject *_res = NULL; |
|---|
| 1425 | n/a | TimeRecord tr; |
|---|
| 1426 | n/a | #ifndef SetTimeBaseTime |
|---|
| 1427 | n/a | PyMac_PRECHECK(SetTimeBaseTime); |
|---|
| 1428 | n/a | #endif |
|---|
| 1429 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1430 | n/a | QtTimeRecord_Convert, &tr)) |
|---|
| 1431 | n/a | return NULL; |
|---|
| 1432 | n/a | SetTimeBaseTime(_self->ob_itself, |
|---|
| 1433 | n/a | &tr); |
|---|
| 1434 | n/a | Py_INCREF(Py_None); |
|---|
| 1435 | n/a | _res = Py_None; |
|---|
| 1436 | n/a | return _res; |
|---|
| 1437 | n/a | } |
|---|
| 1438 | n/a | |
|---|
| 1439 | n/a | static PyObject *TimeBaseObj_SetTimeBaseValue(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1440 | n/a | { |
|---|
| 1441 | n/a | PyObject *_res = NULL; |
|---|
| 1442 | n/a | TimeValue t; |
|---|
| 1443 | n/a | TimeScale s; |
|---|
| 1444 | n/a | #ifndef SetTimeBaseValue |
|---|
| 1445 | n/a | PyMac_PRECHECK(SetTimeBaseValue); |
|---|
| 1446 | n/a | #endif |
|---|
| 1447 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 1448 | n/a | &t, |
|---|
| 1449 | n/a | &s)) |
|---|
| 1450 | n/a | return NULL; |
|---|
| 1451 | n/a | SetTimeBaseValue(_self->ob_itself, |
|---|
| 1452 | n/a | t, |
|---|
| 1453 | n/a | s); |
|---|
| 1454 | n/a | Py_INCREF(Py_None); |
|---|
| 1455 | n/a | _res = Py_None; |
|---|
| 1456 | n/a | return _res; |
|---|
| 1457 | n/a | } |
|---|
| 1458 | n/a | |
|---|
| 1459 | n/a | static PyObject *TimeBaseObj_GetTimeBaseRate(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1460 | n/a | { |
|---|
| 1461 | n/a | PyObject *_res = NULL; |
|---|
| 1462 | n/a | Fixed _rv; |
|---|
| 1463 | n/a | #ifndef GetTimeBaseRate |
|---|
| 1464 | n/a | PyMac_PRECHECK(GetTimeBaseRate); |
|---|
| 1465 | n/a | #endif |
|---|
| 1466 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1467 | n/a | return NULL; |
|---|
| 1468 | n/a | _rv = GetTimeBaseRate(_self->ob_itself); |
|---|
| 1469 | n/a | _res = Py_BuildValue("O&", |
|---|
| 1470 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 1471 | n/a | return _res; |
|---|
| 1472 | n/a | } |
|---|
| 1473 | n/a | |
|---|
| 1474 | n/a | static PyObject *TimeBaseObj_SetTimeBaseRate(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1475 | n/a | { |
|---|
| 1476 | n/a | PyObject *_res = NULL; |
|---|
| 1477 | n/a | Fixed r; |
|---|
| 1478 | n/a | #ifndef SetTimeBaseRate |
|---|
| 1479 | n/a | PyMac_PRECHECK(SetTimeBaseRate); |
|---|
| 1480 | n/a | #endif |
|---|
| 1481 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1482 | n/a | PyMac_GetFixed, &r)) |
|---|
| 1483 | n/a | return NULL; |
|---|
| 1484 | n/a | SetTimeBaseRate(_self->ob_itself, |
|---|
| 1485 | n/a | r); |
|---|
| 1486 | n/a | Py_INCREF(Py_None); |
|---|
| 1487 | n/a | _res = Py_None; |
|---|
| 1488 | n/a | return _res; |
|---|
| 1489 | n/a | } |
|---|
| 1490 | n/a | |
|---|
| 1491 | n/a | static PyObject *TimeBaseObj_GetTimeBaseStartTime(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1492 | n/a | { |
|---|
| 1493 | n/a | PyObject *_res = NULL; |
|---|
| 1494 | n/a | TimeValue _rv; |
|---|
| 1495 | n/a | TimeScale s; |
|---|
| 1496 | n/a | TimeRecord tr; |
|---|
| 1497 | n/a | #ifndef GetTimeBaseStartTime |
|---|
| 1498 | n/a | PyMac_PRECHECK(GetTimeBaseStartTime); |
|---|
| 1499 | n/a | #endif |
|---|
| 1500 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 1501 | n/a | &s)) |
|---|
| 1502 | n/a | return NULL; |
|---|
| 1503 | n/a | _rv = GetTimeBaseStartTime(_self->ob_itself, |
|---|
| 1504 | n/a | s, |
|---|
| 1505 | n/a | &tr); |
|---|
| 1506 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 1507 | n/a | _rv, |
|---|
| 1508 | n/a | QtTimeRecord_New, &tr); |
|---|
| 1509 | n/a | return _res; |
|---|
| 1510 | n/a | } |
|---|
| 1511 | n/a | |
|---|
| 1512 | n/a | static PyObject *TimeBaseObj_SetTimeBaseStartTime(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1513 | n/a | { |
|---|
| 1514 | n/a | PyObject *_res = NULL; |
|---|
| 1515 | n/a | TimeRecord tr; |
|---|
| 1516 | n/a | #ifndef SetTimeBaseStartTime |
|---|
| 1517 | n/a | PyMac_PRECHECK(SetTimeBaseStartTime); |
|---|
| 1518 | n/a | #endif |
|---|
| 1519 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1520 | n/a | QtTimeRecord_Convert, &tr)) |
|---|
| 1521 | n/a | return NULL; |
|---|
| 1522 | n/a | SetTimeBaseStartTime(_self->ob_itself, |
|---|
| 1523 | n/a | &tr); |
|---|
| 1524 | n/a | Py_INCREF(Py_None); |
|---|
| 1525 | n/a | _res = Py_None; |
|---|
| 1526 | n/a | return _res; |
|---|
| 1527 | n/a | } |
|---|
| 1528 | n/a | |
|---|
| 1529 | n/a | static PyObject *TimeBaseObj_GetTimeBaseStopTime(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1530 | n/a | { |
|---|
| 1531 | n/a | PyObject *_res = NULL; |
|---|
| 1532 | n/a | TimeValue _rv; |
|---|
| 1533 | n/a | TimeScale s; |
|---|
| 1534 | n/a | TimeRecord tr; |
|---|
| 1535 | n/a | #ifndef GetTimeBaseStopTime |
|---|
| 1536 | n/a | PyMac_PRECHECK(GetTimeBaseStopTime); |
|---|
| 1537 | n/a | #endif |
|---|
| 1538 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 1539 | n/a | &s)) |
|---|
| 1540 | n/a | return NULL; |
|---|
| 1541 | n/a | _rv = GetTimeBaseStopTime(_self->ob_itself, |
|---|
| 1542 | n/a | s, |
|---|
| 1543 | n/a | &tr); |
|---|
| 1544 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 1545 | n/a | _rv, |
|---|
| 1546 | n/a | QtTimeRecord_New, &tr); |
|---|
| 1547 | n/a | return _res; |
|---|
| 1548 | n/a | } |
|---|
| 1549 | n/a | |
|---|
| 1550 | n/a | static PyObject *TimeBaseObj_SetTimeBaseStopTime(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1551 | n/a | { |
|---|
| 1552 | n/a | PyObject *_res = NULL; |
|---|
| 1553 | n/a | TimeRecord tr; |
|---|
| 1554 | n/a | #ifndef SetTimeBaseStopTime |
|---|
| 1555 | n/a | PyMac_PRECHECK(SetTimeBaseStopTime); |
|---|
| 1556 | n/a | #endif |
|---|
| 1557 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1558 | n/a | QtTimeRecord_Convert, &tr)) |
|---|
| 1559 | n/a | return NULL; |
|---|
| 1560 | n/a | SetTimeBaseStopTime(_self->ob_itself, |
|---|
| 1561 | n/a | &tr); |
|---|
| 1562 | n/a | Py_INCREF(Py_None); |
|---|
| 1563 | n/a | _res = Py_None; |
|---|
| 1564 | n/a | return _res; |
|---|
| 1565 | n/a | } |
|---|
| 1566 | n/a | |
|---|
| 1567 | n/a | static PyObject *TimeBaseObj_GetTimeBaseFlags(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1568 | n/a | { |
|---|
| 1569 | n/a | PyObject *_res = NULL; |
|---|
| 1570 | n/a | long _rv; |
|---|
| 1571 | n/a | #ifndef GetTimeBaseFlags |
|---|
| 1572 | n/a | PyMac_PRECHECK(GetTimeBaseFlags); |
|---|
| 1573 | n/a | #endif |
|---|
| 1574 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1575 | n/a | return NULL; |
|---|
| 1576 | n/a | _rv = GetTimeBaseFlags(_self->ob_itself); |
|---|
| 1577 | n/a | _res = Py_BuildValue("l", |
|---|
| 1578 | n/a | _rv); |
|---|
| 1579 | n/a | return _res; |
|---|
| 1580 | n/a | } |
|---|
| 1581 | n/a | |
|---|
| 1582 | n/a | static PyObject *TimeBaseObj_SetTimeBaseFlags(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1583 | n/a | { |
|---|
| 1584 | n/a | PyObject *_res = NULL; |
|---|
| 1585 | n/a | long timeBaseFlags; |
|---|
| 1586 | n/a | #ifndef SetTimeBaseFlags |
|---|
| 1587 | n/a | PyMac_PRECHECK(SetTimeBaseFlags); |
|---|
| 1588 | n/a | #endif |
|---|
| 1589 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 1590 | n/a | &timeBaseFlags)) |
|---|
| 1591 | n/a | return NULL; |
|---|
| 1592 | n/a | SetTimeBaseFlags(_self->ob_itself, |
|---|
| 1593 | n/a | timeBaseFlags); |
|---|
| 1594 | n/a | Py_INCREF(Py_None); |
|---|
| 1595 | n/a | _res = Py_None; |
|---|
| 1596 | n/a | return _res; |
|---|
| 1597 | n/a | } |
|---|
| 1598 | n/a | |
|---|
| 1599 | n/a | static PyObject *TimeBaseObj_SetTimeBaseMasterTimeBase(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1600 | n/a | { |
|---|
| 1601 | n/a | PyObject *_res = NULL; |
|---|
| 1602 | n/a | TimeBase master; |
|---|
| 1603 | n/a | TimeRecord slaveZero; |
|---|
| 1604 | n/a | #ifndef SetTimeBaseMasterTimeBase |
|---|
| 1605 | n/a | PyMac_PRECHECK(SetTimeBaseMasterTimeBase); |
|---|
| 1606 | n/a | #endif |
|---|
| 1607 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 1608 | n/a | TimeBaseObj_Convert, &master, |
|---|
| 1609 | n/a | QtTimeRecord_Convert, &slaveZero)) |
|---|
| 1610 | n/a | return NULL; |
|---|
| 1611 | n/a | SetTimeBaseMasterTimeBase(_self->ob_itself, |
|---|
| 1612 | n/a | master, |
|---|
| 1613 | n/a | &slaveZero); |
|---|
| 1614 | n/a | Py_INCREF(Py_None); |
|---|
| 1615 | n/a | _res = Py_None; |
|---|
| 1616 | n/a | return _res; |
|---|
| 1617 | n/a | } |
|---|
| 1618 | n/a | |
|---|
| 1619 | n/a | static PyObject *TimeBaseObj_GetTimeBaseMasterTimeBase(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1620 | n/a | { |
|---|
| 1621 | n/a | PyObject *_res = NULL; |
|---|
| 1622 | n/a | TimeBase _rv; |
|---|
| 1623 | n/a | #ifndef GetTimeBaseMasterTimeBase |
|---|
| 1624 | n/a | PyMac_PRECHECK(GetTimeBaseMasterTimeBase); |
|---|
| 1625 | n/a | #endif |
|---|
| 1626 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1627 | n/a | return NULL; |
|---|
| 1628 | n/a | _rv = GetTimeBaseMasterTimeBase(_self->ob_itself); |
|---|
| 1629 | n/a | _res = Py_BuildValue("O&", |
|---|
| 1630 | n/a | TimeBaseObj_New, _rv); |
|---|
| 1631 | n/a | return _res; |
|---|
| 1632 | n/a | } |
|---|
| 1633 | n/a | |
|---|
| 1634 | n/a | static PyObject *TimeBaseObj_SetTimeBaseMasterClock(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1635 | n/a | { |
|---|
| 1636 | n/a | PyObject *_res = NULL; |
|---|
| 1637 | n/a | Component clockMeister; |
|---|
| 1638 | n/a | TimeRecord slaveZero; |
|---|
| 1639 | n/a | #ifndef SetTimeBaseMasterClock |
|---|
| 1640 | n/a | PyMac_PRECHECK(SetTimeBaseMasterClock); |
|---|
| 1641 | n/a | #endif |
|---|
| 1642 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 1643 | n/a | CmpObj_Convert, &clockMeister, |
|---|
| 1644 | n/a | QtTimeRecord_Convert, &slaveZero)) |
|---|
| 1645 | n/a | return NULL; |
|---|
| 1646 | n/a | SetTimeBaseMasterClock(_self->ob_itself, |
|---|
| 1647 | n/a | clockMeister, |
|---|
| 1648 | n/a | &slaveZero); |
|---|
| 1649 | n/a | Py_INCREF(Py_None); |
|---|
| 1650 | n/a | _res = Py_None; |
|---|
| 1651 | n/a | return _res; |
|---|
| 1652 | n/a | } |
|---|
| 1653 | n/a | |
|---|
| 1654 | n/a | static PyObject *TimeBaseObj_GetTimeBaseMasterClock(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1655 | n/a | { |
|---|
| 1656 | n/a | PyObject *_res = NULL; |
|---|
| 1657 | n/a | ComponentInstance _rv; |
|---|
| 1658 | n/a | #ifndef GetTimeBaseMasterClock |
|---|
| 1659 | n/a | PyMac_PRECHECK(GetTimeBaseMasterClock); |
|---|
| 1660 | n/a | #endif |
|---|
| 1661 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1662 | n/a | return NULL; |
|---|
| 1663 | n/a | _rv = GetTimeBaseMasterClock(_self->ob_itself); |
|---|
| 1664 | n/a | _res = Py_BuildValue("O&", |
|---|
| 1665 | n/a | CmpInstObj_New, _rv); |
|---|
| 1666 | n/a | return _res; |
|---|
| 1667 | n/a | } |
|---|
| 1668 | n/a | |
|---|
| 1669 | n/a | static PyObject *TimeBaseObj_GetTimeBaseStatus(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1670 | n/a | { |
|---|
| 1671 | n/a | PyObject *_res = NULL; |
|---|
| 1672 | n/a | long _rv; |
|---|
| 1673 | n/a | TimeRecord unpinnedTime; |
|---|
| 1674 | n/a | #ifndef GetTimeBaseStatus |
|---|
| 1675 | n/a | PyMac_PRECHECK(GetTimeBaseStatus); |
|---|
| 1676 | n/a | #endif |
|---|
| 1677 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1678 | n/a | return NULL; |
|---|
| 1679 | n/a | _rv = GetTimeBaseStatus(_self->ob_itself, |
|---|
| 1680 | n/a | &unpinnedTime); |
|---|
| 1681 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 1682 | n/a | _rv, |
|---|
| 1683 | n/a | QtTimeRecord_New, &unpinnedTime); |
|---|
| 1684 | n/a | return _res; |
|---|
| 1685 | n/a | } |
|---|
| 1686 | n/a | |
|---|
| 1687 | n/a | static PyObject *TimeBaseObj_SetTimeBaseZero(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1688 | n/a | { |
|---|
| 1689 | n/a | PyObject *_res = NULL; |
|---|
| 1690 | n/a | TimeRecord zero; |
|---|
| 1691 | n/a | #ifndef SetTimeBaseZero |
|---|
| 1692 | n/a | PyMac_PRECHECK(SetTimeBaseZero); |
|---|
| 1693 | n/a | #endif |
|---|
| 1694 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1695 | n/a | QtTimeRecord_Convert, &zero)) |
|---|
| 1696 | n/a | return NULL; |
|---|
| 1697 | n/a | SetTimeBaseZero(_self->ob_itself, |
|---|
| 1698 | n/a | &zero); |
|---|
| 1699 | n/a | Py_INCREF(Py_None); |
|---|
| 1700 | n/a | _res = Py_None; |
|---|
| 1701 | n/a | return _res; |
|---|
| 1702 | n/a | } |
|---|
| 1703 | n/a | |
|---|
| 1704 | n/a | static PyObject *TimeBaseObj_GetTimeBaseEffectiveRate(TimeBaseObject *_self, PyObject *_args) |
|---|
| 1705 | n/a | { |
|---|
| 1706 | n/a | PyObject *_res = NULL; |
|---|
| 1707 | n/a | Fixed _rv; |
|---|
| 1708 | n/a | #ifndef GetTimeBaseEffectiveRate |
|---|
| 1709 | n/a | PyMac_PRECHECK(GetTimeBaseEffectiveRate); |
|---|
| 1710 | n/a | #endif |
|---|
| 1711 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 1712 | n/a | return NULL; |
|---|
| 1713 | n/a | _rv = GetTimeBaseEffectiveRate(_self->ob_itself); |
|---|
| 1714 | n/a | _res = Py_BuildValue("O&", |
|---|
| 1715 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 1716 | n/a | return _res; |
|---|
| 1717 | n/a | } |
|---|
| 1718 | n/a | |
|---|
| 1719 | n/a | static PyMethodDef TimeBaseObj_methods[] = { |
|---|
| 1720 | n/a | {"DisposeTimeBase", (PyCFunction)TimeBaseObj_DisposeTimeBase, 1, |
|---|
| 1721 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 1722 | n/a | {"GetTimeBaseTime", (PyCFunction)TimeBaseObj_GetTimeBaseTime, 1, |
|---|
| 1723 | n/a | PyDoc_STR("(TimeScale s) -> (TimeValue _rv, TimeRecord tr)")}, |
|---|
| 1724 | n/a | {"SetTimeBaseTime", (PyCFunction)TimeBaseObj_SetTimeBaseTime, 1, |
|---|
| 1725 | n/a | PyDoc_STR("(TimeRecord tr) -> None")}, |
|---|
| 1726 | n/a | {"SetTimeBaseValue", (PyCFunction)TimeBaseObj_SetTimeBaseValue, 1, |
|---|
| 1727 | n/a | PyDoc_STR("(TimeValue t, TimeScale s) -> None")}, |
|---|
| 1728 | n/a | {"GetTimeBaseRate", (PyCFunction)TimeBaseObj_GetTimeBaseRate, 1, |
|---|
| 1729 | n/a | PyDoc_STR("() -> (Fixed _rv)")}, |
|---|
| 1730 | n/a | {"SetTimeBaseRate", (PyCFunction)TimeBaseObj_SetTimeBaseRate, 1, |
|---|
| 1731 | n/a | PyDoc_STR("(Fixed r) -> None")}, |
|---|
| 1732 | n/a | {"GetTimeBaseStartTime", (PyCFunction)TimeBaseObj_GetTimeBaseStartTime, 1, |
|---|
| 1733 | n/a | PyDoc_STR("(TimeScale s) -> (TimeValue _rv, TimeRecord tr)")}, |
|---|
| 1734 | n/a | {"SetTimeBaseStartTime", (PyCFunction)TimeBaseObj_SetTimeBaseStartTime, 1, |
|---|
| 1735 | n/a | PyDoc_STR("(TimeRecord tr) -> None")}, |
|---|
| 1736 | n/a | {"GetTimeBaseStopTime", (PyCFunction)TimeBaseObj_GetTimeBaseStopTime, 1, |
|---|
| 1737 | n/a | PyDoc_STR("(TimeScale s) -> (TimeValue _rv, TimeRecord tr)")}, |
|---|
| 1738 | n/a | {"SetTimeBaseStopTime", (PyCFunction)TimeBaseObj_SetTimeBaseStopTime, 1, |
|---|
| 1739 | n/a | PyDoc_STR("(TimeRecord tr) -> None")}, |
|---|
| 1740 | n/a | {"GetTimeBaseFlags", (PyCFunction)TimeBaseObj_GetTimeBaseFlags, 1, |
|---|
| 1741 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 1742 | n/a | {"SetTimeBaseFlags", (PyCFunction)TimeBaseObj_SetTimeBaseFlags, 1, |
|---|
| 1743 | n/a | PyDoc_STR("(long timeBaseFlags) -> None")}, |
|---|
| 1744 | n/a | {"SetTimeBaseMasterTimeBase", (PyCFunction)TimeBaseObj_SetTimeBaseMasterTimeBase, 1, |
|---|
| 1745 | n/a | PyDoc_STR("(TimeBase master, TimeRecord slaveZero) -> None")}, |
|---|
| 1746 | n/a | {"GetTimeBaseMasterTimeBase", (PyCFunction)TimeBaseObj_GetTimeBaseMasterTimeBase, 1, |
|---|
| 1747 | n/a | PyDoc_STR("() -> (TimeBase _rv)")}, |
|---|
| 1748 | n/a | {"SetTimeBaseMasterClock", (PyCFunction)TimeBaseObj_SetTimeBaseMasterClock, 1, |
|---|
| 1749 | n/a | PyDoc_STR("(Component clockMeister, TimeRecord slaveZero) -> None")}, |
|---|
| 1750 | n/a | {"GetTimeBaseMasterClock", (PyCFunction)TimeBaseObj_GetTimeBaseMasterClock, 1, |
|---|
| 1751 | n/a | PyDoc_STR("() -> (ComponentInstance _rv)")}, |
|---|
| 1752 | n/a | {"GetTimeBaseStatus", (PyCFunction)TimeBaseObj_GetTimeBaseStatus, 1, |
|---|
| 1753 | n/a | PyDoc_STR("() -> (long _rv, TimeRecord unpinnedTime)")}, |
|---|
| 1754 | n/a | {"SetTimeBaseZero", (PyCFunction)TimeBaseObj_SetTimeBaseZero, 1, |
|---|
| 1755 | n/a | PyDoc_STR("(TimeRecord zero) -> None")}, |
|---|
| 1756 | n/a | {"GetTimeBaseEffectiveRate", (PyCFunction)TimeBaseObj_GetTimeBaseEffectiveRate, 1, |
|---|
| 1757 | n/a | PyDoc_STR("() -> (Fixed _rv)")}, |
|---|
| 1758 | n/a | {NULL, NULL, 0} |
|---|
| 1759 | n/a | }; |
|---|
| 1760 | n/a | |
|---|
| 1761 | n/a | #define TimeBaseObj_getsetlist NULL |
|---|
| 1762 | n/a | |
|---|
| 1763 | n/a | |
|---|
| 1764 | n/a | #define TimeBaseObj_compare NULL |
|---|
| 1765 | n/a | |
|---|
| 1766 | n/a | #define TimeBaseObj_repr NULL |
|---|
| 1767 | n/a | |
|---|
| 1768 | n/a | #define TimeBaseObj_hash NULL |
|---|
| 1769 | n/a | #define TimeBaseObj_tp_init 0 |
|---|
| 1770 | n/a | |
|---|
| 1771 | n/a | #define TimeBaseObj_tp_alloc PyType_GenericAlloc |
|---|
| 1772 | n/a | |
|---|
| 1773 | n/a | static PyObject *TimeBaseObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 1774 | n/a | { |
|---|
| 1775 | n/a | PyObject *_self; |
|---|
| 1776 | n/a | TimeBase itself; |
|---|
| 1777 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 1778 | n/a | |
|---|
| 1779 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, TimeBaseObj_Convert, &itself)) return NULL; |
|---|
| 1780 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 1781 | n/a | ((TimeBaseObject *)_self)->ob_itself = itself; |
|---|
| 1782 | n/a | return _self; |
|---|
| 1783 | n/a | } |
|---|
| 1784 | n/a | |
|---|
| 1785 | n/a | #define TimeBaseObj_tp_free PyObject_Del |
|---|
| 1786 | n/a | |
|---|
| 1787 | n/a | |
|---|
| 1788 | n/a | PyTypeObject TimeBase_Type = { |
|---|
| 1789 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 1790 | n/a | 0, /*ob_size*/ |
|---|
| 1791 | n/a | "_Qt.TimeBase", /*tp_name*/ |
|---|
| 1792 | n/a | sizeof(TimeBaseObject), /*tp_basicsize*/ |
|---|
| 1793 | n/a | 0, /*tp_itemsize*/ |
|---|
| 1794 | n/a | /* methods */ |
|---|
| 1795 | n/a | (destructor) TimeBaseObj_dealloc, /*tp_dealloc*/ |
|---|
| 1796 | n/a | 0, /*tp_print*/ |
|---|
| 1797 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 1798 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 1799 | n/a | (cmpfunc) TimeBaseObj_compare, /*tp_compare*/ |
|---|
| 1800 | n/a | (reprfunc) TimeBaseObj_repr, /*tp_repr*/ |
|---|
| 1801 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 1802 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 1803 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 1804 | n/a | (hashfunc) TimeBaseObj_hash, /*tp_hash*/ |
|---|
| 1805 | n/a | 0, /*tp_call*/ |
|---|
| 1806 | n/a | 0, /*tp_str*/ |
|---|
| 1807 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 1808 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 1809 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 1810 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 1811 | n/a | 0, /*tp_doc*/ |
|---|
| 1812 | n/a | 0, /*tp_traverse*/ |
|---|
| 1813 | n/a | 0, /*tp_clear*/ |
|---|
| 1814 | n/a | 0, /*tp_richcompare*/ |
|---|
| 1815 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 1816 | n/a | 0, /*tp_iter*/ |
|---|
| 1817 | n/a | 0, /*tp_iternext*/ |
|---|
| 1818 | n/a | TimeBaseObj_methods, /* tp_methods */ |
|---|
| 1819 | n/a | 0, /*tp_members*/ |
|---|
| 1820 | n/a | TimeBaseObj_getsetlist, /*tp_getset*/ |
|---|
| 1821 | n/a | 0, /*tp_base*/ |
|---|
| 1822 | n/a | 0, /*tp_dict*/ |
|---|
| 1823 | n/a | 0, /*tp_descr_get*/ |
|---|
| 1824 | n/a | 0, /*tp_descr_set*/ |
|---|
| 1825 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 1826 | n/a | TimeBaseObj_tp_init, /* tp_init */ |
|---|
| 1827 | n/a | TimeBaseObj_tp_alloc, /* tp_alloc */ |
|---|
| 1828 | n/a | TimeBaseObj_tp_new, /* tp_new */ |
|---|
| 1829 | n/a | TimeBaseObj_tp_free, /* tp_free */ |
|---|
| 1830 | n/a | }; |
|---|
| 1831 | n/a | |
|---|
| 1832 | n/a | /* -------------------- End object type TimeBase -------------------- */ |
|---|
| 1833 | n/a | |
|---|
| 1834 | n/a | |
|---|
| 1835 | n/a | /* ---------------------- Object type UserData ---------------------- */ |
|---|
| 1836 | n/a | |
|---|
| 1837 | n/a | PyTypeObject UserData_Type; |
|---|
| 1838 | n/a | |
|---|
| 1839 | n/a | #define UserDataObj_Check(x) ((x)->ob_type == &UserData_Type || PyObject_TypeCheck((x), &UserData_Type)) |
|---|
| 1840 | n/a | |
|---|
| 1841 | n/a | typedef struct UserDataObject { |
|---|
| 1842 | n/a | PyObject_HEAD |
|---|
| 1843 | n/a | UserData ob_itself; |
|---|
| 1844 | n/a | } UserDataObject; |
|---|
| 1845 | n/a | |
|---|
| 1846 | n/a | PyObject *UserDataObj_New(UserData itself) |
|---|
| 1847 | n/a | { |
|---|
| 1848 | n/a | UserDataObject *it; |
|---|
| 1849 | n/a | if (itself == NULL) { |
|---|
| 1850 | n/a | PyErr_SetString(Qt_Error,"Cannot create UserData from NULL pointer"); |
|---|
| 1851 | n/a | return NULL; |
|---|
| 1852 | n/a | } |
|---|
| 1853 | n/a | it = PyObject_NEW(UserDataObject, &UserData_Type); |
|---|
| 1854 | n/a | if (it == NULL) return NULL; |
|---|
| 1855 | n/a | it->ob_itself = itself; |
|---|
| 1856 | n/a | return (PyObject *)it; |
|---|
| 1857 | n/a | } |
|---|
| 1858 | n/a | |
|---|
| 1859 | n/a | int UserDataObj_Convert(PyObject *v, UserData *p_itself) |
|---|
| 1860 | n/a | { |
|---|
| 1861 | n/a | if (v == Py_None) |
|---|
| 1862 | n/a | { |
|---|
| 1863 | n/a | *p_itself = NULL; |
|---|
| 1864 | n/a | return 1; |
|---|
| 1865 | n/a | } |
|---|
| 1866 | n/a | if (!UserDataObj_Check(v)) |
|---|
| 1867 | n/a | { |
|---|
| 1868 | n/a | PyErr_SetString(PyExc_TypeError, "UserData required"); |
|---|
| 1869 | n/a | return 0; |
|---|
| 1870 | n/a | } |
|---|
| 1871 | n/a | *p_itself = ((UserDataObject *)v)->ob_itself; |
|---|
| 1872 | n/a | return 1; |
|---|
| 1873 | n/a | } |
|---|
| 1874 | n/a | |
|---|
| 1875 | n/a | static void UserDataObj_dealloc(UserDataObject *self) |
|---|
| 1876 | n/a | { |
|---|
| 1877 | n/a | if (self->ob_itself) DisposeUserData(self->ob_itself); |
|---|
| 1878 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 1879 | n/a | } |
|---|
| 1880 | n/a | |
|---|
| 1881 | n/a | static PyObject *UserDataObj_GetUserData(UserDataObject *_self, PyObject *_args) |
|---|
| 1882 | n/a | { |
|---|
| 1883 | n/a | PyObject *_res = NULL; |
|---|
| 1884 | n/a | OSErr _err; |
|---|
| 1885 | n/a | Handle data; |
|---|
| 1886 | n/a | OSType udType; |
|---|
| 1887 | n/a | long index; |
|---|
| 1888 | n/a | #ifndef GetUserData |
|---|
| 1889 | n/a | PyMac_PRECHECK(GetUserData); |
|---|
| 1890 | n/a | #endif |
|---|
| 1891 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 1892 | n/a | ResObj_Convert, &data, |
|---|
| 1893 | n/a | PyMac_GetOSType, &udType, |
|---|
| 1894 | n/a | &index)) |
|---|
| 1895 | n/a | return NULL; |
|---|
| 1896 | n/a | _err = GetUserData(_self->ob_itself, |
|---|
| 1897 | n/a | data, |
|---|
| 1898 | n/a | udType, |
|---|
| 1899 | n/a | index); |
|---|
| 1900 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 1901 | n/a | Py_INCREF(Py_None); |
|---|
| 1902 | n/a | _res = Py_None; |
|---|
| 1903 | n/a | return _res; |
|---|
| 1904 | n/a | } |
|---|
| 1905 | n/a | |
|---|
| 1906 | n/a | static PyObject *UserDataObj_AddUserData(UserDataObject *_self, PyObject *_args) |
|---|
| 1907 | n/a | { |
|---|
| 1908 | n/a | PyObject *_res = NULL; |
|---|
| 1909 | n/a | OSErr _err; |
|---|
| 1910 | n/a | Handle data; |
|---|
| 1911 | n/a | OSType udType; |
|---|
| 1912 | n/a | #ifndef AddUserData |
|---|
| 1913 | n/a | PyMac_PRECHECK(AddUserData); |
|---|
| 1914 | n/a | #endif |
|---|
| 1915 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 1916 | n/a | ResObj_Convert, &data, |
|---|
| 1917 | n/a | PyMac_GetOSType, &udType)) |
|---|
| 1918 | n/a | return NULL; |
|---|
| 1919 | n/a | _err = AddUserData(_self->ob_itself, |
|---|
| 1920 | n/a | data, |
|---|
| 1921 | n/a | udType); |
|---|
| 1922 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 1923 | n/a | Py_INCREF(Py_None); |
|---|
| 1924 | n/a | _res = Py_None; |
|---|
| 1925 | n/a | return _res; |
|---|
| 1926 | n/a | } |
|---|
| 1927 | n/a | |
|---|
| 1928 | n/a | static PyObject *UserDataObj_RemoveUserData(UserDataObject *_self, PyObject *_args) |
|---|
| 1929 | n/a | { |
|---|
| 1930 | n/a | PyObject *_res = NULL; |
|---|
| 1931 | n/a | OSErr _err; |
|---|
| 1932 | n/a | OSType udType; |
|---|
| 1933 | n/a | long index; |
|---|
| 1934 | n/a | #ifndef RemoveUserData |
|---|
| 1935 | n/a | PyMac_PRECHECK(RemoveUserData); |
|---|
| 1936 | n/a | #endif |
|---|
| 1937 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 1938 | n/a | PyMac_GetOSType, &udType, |
|---|
| 1939 | n/a | &index)) |
|---|
| 1940 | n/a | return NULL; |
|---|
| 1941 | n/a | _err = RemoveUserData(_self->ob_itself, |
|---|
| 1942 | n/a | udType, |
|---|
| 1943 | n/a | index); |
|---|
| 1944 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 1945 | n/a | Py_INCREF(Py_None); |
|---|
| 1946 | n/a | _res = Py_None; |
|---|
| 1947 | n/a | return _res; |
|---|
| 1948 | n/a | } |
|---|
| 1949 | n/a | |
|---|
| 1950 | n/a | static PyObject *UserDataObj_CountUserDataType(UserDataObject *_self, PyObject *_args) |
|---|
| 1951 | n/a | { |
|---|
| 1952 | n/a | PyObject *_res = NULL; |
|---|
| 1953 | n/a | short _rv; |
|---|
| 1954 | n/a | OSType udType; |
|---|
| 1955 | n/a | #ifndef CountUserDataType |
|---|
| 1956 | n/a | PyMac_PRECHECK(CountUserDataType); |
|---|
| 1957 | n/a | #endif |
|---|
| 1958 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1959 | n/a | PyMac_GetOSType, &udType)) |
|---|
| 1960 | n/a | return NULL; |
|---|
| 1961 | n/a | _rv = CountUserDataType(_self->ob_itself, |
|---|
| 1962 | n/a | udType); |
|---|
| 1963 | n/a | _res = Py_BuildValue("h", |
|---|
| 1964 | n/a | _rv); |
|---|
| 1965 | n/a | return _res; |
|---|
| 1966 | n/a | } |
|---|
| 1967 | n/a | |
|---|
| 1968 | n/a | static PyObject *UserDataObj_GetNextUserDataType(UserDataObject *_self, PyObject *_args) |
|---|
| 1969 | n/a | { |
|---|
| 1970 | n/a | PyObject *_res = NULL; |
|---|
| 1971 | n/a | long _rv; |
|---|
| 1972 | n/a | OSType udType; |
|---|
| 1973 | n/a | #ifndef GetNextUserDataType |
|---|
| 1974 | n/a | PyMac_PRECHECK(GetNextUserDataType); |
|---|
| 1975 | n/a | #endif |
|---|
| 1976 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 1977 | n/a | PyMac_GetOSType, &udType)) |
|---|
| 1978 | n/a | return NULL; |
|---|
| 1979 | n/a | _rv = GetNextUserDataType(_self->ob_itself, |
|---|
| 1980 | n/a | udType); |
|---|
| 1981 | n/a | _res = Py_BuildValue("l", |
|---|
| 1982 | n/a | _rv); |
|---|
| 1983 | n/a | return _res; |
|---|
| 1984 | n/a | } |
|---|
| 1985 | n/a | |
|---|
| 1986 | n/a | static PyObject *UserDataObj_AddUserDataText(UserDataObject *_self, PyObject *_args) |
|---|
| 1987 | n/a | { |
|---|
| 1988 | n/a | PyObject *_res = NULL; |
|---|
| 1989 | n/a | OSErr _err; |
|---|
| 1990 | n/a | Handle data; |
|---|
| 1991 | n/a | OSType udType; |
|---|
| 1992 | n/a | long index; |
|---|
| 1993 | n/a | short itlRegionTag; |
|---|
| 1994 | n/a | #ifndef AddUserDataText |
|---|
| 1995 | n/a | PyMac_PRECHECK(AddUserDataText); |
|---|
| 1996 | n/a | #endif |
|---|
| 1997 | n/a | if (!PyArg_ParseTuple(_args, "O&O&lh", |
|---|
| 1998 | n/a | ResObj_Convert, &data, |
|---|
| 1999 | n/a | PyMac_GetOSType, &udType, |
|---|
| 2000 | n/a | &index, |
|---|
| 2001 | n/a | &itlRegionTag)) |
|---|
| 2002 | n/a | return NULL; |
|---|
| 2003 | n/a | _err = AddUserDataText(_self->ob_itself, |
|---|
| 2004 | n/a | data, |
|---|
| 2005 | n/a | udType, |
|---|
| 2006 | n/a | index, |
|---|
| 2007 | n/a | itlRegionTag); |
|---|
| 2008 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2009 | n/a | Py_INCREF(Py_None); |
|---|
| 2010 | n/a | _res = Py_None; |
|---|
| 2011 | n/a | return _res; |
|---|
| 2012 | n/a | } |
|---|
| 2013 | n/a | |
|---|
| 2014 | n/a | static PyObject *UserDataObj_GetUserDataText(UserDataObject *_self, PyObject *_args) |
|---|
| 2015 | n/a | { |
|---|
| 2016 | n/a | PyObject *_res = NULL; |
|---|
| 2017 | n/a | OSErr _err; |
|---|
| 2018 | n/a | Handle data; |
|---|
| 2019 | n/a | OSType udType; |
|---|
| 2020 | n/a | long index; |
|---|
| 2021 | n/a | short itlRegionTag; |
|---|
| 2022 | n/a | #ifndef GetUserDataText |
|---|
| 2023 | n/a | PyMac_PRECHECK(GetUserDataText); |
|---|
| 2024 | n/a | #endif |
|---|
| 2025 | n/a | if (!PyArg_ParseTuple(_args, "O&O&lh", |
|---|
| 2026 | n/a | ResObj_Convert, &data, |
|---|
| 2027 | n/a | PyMac_GetOSType, &udType, |
|---|
| 2028 | n/a | &index, |
|---|
| 2029 | n/a | &itlRegionTag)) |
|---|
| 2030 | n/a | return NULL; |
|---|
| 2031 | n/a | _err = GetUserDataText(_self->ob_itself, |
|---|
| 2032 | n/a | data, |
|---|
| 2033 | n/a | udType, |
|---|
| 2034 | n/a | index, |
|---|
| 2035 | n/a | itlRegionTag); |
|---|
| 2036 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2037 | n/a | Py_INCREF(Py_None); |
|---|
| 2038 | n/a | _res = Py_None; |
|---|
| 2039 | n/a | return _res; |
|---|
| 2040 | n/a | } |
|---|
| 2041 | n/a | |
|---|
| 2042 | n/a | static PyObject *UserDataObj_RemoveUserDataText(UserDataObject *_self, PyObject *_args) |
|---|
| 2043 | n/a | { |
|---|
| 2044 | n/a | PyObject *_res = NULL; |
|---|
| 2045 | n/a | OSErr _err; |
|---|
| 2046 | n/a | OSType udType; |
|---|
| 2047 | n/a | long index; |
|---|
| 2048 | n/a | short itlRegionTag; |
|---|
| 2049 | n/a | #ifndef RemoveUserDataText |
|---|
| 2050 | n/a | PyMac_PRECHECK(RemoveUserDataText); |
|---|
| 2051 | n/a | #endif |
|---|
| 2052 | n/a | if (!PyArg_ParseTuple(_args, "O&lh", |
|---|
| 2053 | n/a | PyMac_GetOSType, &udType, |
|---|
| 2054 | n/a | &index, |
|---|
| 2055 | n/a | &itlRegionTag)) |
|---|
| 2056 | n/a | return NULL; |
|---|
| 2057 | n/a | _err = RemoveUserDataText(_self->ob_itself, |
|---|
| 2058 | n/a | udType, |
|---|
| 2059 | n/a | index, |
|---|
| 2060 | n/a | itlRegionTag); |
|---|
| 2061 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2062 | n/a | Py_INCREF(Py_None); |
|---|
| 2063 | n/a | _res = Py_None; |
|---|
| 2064 | n/a | return _res; |
|---|
| 2065 | n/a | } |
|---|
| 2066 | n/a | |
|---|
| 2067 | n/a | static PyObject *UserDataObj_PutUserDataIntoHandle(UserDataObject *_self, PyObject *_args) |
|---|
| 2068 | n/a | { |
|---|
| 2069 | n/a | PyObject *_res = NULL; |
|---|
| 2070 | n/a | OSErr _err; |
|---|
| 2071 | n/a | Handle h; |
|---|
| 2072 | n/a | #ifndef PutUserDataIntoHandle |
|---|
| 2073 | n/a | PyMac_PRECHECK(PutUserDataIntoHandle); |
|---|
| 2074 | n/a | #endif |
|---|
| 2075 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 2076 | n/a | ResObj_Convert, &h)) |
|---|
| 2077 | n/a | return NULL; |
|---|
| 2078 | n/a | _err = PutUserDataIntoHandle(_self->ob_itself, |
|---|
| 2079 | n/a | h); |
|---|
| 2080 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2081 | n/a | Py_INCREF(Py_None); |
|---|
| 2082 | n/a | _res = Py_None; |
|---|
| 2083 | n/a | return _res; |
|---|
| 2084 | n/a | } |
|---|
| 2085 | n/a | |
|---|
| 2086 | n/a | static PyObject *UserDataObj_CopyUserData(UserDataObject *_self, PyObject *_args) |
|---|
| 2087 | n/a | { |
|---|
| 2088 | n/a | PyObject *_res = NULL; |
|---|
| 2089 | n/a | OSErr _err; |
|---|
| 2090 | n/a | UserData dstUserData; |
|---|
| 2091 | n/a | OSType copyRule; |
|---|
| 2092 | n/a | #ifndef CopyUserData |
|---|
| 2093 | n/a | PyMac_PRECHECK(CopyUserData); |
|---|
| 2094 | n/a | #endif |
|---|
| 2095 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 2096 | n/a | UserDataObj_Convert, &dstUserData, |
|---|
| 2097 | n/a | PyMac_GetOSType, ©Rule)) |
|---|
| 2098 | n/a | return NULL; |
|---|
| 2099 | n/a | _err = CopyUserData(_self->ob_itself, |
|---|
| 2100 | n/a | dstUserData, |
|---|
| 2101 | n/a | copyRule); |
|---|
| 2102 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2103 | n/a | Py_INCREF(Py_None); |
|---|
| 2104 | n/a | _res = Py_None; |
|---|
| 2105 | n/a | return _res; |
|---|
| 2106 | n/a | } |
|---|
| 2107 | n/a | |
|---|
| 2108 | n/a | static PyMethodDef UserDataObj_methods[] = { |
|---|
| 2109 | n/a | {"GetUserData", (PyCFunction)UserDataObj_GetUserData, 1, |
|---|
| 2110 | n/a | PyDoc_STR("(Handle data, OSType udType, long index) -> None")}, |
|---|
| 2111 | n/a | {"AddUserData", (PyCFunction)UserDataObj_AddUserData, 1, |
|---|
| 2112 | n/a | PyDoc_STR("(Handle data, OSType udType) -> None")}, |
|---|
| 2113 | n/a | {"RemoveUserData", (PyCFunction)UserDataObj_RemoveUserData, 1, |
|---|
| 2114 | n/a | PyDoc_STR("(OSType udType, long index) -> None")}, |
|---|
| 2115 | n/a | {"CountUserDataType", (PyCFunction)UserDataObj_CountUserDataType, 1, |
|---|
| 2116 | n/a | PyDoc_STR("(OSType udType) -> (short _rv)")}, |
|---|
| 2117 | n/a | {"GetNextUserDataType", (PyCFunction)UserDataObj_GetNextUserDataType, 1, |
|---|
| 2118 | n/a | PyDoc_STR("(OSType udType) -> (long _rv)")}, |
|---|
| 2119 | n/a | {"AddUserDataText", (PyCFunction)UserDataObj_AddUserDataText, 1, |
|---|
| 2120 | n/a | PyDoc_STR("(Handle data, OSType udType, long index, short itlRegionTag) -> None")}, |
|---|
| 2121 | n/a | {"GetUserDataText", (PyCFunction)UserDataObj_GetUserDataText, 1, |
|---|
| 2122 | n/a | PyDoc_STR("(Handle data, OSType udType, long index, short itlRegionTag) -> None")}, |
|---|
| 2123 | n/a | {"RemoveUserDataText", (PyCFunction)UserDataObj_RemoveUserDataText, 1, |
|---|
| 2124 | n/a | PyDoc_STR("(OSType udType, long index, short itlRegionTag) -> None")}, |
|---|
| 2125 | n/a | {"PutUserDataIntoHandle", (PyCFunction)UserDataObj_PutUserDataIntoHandle, 1, |
|---|
| 2126 | n/a | PyDoc_STR("(Handle h) -> None")}, |
|---|
| 2127 | n/a | {"CopyUserData", (PyCFunction)UserDataObj_CopyUserData, 1, |
|---|
| 2128 | n/a | PyDoc_STR("(UserData dstUserData, OSType copyRule) -> None")}, |
|---|
| 2129 | n/a | {NULL, NULL, 0} |
|---|
| 2130 | n/a | }; |
|---|
| 2131 | n/a | |
|---|
| 2132 | n/a | #define UserDataObj_getsetlist NULL |
|---|
| 2133 | n/a | |
|---|
| 2134 | n/a | |
|---|
| 2135 | n/a | #define UserDataObj_compare NULL |
|---|
| 2136 | n/a | |
|---|
| 2137 | n/a | #define UserDataObj_repr NULL |
|---|
| 2138 | n/a | |
|---|
| 2139 | n/a | #define UserDataObj_hash NULL |
|---|
| 2140 | n/a | #define UserDataObj_tp_init 0 |
|---|
| 2141 | n/a | |
|---|
| 2142 | n/a | #define UserDataObj_tp_alloc PyType_GenericAlloc |
|---|
| 2143 | n/a | |
|---|
| 2144 | n/a | static PyObject *UserDataObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 2145 | n/a | { |
|---|
| 2146 | n/a | PyObject *_self; |
|---|
| 2147 | n/a | UserData itself; |
|---|
| 2148 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 2149 | n/a | |
|---|
| 2150 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, UserDataObj_Convert, &itself)) return NULL; |
|---|
| 2151 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 2152 | n/a | ((UserDataObject *)_self)->ob_itself = itself; |
|---|
| 2153 | n/a | return _self; |
|---|
| 2154 | n/a | } |
|---|
| 2155 | n/a | |
|---|
| 2156 | n/a | #define UserDataObj_tp_free PyObject_Del |
|---|
| 2157 | n/a | |
|---|
| 2158 | n/a | |
|---|
| 2159 | n/a | PyTypeObject UserData_Type = { |
|---|
| 2160 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 2161 | n/a | 0, /*ob_size*/ |
|---|
| 2162 | n/a | "_Qt.UserData", /*tp_name*/ |
|---|
| 2163 | n/a | sizeof(UserDataObject), /*tp_basicsize*/ |
|---|
| 2164 | n/a | 0, /*tp_itemsize*/ |
|---|
| 2165 | n/a | /* methods */ |
|---|
| 2166 | n/a | (destructor) UserDataObj_dealloc, /*tp_dealloc*/ |
|---|
| 2167 | n/a | 0, /*tp_print*/ |
|---|
| 2168 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 2169 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 2170 | n/a | (cmpfunc) UserDataObj_compare, /*tp_compare*/ |
|---|
| 2171 | n/a | (reprfunc) UserDataObj_repr, /*tp_repr*/ |
|---|
| 2172 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 2173 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 2174 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 2175 | n/a | (hashfunc) UserDataObj_hash, /*tp_hash*/ |
|---|
| 2176 | n/a | 0, /*tp_call*/ |
|---|
| 2177 | n/a | 0, /*tp_str*/ |
|---|
| 2178 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 2179 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 2180 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 2181 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 2182 | n/a | 0, /*tp_doc*/ |
|---|
| 2183 | n/a | 0, /*tp_traverse*/ |
|---|
| 2184 | n/a | 0, /*tp_clear*/ |
|---|
| 2185 | n/a | 0, /*tp_richcompare*/ |
|---|
| 2186 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 2187 | n/a | 0, /*tp_iter*/ |
|---|
| 2188 | n/a | 0, /*tp_iternext*/ |
|---|
| 2189 | n/a | UserDataObj_methods, /* tp_methods */ |
|---|
| 2190 | n/a | 0, /*tp_members*/ |
|---|
| 2191 | n/a | UserDataObj_getsetlist, /*tp_getset*/ |
|---|
| 2192 | n/a | 0, /*tp_base*/ |
|---|
| 2193 | n/a | 0, /*tp_dict*/ |
|---|
| 2194 | n/a | 0, /*tp_descr_get*/ |
|---|
| 2195 | n/a | 0, /*tp_descr_set*/ |
|---|
| 2196 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 2197 | n/a | UserDataObj_tp_init, /* tp_init */ |
|---|
| 2198 | n/a | UserDataObj_tp_alloc, /* tp_alloc */ |
|---|
| 2199 | n/a | UserDataObj_tp_new, /* tp_new */ |
|---|
| 2200 | n/a | UserDataObj_tp_free, /* tp_free */ |
|---|
| 2201 | n/a | }; |
|---|
| 2202 | n/a | |
|---|
| 2203 | n/a | /* -------------------- End object type UserData -------------------- */ |
|---|
| 2204 | n/a | |
|---|
| 2205 | n/a | |
|---|
| 2206 | n/a | /* ----------------------- Object type Media ------------------------ */ |
|---|
| 2207 | n/a | |
|---|
| 2208 | n/a | PyTypeObject Media_Type; |
|---|
| 2209 | n/a | |
|---|
| 2210 | n/a | #define MediaObj_Check(x) ((x)->ob_type == &Media_Type || PyObject_TypeCheck((x), &Media_Type)) |
|---|
| 2211 | n/a | |
|---|
| 2212 | n/a | typedef struct MediaObject { |
|---|
| 2213 | n/a | PyObject_HEAD |
|---|
| 2214 | n/a | Media ob_itself; |
|---|
| 2215 | n/a | } MediaObject; |
|---|
| 2216 | n/a | |
|---|
| 2217 | n/a | PyObject *MediaObj_New(Media itself) |
|---|
| 2218 | n/a | { |
|---|
| 2219 | n/a | MediaObject *it; |
|---|
| 2220 | n/a | if (itself == NULL) { |
|---|
| 2221 | n/a | PyErr_SetString(Qt_Error,"Cannot create Media from NULL pointer"); |
|---|
| 2222 | n/a | return NULL; |
|---|
| 2223 | n/a | } |
|---|
| 2224 | n/a | it = PyObject_NEW(MediaObject, &Media_Type); |
|---|
| 2225 | n/a | if (it == NULL) return NULL; |
|---|
| 2226 | n/a | it->ob_itself = itself; |
|---|
| 2227 | n/a | return (PyObject *)it; |
|---|
| 2228 | n/a | } |
|---|
| 2229 | n/a | |
|---|
| 2230 | n/a | int MediaObj_Convert(PyObject *v, Media *p_itself) |
|---|
| 2231 | n/a | { |
|---|
| 2232 | n/a | if (v == Py_None) |
|---|
| 2233 | n/a | { |
|---|
| 2234 | n/a | *p_itself = NULL; |
|---|
| 2235 | n/a | return 1; |
|---|
| 2236 | n/a | } |
|---|
| 2237 | n/a | if (!MediaObj_Check(v)) |
|---|
| 2238 | n/a | { |
|---|
| 2239 | n/a | PyErr_SetString(PyExc_TypeError, "Media required"); |
|---|
| 2240 | n/a | return 0; |
|---|
| 2241 | n/a | } |
|---|
| 2242 | n/a | *p_itself = ((MediaObject *)v)->ob_itself; |
|---|
| 2243 | n/a | return 1; |
|---|
| 2244 | n/a | } |
|---|
| 2245 | n/a | |
|---|
| 2246 | n/a | static void MediaObj_dealloc(MediaObject *self) |
|---|
| 2247 | n/a | { |
|---|
| 2248 | n/a | if (self->ob_itself) DisposeTrackMedia(self->ob_itself); |
|---|
| 2249 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 2250 | n/a | } |
|---|
| 2251 | n/a | |
|---|
| 2252 | n/a | static PyObject *MediaObj_LoadMediaIntoRam(MediaObject *_self, PyObject *_args) |
|---|
| 2253 | n/a | { |
|---|
| 2254 | n/a | PyObject *_res = NULL; |
|---|
| 2255 | n/a | OSErr _err; |
|---|
| 2256 | n/a | TimeValue time; |
|---|
| 2257 | n/a | TimeValue duration; |
|---|
| 2258 | n/a | long flags; |
|---|
| 2259 | n/a | #ifndef LoadMediaIntoRam |
|---|
| 2260 | n/a | PyMac_PRECHECK(LoadMediaIntoRam); |
|---|
| 2261 | n/a | #endif |
|---|
| 2262 | n/a | if (!PyArg_ParseTuple(_args, "lll", |
|---|
| 2263 | n/a | &time, |
|---|
| 2264 | n/a | &duration, |
|---|
| 2265 | n/a | &flags)) |
|---|
| 2266 | n/a | return NULL; |
|---|
| 2267 | n/a | _err = LoadMediaIntoRam(_self->ob_itself, |
|---|
| 2268 | n/a | time, |
|---|
| 2269 | n/a | duration, |
|---|
| 2270 | n/a | flags); |
|---|
| 2271 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2272 | n/a | Py_INCREF(Py_None); |
|---|
| 2273 | n/a | _res = Py_None; |
|---|
| 2274 | n/a | return _res; |
|---|
| 2275 | n/a | } |
|---|
| 2276 | n/a | |
|---|
| 2277 | n/a | static PyObject *MediaObj_GetMediaTrack(MediaObject *_self, PyObject *_args) |
|---|
| 2278 | n/a | { |
|---|
| 2279 | n/a | PyObject *_res = NULL; |
|---|
| 2280 | n/a | Track _rv; |
|---|
| 2281 | n/a | #ifndef GetMediaTrack |
|---|
| 2282 | n/a | PyMac_PRECHECK(GetMediaTrack); |
|---|
| 2283 | n/a | #endif |
|---|
| 2284 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2285 | n/a | return NULL; |
|---|
| 2286 | n/a | _rv = GetMediaTrack(_self->ob_itself); |
|---|
| 2287 | n/a | _res = Py_BuildValue("O&", |
|---|
| 2288 | n/a | TrackObj_New, _rv); |
|---|
| 2289 | n/a | return _res; |
|---|
| 2290 | n/a | } |
|---|
| 2291 | n/a | |
|---|
| 2292 | n/a | static PyObject *MediaObj_GetMediaCreationTime(MediaObject *_self, PyObject *_args) |
|---|
| 2293 | n/a | { |
|---|
| 2294 | n/a | PyObject *_res = NULL; |
|---|
| 2295 | n/a | unsigned long _rv; |
|---|
| 2296 | n/a | #ifndef GetMediaCreationTime |
|---|
| 2297 | n/a | PyMac_PRECHECK(GetMediaCreationTime); |
|---|
| 2298 | n/a | #endif |
|---|
| 2299 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2300 | n/a | return NULL; |
|---|
| 2301 | n/a | _rv = GetMediaCreationTime(_self->ob_itself); |
|---|
| 2302 | n/a | _res = Py_BuildValue("l", |
|---|
| 2303 | n/a | _rv); |
|---|
| 2304 | n/a | return _res; |
|---|
| 2305 | n/a | } |
|---|
| 2306 | n/a | |
|---|
| 2307 | n/a | static PyObject *MediaObj_GetMediaModificationTime(MediaObject *_self, PyObject *_args) |
|---|
| 2308 | n/a | { |
|---|
| 2309 | n/a | PyObject *_res = NULL; |
|---|
| 2310 | n/a | unsigned long _rv; |
|---|
| 2311 | n/a | #ifndef GetMediaModificationTime |
|---|
| 2312 | n/a | PyMac_PRECHECK(GetMediaModificationTime); |
|---|
| 2313 | n/a | #endif |
|---|
| 2314 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2315 | n/a | return NULL; |
|---|
| 2316 | n/a | _rv = GetMediaModificationTime(_self->ob_itself); |
|---|
| 2317 | n/a | _res = Py_BuildValue("l", |
|---|
| 2318 | n/a | _rv); |
|---|
| 2319 | n/a | return _res; |
|---|
| 2320 | n/a | } |
|---|
| 2321 | n/a | |
|---|
| 2322 | n/a | static PyObject *MediaObj_GetMediaTimeScale(MediaObject *_self, PyObject *_args) |
|---|
| 2323 | n/a | { |
|---|
| 2324 | n/a | PyObject *_res = NULL; |
|---|
| 2325 | n/a | TimeScale _rv; |
|---|
| 2326 | n/a | #ifndef GetMediaTimeScale |
|---|
| 2327 | n/a | PyMac_PRECHECK(GetMediaTimeScale); |
|---|
| 2328 | n/a | #endif |
|---|
| 2329 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2330 | n/a | return NULL; |
|---|
| 2331 | n/a | _rv = GetMediaTimeScale(_self->ob_itself); |
|---|
| 2332 | n/a | _res = Py_BuildValue("l", |
|---|
| 2333 | n/a | _rv); |
|---|
| 2334 | n/a | return _res; |
|---|
| 2335 | n/a | } |
|---|
| 2336 | n/a | |
|---|
| 2337 | n/a | static PyObject *MediaObj_SetMediaTimeScale(MediaObject *_self, PyObject *_args) |
|---|
| 2338 | n/a | { |
|---|
| 2339 | n/a | PyObject *_res = NULL; |
|---|
| 2340 | n/a | TimeScale timeScale; |
|---|
| 2341 | n/a | #ifndef SetMediaTimeScale |
|---|
| 2342 | n/a | PyMac_PRECHECK(SetMediaTimeScale); |
|---|
| 2343 | n/a | #endif |
|---|
| 2344 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 2345 | n/a | &timeScale)) |
|---|
| 2346 | n/a | return NULL; |
|---|
| 2347 | n/a | SetMediaTimeScale(_self->ob_itself, |
|---|
| 2348 | n/a | timeScale); |
|---|
| 2349 | n/a | Py_INCREF(Py_None); |
|---|
| 2350 | n/a | _res = Py_None; |
|---|
| 2351 | n/a | return _res; |
|---|
| 2352 | n/a | } |
|---|
| 2353 | n/a | |
|---|
| 2354 | n/a | static PyObject *MediaObj_GetMediaDuration(MediaObject *_self, PyObject *_args) |
|---|
| 2355 | n/a | { |
|---|
| 2356 | n/a | PyObject *_res = NULL; |
|---|
| 2357 | n/a | TimeValue _rv; |
|---|
| 2358 | n/a | #ifndef GetMediaDuration |
|---|
| 2359 | n/a | PyMac_PRECHECK(GetMediaDuration); |
|---|
| 2360 | n/a | #endif |
|---|
| 2361 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2362 | n/a | return NULL; |
|---|
| 2363 | n/a | _rv = GetMediaDuration(_self->ob_itself); |
|---|
| 2364 | n/a | _res = Py_BuildValue("l", |
|---|
| 2365 | n/a | _rv); |
|---|
| 2366 | n/a | return _res; |
|---|
| 2367 | n/a | } |
|---|
| 2368 | n/a | |
|---|
| 2369 | n/a | static PyObject *MediaObj_GetMediaLanguage(MediaObject *_self, PyObject *_args) |
|---|
| 2370 | n/a | { |
|---|
| 2371 | n/a | PyObject *_res = NULL; |
|---|
| 2372 | n/a | short _rv; |
|---|
| 2373 | n/a | #ifndef GetMediaLanguage |
|---|
| 2374 | n/a | PyMac_PRECHECK(GetMediaLanguage); |
|---|
| 2375 | n/a | #endif |
|---|
| 2376 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2377 | n/a | return NULL; |
|---|
| 2378 | n/a | _rv = GetMediaLanguage(_self->ob_itself); |
|---|
| 2379 | n/a | _res = Py_BuildValue("h", |
|---|
| 2380 | n/a | _rv); |
|---|
| 2381 | n/a | return _res; |
|---|
| 2382 | n/a | } |
|---|
| 2383 | n/a | |
|---|
| 2384 | n/a | static PyObject *MediaObj_SetMediaLanguage(MediaObject *_self, PyObject *_args) |
|---|
| 2385 | n/a | { |
|---|
| 2386 | n/a | PyObject *_res = NULL; |
|---|
| 2387 | n/a | short language; |
|---|
| 2388 | n/a | #ifndef SetMediaLanguage |
|---|
| 2389 | n/a | PyMac_PRECHECK(SetMediaLanguage); |
|---|
| 2390 | n/a | #endif |
|---|
| 2391 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 2392 | n/a | &language)) |
|---|
| 2393 | n/a | return NULL; |
|---|
| 2394 | n/a | SetMediaLanguage(_self->ob_itself, |
|---|
| 2395 | n/a | language); |
|---|
| 2396 | n/a | Py_INCREF(Py_None); |
|---|
| 2397 | n/a | _res = Py_None; |
|---|
| 2398 | n/a | return _res; |
|---|
| 2399 | n/a | } |
|---|
| 2400 | n/a | |
|---|
| 2401 | n/a | static PyObject *MediaObj_GetMediaQuality(MediaObject *_self, PyObject *_args) |
|---|
| 2402 | n/a | { |
|---|
| 2403 | n/a | PyObject *_res = NULL; |
|---|
| 2404 | n/a | short _rv; |
|---|
| 2405 | n/a | #ifndef GetMediaQuality |
|---|
| 2406 | n/a | PyMac_PRECHECK(GetMediaQuality); |
|---|
| 2407 | n/a | #endif |
|---|
| 2408 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2409 | n/a | return NULL; |
|---|
| 2410 | n/a | _rv = GetMediaQuality(_self->ob_itself); |
|---|
| 2411 | n/a | _res = Py_BuildValue("h", |
|---|
| 2412 | n/a | _rv); |
|---|
| 2413 | n/a | return _res; |
|---|
| 2414 | n/a | } |
|---|
| 2415 | n/a | |
|---|
| 2416 | n/a | static PyObject *MediaObj_SetMediaQuality(MediaObject *_self, PyObject *_args) |
|---|
| 2417 | n/a | { |
|---|
| 2418 | n/a | PyObject *_res = NULL; |
|---|
| 2419 | n/a | short quality; |
|---|
| 2420 | n/a | #ifndef SetMediaQuality |
|---|
| 2421 | n/a | PyMac_PRECHECK(SetMediaQuality); |
|---|
| 2422 | n/a | #endif |
|---|
| 2423 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 2424 | n/a | &quality)) |
|---|
| 2425 | n/a | return NULL; |
|---|
| 2426 | n/a | SetMediaQuality(_self->ob_itself, |
|---|
| 2427 | n/a | quality); |
|---|
| 2428 | n/a | Py_INCREF(Py_None); |
|---|
| 2429 | n/a | _res = Py_None; |
|---|
| 2430 | n/a | return _res; |
|---|
| 2431 | n/a | } |
|---|
| 2432 | n/a | |
|---|
| 2433 | n/a | static PyObject *MediaObj_GetMediaHandlerDescription(MediaObject *_self, PyObject *_args) |
|---|
| 2434 | n/a | { |
|---|
| 2435 | n/a | PyObject *_res = NULL; |
|---|
| 2436 | n/a | OSType mediaType; |
|---|
| 2437 | n/a | Str255 creatorName; |
|---|
| 2438 | n/a | OSType creatorManufacturer; |
|---|
| 2439 | n/a | #ifndef GetMediaHandlerDescription |
|---|
| 2440 | n/a | PyMac_PRECHECK(GetMediaHandlerDescription); |
|---|
| 2441 | n/a | #endif |
|---|
| 2442 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 2443 | n/a | PyMac_GetStr255, creatorName)) |
|---|
| 2444 | n/a | return NULL; |
|---|
| 2445 | n/a | GetMediaHandlerDescription(_self->ob_itself, |
|---|
| 2446 | n/a | &mediaType, |
|---|
| 2447 | n/a | creatorName, |
|---|
| 2448 | n/a | &creatorManufacturer); |
|---|
| 2449 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 2450 | n/a | PyMac_BuildOSType, mediaType, |
|---|
| 2451 | n/a | PyMac_BuildOSType, creatorManufacturer); |
|---|
| 2452 | n/a | return _res; |
|---|
| 2453 | n/a | } |
|---|
| 2454 | n/a | |
|---|
| 2455 | n/a | static PyObject *MediaObj_GetMediaUserData(MediaObject *_self, PyObject *_args) |
|---|
| 2456 | n/a | { |
|---|
| 2457 | n/a | PyObject *_res = NULL; |
|---|
| 2458 | n/a | UserData _rv; |
|---|
| 2459 | n/a | #ifndef GetMediaUserData |
|---|
| 2460 | n/a | PyMac_PRECHECK(GetMediaUserData); |
|---|
| 2461 | n/a | #endif |
|---|
| 2462 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2463 | n/a | return NULL; |
|---|
| 2464 | n/a | _rv = GetMediaUserData(_self->ob_itself); |
|---|
| 2465 | n/a | _res = Py_BuildValue("O&", |
|---|
| 2466 | n/a | UserDataObj_New, _rv); |
|---|
| 2467 | n/a | return _res; |
|---|
| 2468 | n/a | } |
|---|
| 2469 | n/a | |
|---|
| 2470 | n/a | static PyObject *MediaObj_GetMediaHandler(MediaObject *_self, PyObject *_args) |
|---|
| 2471 | n/a | { |
|---|
| 2472 | n/a | PyObject *_res = NULL; |
|---|
| 2473 | n/a | MediaHandler _rv; |
|---|
| 2474 | n/a | #ifndef GetMediaHandler |
|---|
| 2475 | n/a | PyMac_PRECHECK(GetMediaHandler); |
|---|
| 2476 | n/a | #endif |
|---|
| 2477 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2478 | n/a | return NULL; |
|---|
| 2479 | n/a | _rv = GetMediaHandler(_self->ob_itself); |
|---|
| 2480 | n/a | _res = Py_BuildValue("O&", |
|---|
| 2481 | n/a | CmpInstObj_New, _rv); |
|---|
| 2482 | n/a | return _res; |
|---|
| 2483 | n/a | } |
|---|
| 2484 | n/a | |
|---|
| 2485 | n/a | static PyObject *MediaObj_SetMediaHandler(MediaObject *_self, PyObject *_args) |
|---|
| 2486 | n/a | { |
|---|
| 2487 | n/a | PyObject *_res = NULL; |
|---|
| 2488 | n/a | OSErr _err; |
|---|
| 2489 | n/a | MediaHandlerComponent mH; |
|---|
| 2490 | n/a | #ifndef SetMediaHandler |
|---|
| 2491 | n/a | PyMac_PRECHECK(SetMediaHandler); |
|---|
| 2492 | n/a | #endif |
|---|
| 2493 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 2494 | n/a | CmpObj_Convert, &mH)) |
|---|
| 2495 | n/a | return NULL; |
|---|
| 2496 | n/a | _err = SetMediaHandler(_self->ob_itself, |
|---|
| 2497 | n/a | mH); |
|---|
| 2498 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2499 | n/a | Py_INCREF(Py_None); |
|---|
| 2500 | n/a | _res = Py_None; |
|---|
| 2501 | n/a | return _res; |
|---|
| 2502 | n/a | } |
|---|
| 2503 | n/a | |
|---|
| 2504 | n/a | static PyObject *MediaObj_BeginMediaEdits(MediaObject *_self, PyObject *_args) |
|---|
| 2505 | n/a | { |
|---|
| 2506 | n/a | PyObject *_res = NULL; |
|---|
| 2507 | n/a | OSErr _err; |
|---|
| 2508 | n/a | #ifndef BeginMediaEdits |
|---|
| 2509 | n/a | PyMac_PRECHECK(BeginMediaEdits); |
|---|
| 2510 | n/a | #endif |
|---|
| 2511 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2512 | n/a | return NULL; |
|---|
| 2513 | n/a | _err = BeginMediaEdits(_self->ob_itself); |
|---|
| 2514 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2515 | n/a | Py_INCREF(Py_None); |
|---|
| 2516 | n/a | _res = Py_None; |
|---|
| 2517 | n/a | return _res; |
|---|
| 2518 | n/a | } |
|---|
| 2519 | n/a | |
|---|
| 2520 | n/a | static PyObject *MediaObj_EndMediaEdits(MediaObject *_self, PyObject *_args) |
|---|
| 2521 | n/a | { |
|---|
| 2522 | n/a | PyObject *_res = NULL; |
|---|
| 2523 | n/a | OSErr _err; |
|---|
| 2524 | n/a | #ifndef EndMediaEdits |
|---|
| 2525 | n/a | PyMac_PRECHECK(EndMediaEdits); |
|---|
| 2526 | n/a | #endif |
|---|
| 2527 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2528 | n/a | return NULL; |
|---|
| 2529 | n/a | _err = EndMediaEdits(_self->ob_itself); |
|---|
| 2530 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2531 | n/a | Py_INCREF(Py_None); |
|---|
| 2532 | n/a | _res = Py_None; |
|---|
| 2533 | n/a | return _res; |
|---|
| 2534 | n/a | } |
|---|
| 2535 | n/a | |
|---|
| 2536 | n/a | static PyObject *MediaObj_SetMediaDefaultDataRefIndex(MediaObject *_self, PyObject *_args) |
|---|
| 2537 | n/a | { |
|---|
| 2538 | n/a | PyObject *_res = NULL; |
|---|
| 2539 | n/a | OSErr _err; |
|---|
| 2540 | n/a | short index; |
|---|
| 2541 | n/a | #ifndef SetMediaDefaultDataRefIndex |
|---|
| 2542 | n/a | PyMac_PRECHECK(SetMediaDefaultDataRefIndex); |
|---|
| 2543 | n/a | #endif |
|---|
| 2544 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 2545 | n/a | &index)) |
|---|
| 2546 | n/a | return NULL; |
|---|
| 2547 | n/a | _err = SetMediaDefaultDataRefIndex(_self->ob_itself, |
|---|
| 2548 | n/a | index); |
|---|
| 2549 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2550 | n/a | Py_INCREF(Py_None); |
|---|
| 2551 | n/a | _res = Py_None; |
|---|
| 2552 | n/a | return _res; |
|---|
| 2553 | n/a | } |
|---|
| 2554 | n/a | |
|---|
| 2555 | n/a | static PyObject *MediaObj_GetMediaDataHandlerDescription(MediaObject *_self, PyObject *_args) |
|---|
| 2556 | n/a | { |
|---|
| 2557 | n/a | PyObject *_res = NULL; |
|---|
| 2558 | n/a | short index; |
|---|
| 2559 | n/a | OSType dhType; |
|---|
| 2560 | n/a | Str255 creatorName; |
|---|
| 2561 | n/a | OSType creatorManufacturer; |
|---|
| 2562 | n/a | #ifndef GetMediaDataHandlerDescription |
|---|
| 2563 | n/a | PyMac_PRECHECK(GetMediaDataHandlerDescription); |
|---|
| 2564 | n/a | #endif |
|---|
| 2565 | n/a | if (!PyArg_ParseTuple(_args, "hO&", |
|---|
| 2566 | n/a | &index, |
|---|
| 2567 | n/a | PyMac_GetStr255, creatorName)) |
|---|
| 2568 | n/a | return NULL; |
|---|
| 2569 | n/a | GetMediaDataHandlerDescription(_self->ob_itself, |
|---|
| 2570 | n/a | index, |
|---|
| 2571 | n/a | &dhType, |
|---|
| 2572 | n/a | creatorName, |
|---|
| 2573 | n/a | &creatorManufacturer); |
|---|
| 2574 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 2575 | n/a | PyMac_BuildOSType, dhType, |
|---|
| 2576 | n/a | PyMac_BuildOSType, creatorManufacturer); |
|---|
| 2577 | n/a | return _res; |
|---|
| 2578 | n/a | } |
|---|
| 2579 | n/a | |
|---|
| 2580 | n/a | static PyObject *MediaObj_GetMediaDataHandler(MediaObject *_self, PyObject *_args) |
|---|
| 2581 | n/a | { |
|---|
| 2582 | n/a | PyObject *_res = NULL; |
|---|
| 2583 | n/a | DataHandler _rv; |
|---|
| 2584 | n/a | short index; |
|---|
| 2585 | n/a | #ifndef GetMediaDataHandler |
|---|
| 2586 | n/a | PyMac_PRECHECK(GetMediaDataHandler); |
|---|
| 2587 | n/a | #endif |
|---|
| 2588 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 2589 | n/a | &index)) |
|---|
| 2590 | n/a | return NULL; |
|---|
| 2591 | n/a | _rv = GetMediaDataHandler(_self->ob_itself, |
|---|
| 2592 | n/a | index); |
|---|
| 2593 | n/a | _res = Py_BuildValue("O&", |
|---|
| 2594 | n/a | CmpInstObj_New, _rv); |
|---|
| 2595 | n/a | return _res; |
|---|
| 2596 | n/a | } |
|---|
| 2597 | n/a | |
|---|
| 2598 | n/a | static PyObject *MediaObj_SetMediaDataHandler(MediaObject *_self, PyObject *_args) |
|---|
| 2599 | n/a | { |
|---|
| 2600 | n/a | PyObject *_res = NULL; |
|---|
| 2601 | n/a | OSErr _err; |
|---|
| 2602 | n/a | short index; |
|---|
| 2603 | n/a | DataHandlerComponent dataHandler; |
|---|
| 2604 | n/a | #ifndef SetMediaDataHandler |
|---|
| 2605 | n/a | PyMac_PRECHECK(SetMediaDataHandler); |
|---|
| 2606 | n/a | #endif |
|---|
| 2607 | n/a | if (!PyArg_ParseTuple(_args, "hO&", |
|---|
| 2608 | n/a | &index, |
|---|
| 2609 | n/a | CmpObj_Convert, &dataHandler)) |
|---|
| 2610 | n/a | return NULL; |
|---|
| 2611 | n/a | _err = SetMediaDataHandler(_self->ob_itself, |
|---|
| 2612 | n/a | index, |
|---|
| 2613 | n/a | dataHandler); |
|---|
| 2614 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2615 | n/a | Py_INCREF(Py_None); |
|---|
| 2616 | n/a | _res = Py_None; |
|---|
| 2617 | n/a | return _res; |
|---|
| 2618 | n/a | } |
|---|
| 2619 | n/a | |
|---|
| 2620 | n/a | static PyObject *MediaObj_GetMediaSampleDescriptionCount(MediaObject *_self, PyObject *_args) |
|---|
| 2621 | n/a | { |
|---|
| 2622 | n/a | PyObject *_res = NULL; |
|---|
| 2623 | n/a | long _rv; |
|---|
| 2624 | n/a | #ifndef GetMediaSampleDescriptionCount |
|---|
| 2625 | n/a | PyMac_PRECHECK(GetMediaSampleDescriptionCount); |
|---|
| 2626 | n/a | #endif |
|---|
| 2627 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2628 | n/a | return NULL; |
|---|
| 2629 | n/a | _rv = GetMediaSampleDescriptionCount(_self->ob_itself); |
|---|
| 2630 | n/a | _res = Py_BuildValue("l", |
|---|
| 2631 | n/a | _rv); |
|---|
| 2632 | n/a | return _res; |
|---|
| 2633 | n/a | } |
|---|
| 2634 | n/a | |
|---|
| 2635 | n/a | static PyObject *MediaObj_GetMediaSampleDescription(MediaObject *_self, PyObject *_args) |
|---|
| 2636 | n/a | { |
|---|
| 2637 | n/a | PyObject *_res = NULL; |
|---|
| 2638 | n/a | long index; |
|---|
| 2639 | n/a | SampleDescriptionHandle descH; |
|---|
| 2640 | n/a | #ifndef GetMediaSampleDescription |
|---|
| 2641 | n/a | PyMac_PRECHECK(GetMediaSampleDescription); |
|---|
| 2642 | n/a | #endif |
|---|
| 2643 | n/a | if (!PyArg_ParseTuple(_args, "lO&", |
|---|
| 2644 | n/a | &index, |
|---|
| 2645 | n/a | ResObj_Convert, &descH)) |
|---|
| 2646 | n/a | return NULL; |
|---|
| 2647 | n/a | GetMediaSampleDescription(_self->ob_itself, |
|---|
| 2648 | n/a | index, |
|---|
| 2649 | n/a | descH); |
|---|
| 2650 | n/a | Py_INCREF(Py_None); |
|---|
| 2651 | n/a | _res = Py_None; |
|---|
| 2652 | n/a | return _res; |
|---|
| 2653 | n/a | } |
|---|
| 2654 | n/a | |
|---|
| 2655 | n/a | static PyObject *MediaObj_SetMediaSampleDescription(MediaObject *_self, PyObject *_args) |
|---|
| 2656 | n/a | { |
|---|
| 2657 | n/a | PyObject *_res = NULL; |
|---|
| 2658 | n/a | OSErr _err; |
|---|
| 2659 | n/a | long index; |
|---|
| 2660 | n/a | SampleDescriptionHandle descH; |
|---|
| 2661 | n/a | #ifndef SetMediaSampleDescription |
|---|
| 2662 | n/a | PyMac_PRECHECK(SetMediaSampleDescription); |
|---|
| 2663 | n/a | #endif |
|---|
| 2664 | n/a | if (!PyArg_ParseTuple(_args, "lO&", |
|---|
| 2665 | n/a | &index, |
|---|
| 2666 | n/a | ResObj_Convert, &descH)) |
|---|
| 2667 | n/a | return NULL; |
|---|
| 2668 | n/a | _err = SetMediaSampleDescription(_self->ob_itself, |
|---|
| 2669 | n/a | index, |
|---|
| 2670 | n/a | descH); |
|---|
| 2671 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2672 | n/a | Py_INCREF(Py_None); |
|---|
| 2673 | n/a | _res = Py_None; |
|---|
| 2674 | n/a | return _res; |
|---|
| 2675 | n/a | } |
|---|
| 2676 | n/a | |
|---|
| 2677 | n/a | static PyObject *MediaObj_GetMediaSampleCount(MediaObject *_self, PyObject *_args) |
|---|
| 2678 | n/a | { |
|---|
| 2679 | n/a | PyObject *_res = NULL; |
|---|
| 2680 | n/a | long _rv; |
|---|
| 2681 | n/a | #ifndef GetMediaSampleCount |
|---|
| 2682 | n/a | PyMac_PRECHECK(GetMediaSampleCount); |
|---|
| 2683 | n/a | #endif |
|---|
| 2684 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2685 | n/a | return NULL; |
|---|
| 2686 | n/a | _rv = GetMediaSampleCount(_self->ob_itself); |
|---|
| 2687 | n/a | _res = Py_BuildValue("l", |
|---|
| 2688 | n/a | _rv); |
|---|
| 2689 | n/a | return _res; |
|---|
| 2690 | n/a | } |
|---|
| 2691 | n/a | |
|---|
| 2692 | n/a | static PyObject *MediaObj_GetMediaSyncSampleCount(MediaObject *_self, PyObject *_args) |
|---|
| 2693 | n/a | { |
|---|
| 2694 | n/a | PyObject *_res = NULL; |
|---|
| 2695 | n/a | long _rv; |
|---|
| 2696 | n/a | #ifndef GetMediaSyncSampleCount |
|---|
| 2697 | n/a | PyMac_PRECHECK(GetMediaSyncSampleCount); |
|---|
| 2698 | n/a | #endif |
|---|
| 2699 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2700 | n/a | return NULL; |
|---|
| 2701 | n/a | _rv = GetMediaSyncSampleCount(_self->ob_itself); |
|---|
| 2702 | n/a | _res = Py_BuildValue("l", |
|---|
| 2703 | n/a | _rv); |
|---|
| 2704 | n/a | return _res; |
|---|
| 2705 | n/a | } |
|---|
| 2706 | n/a | |
|---|
| 2707 | n/a | static PyObject *MediaObj_SampleNumToMediaTime(MediaObject *_self, PyObject *_args) |
|---|
| 2708 | n/a | { |
|---|
| 2709 | n/a | PyObject *_res = NULL; |
|---|
| 2710 | n/a | long logicalSampleNum; |
|---|
| 2711 | n/a | TimeValue sampleTime; |
|---|
| 2712 | n/a | TimeValue sampleDuration; |
|---|
| 2713 | n/a | #ifndef SampleNumToMediaTime |
|---|
| 2714 | n/a | PyMac_PRECHECK(SampleNumToMediaTime); |
|---|
| 2715 | n/a | #endif |
|---|
| 2716 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 2717 | n/a | &logicalSampleNum)) |
|---|
| 2718 | n/a | return NULL; |
|---|
| 2719 | n/a | SampleNumToMediaTime(_self->ob_itself, |
|---|
| 2720 | n/a | logicalSampleNum, |
|---|
| 2721 | n/a | &sampleTime, |
|---|
| 2722 | n/a | &sampleDuration); |
|---|
| 2723 | n/a | _res = Py_BuildValue("ll", |
|---|
| 2724 | n/a | sampleTime, |
|---|
| 2725 | n/a | sampleDuration); |
|---|
| 2726 | n/a | return _res; |
|---|
| 2727 | n/a | } |
|---|
| 2728 | n/a | |
|---|
| 2729 | n/a | static PyObject *MediaObj_MediaTimeToSampleNum(MediaObject *_self, PyObject *_args) |
|---|
| 2730 | n/a | { |
|---|
| 2731 | n/a | PyObject *_res = NULL; |
|---|
| 2732 | n/a | TimeValue time; |
|---|
| 2733 | n/a | long sampleNum; |
|---|
| 2734 | n/a | TimeValue sampleTime; |
|---|
| 2735 | n/a | TimeValue sampleDuration; |
|---|
| 2736 | n/a | #ifndef MediaTimeToSampleNum |
|---|
| 2737 | n/a | PyMac_PRECHECK(MediaTimeToSampleNum); |
|---|
| 2738 | n/a | #endif |
|---|
| 2739 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 2740 | n/a | &time)) |
|---|
| 2741 | n/a | return NULL; |
|---|
| 2742 | n/a | MediaTimeToSampleNum(_self->ob_itself, |
|---|
| 2743 | n/a | time, |
|---|
| 2744 | n/a | &sampleNum, |
|---|
| 2745 | n/a | &sampleTime, |
|---|
| 2746 | n/a | &sampleDuration); |
|---|
| 2747 | n/a | _res = Py_BuildValue("lll", |
|---|
| 2748 | n/a | sampleNum, |
|---|
| 2749 | n/a | sampleTime, |
|---|
| 2750 | n/a | sampleDuration); |
|---|
| 2751 | n/a | return _res; |
|---|
| 2752 | n/a | } |
|---|
| 2753 | n/a | |
|---|
| 2754 | n/a | static PyObject *MediaObj_AddMediaSample(MediaObject *_self, PyObject *_args) |
|---|
| 2755 | n/a | { |
|---|
| 2756 | n/a | PyObject *_res = NULL; |
|---|
| 2757 | n/a | OSErr _err; |
|---|
| 2758 | n/a | Handle dataIn; |
|---|
| 2759 | n/a | long inOffset; |
|---|
| 2760 | n/a | unsigned long size; |
|---|
| 2761 | n/a | TimeValue durationPerSample; |
|---|
| 2762 | n/a | SampleDescriptionHandle sampleDescriptionH; |
|---|
| 2763 | n/a | long numberOfSamples; |
|---|
| 2764 | n/a | short sampleFlags; |
|---|
| 2765 | n/a | TimeValue sampleTime; |
|---|
| 2766 | n/a | #ifndef AddMediaSample |
|---|
| 2767 | n/a | PyMac_PRECHECK(AddMediaSample); |
|---|
| 2768 | n/a | #endif |
|---|
| 2769 | n/a | if (!PyArg_ParseTuple(_args, "O&lllO&lh", |
|---|
| 2770 | n/a | ResObj_Convert, &dataIn, |
|---|
| 2771 | n/a | &inOffset, |
|---|
| 2772 | n/a | &size, |
|---|
| 2773 | n/a | &durationPerSample, |
|---|
| 2774 | n/a | ResObj_Convert, &sampleDescriptionH, |
|---|
| 2775 | n/a | &numberOfSamples, |
|---|
| 2776 | n/a | &sampleFlags)) |
|---|
| 2777 | n/a | return NULL; |
|---|
| 2778 | n/a | _err = AddMediaSample(_self->ob_itself, |
|---|
| 2779 | n/a | dataIn, |
|---|
| 2780 | n/a | inOffset, |
|---|
| 2781 | n/a | size, |
|---|
| 2782 | n/a | durationPerSample, |
|---|
| 2783 | n/a | sampleDescriptionH, |
|---|
| 2784 | n/a | numberOfSamples, |
|---|
| 2785 | n/a | sampleFlags, |
|---|
| 2786 | n/a | &sampleTime); |
|---|
| 2787 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2788 | n/a | _res = Py_BuildValue("l", |
|---|
| 2789 | n/a | sampleTime); |
|---|
| 2790 | n/a | return _res; |
|---|
| 2791 | n/a | } |
|---|
| 2792 | n/a | |
|---|
| 2793 | n/a | static PyObject *MediaObj_AddMediaSampleReference(MediaObject *_self, PyObject *_args) |
|---|
| 2794 | n/a | { |
|---|
| 2795 | n/a | PyObject *_res = NULL; |
|---|
| 2796 | n/a | OSErr _err; |
|---|
| 2797 | n/a | long dataOffset; |
|---|
| 2798 | n/a | unsigned long size; |
|---|
| 2799 | n/a | TimeValue durationPerSample; |
|---|
| 2800 | n/a | SampleDescriptionHandle sampleDescriptionH; |
|---|
| 2801 | n/a | long numberOfSamples; |
|---|
| 2802 | n/a | short sampleFlags; |
|---|
| 2803 | n/a | TimeValue sampleTime; |
|---|
| 2804 | n/a | #ifndef AddMediaSampleReference |
|---|
| 2805 | n/a | PyMac_PRECHECK(AddMediaSampleReference); |
|---|
| 2806 | n/a | #endif |
|---|
| 2807 | n/a | if (!PyArg_ParseTuple(_args, "lllO&lh", |
|---|
| 2808 | n/a | &dataOffset, |
|---|
| 2809 | n/a | &size, |
|---|
| 2810 | n/a | &durationPerSample, |
|---|
| 2811 | n/a | ResObj_Convert, &sampleDescriptionH, |
|---|
| 2812 | n/a | &numberOfSamples, |
|---|
| 2813 | n/a | &sampleFlags)) |
|---|
| 2814 | n/a | return NULL; |
|---|
| 2815 | n/a | _err = AddMediaSampleReference(_self->ob_itself, |
|---|
| 2816 | n/a | dataOffset, |
|---|
| 2817 | n/a | size, |
|---|
| 2818 | n/a | durationPerSample, |
|---|
| 2819 | n/a | sampleDescriptionH, |
|---|
| 2820 | n/a | numberOfSamples, |
|---|
| 2821 | n/a | sampleFlags, |
|---|
| 2822 | n/a | &sampleTime); |
|---|
| 2823 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2824 | n/a | _res = Py_BuildValue("l", |
|---|
| 2825 | n/a | sampleTime); |
|---|
| 2826 | n/a | return _res; |
|---|
| 2827 | n/a | } |
|---|
| 2828 | n/a | |
|---|
| 2829 | n/a | static PyObject *MediaObj_GetMediaSample(MediaObject *_self, PyObject *_args) |
|---|
| 2830 | n/a | { |
|---|
| 2831 | n/a | PyObject *_res = NULL; |
|---|
| 2832 | n/a | OSErr _err; |
|---|
| 2833 | n/a | Handle dataOut; |
|---|
| 2834 | n/a | long maxSizeToGrow; |
|---|
| 2835 | n/a | long size; |
|---|
| 2836 | n/a | TimeValue time; |
|---|
| 2837 | n/a | TimeValue sampleTime; |
|---|
| 2838 | n/a | TimeValue durationPerSample; |
|---|
| 2839 | n/a | SampleDescriptionHandle sampleDescriptionH; |
|---|
| 2840 | n/a | long sampleDescriptionIndex; |
|---|
| 2841 | n/a | long maxNumberOfSamples; |
|---|
| 2842 | n/a | long numberOfSamples; |
|---|
| 2843 | n/a | short sampleFlags; |
|---|
| 2844 | n/a | #ifndef GetMediaSample |
|---|
| 2845 | n/a | PyMac_PRECHECK(GetMediaSample); |
|---|
| 2846 | n/a | #endif |
|---|
| 2847 | n/a | if (!PyArg_ParseTuple(_args, "O&llO&l", |
|---|
| 2848 | n/a | ResObj_Convert, &dataOut, |
|---|
| 2849 | n/a | &maxSizeToGrow, |
|---|
| 2850 | n/a | &time, |
|---|
| 2851 | n/a | ResObj_Convert, &sampleDescriptionH, |
|---|
| 2852 | n/a | &maxNumberOfSamples)) |
|---|
| 2853 | n/a | return NULL; |
|---|
| 2854 | n/a | _err = GetMediaSample(_self->ob_itself, |
|---|
| 2855 | n/a | dataOut, |
|---|
| 2856 | n/a | maxSizeToGrow, |
|---|
| 2857 | n/a | &size, |
|---|
| 2858 | n/a | time, |
|---|
| 2859 | n/a | &sampleTime, |
|---|
| 2860 | n/a | &durationPerSample, |
|---|
| 2861 | n/a | sampleDescriptionH, |
|---|
| 2862 | n/a | &sampleDescriptionIndex, |
|---|
| 2863 | n/a | maxNumberOfSamples, |
|---|
| 2864 | n/a | &numberOfSamples, |
|---|
| 2865 | n/a | &sampleFlags); |
|---|
| 2866 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2867 | n/a | _res = Py_BuildValue("lllllh", |
|---|
| 2868 | n/a | size, |
|---|
| 2869 | n/a | sampleTime, |
|---|
| 2870 | n/a | durationPerSample, |
|---|
| 2871 | n/a | sampleDescriptionIndex, |
|---|
| 2872 | n/a | numberOfSamples, |
|---|
| 2873 | n/a | sampleFlags); |
|---|
| 2874 | n/a | return _res; |
|---|
| 2875 | n/a | } |
|---|
| 2876 | n/a | |
|---|
| 2877 | n/a | static PyObject *MediaObj_GetMediaSampleReference(MediaObject *_self, PyObject *_args) |
|---|
| 2878 | n/a | { |
|---|
| 2879 | n/a | PyObject *_res = NULL; |
|---|
| 2880 | n/a | OSErr _err; |
|---|
| 2881 | n/a | long dataOffset; |
|---|
| 2882 | n/a | long size; |
|---|
| 2883 | n/a | TimeValue time; |
|---|
| 2884 | n/a | TimeValue sampleTime; |
|---|
| 2885 | n/a | TimeValue durationPerSample; |
|---|
| 2886 | n/a | SampleDescriptionHandle sampleDescriptionH; |
|---|
| 2887 | n/a | long sampleDescriptionIndex; |
|---|
| 2888 | n/a | long maxNumberOfSamples; |
|---|
| 2889 | n/a | long numberOfSamples; |
|---|
| 2890 | n/a | short sampleFlags; |
|---|
| 2891 | n/a | #ifndef GetMediaSampleReference |
|---|
| 2892 | n/a | PyMac_PRECHECK(GetMediaSampleReference); |
|---|
| 2893 | n/a | #endif |
|---|
| 2894 | n/a | if (!PyArg_ParseTuple(_args, "lO&l", |
|---|
| 2895 | n/a | &time, |
|---|
| 2896 | n/a | ResObj_Convert, &sampleDescriptionH, |
|---|
| 2897 | n/a | &maxNumberOfSamples)) |
|---|
| 2898 | n/a | return NULL; |
|---|
| 2899 | n/a | _err = GetMediaSampleReference(_self->ob_itself, |
|---|
| 2900 | n/a | &dataOffset, |
|---|
| 2901 | n/a | &size, |
|---|
| 2902 | n/a | time, |
|---|
| 2903 | n/a | &sampleTime, |
|---|
| 2904 | n/a | &durationPerSample, |
|---|
| 2905 | n/a | sampleDescriptionH, |
|---|
| 2906 | n/a | &sampleDescriptionIndex, |
|---|
| 2907 | n/a | maxNumberOfSamples, |
|---|
| 2908 | n/a | &numberOfSamples, |
|---|
| 2909 | n/a | &sampleFlags); |
|---|
| 2910 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2911 | n/a | _res = Py_BuildValue("llllllh", |
|---|
| 2912 | n/a | dataOffset, |
|---|
| 2913 | n/a | size, |
|---|
| 2914 | n/a | sampleTime, |
|---|
| 2915 | n/a | durationPerSample, |
|---|
| 2916 | n/a | sampleDescriptionIndex, |
|---|
| 2917 | n/a | numberOfSamples, |
|---|
| 2918 | n/a | sampleFlags); |
|---|
| 2919 | n/a | return _res; |
|---|
| 2920 | n/a | } |
|---|
| 2921 | n/a | |
|---|
| 2922 | n/a | static PyObject *MediaObj_SetMediaPreferredChunkSize(MediaObject *_self, PyObject *_args) |
|---|
| 2923 | n/a | { |
|---|
| 2924 | n/a | PyObject *_res = NULL; |
|---|
| 2925 | n/a | OSErr _err; |
|---|
| 2926 | n/a | long maxChunkSize; |
|---|
| 2927 | n/a | #ifndef SetMediaPreferredChunkSize |
|---|
| 2928 | n/a | PyMac_PRECHECK(SetMediaPreferredChunkSize); |
|---|
| 2929 | n/a | #endif |
|---|
| 2930 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 2931 | n/a | &maxChunkSize)) |
|---|
| 2932 | n/a | return NULL; |
|---|
| 2933 | n/a | _err = SetMediaPreferredChunkSize(_self->ob_itself, |
|---|
| 2934 | n/a | maxChunkSize); |
|---|
| 2935 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2936 | n/a | Py_INCREF(Py_None); |
|---|
| 2937 | n/a | _res = Py_None; |
|---|
| 2938 | n/a | return _res; |
|---|
| 2939 | n/a | } |
|---|
| 2940 | n/a | |
|---|
| 2941 | n/a | static PyObject *MediaObj_GetMediaPreferredChunkSize(MediaObject *_self, PyObject *_args) |
|---|
| 2942 | n/a | { |
|---|
| 2943 | n/a | PyObject *_res = NULL; |
|---|
| 2944 | n/a | OSErr _err; |
|---|
| 2945 | n/a | long maxChunkSize; |
|---|
| 2946 | n/a | #ifndef GetMediaPreferredChunkSize |
|---|
| 2947 | n/a | PyMac_PRECHECK(GetMediaPreferredChunkSize); |
|---|
| 2948 | n/a | #endif |
|---|
| 2949 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 2950 | n/a | return NULL; |
|---|
| 2951 | n/a | _err = GetMediaPreferredChunkSize(_self->ob_itself, |
|---|
| 2952 | n/a | &maxChunkSize); |
|---|
| 2953 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2954 | n/a | _res = Py_BuildValue("l", |
|---|
| 2955 | n/a | maxChunkSize); |
|---|
| 2956 | n/a | return _res; |
|---|
| 2957 | n/a | } |
|---|
| 2958 | n/a | |
|---|
| 2959 | n/a | static PyObject *MediaObj_SetMediaShadowSync(MediaObject *_self, PyObject *_args) |
|---|
| 2960 | n/a | { |
|---|
| 2961 | n/a | PyObject *_res = NULL; |
|---|
| 2962 | n/a | OSErr _err; |
|---|
| 2963 | n/a | long frameDiffSampleNum; |
|---|
| 2964 | n/a | long syncSampleNum; |
|---|
| 2965 | n/a | #ifndef SetMediaShadowSync |
|---|
| 2966 | n/a | PyMac_PRECHECK(SetMediaShadowSync); |
|---|
| 2967 | n/a | #endif |
|---|
| 2968 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 2969 | n/a | &frameDiffSampleNum, |
|---|
| 2970 | n/a | &syncSampleNum)) |
|---|
| 2971 | n/a | return NULL; |
|---|
| 2972 | n/a | _err = SetMediaShadowSync(_self->ob_itself, |
|---|
| 2973 | n/a | frameDiffSampleNum, |
|---|
| 2974 | n/a | syncSampleNum); |
|---|
| 2975 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2976 | n/a | Py_INCREF(Py_None); |
|---|
| 2977 | n/a | _res = Py_None; |
|---|
| 2978 | n/a | return _res; |
|---|
| 2979 | n/a | } |
|---|
| 2980 | n/a | |
|---|
| 2981 | n/a | static PyObject *MediaObj_GetMediaShadowSync(MediaObject *_self, PyObject *_args) |
|---|
| 2982 | n/a | { |
|---|
| 2983 | n/a | PyObject *_res = NULL; |
|---|
| 2984 | n/a | OSErr _err; |
|---|
| 2985 | n/a | long frameDiffSampleNum; |
|---|
| 2986 | n/a | long syncSampleNum; |
|---|
| 2987 | n/a | #ifndef GetMediaShadowSync |
|---|
| 2988 | n/a | PyMac_PRECHECK(GetMediaShadowSync); |
|---|
| 2989 | n/a | #endif |
|---|
| 2990 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 2991 | n/a | &frameDiffSampleNum)) |
|---|
| 2992 | n/a | return NULL; |
|---|
| 2993 | n/a | _err = GetMediaShadowSync(_self->ob_itself, |
|---|
| 2994 | n/a | frameDiffSampleNum, |
|---|
| 2995 | n/a | &syncSampleNum); |
|---|
| 2996 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 2997 | n/a | _res = Py_BuildValue("l", |
|---|
| 2998 | n/a | syncSampleNum); |
|---|
| 2999 | n/a | return _res; |
|---|
| 3000 | n/a | } |
|---|
| 3001 | n/a | |
|---|
| 3002 | n/a | static PyObject *MediaObj_GetMediaDataSize(MediaObject *_self, PyObject *_args) |
|---|
| 3003 | n/a | { |
|---|
| 3004 | n/a | PyObject *_res = NULL; |
|---|
| 3005 | n/a | long _rv; |
|---|
| 3006 | n/a | TimeValue startTime; |
|---|
| 3007 | n/a | TimeValue duration; |
|---|
| 3008 | n/a | #ifndef GetMediaDataSize |
|---|
| 3009 | n/a | PyMac_PRECHECK(GetMediaDataSize); |
|---|
| 3010 | n/a | #endif |
|---|
| 3011 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 3012 | n/a | &startTime, |
|---|
| 3013 | n/a | &duration)) |
|---|
| 3014 | n/a | return NULL; |
|---|
| 3015 | n/a | _rv = GetMediaDataSize(_self->ob_itself, |
|---|
| 3016 | n/a | startTime, |
|---|
| 3017 | n/a | duration); |
|---|
| 3018 | n/a | _res = Py_BuildValue("l", |
|---|
| 3019 | n/a | _rv); |
|---|
| 3020 | n/a | return _res; |
|---|
| 3021 | n/a | } |
|---|
| 3022 | n/a | |
|---|
| 3023 | n/a | static PyObject *MediaObj_GetMediaDataSize64(MediaObject *_self, PyObject *_args) |
|---|
| 3024 | n/a | { |
|---|
| 3025 | n/a | PyObject *_res = NULL; |
|---|
| 3026 | n/a | OSErr _err; |
|---|
| 3027 | n/a | TimeValue startTime; |
|---|
| 3028 | n/a | TimeValue duration; |
|---|
| 3029 | n/a | wide dataSize; |
|---|
| 3030 | n/a | #ifndef GetMediaDataSize64 |
|---|
| 3031 | n/a | PyMac_PRECHECK(GetMediaDataSize64); |
|---|
| 3032 | n/a | #endif |
|---|
| 3033 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 3034 | n/a | &startTime, |
|---|
| 3035 | n/a | &duration)) |
|---|
| 3036 | n/a | return NULL; |
|---|
| 3037 | n/a | _err = GetMediaDataSize64(_self->ob_itself, |
|---|
| 3038 | n/a | startTime, |
|---|
| 3039 | n/a | duration, |
|---|
| 3040 | n/a | &dataSize); |
|---|
| 3041 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3042 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3043 | n/a | PyMac_Buildwide, dataSize); |
|---|
| 3044 | n/a | return _res; |
|---|
| 3045 | n/a | } |
|---|
| 3046 | n/a | |
|---|
| 3047 | n/a | static PyObject *MediaObj_CopyMediaUserData(MediaObject *_self, PyObject *_args) |
|---|
| 3048 | n/a | { |
|---|
| 3049 | n/a | PyObject *_res = NULL; |
|---|
| 3050 | n/a | OSErr _err; |
|---|
| 3051 | n/a | Media dstMedia; |
|---|
| 3052 | n/a | OSType copyRule; |
|---|
| 3053 | n/a | #ifndef CopyMediaUserData |
|---|
| 3054 | n/a | PyMac_PRECHECK(CopyMediaUserData); |
|---|
| 3055 | n/a | #endif |
|---|
| 3056 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 3057 | n/a | MediaObj_Convert, &dstMedia, |
|---|
| 3058 | n/a | PyMac_GetOSType, ©Rule)) |
|---|
| 3059 | n/a | return NULL; |
|---|
| 3060 | n/a | _err = CopyMediaUserData(_self->ob_itself, |
|---|
| 3061 | n/a | dstMedia, |
|---|
| 3062 | n/a | copyRule); |
|---|
| 3063 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3064 | n/a | Py_INCREF(Py_None); |
|---|
| 3065 | n/a | _res = Py_None; |
|---|
| 3066 | n/a | return _res; |
|---|
| 3067 | n/a | } |
|---|
| 3068 | n/a | |
|---|
| 3069 | n/a | static PyObject *MediaObj_GetMediaNextInterestingTime(MediaObject *_self, PyObject *_args) |
|---|
| 3070 | n/a | { |
|---|
| 3071 | n/a | PyObject *_res = NULL; |
|---|
| 3072 | n/a | short interestingTimeFlags; |
|---|
| 3073 | n/a | TimeValue time; |
|---|
| 3074 | n/a | Fixed rate; |
|---|
| 3075 | n/a | TimeValue interestingTime; |
|---|
| 3076 | n/a | TimeValue interestingDuration; |
|---|
| 3077 | n/a | #ifndef GetMediaNextInterestingTime |
|---|
| 3078 | n/a | PyMac_PRECHECK(GetMediaNextInterestingTime); |
|---|
| 3079 | n/a | #endif |
|---|
| 3080 | n/a | if (!PyArg_ParseTuple(_args, "hlO&", |
|---|
| 3081 | n/a | &interestingTimeFlags, |
|---|
| 3082 | n/a | &time, |
|---|
| 3083 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 3084 | n/a | return NULL; |
|---|
| 3085 | n/a | GetMediaNextInterestingTime(_self->ob_itself, |
|---|
| 3086 | n/a | interestingTimeFlags, |
|---|
| 3087 | n/a | time, |
|---|
| 3088 | n/a | rate, |
|---|
| 3089 | n/a | &interestingTime, |
|---|
| 3090 | n/a | &interestingDuration); |
|---|
| 3091 | n/a | _res = Py_BuildValue("ll", |
|---|
| 3092 | n/a | interestingTime, |
|---|
| 3093 | n/a | interestingDuration); |
|---|
| 3094 | n/a | return _res; |
|---|
| 3095 | n/a | } |
|---|
| 3096 | n/a | |
|---|
| 3097 | n/a | static PyObject *MediaObj_GetMediaDataRef(MediaObject *_self, PyObject *_args) |
|---|
| 3098 | n/a | { |
|---|
| 3099 | n/a | PyObject *_res = NULL; |
|---|
| 3100 | n/a | OSErr _err; |
|---|
| 3101 | n/a | short index; |
|---|
| 3102 | n/a | Handle dataRef; |
|---|
| 3103 | n/a | OSType dataRefType; |
|---|
| 3104 | n/a | long dataRefAttributes; |
|---|
| 3105 | n/a | #ifndef GetMediaDataRef |
|---|
| 3106 | n/a | PyMac_PRECHECK(GetMediaDataRef); |
|---|
| 3107 | n/a | #endif |
|---|
| 3108 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 3109 | n/a | &index)) |
|---|
| 3110 | n/a | return NULL; |
|---|
| 3111 | n/a | _err = GetMediaDataRef(_self->ob_itself, |
|---|
| 3112 | n/a | index, |
|---|
| 3113 | n/a | &dataRef, |
|---|
| 3114 | n/a | &dataRefType, |
|---|
| 3115 | n/a | &dataRefAttributes); |
|---|
| 3116 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3117 | n/a | _res = Py_BuildValue("O&O&l", |
|---|
| 3118 | n/a | ResObj_New, dataRef, |
|---|
| 3119 | n/a | PyMac_BuildOSType, dataRefType, |
|---|
| 3120 | n/a | dataRefAttributes); |
|---|
| 3121 | n/a | return _res; |
|---|
| 3122 | n/a | } |
|---|
| 3123 | n/a | |
|---|
| 3124 | n/a | static PyObject *MediaObj_SetMediaDataRef(MediaObject *_self, PyObject *_args) |
|---|
| 3125 | n/a | { |
|---|
| 3126 | n/a | PyObject *_res = NULL; |
|---|
| 3127 | n/a | OSErr _err; |
|---|
| 3128 | n/a | short index; |
|---|
| 3129 | n/a | Handle dataRef; |
|---|
| 3130 | n/a | OSType dataRefType; |
|---|
| 3131 | n/a | #ifndef SetMediaDataRef |
|---|
| 3132 | n/a | PyMac_PRECHECK(SetMediaDataRef); |
|---|
| 3133 | n/a | #endif |
|---|
| 3134 | n/a | if (!PyArg_ParseTuple(_args, "hO&O&", |
|---|
| 3135 | n/a | &index, |
|---|
| 3136 | n/a | ResObj_Convert, &dataRef, |
|---|
| 3137 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 3138 | n/a | return NULL; |
|---|
| 3139 | n/a | _err = SetMediaDataRef(_self->ob_itself, |
|---|
| 3140 | n/a | index, |
|---|
| 3141 | n/a | dataRef, |
|---|
| 3142 | n/a | dataRefType); |
|---|
| 3143 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3144 | n/a | Py_INCREF(Py_None); |
|---|
| 3145 | n/a | _res = Py_None; |
|---|
| 3146 | n/a | return _res; |
|---|
| 3147 | n/a | } |
|---|
| 3148 | n/a | |
|---|
| 3149 | n/a | static PyObject *MediaObj_SetMediaDataRefAttributes(MediaObject *_self, PyObject *_args) |
|---|
| 3150 | n/a | { |
|---|
| 3151 | n/a | PyObject *_res = NULL; |
|---|
| 3152 | n/a | OSErr _err; |
|---|
| 3153 | n/a | short index; |
|---|
| 3154 | n/a | long dataRefAttributes; |
|---|
| 3155 | n/a | #ifndef SetMediaDataRefAttributes |
|---|
| 3156 | n/a | PyMac_PRECHECK(SetMediaDataRefAttributes); |
|---|
| 3157 | n/a | #endif |
|---|
| 3158 | n/a | if (!PyArg_ParseTuple(_args, "hl", |
|---|
| 3159 | n/a | &index, |
|---|
| 3160 | n/a | &dataRefAttributes)) |
|---|
| 3161 | n/a | return NULL; |
|---|
| 3162 | n/a | _err = SetMediaDataRefAttributes(_self->ob_itself, |
|---|
| 3163 | n/a | index, |
|---|
| 3164 | n/a | dataRefAttributes); |
|---|
| 3165 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3166 | n/a | Py_INCREF(Py_None); |
|---|
| 3167 | n/a | _res = Py_None; |
|---|
| 3168 | n/a | return _res; |
|---|
| 3169 | n/a | } |
|---|
| 3170 | n/a | |
|---|
| 3171 | n/a | static PyObject *MediaObj_AddMediaDataRef(MediaObject *_self, PyObject *_args) |
|---|
| 3172 | n/a | { |
|---|
| 3173 | n/a | PyObject *_res = NULL; |
|---|
| 3174 | n/a | OSErr _err; |
|---|
| 3175 | n/a | short index; |
|---|
| 3176 | n/a | Handle dataRef; |
|---|
| 3177 | n/a | OSType dataRefType; |
|---|
| 3178 | n/a | #ifndef AddMediaDataRef |
|---|
| 3179 | n/a | PyMac_PRECHECK(AddMediaDataRef); |
|---|
| 3180 | n/a | #endif |
|---|
| 3181 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 3182 | n/a | ResObj_Convert, &dataRef, |
|---|
| 3183 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 3184 | n/a | return NULL; |
|---|
| 3185 | n/a | _err = AddMediaDataRef(_self->ob_itself, |
|---|
| 3186 | n/a | &index, |
|---|
| 3187 | n/a | dataRef, |
|---|
| 3188 | n/a | dataRefType); |
|---|
| 3189 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3190 | n/a | _res = Py_BuildValue("h", |
|---|
| 3191 | n/a | index); |
|---|
| 3192 | n/a | return _res; |
|---|
| 3193 | n/a | } |
|---|
| 3194 | n/a | |
|---|
| 3195 | n/a | static PyObject *MediaObj_GetMediaDataRefCount(MediaObject *_self, PyObject *_args) |
|---|
| 3196 | n/a | { |
|---|
| 3197 | n/a | PyObject *_res = NULL; |
|---|
| 3198 | n/a | OSErr _err; |
|---|
| 3199 | n/a | short count; |
|---|
| 3200 | n/a | #ifndef GetMediaDataRefCount |
|---|
| 3201 | n/a | PyMac_PRECHECK(GetMediaDataRefCount); |
|---|
| 3202 | n/a | #endif |
|---|
| 3203 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3204 | n/a | return NULL; |
|---|
| 3205 | n/a | _err = GetMediaDataRefCount(_self->ob_itself, |
|---|
| 3206 | n/a | &count); |
|---|
| 3207 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3208 | n/a | _res = Py_BuildValue("h", |
|---|
| 3209 | n/a | count); |
|---|
| 3210 | n/a | return _res; |
|---|
| 3211 | n/a | } |
|---|
| 3212 | n/a | |
|---|
| 3213 | n/a | static PyObject *MediaObj_SetMediaPlayHints(MediaObject *_self, PyObject *_args) |
|---|
| 3214 | n/a | { |
|---|
| 3215 | n/a | PyObject *_res = NULL; |
|---|
| 3216 | n/a | long flags; |
|---|
| 3217 | n/a | long flagsMask; |
|---|
| 3218 | n/a | #ifndef SetMediaPlayHints |
|---|
| 3219 | n/a | PyMac_PRECHECK(SetMediaPlayHints); |
|---|
| 3220 | n/a | #endif |
|---|
| 3221 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 3222 | n/a | &flags, |
|---|
| 3223 | n/a | &flagsMask)) |
|---|
| 3224 | n/a | return NULL; |
|---|
| 3225 | n/a | SetMediaPlayHints(_self->ob_itself, |
|---|
| 3226 | n/a | flags, |
|---|
| 3227 | n/a | flagsMask); |
|---|
| 3228 | n/a | Py_INCREF(Py_None); |
|---|
| 3229 | n/a | _res = Py_None; |
|---|
| 3230 | n/a | return _res; |
|---|
| 3231 | n/a | } |
|---|
| 3232 | n/a | |
|---|
| 3233 | n/a | static PyObject *MediaObj_GetMediaPlayHints(MediaObject *_self, PyObject *_args) |
|---|
| 3234 | n/a | { |
|---|
| 3235 | n/a | PyObject *_res = NULL; |
|---|
| 3236 | n/a | long flags; |
|---|
| 3237 | n/a | #ifndef GetMediaPlayHints |
|---|
| 3238 | n/a | PyMac_PRECHECK(GetMediaPlayHints); |
|---|
| 3239 | n/a | #endif |
|---|
| 3240 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3241 | n/a | return NULL; |
|---|
| 3242 | n/a | GetMediaPlayHints(_self->ob_itself, |
|---|
| 3243 | n/a | &flags); |
|---|
| 3244 | n/a | _res = Py_BuildValue("l", |
|---|
| 3245 | n/a | flags); |
|---|
| 3246 | n/a | return _res; |
|---|
| 3247 | n/a | } |
|---|
| 3248 | n/a | |
|---|
| 3249 | n/a | static PyObject *MediaObj_GetMediaNextInterestingTimeOnly(MediaObject *_self, PyObject *_args) |
|---|
| 3250 | n/a | { |
|---|
| 3251 | n/a | PyObject *_res = NULL; |
|---|
| 3252 | n/a | short interestingTimeFlags; |
|---|
| 3253 | n/a | TimeValue time; |
|---|
| 3254 | n/a | Fixed rate; |
|---|
| 3255 | n/a | TimeValue interestingTime; |
|---|
| 3256 | n/a | #ifndef GetMediaNextInterestingTimeOnly |
|---|
| 3257 | n/a | PyMac_PRECHECK(GetMediaNextInterestingTimeOnly); |
|---|
| 3258 | n/a | #endif |
|---|
| 3259 | n/a | if (!PyArg_ParseTuple(_args, "hlO&", |
|---|
| 3260 | n/a | &interestingTimeFlags, |
|---|
| 3261 | n/a | &time, |
|---|
| 3262 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 3263 | n/a | return NULL; |
|---|
| 3264 | n/a | GetMediaNextInterestingTimeOnly(_self->ob_itself, |
|---|
| 3265 | n/a | interestingTimeFlags, |
|---|
| 3266 | n/a | time, |
|---|
| 3267 | n/a | rate, |
|---|
| 3268 | n/a | &interestingTime); |
|---|
| 3269 | n/a | _res = Py_BuildValue("l", |
|---|
| 3270 | n/a | interestingTime); |
|---|
| 3271 | n/a | return _res; |
|---|
| 3272 | n/a | } |
|---|
| 3273 | n/a | |
|---|
| 3274 | n/a | static PyMethodDef MediaObj_methods[] = { |
|---|
| 3275 | n/a | {"LoadMediaIntoRam", (PyCFunction)MediaObj_LoadMediaIntoRam, 1, |
|---|
| 3276 | n/a | PyDoc_STR("(TimeValue time, TimeValue duration, long flags) -> None")}, |
|---|
| 3277 | n/a | {"GetMediaTrack", (PyCFunction)MediaObj_GetMediaTrack, 1, |
|---|
| 3278 | n/a | PyDoc_STR("() -> (Track _rv)")}, |
|---|
| 3279 | n/a | {"GetMediaCreationTime", (PyCFunction)MediaObj_GetMediaCreationTime, 1, |
|---|
| 3280 | n/a | PyDoc_STR("() -> (unsigned long _rv)")}, |
|---|
| 3281 | n/a | {"GetMediaModificationTime", (PyCFunction)MediaObj_GetMediaModificationTime, 1, |
|---|
| 3282 | n/a | PyDoc_STR("() -> (unsigned long _rv)")}, |
|---|
| 3283 | n/a | {"GetMediaTimeScale", (PyCFunction)MediaObj_GetMediaTimeScale, 1, |
|---|
| 3284 | n/a | PyDoc_STR("() -> (TimeScale _rv)")}, |
|---|
| 3285 | n/a | {"SetMediaTimeScale", (PyCFunction)MediaObj_SetMediaTimeScale, 1, |
|---|
| 3286 | n/a | PyDoc_STR("(TimeScale timeScale) -> None")}, |
|---|
| 3287 | n/a | {"GetMediaDuration", (PyCFunction)MediaObj_GetMediaDuration, 1, |
|---|
| 3288 | n/a | PyDoc_STR("() -> (TimeValue _rv)")}, |
|---|
| 3289 | n/a | {"GetMediaLanguage", (PyCFunction)MediaObj_GetMediaLanguage, 1, |
|---|
| 3290 | n/a | PyDoc_STR("() -> (short _rv)")}, |
|---|
| 3291 | n/a | {"SetMediaLanguage", (PyCFunction)MediaObj_SetMediaLanguage, 1, |
|---|
| 3292 | n/a | PyDoc_STR("(short language) -> None")}, |
|---|
| 3293 | n/a | {"GetMediaQuality", (PyCFunction)MediaObj_GetMediaQuality, 1, |
|---|
| 3294 | n/a | PyDoc_STR("() -> (short _rv)")}, |
|---|
| 3295 | n/a | {"SetMediaQuality", (PyCFunction)MediaObj_SetMediaQuality, 1, |
|---|
| 3296 | n/a | PyDoc_STR("(short quality) -> None")}, |
|---|
| 3297 | n/a | {"GetMediaHandlerDescription", (PyCFunction)MediaObj_GetMediaHandlerDescription, 1, |
|---|
| 3298 | n/a | PyDoc_STR("(Str255 creatorName) -> (OSType mediaType, OSType creatorManufacturer)")}, |
|---|
| 3299 | n/a | {"GetMediaUserData", (PyCFunction)MediaObj_GetMediaUserData, 1, |
|---|
| 3300 | n/a | PyDoc_STR("() -> (UserData _rv)")}, |
|---|
| 3301 | n/a | {"GetMediaHandler", (PyCFunction)MediaObj_GetMediaHandler, 1, |
|---|
| 3302 | n/a | PyDoc_STR("() -> (MediaHandler _rv)")}, |
|---|
| 3303 | n/a | {"SetMediaHandler", (PyCFunction)MediaObj_SetMediaHandler, 1, |
|---|
| 3304 | n/a | PyDoc_STR("(MediaHandlerComponent mH) -> None")}, |
|---|
| 3305 | n/a | {"BeginMediaEdits", (PyCFunction)MediaObj_BeginMediaEdits, 1, |
|---|
| 3306 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 3307 | n/a | {"EndMediaEdits", (PyCFunction)MediaObj_EndMediaEdits, 1, |
|---|
| 3308 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 3309 | n/a | {"SetMediaDefaultDataRefIndex", (PyCFunction)MediaObj_SetMediaDefaultDataRefIndex, 1, |
|---|
| 3310 | n/a | PyDoc_STR("(short index) -> None")}, |
|---|
| 3311 | n/a | {"GetMediaDataHandlerDescription", (PyCFunction)MediaObj_GetMediaDataHandlerDescription, 1, |
|---|
| 3312 | n/a | PyDoc_STR("(short index, Str255 creatorName) -> (OSType dhType, OSType creatorManufacturer)")}, |
|---|
| 3313 | n/a | {"GetMediaDataHandler", (PyCFunction)MediaObj_GetMediaDataHandler, 1, |
|---|
| 3314 | n/a | PyDoc_STR("(short index) -> (DataHandler _rv)")}, |
|---|
| 3315 | n/a | {"SetMediaDataHandler", (PyCFunction)MediaObj_SetMediaDataHandler, 1, |
|---|
| 3316 | n/a | PyDoc_STR("(short index, DataHandlerComponent dataHandler) -> None")}, |
|---|
| 3317 | n/a | {"GetMediaSampleDescriptionCount", (PyCFunction)MediaObj_GetMediaSampleDescriptionCount, 1, |
|---|
| 3318 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 3319 | n/a | {"GetMediaSampleDescription", (PyCFunction)MediaObj_GetMediaSampleDescription, 1, |
|---|
| 3320 | n/a | PyDoc_STR("(long index, SampleDescriptionHandle descH) -> None")}, |
|---|
| 3321 | n/a | {"SetMediaSampleDescription", (PyCFunction)MediaObj_SetMediaSampleDescription, 1, |
|---|
| 3322 | n/a | PyDoc_STR("(long index, SampleDescriptionHandle descH) -> None")}, |
|---|
| 3323 | n/a | {"GetMediaSampleCount", (PyCFunction)MediaObj_GetMediaSampleCount, 1, |
|---|
| 3324 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 3325 | n/a | {"GetMediaSyncSampleCount", (PyCFunction)MediaObj_GetMediaSyncSampleCount, 1, |
|---|
| 3326 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 3327 | n/a | {"SampleNumToMediaTime", (PyCFunction)MediaObj_SampleNumToMediaTime, 1, |
|---|
| 3328 | n/a | PyDoc_STR("(long logicalSampleNum) -> (TimeValue sampleTime, TimeValue sampleDuration)")}, |
|---|
| 3329 | n/a | {"MediaTimeToSampleNum", (PyCFunction)MediaObj_MediaTimeToSampleNum, 1, |
|---|
| 3330 | n/a | PyDoc_STR("(TimeValue time) -> (long sampleNum, TimeValue sampleTime, TimeValue sampleDuration)")}, |
|---|
| 3331 | n/a | {"AddMediaSample", (PyCFunction)MediaObj_AddMediaSample, 1, |
|---|
| 3332 | n/a | PyDoc_STR("(Handle dataIn, long inOffset, unsigned long size, TimeValue durationPerSample, SampleDescriptionHandle sampleDescriptionH, long numberOfSamples, short sampleFlags) -> (TimeValue sampleTime)")}, |
|---|
| 3333 | n/a | {"AddMediaSampleReference", (PyCFunction)MediaObj_AddMediaSampleReference, 1, |
|---|
| 3334 | n/a | PyDoc_STR("(long dataOffset, unsigned long size, TimeValue durationPerSample, SampleDescriptionHandle sampleDescriptionH, long numberOfSamples, short sampleFlags) -> (TimeValue sampleTime)")}, |
|---|
| 3335 | n/a | {"GetMediaSample", (PyCFunction)MediaObj_GetMediaSample, 1, |
|---|
| 3336 | n/a | PyDoc_STR("(Handle dataOut, long maxSizeToGrow, TimeValue time, SampleDescriptionHandle sampleDescriptionH, long maxNumberOfSamples) -> (long size, TimeValue sampleTime, TimeValue durationPerSample, long sampleDescriptionIndex, long numberOfSamples, short sampleFlags)")}, |
|---|
| 3337 | n/a | {"GetMediaSampleReference", (PyCFunction)MediaObj_GetMediaSampleReference, 1, |
|---|
| 3338 | n/a | PyDoc_STR("(TimeValue time, SampleDescriptionHandle sampleDescriptionH, long maxNumberOfSamples) -> (long dataOffset, long size, TimeValue sampleTime, TimeValue durationPerSample, long sampleDescriptionIndex, long numberOfSamples, short sampleFlags)")}, |
|---|
| 3339 | n/a | {"SetMediaPreferredChunkSize", (PyCFunction)MediaObj_SetMediaPreferredChunkSize, 1, |
|---|
| 3340 | n/a | PyDoc_STR("(long maxChunkSize) -> None")}, |
|---|
| 3341 | n/a | {"GetMediaPreferredChunkSize", (PyCFunction)MediaObj_GetMediaPreferredChunkSize, 1, |
|---|
| 3342 | n/a | PyDoc_STR("() -> (long maxChunkSize)")}, |
|---|
| 3343 | n/a | {"SetMediaShadowSync", (PyCFunction)MediaObj_SetMediaShadowSync, 1, |
|---|
| 3344 | n/a | PyDoc_STR("(long frameDiffSampleNum, long syncSampleNum) -> None")}, |
|---|
| 3345 | n/a | {"GetMediaShadowSync", (PyCFunction)MediaObj_GetMediaShadowSync, 1, |
|---|
| 3346 | n/a | PyDoc_STR("(long frameDiffSampleNum) -> (long syncSampleNum)")}, |
|---|
| 3347 | n/a | {"GetMediaDataSize", (PyCFunction)MediaObj_GetMediaDataSize, 1, |
|---|
| 3348 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (long _rv)")}, |
|---|
| 3349 | n/a | {"GetMediaDataSize64", (PyCFunction)MediaObj_GetMediaDataSize64, 1, |
|---|
| 3350 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (wide dataSize)")}, |
|---|
| 3351 | n/a | {"CopyMediaUserData", (PyCFunction)MediaObj_CopyMediaUserData, 1, |
|---|
| 3352 | n/a | PyDoc_STR("(Media dstMedia, OSType copyRule) -> None")}, |
|---|
| 3353 | n/a | {"GetMediaNextInterestingTime", (PyCFunction)MediaObj_GetMediaNextInterestingTime, 1, |
|---|
| 3354 | n/a | PyDoc_STR("(short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration)")}, |
|---|
| 3355 | n/a | {"GetMediaDataRef", (PyCFunction)MediaObj_GetMediaDataRef, 1, |
|---|
| 3356 | n/a | PyDoc_STR("(short index) -> (Handle dataRef, OSType dataRefType, long dataRefAttributes)")}, |
|---|
| 3357 | n/a | {"SetMediaDataRef", (PyCFunction)MediaObj_SetMediaDataRef, 1, |
|---|
| 3358 | n/a | PyDoc_STR("(short index, Handle dataRef, OSType dataRefType) -> None")}, |
|---|
| 3359 | n/a | {"SetMediaDataRefAttributes", (PyCFunction)MediaObj_SetMediaDataRefAttributes, 1, |
|---|
| 3360 | n/a | PyDoc_STR("(short index, long dataRefAttributes) -> None")}, |
|---|
| 3361 | n/a | {"AddMediaDataRef", (PyCFunction)MediaObj_AddMediaDataRef, 1, |
|---|
| 3362 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType) -> (short index)")}, |
|---|
| 3363 | n/a | {"GetMediaDataRefCount", (PyCFunction)MediaObj_GetMediaDataRefCount, 1, |
|---|
| 3364 | n/a | PyDoc_STR("() -> (short count)")}, |
|---|
| 3365 | n/a | {"SetMediaPlayHints", (PyCFunction)MediaObj_SetMediaPlayHints, 1, |
|---|
| 3366 | n/a | PyDoc_STR("(long flags, long flagsMask) -> None")}, |
|---|
| 3367 | n/a | {"GetMediaPlayHints", (PyCFunction)MediaObj_GetMediaPlayHints, 1, |
|---|
| 3368 | n/a | PyDoc_STR("() -> (long flags)")}, |
|---|
| 3369 | n/a | {"GetMediaNextInterestingTimeOnly", (PyCFunction)MediaObj_GetMediaNextInterestingTimeOnly, 1, |
|---|
| 3370 | n/a | PyDoc_STR("(short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime)")}, |
|---|
| 3371 | n/a | {NULL, NULL, 0} |
|---|
| 3372 | n/a | }; |
|---|
| 3373 | n/a | |
|---|
| 3374 | n/a | #define MediaObj_getsetlist NULL |
|---|
| 3375 | n/a | |
|---|
| 3376 | n/a | |
|---|
| 3377 | n/a | #define MediaObj_compare NULL |
|---|
| 3378 | n/a | |
|---|
| 3379 | n/a | #define MediaObj_repr NULL |
|---|
| 3380 | n/a | |
|---|
| 3381 | n/a | #define MediaObj_hash NULL |
|---|
| 3382 | n/a | #define MediaObj_tp_init 0 |
|---|
| 3383 | n/a | |
|---|
| 3384 | n/a | #define MediaObj_tp_alloc PyType_GenericAlloc |
|---|
| 3385 | n/a | |
|---|
| 3386 | n/a | static PyObject *MediaObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 3387 | n/a | { |
|---|
| 3388 | n/a | PyObject *_self; |
|---|
| 3389 | n/a | Media itself; |
|---|
| 3390 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 3391 | n/a | |
|---|
| 3392 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, MediaObj_Convert, &itself)) return NULL; |
|---|
| 3393 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 3394 | n/a | ((MediaObject *)_self)->ob_itself = itself; |
|---|
| 3395 | n/a | return _self; |
|---|
| 3396 | n/a | } |
|---|
| 3397 | n/a | |
|---|
| 3398 | n/a | #define MediaObj_tp_free PyObject_Del |
|---|
| 3399 | n/a | |
|---|
| 3400 | n/a | |
|---|
| 3401 | n/a | PyTypeObject Media_Type = { |
|---|
| 3402 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 3403 | n/a | 0, /*ob_size*/ |
|---|
| 3404 | n/a | "_Qt.Media", /*tp_name*/ |
|---|
| 3405 | n/a | sizeof(MediaObject), /*tp_basicsize*/ |
|---|
| 3406 | n/a | 0, /*tp_itemsize*/ |
|---|
| 3407 | n/a | /* methods */ |
|---|
| 3408 | n/a | (destructor) MediaObj_dealloc, /*tp_dealloc*/ |
|---|
| 3409 | n/a | 0, /*tp_print*/ |
|---|
| 3410 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 3411 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 3412 | n/a | (cmpfunc) MediaObj_compare, /*tp_compare*/ |
|---|
| 3413 | n/a | (reprfunc) MediaObj_repr, /*tp_repr*/ |
|---|
| 3414 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 3415 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 3416 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 3417 | n/a | (hashfunc) MediaObj_hash, /*tp_hash*/ |
|---|
| 3418 | n/a | 0, /*tp_call*/ |
|---|
| 3419 | n/a | 0, /*tp_str*/ |
|---|
| 3420 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 3421 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 3422 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 3423 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 3424 | n/a | 0, /*tp_doc*/ |
|---|
| 3425 | n/a | 0, /*tp_traverse*/ |
|---|
| 3426 | n/a | 0, /*tp_clear*/ |
|---|
| 3427 | n/a | 0, /*tp_richcompare*/ |
|---|
| 3428 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 3429 | n/a | 0, /*tp_iter*/ |
|---|
| 3430 | n/a | 0, /*tp_iternext*/ |
|---|
| 3431 | n/a | MediaObj_methods, /* tp_methods */ |
|---|
| 3432 | n/a | 0, /*tp_members*/ |
|---|
| 3433 | n/a | MediaObj_getsetlist, /*tp_getset*/ |
|---|
| 3434 | n/a | 0, /*tp_base*/ |
|---|
| 3435 | n/a | 0, /*tp_dict*/ |
|---|
| 3436 | n/a | 0, /*tp_descr_get*/ |
|---|
| 3437 | n/a | 0, /*tp_descr_set*/ |
|---|
| 3438 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 3439 | n/a | MediaObj_tp_init, /* tp_init */ |
|---|
| 3440 | n/a | MediaObj_tp_alloc, /* tp_alloc */ |
|---|
| 3441 | n/a | MediaObj_tp_new, /* tp_new */ |
|---|
| 3442 | n/a | MediaObj_tp_free, /* tp_free */ |
|---|
| 3443 | n/a | }; |
|---|
| 3444 | n/a | |
|---|
| 3445 | n/a | /* --------------------- End object type Media ---------------------- */ |
|---|
| 3446 | n/a | |
|---|
| 3447 | n/a | |
|---|
| 3448 | n/a | /* ----------------------- Object type Track ------------------------ */ |
|---|
| 3449 | n/a | |
|---|
| 3450 | n/a | PyTypeObject Track_Type; |
|---|
| 3451 | n/a | |
|---|
| 3452 | n/a | #define TrackObj_Check(x) ((x)->ob_type == &Track_Type || PyObject_TypeCheck((x), &Track_Type)) |
|---|
| 3453 | n/a | |
|---|
| 3454 | n/a | typedef struct TrackObject { |
|---|
| 3455 | n/a | PyObject_HEAD |
|---|
| 3456 | n/a | Track ob_itself; |
|---|
| 3457 | n/a | } TrackObject; |
|---|
| 3458 | n/a | |
|---|
| 3459 | n/a | PyObject *TrackObj_New(Track itself) |
|---|
| 3460 | n/a | { |
|---|
| 3461 | n/a | TrackObject *it; |
|---|
| 3462 | n/a | if (itself == NULL) { |
|---|
| 3463 | n/a | PyErr_SetString(Qt_Error,"Cannot create Track from NULL pointer"); |
|---|
| 3464 | n/a | return NULL; |
|---|
| 3465 | n/a | } |
|---|
| 3466 | n/a | it = PyObject_NEW(TrackObject, &Track_Type); |
|---|
| 3467 | n/a | if (it == NULL) return NULL; |
|---|
| 3468 | n/a | it->ob_itself = itself; |
|---|
| 3469 | n/a | return (PyObject *)it; |
|---|
| 3470 | n/a | } |
|---|
| 3471 | n/a | |
|---|
| 3472 | n/a | int TrackObj_Convert(PyObject *v, Track *p_itself) |
|---|
| 3473 | n/a | { |
|---|
| 3474 | n/a | if (v == Py_None) |
|---|
| 3475 | n/a | { |
|---|
| 3476 | n/a | *p_itself = NULL; |
|---|
| 3477 | n/a | return 1; |
|---|
| 3478 | n/a | } |
|---|
| 3479 | n/a | if (!TrackObj_Check(v)) |
|---|
| 3480 | n/a | { |
|---|
| 3481 | n/a | PyErr_SetString(PyExc_TypeError, "Track required"); |
|---|
| 3482 | n/a | return 0; |
|---|
| 3483 | n/a | } |
|---|
| 3484 | n/a | *p_itself = ((TrackObject *)v)->ob_itself; |
|---|
| 3485 | n/a | return 1; |
|---|
| 3486 | n/a | } |
|---|
| 3487 | n/a | |
|---|
| 3488 | n/a | static void TrackObj_dealloc(TrackObject *self) |
|---|
| 3489 | n/a | { |
|---|
| 3490 | n/a | if (self->ob_itself) DisposeMovieTrack(self->ob_itself); |
|---|
| 3491 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 3492 | n/a | } |
|---|
| 3493 | n/a | |
|---|
| 3494 | n/a | static PyObject *TrackObj_LoadTrackIntoRam(TrackObject *_self, PyObject *_args) |
|---|
| 3495 | n/a | { |
|---|
| 3496 | n/a | PyObject *_res = NULL; |
|---|
| 3497 | n/a | OSErr _err; |
|---|
| 3498 | n/a | TimeValue time; |
|---|
| 3499 | n/a | TimeValue duration; |
|---|
| 3500 | n/a | long flags; |
|---|
| 3501 | n/a | #ifndef LoadTrackIntoRam |
|---|
| 3502 | n/a | PyMac_PRECHECK(LoadTrackIntoRam); |
|---|
| 3503 | n/a | #endif |
|---|
| 3504 | n/a | if (!PyArg_ParseTuple(_args, "lll", |
|---|
| 3505 | n/a | &time, |
|---|
| 3506 | n/a | &duration, |
|---|
| 3507 | n/a | &flags)) |
|---|
| 3508 | n/a | return NULL; |
|---|
| 3509 | n/a | _err = LoadTrackIntoRam(_self->ob_itself, |
|---|
| 3510 | n/a | time, |
|---|
| 3511 | n/a | duration, |
|---|
| 3512 | n/a | flags); |
|---|
| 3513 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3514 | n/a | Py_INCREF(Py_None); |
|---|
| 3515 | n/a | _res = Py_None; |
|---|
| 3516 | n/a | return _res; |
|---|
| 3517 | n/a | } |
|---|
| 3518 | n/a | |
|---|
| 3519 | n/a | static PyObject *TrackObj_GetTrackPict(TrackObject *_self, PyObject *_args) |
|---|
| 3520 | n/a | { |
|---|
| 3521 | n/a | PyObject *_res = NULL; |
|---|
| 3522 | n/a | PicHandle _rv; |
|---|
| 3523 | n/a | TimeValue time; |
|---|
| 3524 | n/a | #ifndef GetTrackPict |
|---|
| 3525 | n/a | PyMac_PRECHECK(GetTrackPict); |
|---|
| 3526 | n/a | #endif |
|---|
| 3527 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 3528 | n/a | &time)) |
|---|
| 3529 | n/a | return NULL; |
|---|
| 3530 | n/a | _rv = GetTrackPict(_self->ob_itself, |
|---|
| 3531 | n/a | time); |
|---|
| 3532 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3533 | n/a | ResObj_New, _rv); |
|---|
| 3534 | n/a | return _res; |
|---|
| 3535 | n/a | } |
|---|
| 3536 | n/a | |
|---|
| 3537 | n/a | static PyObject *TrackObj_GetTrackClipRgn(TrackObject *_self, PyObject *_args) |
|---|
| 3538 | n/a | { |
|---|
| 3539 | n/a | PyObject *_res = NULL; |
|---|
| 3540 | n/a | RgnHandle _rv; |
|---|
| 3541 | n/a | #ifndef GetTrackClipRgn |
|---|
| 3542 | n/a | PyMac_PRECHECK(GetTrackClipRgn); |
|---|
| 3543 | n/a | #endif |
|---|
| 3544 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3545 | n/a | return NULL; |
|---|
| 3546 | n/a | _rv = GetTrackClipRgn(_self->ob_itself); |
|---|
| 3547 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3548 | n/a | ResObj_New, _rv); |
|---|
| 3549 | n/a | return _res; |
|---|
| 3550 | n/a | } |
|---|
| 3551 | n/a | |
|---|
| 3552 | n/a | static PyObject *TrackObj_SetTrackClipRgn(TrackObject *_self, PyObject *_args) |
|---|
| 3553 | n/a | { |
|---|
| 3554 | n/a | PyObject *_res = NULL; |
|---|
| 3555 | n/a | RgnHandle theClip; |
|---|
| 3556 | n/a | #ifndef SetTrackClipRgn |
|---|
| 3557 | n/a | PyMac_PRECHECK(SetTrackClipRgn); |
|---|
| 3558 | n/a | #endif |
|---|
| 3559 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 3560 | n/a | ResObj_Convert, &theClip)) |
|---|
| 3561 | n/a | return NULL; |
|---|
| 3562 | n/a | SetTrackClipRgn(_self->ob_itself, |
|---|
| 3563 | n/a | theClip); |
|---|
| 3564 | n/a | Py_INCREF(Py_None); |
|---|
| 3565 | n/a | _res = Py_None; |
|---|
| 3566 | n/a | return _res; |
|---|
| 3567 | n/a | } |
|---|
| 3568 | n/a | |
|---|
| 3569 | n/a | static PyObject *TrackObj_GetTrackDisplayBoundsRgn(TrackObject *_self, PyObject *_args) |
|---|
| 3570 | n/a | { |
|---|
| 3571 | n/a | PyObject *_res = NULL; |
|---|
| 3572 | n/a | RgnHandle _rv; |
|---|
| 3573 | n/a | #ifndef GetTrackDisplayBoundsRgn |
|---|
| 3574 | n/a | PyMac_PRECHECK(GetTrackDisplayBoundsRgn); |
|---|
| 3575 | n/a | #endif |
|---|
| 3576 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3577 | n/a | return NULL; |
|---|
| 3578 | n/a | _rv = GetTrackDisplayBoundsRgn(_self->ob_itself); |
|---|
| 3579 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3580 | n/a | ResObj_New, _rv); |
|---|
| 3581 | n/a | return _res; |
|---|
| 3582 | n/a | } |
|---|
| 3583 | n/a | |
|---|
| 3584 | n/a | static PyObject *TrackObj_GetTrackMovieBoundsRgn(TrackObject *_self, PyObject *_args) |
|---|
| 3585 | n/a | { |
|---|
| 3586 | n/a | PyObject *_res = NULL; |
|---|
| 3587 | n/a | RgnHandle _rv; |
|---|
| 3588 | n/a | #ifndef GetTrackMovieBoundsRgn |
|---|
| 3589 | n/a | PyMac_PRECHECK(GetTrackMovieBoundsRgn); |
|---|
| 3590 | n/a | #endif |
|---|
| 3591 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3592 | n/a | return NULL; |
|---|
| 3593 | n/a | _rv = GetTrackMovieBoundsRgn(_self->ob_itself); |
|---|
| 3594 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3595 | n/a | ResObj_New, _rv); |
|---|
| 3596 | n/a | return _res; |
|---|
| 3597 | n/a | } |
|---|
| 3598 | n/a | |
|---|
| 3599 | n/a | static PyObject *TrackObj_GetTrackBoundsRgn(TrackObject *_self, PyObject *_args) |
|---|
| 3600 | n/a | { |
|---|
| 3601 | n/a | PyObject *_res = NULL; |
|---|
| 3602 | n/a | RgnHandle _rv; |
|---|
| 3603 | n/a | #ifndef GetTrackBoundsRgn |
|---|
| 3604 | n/a | PyMac_PRECHECK(GetTrackBoundsRgn); |
|---|
| 3605 | n/a | #endif |
|---|
| 3606 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3607 | n/a | return NULL; |
|---|
| 3608 | n/a | _rv = GetTrackBoundsRgn(_self->ob_itself); |
|---|
| 3609 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3610 | n/a | ResObj_New, _rv); |
|---|
| 3611 | n/a | return _res; |
|---|
| 3612 | n/a | } |
|---|
| 3613 | n/a | |
|---|
| 3614 | n/a | static PyObject *TrackObj_GetTrackMatte(TrackObject *_self, PyObject *_args) |
|---|
| 3615 | n/a | { |
|---|
| 3616 | n/a | PyObject *_res = NULL; |
|---|
| 3617 | n/a | PixMapHandle _rv; |
|---|
| 3618 | n/a | #ifndef GetTrackMatte |
|---|
| 3619 | n/a | PyMac_PRECHECK(GetTrackMatte); |
|---|
| 3620 | n/a | #endif |
|---|
| 3621 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3622 | n/a | return NULL; |
|---|
| 3623 | n/a | _rv = GetTrackMatte(_self->ob_itself); |
|---|
| 3624 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3625 | n/a | ResObj_New, _rv); |
|---|
| 3626 | n/a | return _res; |
|---|
| 3627 | n/a | } |
|---|
| 3628 | n/a | |
|---|
| 3629 | n/a | static PyObject *TrackObj_SetTrackMatte(TrackObject *_self, PyObject *_args) |
|---|
| 3630 | n/a | { |
|---|
| 3631 | n/a | PyObject *_res = NULL; |
|---|
| 3632 | n/a | PixMapHandle theMatte; |
|---|
| 3633 | n/a | #ifndef SetTrackMatte |
|---|
| 3634 | n/a | PyMac_PRECHECK(SetTrackMatte); |
|---|
| 3635 | n/a | #endif |
|---|
| 3636 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 3637 | n/a | ResObj_Convert, &theMatte)) |
|---|
| 3638 | n/a | return NULL; |
|---|
| 3639 | n/a | SetTrackMatte(_self->ob_itself, |
|---|
| 3640 | n/a | theMatte); |
|---|
| 3641 | n/a | Py_INCREF(Py_None); |
|---|
| 3642 | n/a | _res = Py_None; |
|---|
| 3643 | n/a | return _res; |
|---|
| 3644 | n/a | } |
|---|
| 3645 | n/a | |
|---|
| 3646 | n/a | static PyObject *TrackObj_GetTrackID(TrackObject *_self, PyObject *_args) |
|---|
| 3647 | n/a | { |
|---|
| 3648 | n/a | PyObject *_res = NULL; |
|---|
| 3649 | n/a | long _rv; |
|---|
| 3650 | n/a | #ifndef GetTrackID |
|---|
| 3651 | n/a | PyMac_PRECHECK(GetTrackID); |
|---|
| 3652 | n/a | #endif |
|---|
| 3653 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3654 | n/a | return NULL; |
|---|
| 3655 | n/a | _rv = GetTrackID(_self->ob_itself); |
|---|
| 3656 | n/a | _res = Py_BuildValue("l", |
|---|
| 3657 | n/a | _rv); |
|---|
| 3658 | n/a | return _res; |
|---|
| 3659 | n/a | } |
|---|
| 3660 | n/a | |
|---|
| 3661 | n/a | static PyObject *TrackObj_GetTrackMovie(TrackObject *_self, PyObject *_args) |
|---|
| 3662 | n/a | { |
|---|
| 3663 | n/a | PyObject *_res = NULL; |
|---|
| 3664 | n/a | Movie _rv; |
|---|
| 3665 | n/a | #ifndef GetTrackMovie |
|---|
| 3666 | n/a | PyMac_PRECHECK(GetTrackMovie); |
|---|
| 3667 | n/a | #endif |
|---|
| 3668 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3669 | n/a | return NULL; |
|---|
| 3670 | n/a | _rv = GetTrackMovie(_self->ob_itself); |
|---|
| 3671 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3672 | n/a | MovieObj_New, _rv); |
|---|
| 3673 | n/a | return _res; |
|---|
| 3674 | n/a | } |
|---|
| 3675 | n/a | |
|---|
| 3676 | n/a | static PyObject *TrackObj_GetTrackCreationTime(TrackObject *_self, PyObject *_args) |
|---|
| 3677 | n/a | { |
|---|
| 3678 | n/a | PyObject *_res = NULL; |
|---|
| 3679 | n/a | unsigned long _rv; |
|---|
| 3680 | n/a | #ifndef GetTrackCreationTime |
|---|
| 3681 | n/a | PyMac_PRECHECK(GetTrackCreationTime); |
|---|
| 3682 | n/a | #endif |
|---|
| 3683 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3684 | n/a | return NULL; |
|---|
| 3685 | n/a | _rv = GetTrackCreationTime(_self->ob_itself); |
|---|
| 3686 | n/a | _res = Py_BuildValue("l", |
|---|
| 3687 | n/a | _rv); |
|---|
| 3688 | n/a | return _res; |
|---|
| 3689 | n/a | } |
|---|
| 3690 | n/a | |
|---|
| 3691 | n/a | static PyObject *TrackObj_GetTrackModificationTime(TrackObject *_self, PyObject *_args) |
|---|
| 3692 | n/a | { |
|---|
| 3693 | n/a | PyObject *_res = NULL; |
|---|
| 3694 | n/a | unsigned long _rv; |
|---|
| 3695 | n/a | #ifndef GetTrackModificationTime |
|---|
| 3696 | n/a | PyMac_PRECHECK(GetTrackModificationTime); |
|---|
| 3697 | n/a | #endif |
|---|
| 3698 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3699 | n/a | return NULL; |
|---|
| 3700 | n/a | _rv = GetTrackModificationTime(_self->ob_itself); |
|---|
| 3701 | n/a | _res = Py_BuildValue("l", |
|---|
| 3702 | n/a | _rv); |
|---|
| 3703 | n/a | return _res; |
|---|
| 3704 | n/a | } |
|---|
| 3705 | n/a | |
|---|
| 3706 | n/a | static PyObject *TrackObj_GetTrackEnabled(TrackObject *_self, PyObject *_args) |
|---|
| 3707 | n/a | { |
|---|
| 3708 | n/a | PyObject *_res = NULL; |
|---|
| 3709 | n/a | Boolean _rv; |
|---|
| 3710 | n/a | #ifndef GetTrackEnabled |
|---|
| 3711 | n/a | PyMac_PRECHECK(GetTrackEnabled); |
|---|
| 3712 | n/a | #endif |
|---|
| 3713 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3714 | n/a | return NULL; |
|---|
| 3715 | n/a | _rv = GetTrackEnabled(_self->ob_itself); |
|---|
| 3716 | n/a | _res = Py_BuildValue("b", |
|---|
| 3717 | n/a | _rv); |
|---|
| 3718 | n/a | return _res; |
|---|
| 3719 | n/a | } |
|---|
| 3720 | n/a | |
|---|
| 3721 | n/a | static PyObject *TrackObj_SetTrackEnabled(TrackObject *_self, PyObject *_args) |
|---|
| 3722 | n/a | { |
|---|
| 3723 | n/a | PyObject *_res = NULL; |
|---|
| 3724 | n/a | Boolean isEnabled; |
|---|
| 3725 | n/a | #ifndef SetTrackEnabled |
|---|
| 3726 | n/a | PyMac_PRECHECK(SetTrackEnabled); |
|---|
| 3727 | n/a | #endif |
|---|
| 3728 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 3729 | n/a | &isEnabled)) |
|---|
| 3730 | n/a | return NULL; |
|---|
| 3731 | n/a | SetTrackEnabled(_self->ob_itself, |
|---|
| 3732 | n/a | isEnabled); |
|---|
| 3733 | n/a | Py_INCREF(Py_None); |
|---|
| 3734 | n/a | _res = Py_None; |
|---|
| 3735 | n/a | return _res; |
|---|
| 3736 | n/a | } |
|---|
| 3737 | n/a | |
|---|
| 3738 | n/a | static PyObject *TrackObj_GetTrackUsage(TrackObject *_self, PyObject *_args) |
|---|
| 3739 | n/a | { |
|---|
| 3740 | n/a | PyObject *_res = NULL; |
|---|
| 3741 | n/a | long _rv; |
|---|
| 3742 | n/a | #ifndef GetTrackUsage |
|---|
| 3743 | n/a | PyMac_PRECHECK(GetTrackUsage); |
|---|
| 3744 | n/a | #endif |
|---|
| 3745 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3746 | n/a | return NULL; |
|---|
| 3747 | n/a | _rv = GetTrackUsage(_self->ob_itself); |
|---|
| 3748 | n/a | _res = Py_BuildValue("l", |
|---|
| 3749 | n/a | _rv); |
|---|
| 3750 | n/a | return _res; |
|---|
| 3751 | n/a | } |
|---|
| 3752 | n/a | |
|---|
| 3753 | n/a | static PyObject *TrackObj_SetTrackUsage(TrackObject *_self, PyObject *_args) |
|---|
| 3754 | n/a | { |
|---|
| 3755 | n/a | PyObject *_res = NULL; |
|---|
| 3756 | n/a | long usage; |
|---|
| 3757 | n/a | #ifndef SetTrackUsage |
|---|
| 3758 | n/a | PyMac_PRECHECK(SetTrackUsage); |
|---|
| 3759 | n/a | #endif |
|---|
| 3760 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 3761 | n/a | &usage)) |
|---|
| 3762 | n/a | return NULL; |
|---|
| 3763 | n/a | SetTrackUsage(_self->ob_itself, |
|---|
| 3764 | n/a | usage); |
|---|
| 3765 | n/a | Py_INCREF(Py_None); |
|---|
| 3766 | n/a | _res = Py_None; |
|---|
| 3767 | n/a | return _res; |
|---|
| 3768 | n/a | } |
|---|
| 3769 | n/a | |
|---|
| 3770 | n/a | static PyObject *TrackObj_GetTrackDuration(TrackObject *_self, PyObject *_args) |
|---|
| 3771 | n/a | { |
|---|
| 3772 | n/a | PyObject *_res = NULL; |
|---|
| 3773 | n/a | TimeValue _rv; |
|---|
| 3774 | n/a | #ifndef GetTrackDuration |
|---|
| 3775 | n/a | PyMac_PRECHECK(GetTrackDuration); |
|---|
| 3776 | n/a | #endif |
|---|
| 3777 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3778 | n/a | return NULL; |
|---|
| 3779 | n/a | _rv = GetTrackDuration(_self->ob_itself); |
|---|
| 3780 | n/a | _res = Py_BuildValue("l", |
|---|
| 3781 | n/a | _rv); |
|---|
| 3782 | n/a | return _res; |
|---|
| 3783 | n/a | } |
|---|
| 3784 | n/a | |
|---|
| 3785 | n/a | static PyObject *TrackObj_GetTrackOffset(TrackObject *_self, PyObject *_args) |
|---|
| 3786 | n/a | { |
|---|
| 3787 | n/a | PyObject *_res = NULL; |
|---|
| 3788 | n/a | TimeValue _rv; |
|---|
| 3789 | n/a | #ifndef GetTrackOffset |
|---|
| 3790 | n/a | PyMac_PRECHECK(GetTrackOffset); |
|---|
| 3791 | n/a | #endif |
|---|
| 3792 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3793 | n/a | return NULL; |
|---|
| 3794 | n/a | _rv = GetTrackOffset(_self->ob_itself); |
|---|
| 3795 | n/a | _res = Py_BuildValue("l", |
|---|
| 3796 | n/a | _rv); |
|---|
| 3797 | n/a | return _res; |
|---|
| 3798 | n/a | } |
|---|
| 3799 | n/a | |
|---|
| 3800 | n/a | static PyObject *TrackObj_SetTrackOffset(TrackObject *_self, PyObject *_args) |
|---|
| 3801 | n/a | { |
|---|
| 3802 | n/a | PyObject *_res = NULL; |
|---|
| 3803 | n/a | TimeValue movieOffsetTime; |
|---|
| 3804 | n/a | #ifndef SetTrackOffset |
|---|
| 3805 | n/a | PyMac_PRECHECK(SetTrackOffset); |
|---|
| 3806 | n/a | #endif |
|---|
| 3807 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 3808 | n/a | &movieOffsetTime)) |
|---|
| 3809 | n/a | return NULL; |
|---|
| 3810 | n/a | SetTrackOffset(_self->ob_itself, |
|---|
| 3811 | n/a | movieOffsetTime); |
|---|
| 3812 | n/a | Py_INCREF(Py_None); |
|---|
| 3813 | n/a | _res = Py_None; |
|---|
| 3814 | n/a | return _res; |
|---|
| 3815 | n/a | } |
|---|
| 3816 | n/a | |
|---|
| 3817 | n/a | static PyObject *TrackObj_GetTrackLayer(TrackObject *_self, PyObject *_args) |
|---|
| 3818 | n/a | { |
|---|
| 3819 | n/a | PyObject *_res = NULL; |
|---|
| 3820 | n/a | short _rv; |
|---|
| 3821 | n/a | #ifndef GetTrackLayer |
|---|
| 3822 | n/a | PyMac_PRECHECK(GetTrackLayer); |
|---|
| 3823 | n/a | #endif |
|---|
| 3824 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3825 | n/a | return NULL; |
|---|
| 3826 | n/a | _rv = GetTrackLayer(_self->ob_itself); |
|---|
| 3827 | n/a | _res = Py_BuildValue("h", |
|---|
| 3828 | n/a | _rv); |
|---|
| 3829 | n/a | return _res; |
|---|
| 3830 | n/a | } |
|---|
| 3831 | n/a | |
|---|
| 3832 | n/a | static PyObject *TrackObj_SetTrackLayer(TrackObject *_self, PyObject *_args) |
|---|
| 3833 | n/a | { |
|---|
| 3834 | n/a | PyObject *_res = NULL; |
|---|
| 3835 | n/a | short layer; |
|---|
| 3836 | n/a | #ifndef SetTrackLayer |
|---|
| 3837 | n/a | PyMac_PRECHECK(SetTrackLayer); |
|---|
| 3838 | n/a | #endif |
|---|
| 3839 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 3840 | n/a | &layer)) |
|---|
| 3841 | n/a | return NULL; |
|---|
| 3842 | n/a | SetTrackLayer(_self->ob_itself, |
|---|
| 3843 | n/a | layer); |
|---|
| 3844 | n/a | Py_INCREF(Py_None); |
|---|
| 3845 | n/a | _res = Py_None; |
|---|
| 3846 | n/a | return _res; |
|---|
| 3847 | n/a | } |
|---|
| 3848 | n/a | |
|---|
| 3849 | n/a | static PyObject *TrackObj_GetTrackAlternate(TrackObject *_self, PyObject *_args) |
|---|
| 3850 | n/a | { |
|---|
| 3851 | n/a | PyObject *_res = NULL; |
|---|
| 3852 | n/a | Track _rv; |
|---|
| 3853 | n/a | #ifndef GetTrackAlternate |
|---|
| 3854 | n/a | PyMac_PRECHECK(GetTrackAlternate); |
|---|
| 3855 | n/a | #endif |
|---|
| 3856 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3857 | n/a | return NULL; |
|---|
| 3858 | n/a | _rv = GetTrackAlternate(_self->ob_itself); |
|---|
| 3859 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3860 | n/a | TrackObj_New, _rv); |
|---|
| 3861 | n/a | return _res; |
|---|
| 3862 | n/a | } |
|---|
| 3863 | n/a | |
|---|
| 3864 | n/a | static PyObject *TrackObj_SetTrackAlternate(TrackObject *_self, PyObject *_args) |
|---|
| 3865 | n/a | { |
|---|
| 3866 | n/a | PyObject *_res = NULL; |
|---|
| 3867 | n/a | Track alternateT; |
|---|
| 3868 | n/a | #ifndef SetTrackAlternate |
|---|
| 3869 | n/a | PyMac_PRECHECK(SetTrackAlternate); |
|---|
| 3870 | n/a | #endif |
|---|
| 3871 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 3872 | n/a | TrackObj_Convert, &alternateT)) |
|---|
| 3873 | n/a | return NULL; |
|---|
| 3874 | n/a | SetTrackAlternate(_self->ob_itself, |
|---|
| 3875 | n/a | alternateT); |
|---|
| 3876 | n/a | Py_INCREF(Py_None); |
|---|
| 3877 | n/a | _res = Py_None; |
|---|
| 3878 | n/a | return _res; |
|---|
| 3879 | n/a | } |
|---|
| 3880 | n/a | |
|---|
| 3881 | n/a | static PyObject *TrackObj_GetTrackVolume(TrackObject *_self, PyObject *_args) |
|---|
| 3882 | n/a | { |
|---|
| 3883 | n/a | PyObject *_res = NULL; |
|---|
| 3884 | n/a | short _rv; |
|---|
| 3885 | n/a | #ifndef GetTrackVolume |
|---|
| 3886 | n/a | PyMac_PRECHECK(GetTrackVolume); |
|---|
| 3887 | n/a | #endif |
|---|
| 3888 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3889 | n/a | return NULL; |
|---|
| 3890 | n/a | _rv = GetTrackVolume(_self->ob_itself); |
|---|
| 3891 | n/a | _res = Py_BuildValue("h", |
|---|
| 3892 | n/a | _rv); |
|---|
| 3893 | n/a | return _res; |
|---|
| 3894 | n/a | } |
|---|
| 3895 | n/a | |
|---|
| 3896 | n/a | static PyObject *TrackObj_SetTrackVolume(TrackObject *_self, PyObject *_args) |
|---|
| 3897 | n/a | { |
|---|
| 3898 | n/a | PyObject *_res = NULL; |
|---|
| 3899 | n/a | short volume; |
|---|
| 3900 | n/a | #ifndef SetTrackVolume |
|---|
| 3901 | n/a | PyMac_PRECHECK(SetTrackVolume); |
|---|
| 3902 | n/a | #endif |
|---|
| 3903 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 3904 | n/a | &volume)) |
|---|
| 3905 | n/a | return NULL; |
|---|
| 3906 | n/a | SetTrackVolume(_self->ob_itself, |
|---|
| 3907 | n/a | volume); |
|---|
| 3908 | n/a | Py_INCREF(Py_None); |
|---|
| 3909 | n/a | _res = Py_None; |
|---|
| 3910 | n/a | return _res; |
|---|
| 3911 | n/a | } |
|---|
| 3912 | n/a | |
|---|
| 3913 | n/a | static PyObject *TrackObj_GetTrackDimensions(TrackObject *_self, PyObject *_args) |
|---|
| 3914 | n/a | { |
|---|
| 3915 | n/a | PyObject *_res = NULL; |
|---|
| 3916 | n/a | Fixed width; |
|---|
| 3917 | n/a | Fixed height; |
|---|
| 3918 | n/a | #ifndef GetTrackDimensions |
|---|
| 3919 | n/a | PyMac_PRECHECK(GetTrackDimensions); |
|---|
| 3920 | n/a | #endif |
|---|
| 3921 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3922 | n/a | return NULL; |
|---|
| 3923 | n/a | GetTrackDimensions(_self->ob_itself, |
|---|
| 3924 | n/a | &width, |
|---|
| 3925 | n/a | &height); |
|---|
| 3926 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 3927 | n/a | PyMac_BuildFixed, width, |
|---|
| 3928 | n/a | PyMac_BuildFixed, height); |
|---|
| 3929 | n/a | return _res; |
|---|
| 3930 | n/a | } |
|---|
| 3931 | n/a | |
|---|
| 3932 | n/a | static PyObject *TrackObj_SetTrackDimensions(TrackObject *_self, PyObject *_args) |
|---|
| 3933 | n/a | { |
|---|
| 3934 | n/a | PyObject *_res = NULL; |
|---|
| 3935 | n/a | Fixed width; |
|---|
| 3936 | n/a | Fixed height; |
|---|
| 3937 | n/a | #ifndef SetTrackDimensions |
|---|
| 3938 | n/a | PyMac_PRECHECK(SetTrackDimensions); |
|---|
| 3939 | n/a | #endif |
|---|
| 3940 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 3941 | n/a | PyMac_GetFixed, &width, |
|---|
| 3942 | n/a | PyMac_GetFixed, &height)) |
|---|
| 3943 | n/a | return NULL; |
|---|
| 3944 | n/a | SetTrackDimensions(_self->ob_itself, |
|---|
| 3945 | n/a | width, |
|---|
| 3946 | n/a | height); |
|---|
| 3947 | n/a | Py_INCREF(Py_None); |
|---|
| 3948 | n/a | _res = Py_None; |
|---|
| 3949 | n/a | return _res; |
|---|
| 3950 | n/a | } |
|---|
| 3951 | n/a | |
|---|
| 3952 | n/a | static PyObject *TrackObj_GetTrackUserData(TrackObject *_self, PyObject *_args) |
|---|
| 3953 | n/a | { |
|---|
| 3954 | n/a | PyObject *_res = NULL; |
|---|
| 3955 | n/a | UserData _rv; |
|---|
| 3956 | n/a | #ifndef GetTrackUserData |
|---|
| 3957 | n/a | PyMac_PRECHECK(GetTrackUserData); |
|---|
| 3958 | n/a | #endif |
|---|
| 3959 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3960 | n/a | return NULL; |
|---|
| 3961 | n/a | _rv = GetTrackUserData(_self->ob_itself); |
|---|
| 3962 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3963 | n/a | UserDataObj_New, _rv); |
|---|
| 3964 | n/a | return _res; |
|---|
| 3965 | n/a | } |
|---|
| 3966 | n/a | |
|---|
| 3967 | n/a | static PyObject *TrackObj_GetTrackSoundLocalizationSettings(TrackObject *_self, PyObject *_args) |
|---|
| 3968 | n/a | { |
|---|
| 3969 | n/a | PyObject *_res = NULL; |
|---|
| 3970 | n/a | OSErr _err; |
|---|
| 3971 | n/a | Handle settings; |
|---|
| 3972 | n/a | #ifndef GetTrackSoundLocalizationSettings |
|---|
| 3973 | n/a | PyMac_PRECHECK(GetTrackSoundLocalizationSettings); |
|---|
| 3974 | n/a | #endif |
|---|
| 3975 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 3976 | n/a | return NULL; |
|---|
| 3977 | n/a | _err = GetTrackSoundLocalizationSettings(_self->ob_itself, |
|---|
| 3978 | n/a | &settings); |
|---|
| 3979 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3980 | n/a | _res = Py_BuildValue("O&", |
|---|
| 3981 | n/a | ResObj_New, settings); |
|---|
| 3982 | n/a | return _res; |
|---|
| 3983 | n/a | } |
|---|
| 3984 | n/a | |
|---|
| 3985 | n/a | static PyObject *TrackObj_SetTrackSoundLocalizationSettings(TrackObject *_self, PyObject *_args) |
|---|
| 3986 | n/a | { |
|---|
| 3987 | n/a | PyObject *_res = NULL; |
|---|
| 3988 | n/a | OSErr _err; |
|---|
| 3989 | n/a | Handle settings; |
|---|
| 3990 | n/a | #ifndef SetTrackSoundLocalizationSettings |
|---|
| 3991 | n/a | PyMac_PRECHECK(SetTrackSoundLocalizationSettings); |
|---|
| 3992 | n/a | #endif |
|---|
| 3993 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 3994 | n/a | ResObj_Convert, &settings)) |
|---|
| 3995 | n/a | return NULL; |
|---|
| 3996 | n/a | _err = SetTrackSoundLocalizationSettings(_self->ob_itself, |
|---|
| 3997 | n/a | settings); |
|---|
| 3998 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 3999 | n/a | Py_INCREF(Py_None); |
|---|
| 4000 | n/a | _res = Py_None; |
|---|
| 4001 | n/a | return _res; |
|---|
| 4002 | n/a | } |
|---|
| 4003 | n/a | |
|---|
| 4004 | n/a | static PyObject *TrackObj_NewTrackMedia(TrackObject *_self, PyObject *_args) |
|---|
| 4005 | n/a | { |
|---|
| 4006 | n/a | PyObject *_res = NULL; |
|---|
| 4007 | n/a | Media _rv; |
|---|
| 4008 | n/a | OSType mediaType; |
|---|
| 4009 | n/a | TimeScale timeScale; |
|---|
| 4010 | n/a | Handle dataRef; |
|---|
| 4011 | n/a | OSType dataRefType; |
|---|
| 4012 | n/a | #ifndef NewTrackMedia |
|---|
| 4013 | n/a | PyMac_PRECHECK(NewTrackMedia); |
|---|
| 4014 | n/a | #endif |
|---|
| 4015 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&O&", |
|---|
| 4016 | n/a | PyMac_GetOSType, &mediaType, |
|---|
| 4017 | n/a | &timeScale, |
|---|
| 4018 | n/a | ResObj_Convert, &dataRef, |
|---|
| 4019 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 4020 | n/a | return NULL; |
|---|
| 4021 | n/a | _rv = NewTrackMedia(_self->ob_itself, |
|---|
| 4022 | n/a | mediaType, |
|---|
| 4023 | n/a | timeScale, |
|---|
| 4024 | n/a | dataRef, |
|---|
| 4025 | n/a | dataRefType); |
|---|
| 4026 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4027 | n/a | MediaObj_New, _rv); |
|---|
| 4028 | n/a | return _res; |
|---|
| 4029 | n/a | } |
|---|
| 4030 | n/a | |
|---|
| 4031 | n/a | static PyObject *TrackObj_GetTrackMedia(TrackObject *_self, PyObject *_args) |
|---|
| 4032 | n/a | { |
|---|
| 4033 | n/a | PyObject *_res = NULL; |
|---|
| 4034 | n/a | Media _rv; |
|---|
| 4035 | n/a | #ifndef GetTrackMedia |
|---|
| 4036 | n/a | PyMac_PRECHECK(GetTrackMedia); |
|---|
| 4037 | n/a | #endif |
|---|
| 4038 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4039 | n/a | return NULL; |
|---|
| 4040 | n/a | _rv = GetTrackMedia(_self->ob_itself); |
|---|
| 4041 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4042 | n/a | MediaObj_New, _rv); |
|---|
| 4043 | n/a | return _res; |
|---|
| 4044 | n/a | } |
|---|
| 4045 | n/a | |
|---|
| 4046 | n/a | static PyObject *TrackObj_InsertMediaIntoTrack(TrackObject *_self, PyObject *_args) |
|---|
| 4047 | n/a | { |
|---|
| 4048 | n/a | PyObject *_res = NULL; |
|---|
| 4049 | n/a | OSErr _err; |
|---|
| 4050 | n/a | TimeValue trackStart; |
|---|
| 4051 | n/a | TimeValue mediaTime; |
|---|
| 4052 | n/a | TimeValue mediaDuration; |
|---|
| 4053 | n/a | Fixed mediaRate; |
|---|
| 4054 | n/a | #ifndef InsertMediaIntoTrack |
|---|
| 4055 | n/a | PyMac_PRECHECK(InsertMediaIntoTrack); |
|---|
| 4056 | n/a | #endif |
|---|
| 4057 | n/a | if (!PyArg_ParseTuple(_args, "lllO&", |
|---|
| 4058 | n/a | &trackStart, |
|---|
| 4059 | n/a | &mediaTime, |
|---|
| 4060 | n/a | &mediaDuration, |
|---|
| 4061 | n/a | PyMac_GetFixed, &mediaRate)) |
|---|
| 4062 | n/a | return NULL; |
|---|
| 4063 | n/a | _err = InsertMediaIntoTrack(_self->ob_itself, |
|---|
| 4064 | n/a | trackStart, |
|---|
| 4065 | n/a | mediaTime, |
|---|
| 4066 | n/a | mediaDuration, |
|---|
| 4067 | n/a | mediaRate); |
|---|
| 4068 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4069 | n/a | Py_INCREF(Py_None); |
|---|
| 4070 | n/a | _res = Py_None; |
|---|
| 4071 | n/a | return _res; |
|---|
| 4072 | n/a | } |
|---|
| 4073 | n/a | |
|---|
| 4074 | n/a | static PyObject *TrackObj_InsertTrackSegment(TrackObject *_self, PyObject *_args) |
|---|
| 4075 | n/a | { |
|---|
| 4076 | n/a | PyObject *_res = NULL; |
|---|
| 4077 | n/a | OSErr _err; |
|---|
| 4078 | n/a | Track dstTrack; |
|---|
| 4079 | n/a | TimeValue srcIn; |
|---|
| 4080 | n/a | TimeValue srcDuration; |
|---|
| 4081 | n/a | TimeValue dstIn; |
|---|
| 4082 | n/a | #ifndef InsertTrackSegment |
|---|
| 4083 | n/a | PyMac_PRECHECK(InsertTrackSegment); |
|---|
| 4084 | n/a | #endif |
|---|
| 4085 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 4086 | n/a | TrackObj_Convert, &dstTrack, |
|---|
| 4087 | n/a | &srcIn, |
|---|
| 4088 | n/a | &srcDuration, |
|---|
| 4089 | n/a | &dstIn)) |
|---|
| 4090 | n/a | return NULL; |
|---|
| 4091 | n/a | _err = InsertTrackSegment(_self->ob_itself, |
|---|
| 4092 | n/a | dstTrack, |
|---|
| 4093 | n/a | srcIn, |
|---|
| 4094 | n/a | srcDuration, |
|---|
| 4095 | n/a | dstIn); |
|---|
| 4096 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4097 | n/a | Py_INCREF(Py_None); |
|---|
| 4098 | n/a | _res = Py_None; |
|---|
| 4099 | n/a | return _res; |
|---|
| 4100 | n/a | } |
|---|
| 4101 | n/a | |
|---|
| 4102 | n/a | static PyObject *TrackObj_InsertEmptyTrackSegment(TrackObject *_self, PyObject *_args) |
|---|
| 4103 | n/a | { |
|---|
| 4104 | n/a | PyObject *_res = NULL; |
|---|
| 4105 | n/a | OSErr _err; |
|---|
| 4106 | n/a | TimeValue dstIn; |
|---|
| 4107 | n/a | TimeValue dstDuration; |
|---|
| 4108 | n/a | #ifndef InsertEmptyTrackSegment |
|---|
| 4109 | n/a | PyMac_PRECHECK(InsertEmptyTrackSegment); |
|---|
| 4110 | n/a | #endif |
|---|
| 4111 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 4112 | n/a | &dstIn, |
|---|
| 4113 | n/a | &dstDuration)) |
|---|
| 4114 | n/a | return NULL; |
|---|
| 4115 | n/a | _err = InsertEmptyTrackSegment(_self->ob_itself, |
|---|
| 4116 | n/a | dstIn, |
|---|
| 4117 | n/a | dstDuration); |
|---|
| 4118 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4119 | n/a | Py_INCREF(Py_None); |
|---|
| 4120 | n/a | _res = Py_None; |
|---|
| 4121 | n/a | return _res; |
|---|
| 4122 | n/a | } |
|---|
| 4123 | n/a | |
|---|
| 4124 | n/a | static PyObject *TrackObj_DeleteTrackSegment(TrackObject *_self, PyObject *_args) |
|---|
| 4125 | n/a | { |
|---|
| 4126 | n/a | PyObject *_res = NULL; |
|---|
| 4127 | n/a | OSErr _err; |
|---|
| 4128 | n/a | TimeValue startTime; |
|---|
| 4129 | n/a | TimeValue duration; |
|---|
| 4130 | n/a | #ifndef DeleteTrackSegment |
|---|
| 4131 | n/a | PyMac_PRECHECK(DeleteTrackSegment); |
|---|
| 4132 | n/a | #endif |
|---|
| 4133 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 4134 | n/a | &startTime, |
|---|
| 4135 | n/a | &duration)) |
|---|
| 4136 | n/a | return NULL; |
|---|
| 4137 | n/a | _err = DeleteTrackSegment(_self->ob_itself, |
|---|
| 4138 | n/a | startTime, |
|---|
| 4139 | n/a | duration); |
|---|
| 4140 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4141 | n/a | Py_INCREF(Py_None); |
|---|
| 4142 | n/a | _res = Py_None; |
|---|
| 4143 | n/a | return _res; |
|---|
| 4144 | n/a | } |
|---|
| 4145 | n/a | |
|---|
| 4146 | n/a | static PyObject *TrackObj_ScaleTrackSegment(TrackObject *_self, PyObject *_args) |
|---|
| 4147 | n/a | { |
|---|
| 4148 | n/a | PyObject *_res = NULL; |
|---|
| 4149 | n/a | OSErr _err; |
|---|
| 4150 | n/a | TimeValue startTime; |
|---|
| 4151 | n/a | TimeValue oldDuration; |
|---|
| 4152 | n/a | TimeValue newDuration; |
|---|
| 4153 | n/a | #ifndef ScaleTrackSegment |
|---|
| 4154 | n/a | PyMac_PRECHECK(ScaleTrackSegment); |
|---|
| 4155 | n/a | #endif |
|---|
| 4156 | n/a | if (!PyArg_ParseTuple(_args, "lll", |
|---|
| 4157 | n/a | &startTime, |
|---|
| 4158 | n/a | &oldDuration, |
|---|
| 4159 | n/a | &newDuration)) |
|---|
| 4160 | n/a | return NULL; |
|---|
| 4161 | n/a | _err = ScaleTrackSegment(_self->ob_itself, |
|---|
| 4162 | n/a | startTime, |
|---|
| 4163 | n/a | oldDuration, |
|---|
| 4164 | n/a | newDuration); |
|---|
| 4165 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4166 | n/a | Py_INCREF(Py_None); |
|---|
| 4167 | n/a | _res = Py_None; |
|---|
| 4168 | n/a | return _res; |
|---|
| 4169 | n/a | } |
|---|
| 4170 | n/a | |
|---|
| 4171 | n/a | static PyObject *TrackObj_IsScrapMovie(TrackObject *_self, PyObject *_args) |
|---|
| 4172 | n/a | { |
|---|
| 4173 | n/a | PyObject *_res = NULL; |
|---|
| 4174 | n/a | Component _rv; |
|---|
| 4175 | n/a | #ifndef IsScrapMovie |
|---|
| 4176 | n/a | PyMac_PRECHECK(IsScrapMovie); |
|---|
| 4177 | n/a | #endif |
|---|
| 4178 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4179 | n/a | return NULL; |
|---|
| 4180 | n/a | _rv = IsScrapMovie(_self->ob_itself); |
|---|
| 4181 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4182 | n/a | CmpObj_New, _rv); |
|---|
| 4183 | n/a | return _res; |
|---|
| 4184 | n/a | } |
|---|
| 4185 | n/a | |
|---|
| 4186 | n/a | static PyObject *TrackObj_CopyTrackSettings(TrackObject *_self, PyObject *_args) |
|---|
| 4187 | n/a | { |
|---|
| 4188 | n/a | PyObject *_res = NULL; |
|---|
| 4189 | n/a | OSErr _err; |
|---|
| 4190 | n/a | Track dstTrack; |
|---|
| 4191 | n/a | #ifndef CopyTrackSettings |
|---|
| 4192 | n/a | PyMac_PRECHECK(CopyTrackSettings); |
|---|
| 4193 | n/a | #endif |
|---|
| 4194 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 4195 | n/a | TrackObj_Convert, &dstTrack)) |
|---|
| 4196 | n/a | return NULL; |
|---|
| 4197 | n/a | _err = CopyTrackSettings(_self->ob_itself, |
|---|
| 4198 | n/a | dstTrack); |
|---|
| 4199 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4200 | n/a | Py_INCREF(Py_None); |
|---|
| 4201 | n/a | _res = Py_None; |
|---|
| 4202 | n/a | return _res; |
|---|
| 4203 | n/a | } |
|---|
| 4204 | n/a | |
|---|
| 4205 | n/a | static PyObject *TrackObj_AddEmptyTrackToMovie(TrackObject *_self, PyObject *_args) |
|---|
| 4206 | n/a | { |
|---|
| 4207 | n/a | PyObject *_res = NULL; |
|---|
| 4208 | n/a | OSErr _err; |
|---|
| 4209 | n/a | Movie dstMovie; |
|---|
| 4210 | n/a | Handle dataRef; |
|---|
| 4211 | n/a | OSType dataRefType; |
|---|
| 4212 | n/a | Track dstTrack; |
|---|
| 4213 | n/a | #ifndef AddEmptyTrackToMovie |
|---|
| 4214 | n/a | PyMac_PRECHECK(AddEmptyTrackToMovie); |
|---|
| 4215 | n/a | #endif |
|---|
| 4216 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 4217 | n/a | MovieObj_Convert, &dstMovie, |
|---|
| 4218 | n/a | ResObj_Convert, &dataRef, |
|---|
| 4219 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 4220 | n/a | return NULL; |
|---|
| 4221 | n/a | _err = AddEmptyTrackToMovie(_self->ob_itself, |
|---|
| 4222 | n/a | dstMovie, |
|---|
| 4223 | n/a | dataRef, |
|---|
| 4224 | n/a | dataRefType, |
|---|
| 4225 | n/a | &dstTrack); |
|---|
| 4226 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4227 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4228 | n/a | TrackObj_New, dstTrack); |
|---|
| 4229 | n/a | return _res; |
|---|
| 4230 | n/a | } |
|---|
| 4231 | n/a | |
|---|
| 4232 | n/a | static PyObject *TrackObj_AddClonedTrackToMovie(TrackObject *_self, PyObject *_args) |
|---|
| 4233 | n/a | { |
|---|
| 4234 | n/a | PyObject *_res = NULL; |
|---|
| 4235 | n/a | OSErr _err; |
|---|
| 4236 | n/a | Movie dstMovie; |
|---|
| 4237 | n/a | long flags; |
|---|
| 4238 | n/a | Track dstTrack; |
|---|
| 4239 | n/a | #ifndef AddClonedTrackToMovie |
|---|
| 4240 | n/a | PyMac_PRECHECK(AddClonedTrackToMovie); |
|---|
| 4241 | n/a | #endif |
|---|
| 4242 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 4243 | n/a | MovieObj_Convert, &dstMovie, |
|---|
| 4244 | n/a | &flags)) |
|---|
| 4245 | n/a | return NULL; |
|---|
| 4246 | n/a | _err = AddClonedTrackToMovie(_self->ob_itself, |
|---|
| 4247 | n/a | dstMovie, |
|---|
| 4248 | n/a | flags, |
|---|
| 4249 | n/a | &dstTrack); |
|---|
| 4250 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4251 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4252 | n/a | TrackObj_New, dstTrack); |
|---|
| 4253 | n/a | return _res; |
|---|
| 4254 | n/a | } |
|---|
| 4255 | n/a | |
|---|
| 4256 | n/a | static PyObject *TrackObj_AddTrackReference(TrackObject *_self, PyObject *_args) |
|---|
| 4257 | n/a | { |
|---|
| 4258 | n/a | PyObject *_res = NULL; |
|---|
| 4259 | n/a | OSErr _err; |
|---|
| 4260 | n/a | Track refTrack; |
|---|
| 4261 | n/a | OSType refType; |
|---|
| 4262 | n/a | long addedIndex; |
|---|
| 4263 | n/a | #ifndef AddTrackReference |
|---|
| 4264 | n/a | PyMac_PRECHECK(AddTrackReference); |
|---|
| 4265 | n/a | #endif |
|---|
| 4266 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 4267 | n/a | TrackObj_Convert, &refTrack, |
|---|
| 4268 | n/a | PyMac_GetOSType, &refType)) |
|---|
| 4269 | n/a | return NULL; |
|---|
| 4270 | n/a | _err = AddTrackReference(_self->ob_itself, |
|---|
| 4271 | n/a | refTrack, |
|---|
| 4272 | n/a | refType, |
|---|
| 4273 | n/a | &addedIndex); |
|---|
| 4274 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4275 | n/a | _res = Py_BuildValue("l", |
|---|
| 4276 | n/a | addedIndex); |
|---|
| 4277 | n/a | return _res; |
|---|
| 4278 | n/a | } |
|---|
| 4279 | n/a | |
|---|
| 4280 | n/a | static PyObject *TrackObj_DeleteTrackReference(TrackObject *_self, PyObject *_args) |
|---|
| 4281 | n/a | { |
|---|
| 4282 | n/a | PyObject *_res = NULL; |
|---|
| 4283 | n/a | OSErr _err; |
|---|
| 4284 | n/a | OSType refType; |
|---|
| 4285 | n/a | long index; |
|---|
| 4286 | n/a | #ifndef DeleteTrackReference |
|---|
| 4287 | n/a | PyMac_PRECHECK(DeleteTrackReference); |
|---|
| 4288 | n/a | #endif |
|---|
| 4289 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 4290 | n/a | PyMac_GetOSType, &refType, |
|---|
| 4291 | n/a | &index)) |
|---|
| 4292 | n/a | return NULL; |
|---|
| 4293 | n/a | _err = DeleteTrackReference(_self->ob_itself, |
|---|
| 4294 | n/a | refType, |
|---|
| 4295 | n/a | index); |
|---|
| 4296 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4297 | n/a | Py_INCREF(Py_None); |
|---|
| 4298 | n/a | _res = Py_None; |
|---|
| 4299 | n/a | return _res; |
|---|
| 4300 | n/a | } |
|---|
| 4301 | n/a | |
|---|
| 4302 | n/a | static PyObject *TrackObj_SetTrackReference(TrackObject *_self, PyObject *_args) |
|---|
| 4303 | n/a | { |
|---|
| 4304 | n/a | PyObject *_res = NULL; |
|---|
| 4305 | n/a | OSErr _err; |
|---|
| 4306 | n/a | Track refTrack; |
|---|
| 4307 | n/a | OSType refType; |
|---|
| 4308 | n/a | long index; |
|---|
| 4309 | n/a | #ifndef SetTrackReference |
|---|
| 4310 | n/a | PyMac_PRECHECK(SetTrackReference); |
|---|
| 4311 | n/a | #endif |
|---|
| 4312 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 4313 | n/a | TrackObj_Convert, &refTrack, |
|---|
| 4314 | n/a | PyMac_GetOSType, &refType, |
|---|
| 4315 | n/a | &index)) |
|---|
| 4316 | n/a | return NULL; |
|---|
| 4317 | n/a | _err = SetTrackReference(_self->ob_itself, |
|---|
| 4318 | n/a | refTrack, |
|---|
| 4319 | n/a | refType, |
|---|
| 4320 | n/a | index); |
|---|
| 4321 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4322 | n/a | Py_INCREF(Py_None); |
|---|
| 4323 | n/a | _res = Py_None; |
|---|
| 4324 | n/a | return _res; |
|---|
| 4325 | n/a | } |
|---|
| 4326 | n/a | |
|---|
| 4327 | n/a | static PyObject *TrackObj_GetTrackReference(TrackObject *_self, PyObject *_args) |
|---|
| 4328 | n/a | { |
|---|
| 4329 | n/a | PyObject *_res = NULL; |
|---|
| 4330 | n/a | Track _rv; |
|---|
| 4331 | n/a | OSType refType; |
|---|
| 4332 | n/a | long index; |
|---|
| 4333 | n/a | #ifndef GetTrackReference |
|---|
| 4334 | n/a | PyMac_PRECHECK(GetTrackReference); |
|---|
| 4335 | n/a | #endif |
|---|
| 4336 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 4337 | n/a | PyMac_GetOSType, &refType, |
|---|
| 4338 | n/a | &index)) |
|---|
| 4339 | n/a | return NULL; |
|---|
| 4340 | n/a | _rv = GetTrackReference(_self->ob_itself, |
|---|
| 4341 | n/a | refType, |
|---|
| 4342 | n/a | index); |
|---|
| 4343 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4344 | n/a | TrackObj_New, _rv); |
|---|
| 4345 | n/a | return _res; |
|---|
| 4346 | n/a | } |
|---|
| 4347 | n/a | |
|---|
| 4348 | n/a | static PyObject *TrackObj_GetNextTrackReferenceType(TrackObject *_self, PyObject *_args) |
|---|
| 4349 | n/a | { |
|---|
| 4350 | n/a | PyObject *_res = NULL; |
|---|
| 4351 | n/a | OSType _rv; |
|---|
| 4352 | n/a | OSType refType; |
|---|
| 4353 | n/a | #ifndef GetNextTrackReferenceType |
|---|
| 4354 | n/a | PyMac_PRECHECK(GetNextTrackReferenceType); |
|---|
| 4355 | n/a | #endif |
|---|
| 4356 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 4357 | n/a | PyMac_GetOSType, &refType)) |
|---|
| 4358 | n/a | return NULL; |
|---|
| 4359 | n/a | _rv = GetNextTrackReferenceType(_self->ob_itself, |
|---|
| 4360 | n/a | refType); |
|---|
| 4361 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4362 | n/a | PyMac_BuildOSType, _rv); |
|---|
| 4363 | n/a | return _res; |
|---|
| 4364 | n/a | } |
|---|
| 4365 | n/a | |
|---|
| 4366 | n/a | static PyObject *TrackObj_GetTrackReferenceCount(TrackObject *_self, PyObject *_args) |
|---|
| 4367 | n/a | { |
|---|
| 4368 | n/a | PyObject *_res = NULL; |
|---|
| 4369 | n/a | long _rv; |
|---|
| 4370 | n/a | OSType refType; |
|---|
| 4371 | n/a | #ifndef GetTrackReferenceCount |
|---|
| 4372 | n/a | PyMac_PRECHECK(GetTrackReferenceCount); |
|---|
| 4373 | n/a | #endif |
|---|
| 4374 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 4375 | n/a | PyMac_GetOSType, &refType)) |
|---|
| 4376 | n/a | return NULL; |
|---|
| 4377 | n/a | _rv = GetTrackReferenceCount(_self->ob_itself, |
|---|
| 4378 | n/a | refType); |
|---|
| 4379 | n/a | _res = Py_BuildValue("l", |
|---|
| 4380 | n/a | _rv); |
|---|
| 4381 | n/a | return _res; |
|---|
| 4382 | n/a | } |
|---|
| 4383 | n/a | |
|---|
| 4384 | n/a | static PyObject *TrackObj_GetTrackEditRate(TrackObject *_self, PyObject *_args) |
|---|
| 4385 | n/a | { |
|---|
| 4386 | n/a | PyObject *_res = NULL; |
|---|
| 4387 | n/a | Fixed _rv; |
|---|
| 4388 | n/a | TimeValue atTime; |
|---|
| 4389 | n/a | #ifndef GetTrackEditRate |
|---|
| 4390 | n/a | PyMac_PRECHECK(GetTrackEditRate); |
|---|
| 4391 | n/a | #endif |
|---|
| 4392 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 4393 | n/a | &atTime)) |
|---|
| 4394 | n/a | return NULL; |
|---|
| 4395 | n/a | _rv = GetTrackEditRate(_self->ob_itself, |
|---|
| 4396 | n/a | atTime); |
|---|
| 4397 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4398 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 4399 | n/a | return _res; |
|---|
| 4400 | n/a | } |
|---|
| 4401 | n/a | |
|---|
| 4402 | n/a | static PyObject *TrackObj_GetTrackDataSize(TrackObject *_self, PyObject *_args) |
|---|
| 4403 | n/a | { |
|---|
| 4404 | n/a | PyObject *_res = NULL; |
|---|
| 4405 | n/a | long _rv; |
|---|
| 4406 | n/a | TimeValue startTime; |
|---|
| 4407 | n/a | TimeValue duration; |
|---|
| 4408 | n/a | #ifndef GetTrackDataSize |
|---|
| 4409 | n/a | PyMac_PRECHECK(GetTrackDataSize); |
|---|
| 4410 | n/a | #endif |
|---|
| 4411 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 4412 | n/a | &startTime, |
|---|
| 4413 | n/a | &duration)) |
|---|
| 4414 | n/a | return NULL; |
|---|
| 4415 | n/a | _rv = GetTrackDataSize(_self->ob_itself, |
|---|
| 4416 | n/a | startTime, |
|---|
| 4417 | n/a | duration); |
|---|
| 4418 | n/a | _res = Py_BuildValue("l", |
|---|
| 4419 | n/a | _rv); |
|---|
| 4420 | n/a | return _res; |
|---|
| 4421 | n/a | } |
|---|
| 4422 | n/a | |
|---|
| 4423 | n/a | static PyObject *TrackObj_GetTrackDataSize64(TrackObject *_self, PyObject *_args) |
|---|
| 4424 | n/a | { |
|---|
| 4425 | n/a | PyObject *_res = NULL; |
|---|
| 4426 | n/a | OSErr _err; |
|---|
| 4427 | n/a | TimeValue startTime; |
|---|
| 4428 | n/a | TimeValue duration; |
|---|
| 4429 | n/a | wide dataSize; |
|---|
| 4430 | n/a | #ifndef GetTrackDataSize64 |
|---|
| 4431 | n/a | PyMac_PRECHECK(GetTrackDataSize64); |
|---|
| 4432 | n/a | #endif |
|---|
| 4433 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 4434 | n/a | &startTime, |
|---|
| 4435 | n/a | &duration)) |
|---|
| 4436 | n/a | return NULL; |
|---|
| 4437 | n/a | _err = GetTrackDataSize64(_self->ob_itself, |
|---|
| 4438 | n/a | startTime, |
|---|
| 4439 | n/a | duration, |
|---|
| 4440 | n/a | &dataSize); |
|---|
| 4441 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4442 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4443 | n/a | PyMac_Buildwide, dataSize); |
|---|
| 4444 | n/a | return _res; |
|---|
| 4445 | n/a | } |
|---|
| 4446 | n/a | |
|---|
| 4447 | n/a | static PyObject *TrackObj_PtInTrack(TrackObject *_self, PyObject *_args) |
|---|
| 4448 | n/a | { |
|---|
| 4449 | n/a | PyObject *_res = NULL; |
|---|
| 4450 | n/a | Boolean _rv; |
|---|
| 4451 | n/a | Point pt; |
|---|
| 4452 | n/a | #ifndef PtInTrack |
|---|
| 4453 | n/a | PyMac_PRECHECK(PtInTrack); |
|---|
| 4454 | n/a | #endif |
|---|
| 4455 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 4456 | n/a | PyMac_GetPoint, &pt)) |
|---|
| 4457 | n/a | return NULL; |
|---|
| 4458 | n/a | _rv = PtInTrack(_self->ob_itself, |
|---|
| 4459 | n/a | pt); |
|---|
| 4460 | n/a | _res = Py_BuildValue("b", |
|---|
| 4461 | n/a | _rv); |
|---|
| 4462 | n/a | return _res; |
|---|
| 4463 | n/a | } |
|---|
| 4464 | n/a | |
|---|
| 4465 | n/a | static PyObject *TrackObj_CopyTrackUserData(TrackObject *_self, PyObject *_args) |
|---|
| 4466 | n/a | { |
|---|
| 4467 | n/a | PyObject *_res = NULL; |
|---|
| 4468 | n/a | OSErr _err; |
|---|
| 4469 | n/a | Track dstTrack; |
|---|
| 4470 | n/a | OSType copyRule; |
|---|
| 4471 | n/a | #ifndef CopyTrackUserData |
|---|
| 4472 | n/a | PyMac_PRECHECK(CopyTrackUserData); |
|---|
| 4473 | n/a | #endif |
|---|
| 4474 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 4475 | n/a | TrackObj_Convert, &dstTrack, |
|---|
| 4476 | n/a | PyMac_GetOSType, ©Rule)) |
|---|
| 4477 | n/a | return NULL; |
|---|
| 4478 | n/a | _err = CopyTrackUserData(_self->ob_itself, |
|---|
| 4479 | n/a | dstTrack, |
|---|
| 4480 | n/a | copyRule); |
|---|
| 4481 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4482 | n/a | Py_INCREF(Py_None); |
|---|
| 4483 | n/a | _res = Py_None; |
|---|
| 4484 | n/a | return _res; |
|---|
| 4485 | n/a | } |
|---|
| 4486 | n/a | |
|---|
| 4487 | n/a | static PyObject *TrackObj_GetTrackNextInterestingTime(TrackObject *_self, PyObject *_args) |
|---|
| 4488 | n/a | { |
|---|
| 4489 | n/a | PyObject *_res = NULL; |
|---|
| 4490 | n/a | short interestingTimeFlags; |
|---|
| 4491 | n/a | TimeValue time; |
|---|
| 4492 | n/a | Fixed rate; |
|---|
| 4493 | n/a | TimeValue interestingTime; |
|---|
| 4494 | n/a | TimeValue interestingDuration; |
|---|
| 4495 | n/a | #ifndef GetTrackNextInterestingTime |
|---|
| 4496 | n/a | PyMac_PRECHECK(GetTrackNextInterestingTime); |
|---|
| 4497 | n/a | #endif |
|---|
| 4498 | n/a | if (!PyArg_ParseTuple(_args, "hlO&", |
|---|
| 4499 | n/a | &interestingTimeFlags, |
|---|
| 4500 | n/a | &time, |
|---|
| 4501 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 4502 | n/a | return NULL; |
|---|
| 4503 | n/a | GetTrackNextInterestingTime(_self->ob_itself, |
|---|
| 4504 | n/a | interestingTimeFlags, |
|---|
| 4505 | n/a | time, |
|---|
| 4506 | n/a | rate, |
|---|
| 4507 | n/a | &interestingTime, |
|---|
| 4508 | n/a | &interestingDuration); |
|---|
| 4509 | n/a | _res = Py_BuildValue("ll", |
|---|
| 4510 | n/a | interestingTime, |
|---|
| 4511 | n/a | interestingDuration); |
|---|
| 4512 | n/a | return _res; |
|---|
| 4513 | n/a | } |
|---|
| 4514 | n/a | |
|---|
| 4515 | n/a | static PyObject *TrackObj_GetTrackSegmentDisplayBoundsRgn(TrackObject *_self, PyObject *_args) |
|---|
| 4516 | n/a | { |
|---|
| 4517 | n/a | PyObject *_res = NULL; |
|---|
| 4518 | n/a | RgnHandle _rv; |
|---|
| 4519 | n/a | TimeValue time; |
|---|
| 4520 | n/a | TimeValue duration; |
|---|
| 4521 | n/a | #ifndef GetTrackSegmentDisplayBoundsRgn |
|---|
| 4522 | n/a | PyMac_PRECHECK(GetTrackSegmentDisplayBoundsRgn); |
|---|
| 4523 | n/a | #endif |
|---|
| 4524 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 4525 | n/a | &time, |
|---|
| 4526 | n/a | &duration)) |
|---|
| 4527 | n/a | return NULL; |
|---|
| 4528 | n/a | _rv = GetTrackSegmentDisplayBoundsRgn(_self->ob_itself, |
|---|
| 4529 | n/a | time, |
|---|
| 4530 | n/a | duration); |
|---|
| 4531 | n/a | _res = Py_BuildValue("O&", |
|---|
| 4532 | n/a | ResObj_New, _rv); |
|---|
| 4533 | n/a | return _res; |
|---|
| 4534 | n/a | } |
|---|
| 4535 | n/a | |
|---|
| 4536 | n/a | static PyObject *TrackObj_GetTrackStatus(TrackObject *_self, PyObject *_args) |
|---|
| 4537 | n/a | { |
|---|
| 4538 | n/a | PyObject *_res = NULL; |
|---|
| 4539 | n/a | ComponentResult _rv; |
|---|
| 4540 | n/a | #ifndef GetTrackStatus |
|---|
| 4541 | n/a | PyMac_PRECHECK(GetTrackStatus); |
|---|
| 4542 | n/a | #endif |
|---|
| 4543 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4544 | n/a | return NULL; |
|---|
| 4545 | n/a | _rv = GetTrackStatus(_self->ob_itself); |
|---|
| 4546 | n/a | _res = Py_BuildValue("l", |
|---|
| 4547 | n/a | _rv); |
|---|
| 4548 | n/a | return _res; |
|---|
| 4549 | n/a | } |
|---|
| 4550 | n/a | |
|---|
| 4551 | n/a | static PyObject *TrackObj_SetTrackLoadSettings(TrackObject *_self, PyObject *_args) |
|---|
| 4552 | n/a | { |
|---|
| 4553 | n/a | PyObject *_res = NULL; |
|---|
| 4554 | n/a | TimeValue preloadTime; |
|---|
| 4555 | n/a | TimeValue preloadDuration; |
|---|
| 4556 | n/a | long preloadFlags; |
|---|
| 4557 | n/a | long defaultHints; |
|---|
| 4558 | n/a | #ifndef SetTrackLoadSettings |
|---|
| 4559 | n/a | PyMac_PRECHECK(SetTrackLoadSettings); |
|---|
| 4560 | n/a | #endif |
|---|
| 4561 | n/a | if (!PyArg_ParseTuple(_args, "llll", |
|---|
| 4562 | n/a | &preloadTime, |
|---|
| 4563 | n/a | &preloadDuration, |
|---|
| 4564 | n/a | &preloadFlags, |
|---|
| 4565 | n/a | &defaultHints)) |
|---|
| 4566 | n/a | return NULL; |
|---|
| 4567 | n/a | SetTrackLoadSettings(_self->ob_itself, |
|---|
| 4568 | n/a | preloadTime, |
|---|
| 4569 | n/a | preloadDuration, |
|---|
| 4570 | n/a | preloadFlags, |
|---|
| 4571 | n/a | defaultHints); |
|---|
| 4572 | n/a | Py_INCREF(Py_None); |
|---|
| 4573 | n/a | _res = Py_None; |
|---|
| 4574 | n/a | return _res; |
|---|
| 4575 | n/a | } |
|---|
| 4576 | n/a | |
|---|
| 4577 | n/a | static PyObject *TrackObj_GetTrackLoadSettings(TrackObject *_self, PyObject *_args) |
|---|
| 4578 | n/a | { |
|---|
| 4579 | n/a | PyObject *_res = NULL; |
|---|
| 4580 | n/a | TimeValue preloadTime; |
|---|
| 4581 | n/a | TimeValue preloadDuration; |
|---|
| 4582 | n/a | long preloadFlags; |
|---|
| 4583 | n/a | long defaultHints; |
|---|
| 4584 | n/a | #ifndef GetTrackLoadSettings |
|---|
| 4585 | n/a | PyMac_PRECHECK(GetTrackLoadSettings); |
|---|
| 4586 | n/a | #endif |
|---|
| 4587 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4588 | n/a | return NULL; |
|---|
| 4589 | n/a | GetTrackLoadSettings(_self->ob_itself, |
|---|
| 4590 | n/a | &preloadTime, |
|---|
| 4591 | n/a | &preloadDuration, |
|---|
| 4592 | n/a | &preloadFlags, |
|---|
| 4593 | n/a | &defaultHints); |
|---|
| 4594 | n/a | _res = Py_BuildValue("llll", |
|---|
| 4595 | n/a | preloadTime, |
|---|
| 4596 | n/a | preloadDuration, |
|---|
| 4597 | n/a | preloadFlags, |
|---|
| 4598 | n/a | defaultHints); |
|---|
| 4599 | n/a | return _res; |
|---|
| 4600 | n/a | } |
|---|
| 4601 | n/a | |
|---|
| 4602 | n/a | static PyMethodDef TrackObj_methods[] = { |
|---|
| 4603 | n/a | {"LoadTrackIntoRam", (PyCFunction)TrackObj_LoadTrackIntoRam, 1, |
|---|
| 4604 | n/a | PyDoc_STR("(TimeValue time, TimeValue duration, long flags) -> None")}, |
|---|
| 4605 | n/a | {"GetTrackPict", (PyCFunction)TrackObj_GetTrackPict, 1, |
|---|
| 4606 | n/a | PyDoc_STR("(TimeValue time) -> (PicHandle _rv)")}, |
|---|
| 4607 | n/a | {"GetTrackClipRgn", (PyCFunction)TrackObj_GetTrackClipRgn, 1, |
|---|
| 4608 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 4609 | n/a | {"SetTrackClipRgn", (PyCFunction)TrackObj_SetTrackClipRgn, 1, |
|---|
| 4610 | n/a | PyDoc_STR("(RgnHandle theClip) -> None")}, |
|---|
| 4611 | n/a | {"GetTrackDisplayBoundsRgn", (PyCFunction)TrackObj_GetTrackDisplayBoundsRgn, 1, |
|---|
| 4612 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 4613 | n/a | {"GetTrackMovieBoundsRgn", (PyCFunction)TrackObj_GetTrackMovieBoundsRgn, 1, |
|---|
| 4614 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 4615 | n/a | {"GetTrackBoundsRgn", (PyCFunction)TrackObj_GetTrackBoundsRgn, 1, |
|---|
| 4616 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 4617 | n/a | {"GetTrackMatte", (PyCFunction)TrackObj_GetTrackMatte, 1, |
|---|
| 4618 | n/a | PyDoc_STR("() -> (PixMapHandle _rv)")}, |
|---|
| 4619 | n/a | {"SetTrackMatte", (PyCFunction)TrackObj_SetTrackMatte, 1, |
|---|
| 4620 | n/a | PyDoc_STR("(PixMapHandle theMatte) -> None")}, |
|---|
| 4621 | n/a | {"GetTrackID", (PyCFunction)TrackObj_GetTrackID, 1, |
|---|
| 4622 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 4623 | n/a | {"GetTrackMovie", (PyCFunction)TrackObj_GetTrackMovie, 1, |
|---|
| 4624 | n/a | PyDoc_STR("() -> (Movie _rv)")}, |
|---|
| 4625 | n/a | {"GetTrackCreationTime", (PyCFunction)TrackObj_GetTrackCreationTime, 1, |
|---|
| 4626 | n/a | PyDoc_STR("() -> (unsigned long _rv)")}, |
|---|
| 4627 | n/a | {"GetTrackModificationTime", (PyCFunction)TrackObj_GetTrackModificationTime, 1, |
|---|
| 4628 | n/a | PyDoc_STR("() -> (unsigned long _rv)")}, |
|---|
| 4629 | n/a | {"GetTrackEnabled", (PyCFunction)TrackObj_GetTrackEnabled, 1, |
|---|
| 4630 | n/a | PyDoc_STR("() -> (Boolean _rv)")}, |
|---|
| 4631 | n/a | {"SetTrackEnabled", (PyCFunction)TrackObj_SetTrackEnabled, 1, |
|---|
| 4632 | n/a | PyDoc_STR("(Boolean isEnabled) -> None")}, |
|---|
| 4633 | n/a | {"GetTrackUsage", (PyCFunction)TrackObj_GetTrackUsage, 1, |
|---|
| 4634 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 4635 | n/a | {"SetTrackUsage", (PyCFunction)TrackObj_SetTrackUsage, 1, |
|---|
| 4636 | n/a | PyDoc_STR("(long usage) -> None")}, |
|---|
| 4637 | n/a | {"GetTrackDuration", (PyCFunction)TrackObj_GetTrackDuration, 1, |
|---|
| 4638 | n/a | PyDoc_STR("() -> (TimeValue _rv)")}, |
|---|
| 4639 | n/a | {"GetTrackOffset", (PyCFunction)TrackObj_GetTrackOffset, 1, |
|---|
| 4640 | n/a | PyDoc_STR("() -> (TimeValue _rv)")}, |
|---|
| 4641 | n/a | {"SetTrackOffset", (PyCFunction)TrackObj_SetTrackOffset, 1, |
|---|
| 4642 | n/a | PyDoc_STR("(TimeValue movieOffsetTime) -> None")}, |
|---|
| 4643 | n/a | {"GetTrackLayer", (PyCFunction)TrackObj_GetTrackLayer, 1, |
|---|
| 4644 | n/a | PyDoc_STR("() -> (short _rv)")}, |
|---|
| 4645 | n/a | {"SetTrackLayer", (PyCFunction)TrackObj_SetTrackLayer, 1, |
|---|
| 4646 | n/a | PyDoc_STR("(short layer) -> None")}, |
|---|
| 4647 | n/a | {"GetTrackAlternate", (PyCFunction)TrackObj_GetTrackAlternate, 1, |
|---|
| 4648 | n/a | PyDoc_STR("() -> (Track _rv)")}, |
|---|
| 4649 | n/a | {"SetTrackAlternate", (PyCFunction)TrackObj_SetTrackAlternate, 1, |
|---|
| 4650 | n/a | PyDoc_STR("(Track alternateT) -> None")}, |
|---|
| 4651 | n/a | {"GetTrackVolume", (PyCFunction)TrackObj_GetTrackVolume, 1, |
|---|
| 4652 | n/a | PyDoc_STR("() -> (short _rv)")}, |
|---|
| 4653 | n/a | {"SetTrackVolume", (PyCFunction)TrackObj_SetTrackVolume, 1, |
|---|
| 4654 | n/a | PyDoc_STR("(short volume) -> None")}, |
|---|
| 4655 | n/a | {"GetTrackDimensions", (PyCFunction)TrackObj_GetTrackDimensions, 1, |
|---|
| 4656 | n/a | PyDoc_STR("() -> (Fixed width, Fixed height)")}, |
|---|
| 4657 | n/a | {"SetTrackDimensions", (PyCFunction)TrackObj_SetTrackDimensions, 1, |
|---|
| 4658 | n/a | PyDoc_STR("(Fixed width, Fixed height) -> None")}, |
|---|
| 4659 | n/a | {"GetTrackUserData", (PyCFunction)TrackObj_GetTrackUserData, 1, |
|---|
| 4660 | n/a | PyDoc_STR("() -> (UserData _rv)")}, |
|---|
| 4661 | n/a | {"GetTrackSoundLocalizationSettings", (PyCFunction)TrackObj_GetTrackSoundLocalizationSettings, 1, |
|---|
| 4662 | n/a | PyDoc_STR("() -> (Handle settings)")}, |
|---|
| 4663 | n/a | {"SetTrackSoundLocalizationSettings", (PyCFunction)TrackObj_SetTrackSoundLocalizationSettings, 1, |
|---|
| 4664 | n/a | PyDoc_STR("(Handle settings) -> None")}, |
|---|
| 4665 | n/a | {"NewTrackMedia", (PyCFunction)TrackObj_NewTrackMedia, 1, |
|---|
| 4666 | n/a | PyDoc_STR("(OSType mediaType, TimeScale timeScale, Handle dataRef, OSType dataRefType) -> (Media _rv)")}, |
|---|
| 4667 | n/a | {"GetTrackMedia", (PyCFunction)TrackObj_GetTrackMedia, 1, |
|---|
| 4668 | n/a | PyDoc_STR("() -> (Media _rv)")}, |
|---|
| 4669 | n/a | {"InsertMediaIntoTrack", (PyCFunction)TrackObj_InsertMediaIntoTrack, 1, |
|---|
| 4670 | n/a | PyDoc_STR("(TimeValue trackStart, TimeValue mediaTime, TimeValue mediaDuration, Fixed mediaRate) -> None")}, |
|---|
| 4671 | n/a | {"InsertTrackSegment", (PyCFunction)TrackObj_InsertTrackSegment, 1, |
|---|
| 4672 | n/a | PyDoc_STR("(Track dstTrack, TimeValue srcIn, TimeValue srcDuration, TimeValue dstIn) -> None")}, |
|---|
| 4673 | n/a | {"InsertEmptyTrackSegment", (PyCFunction)TrackObj_InsertEmptyTrackSegment, 1, |
|---|
| 4674 | n/a | PyDoc_STR("(TimeValue dstIn, TimeValue dstDuration) -> None")}, |
|---|
| 4675 | n/a | {"DeleteTrackSegment", (PyCFunction)TrackObj_DeleteTrackSegment, 1, |
|---|
| 4676 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> None")}, |
|---|
| 4677 | n/a | {"ScaleTrackSegment", (PyCFunction)TrackObj_ScaleTrackSegment, 1, |
|---|
| 4678 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue oldDuration, TimeValue newDuration) -> None")}, |
|---|
| 4679 | n/a | {"IsScrapMovie", (PyCFunction)TrackObj_IsScrapMovie, 1, |
|---|
| 4680 | n/a | PyDoc_STR("() -> (Component _rv)")}, |
|---|
| 4681 | n/a | {"CopyTrackSettings", (PyCFunction)TrackObj_CopyTrackSettings, 1, |
|---|
| 4682 | n/a | PyDoc_STR("(Track dstTrack) -> None")}, |
|---|
| 4683 | n/a | {"AddEmptyTrackToMovie", (PyCFunction)TrackObj_AddEmptyTrackToMovie, 1, |
|---|
| 4684 | n/a | PyDoc_STR("(Movie dstMovie, Handle dataRef, OSType dataRefType) -> (Track dstTrack)")}, |
|---|
| 4685 | n/a | {"AddClonedTrackToMovie", (PyCFunction)TrackObj_AddClonedTrackToMovie, 1, |
|---|
| 4686 | n/a | PyDoc_STR("(Movie dstMovie, long flags) -> (Track dstTrack)")}, |
|---|
| 4687 | n/a | {"AddTrackReference", (PyCFunction)TrackObj_AddTrackReference, 1, |
|---|
| 4688 | n/a | PyDoc_STR("(Track refTrack, OSType refType) -> (long addedIndex)")}, |
|---|
| 4689 | n/a | {"DeleteTrackReference", (PyCFunction)TrackObj_DeleteTrackReference, 1, |
|---|
| 4690 | n/a | PyDoc_STR("(OSType refType, long index) -> None")}, |
|---|
| 4691 | n/a | {"SetTrackReference", (PyCFunction)TrackObj_SetTrackReference, 1, |
|---|
| 4692 | n/a | PyDoc_STR("(Track refTrack, OSType refType, long index) -> None")}, |
|---|
| 4693 | n/a | {"GetTrackReference", (PyCFunction)TrackObj_GetTrackReference, 1, |
|---|
| 4694 | n/a | PyDoc_STR("(OSType refType, long index) -> (Track _rv)")}, |
|---|
| 4695 | n/a | {"GetNextTrackReferenceType", (PyCFunction)TrackObj_GetNextTrackReferenceType, 1, |
|---|
| 4696 | n/a | PyDoc_STR("(OSType refType) -> (OSType _rv)")}, |
|---|
| 4697 | n/a | {"GetTrackReferenceCount", (PyCFunction)TrackObj_GetTrackReferenceCount, 1, |
|---|
| 4698 | n/a | PyDoc_STR("(OSType refType) -> (long _rv)")}, |
|---|
| 4699 | n/a | {"GetTrackEditRate", (PyCFunction)TrackObj_GetTrackEditRate, 1, |
|---|
| 4700 | n/a | PyDoc_STR("(TimeValue atTime) -> (Fixed _rv)")}, |
|---|
| 4701 | n/a | {"GetTrackDataSize", (PyCFunction)TrackObj_GetTrackDataSize, 1, |
|---|
| 4702 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (long _rv)")}, |
|---|
| 4703 | n/a | {"GetTrackDataSize64", (PyCFunction)TrackObj_GetTrackDataSize64, 1, |
|---|
| 4704 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (wide dataSize)")}, |
|---|
| 4705 | n/a | {"PtInTrack", (PyCFunction)TrackObj_PtInTrack, 1, |
|---|
| 4706 | n/a | PyDoc_STR("(Point pt) -> (Boolean _rv)")}, |
|---|
| 4707 | n/a | {"CopyTrackUserData", (PyCFunction)TrackObj_CopyTrackUserData, 1, |
|---|
| 4708 | n/a | PyDoc_STR("(Track dstTrack, OSType copyRule) -> None")}, |
|---|
| 4709 | n/a | {"GetTrackNextInterestingTime", (PyCFunction)TrackObj_GetTrackNextInterestingTime, 1, |
|---|
| 4710 | n/a | PyDoc_STR("(short interestingTimeFlags, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration)")}, |
|---|
| 4711 | n/a | {"GetTrackSegmentDisplayBoundsRgn", (PyCFunction)TrackObj_GetTrackSegmentDisplayBoundsRgn, 1, |
|---|
| 4712 | n/a | PyDoc_STR("(TimeValue time, TimeValue duration) -> (RgnHandle _rv)")}, |
|---|
| 4713 | n/a | {"GetTrackStatus", (PyCFunction)TrackObj_GetTrackStatus, 1, |
|---|
| 4714 | n/a | PyDoc_STR("() -> (ComponentResult _rv)")}, |
|---|
| 4715 | n/a | {"SetTrackLoadSettings", (PyCFunction)TrackObj_SetTrackLoadSettings, 1, |
|---|
| 4716 | n/a | PyDoc_STR("(TimeValue preloadTime, TimeValue preloadDuration, long preloadFlags, long defaultHints) -> None")}, |
|---|
| 4717 | n/a | {"GetTrackLoadSettings", (PyCFunction)TrackObj_GetTrackLoadSettings, 1, |
|---|
| 4718 | n/a | PyDoc_STR("() -> (TimeValue preloadTime, TimeValue preloadDuration, long preloadFlags, long defaultHints)")}, |
|---|
| 4719 | n/a | {NULL, NULL, 0} |
|---|
| 4720 | n/a | }; |
|---|
| 4721 | n/a | |
|---|
| 4722 | n/a | #define TrackObj_getsetlist NULL |
|---|
| 4723 | n/a | |
|---|
| 4724 | n/a | |
|---|
| 4725 | n/a | #define TrackObj_compare NULL |
|---|
| 4726 | n/a | |
|---|
| 4727 | n/a | #define TrackObj_repr NULL |
|---|
| 4728 | n/a | |
|---|
| 4729 | n/a | #define TrackObj_hash NULL |
|---|
| 4730 | n/a | #define TrackObj_tp_init 0 |
|---|
| 4731 | n/a | |
|---|
| 4732 | n/a | #define TrackObj_tp_alloc PyType_GenericAlloc |
|---|
| 4733 | n/a | |
|---|
| 4734 | n/a | static PyObject *TrackObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 4735 | n/a | { |
|---|
| 4736 | n/a | PyObject *_self; |
|---|
| 4737 | n/a | Track itself; |
|---|
| 4738 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 4739 | n/a | |
|---|
| 4740 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, TrackObj_Convert, &itself)) return NULL; |
|---|
| 4741 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 4742 | n/a | ((TrackObject *)_self)->ob_itself = itself; |
|---|
| 4743 | n/a | return _self; |
|---|
| 4744 | n/a | } |
|---|
| 4745 | n/a | |
|---|
| 4746 | n/a | #define TrackObj_tp_free PyObject_Del |
|---|
| 4747 | n/a | |
|---|
| 4748 | n/a | |
|---|
| 4749 | n/a | PyTypeObject Track_Type = { |
|---|
| 4750 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 4751 | n/a | 0, /*ob_size*/ |
|---|
| 4752 | n/a | "_Qt.Track", /*tp_name*/ |
|---|
| 4753 | n/a | sizeof(TrackObject), /*tp_basicsize*/ |
|---|
| 4754 | n/a | 0, /*tp_itemsize*/ |
|---|
| 4755 | n/a | /* methods */ |
|---|
| 4756 | n/a | (destructor) TrackObj_dealloc, /*tp_dealloc*/ |
|---|
| 4757 | n/a | 0, /*tp_print*/ |
|---|
| 4758 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 4759 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 4760 | n/a | (cmpfunc) TrackObj_compare, /*tp_compare*/ |
|---|
| 4761 | n/a | (reprfunc) TrackObj_repr, /*tp_repr*/ |
|---|
| 4762 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 4763 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 4764 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 4765 | n/a | (hashfunc) TrackObj_hash, /*tp_hash*/ |
|---|
| 4766 | n/a | 0, /*tp_call*/ |
|---|
| 4767 | n/a | 0, /*tp_str*/ |
|---|
| 4768 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 4769 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 4770 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 4771 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 4772 | n/a | 0, /*tp_doc*/ |
|---|
| 4773 | n/a | 0, /*tp_traverse*/ |
|---|
| 4774 | n/a | 0, /*tp_clear*/ |
|---|
| 4775 | n/a | 0, /*tp_richcompare*/ |
|---|
| 4776 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 4777 | n/a | 0, /*tp_iter*/ |
|---|
| 4778 | n/a | 0, /*tp_iternext*/ |
|---|
| 4779 | n/a | TrackObj_methods, /* tp_methods */ |
|---|
| 4780 | n/a | 0, /*tp_members*/ |
|---|
| 4781 | n/a | TrackObj_getsetlist, /*tp_getset*/ |
|---|
| 4782 | n/a | 0, /*tp_base*/ |
|---|
| 4783 | n/a | 0, /*tp_dict*/ |
|---|
| 4784 | n/a | 0, /*tp_descr_get*/ |
|---|
| 4785 | n/a | 0, /*tp_descr_set*/ |
|---|
| 4786 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 4787 | n/a | TrackObj_tp_init, /* tp_init */ |
|---|
| 4788 | n/a | TrackObj_tp_alloc, /* tp_alloc */ |
|---|
| 4789 | n/a | TrackObj_tp_new, /* tp_new */ |
|---|
| 4790 | n/a | TrackObj_tp_free, /* tp_free */ |
|---|
| 4791 | n/a | }; |
|---|
| 4792 | n/a | |
|---|
| 4793 | n/a | /* --------------------- End object type Track ---------------------- */ |
|---|
| 4794 | n/a | |
|---|
| 4795 | n/a | |
|---|
| 4796 | n/a | /* ----------------------- Object type Movie ------------------------ */ |
|---|
| 4797 | n/a | |
|---|
| 4798 | n/a | PyTypeObject Movie_Type; |
|---|
| 4799 | n/a | |
|---|
| 4800 | n/a | #define MovieObj_Check(x) ((x)->ob_type == &Movie_Type || PyObject_TypeCheck((x), &Movie_Type)) |
|---|
| 4801 | n/a | |
|---|
| 4802 | n/a | typedef struct MovieObject { |
|---|
| 4803 | n/a | PyObject_HEAD |
|---|
| 4804 | n/a | Movie ob_itself; |
|---|
| 4805 | n/a | } MovieObject; |
|---|
| 4806 | n/a | |
|---|
| 4807 | n/a | PyObject *MovieObj_New(Movie itself) |
|---|
| 4808 | n/a | { |
|---|
| 4809 | n/a | MovieObject *it; |
|---|
| 4810 | n/a | if (itself == NULL) { |
|---|
| 4811 | n/a | PyErr_SetString(Qt_Error,"Cannot create Movie from NULL pointer"); |
|---|
| 4812 | n/a | return NULL; |
|---|
| 4813 | n/a | } |
|---|
| 4814 | n/a | it = PyObject_NEW(MovieObject, &Movie_Type); |
|---|
| 4815 | n/a | if (it == NULL) return NULL; |
|---|
| 4816 | n/a | it->ob_itself = itself; |
|---|
| 4817 | n/a | return (PyObject *)it; |
|---|
| 4818 | n/a | } |
|---|
| 4819 | n/a | |
|---|
| 4820 | n/a | int MovieObj_Convert(PyObject *v, Movie *p_itself) |
|---|
| 4821 | n/a | { |
|---|
| 4822 | n/a | if (v == Py_None) |
|---|
| 4823 | n/a | { |
|---|
| 4824 | n/a | *p_itself = NULL; |
|---|
| 4825 | n/a | return 1; |
|---|
| 4826 | n/a | } |
|---|
| 4827 | n/a | if (!MovieObj_Check(v)) |
|---|
| 4828 | n/a | { |
|---|
| 4829 | n/a | PyErr_SetString(PyExc_TypeError, "Movie required"); |
|---|
| 4830 | n/a | return 0; |
|---|
| 4831 | n/a | } |
|---|
| 4832 | n/a | *p_itself = ((MovieObject *)v)->ob_itself; |
|---|
| 4833 | n/a | return 1; |
|---|
| 4834 | n/a | } |
|---|
| 4835 | n/a | |
|---|
| 4836 | n/a | static void MovieObj_dealloc(MovieObject *self) |
|---|
| 4837 | n/a | { |
|---|
| 4838 | n/a | if (self->ob_itself) DisposeMovie(self->ob_itself); |
|---|
| 4839 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 4840 | n/a | } |
|---|
| 4841 | n/a | |
|---|
| 4842 | n/a | static PyObject *MovieObj_MoviesTask(MovieObject *_self, PyObject *_args) |
|---|
| 4843 | n/a | { |
|---|
| 4844 | n/a | PyObject *_res = NULL; |
|---|
| 4845 | n/a | long maxMilliSecToUse; |
|---|
| 4846 | n/a | #ifndef MoviesTask |
|---|
| 4847 | n/a | PyMac_PRECHECK(MoviesTask); |
|---|
| 4848 | n/a | #endif |
|---|
| 4849 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 4850 | n/a | &maxMilliSecToUse)) |
|---|
| 4851 | n/a | return NULL; |
|---|
| 4852 | n/a | MoviesTask(_self->ob_itself, |
|---|
| 4853 | n/a | maxMilliSecToUse); |
|---|
| 4854 | n/a | Py_INCREF(Py_None); |
|---|
| 4855 | n/a | _res = Py_None; |
|---|
| 4856 | n/a | return _res; |
|---|
| 4857 | n/a | } |
|---|
| 4858 | n/a | |
|---|
| 4859 | n/a | static PyObject *MovieObj_PrerollMovie(MovieObject *_self, PyObject *_args) |
|---|
| 4860 | n/a | { |
|---|
| 4861 | n/a | PyObject *_res = NULL; |
|---|
| 4862 | n/a | OSErr _err; |
|---|
| 4863 | n/a | TimeValue time; |
|---|
| 4864 | n/a | Fixed Rate; |
|---|
| 4865 | n/a | #ifndef PrerollMovie |
|---|
| 4866 | n/a | PyMac_PRECHECK(PrerollMovie); |
|---|
| 4867 | n/a | #endif |
|---|
| 4868 | n/a | if (!PyArg_ParseTuple(_args, "lO&", |
|---|
| 4869 | n/a | &time, |
|---|
| 4870 | n/a | PyMac_GetFixed, &Rate)) |
|---|
| 4871 | n/a | return NULL; |
|---|
| 4872 | n/a | _err = PrerollMovie(_self->ob_itself, |
|---|
| 4873 | n/a | time, |
|---|
| 4874 | n/a | Rate); |
|---|
| 4875 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4876 | n/a | Py_INCREF(Py_None); |
|---|
| 4877 | n/a | _res = Py_None; |
|---|
| 4878 | n/a | return _res; |
|---|
| 4879 | n/a | } |
|---|
| 4880 | n/a | |
|---|
| 4881 | n/a | static PyObject *MovieObj_AbortPrePrerollMovie(MovieObject *_self, PyObject *_args) |
|---|
| 4882 | n/a | { |
|---|
| 4883 | n/a | PyObject *_res = NULL; |
|---|
| 4884 | n/a | OSErr err; |
|---|
| 4885 | n/a | #ifndef AbortPrePrerollMovie |
|---|
| 4886 | n/a | PyMac_PRECHECK(AbortPrePrerollMovie); |
|---|
| 4887 | n/a | #endif |
|---|
| 4888 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 4889 | n/a | &err)) |
|---|
| 4890 | n/a | return NULL; |
|---|
| 4891 | n/a | AbortPrePrerollMovie(_self->ob_itself, |
|---|
| 4892 | n/a | err); |
|---|
| 4893 | n/a | Py_INCREF(Py_None); |
|---|
| 4894 | n/a | _res = Py_None; |
|---|
| 4895 | n/a | return _res; |
|---|
| 4896 | n/a | } |
|---|
| 4897 | n/a | |
|---|
| 4898 | n/a | static PyObject *MovieObj_LoadMovieIntoRam(MovieObject *_self, PyObject *_args) |
|---|
| 4899 | n/a | { |
|---|
| 4900 | n/a | PyObject *_res = NULL; |
|---|
| 4901 | n/a | OSErr _err; |
|---|
| 4902 | n/a | TimeValue time; |
|---|
| 4903 | n/a | TimeValue duration; |
|---|
| 4904 | n/a | long flags; |
|---|
| 4905 | n/a | #ifndef LoadMovieIntoRam |
|---|
| 4906 | n/a | PyMac_PRECHECK(LoadMovieIntoRam); |
|---|
| 4907 | n/a | #endif |
|---|
| 4908 | n/a | if (!PyArg_ParseTuple(_args, "lll", |
|---|
| 4909 | n/a | &time, |
|---|
| 4910 | n/a | &duration, |
|---|
| 4911 | n/a | &flags)) |
|---|
| 4912 | n/a | return NULL; |
|---|
| 4913 | n/a | _err = LoadMovieIntoRam(_self->ob_itself, |
|---|
| 4914 | n/a | time, |
|---|
| 4915 | n/a | duration, |
|---|
| 4916 | n/a | flags); |
|---|
| 4917 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 4918 | n/a | Py_INCREF(Py_None); |
|---|
| 4919 | n/a | _res = Py_None; |
|---|
| 4920 | n/a | return _res; |
|---|
| 4921 | n/a | } |
|---|
| 4922 | n/a | |
|---|
| 4923 | n/a | static PyObject *MovieObj_SetMovieActive(MovieObject *_self, PyObject *_args) |
|---|
| 4924 | n/a | { |
|---|
| 4925 | n/a | PyObject *_res = NULL; |
|---|
| 4926 | n/a | Boolean active; |
|---|
| 4927 | n/a | #ifndef SetMovieActive |
|---|
| 4928 | n/a | PyMac_PRECHECK(SetMovieActive); |
|---|
| 4929 | n/a | #endif |
|---|
| 4930 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 4931 | n/a | &active)) |
|---|
| 4932 | n/a | return NULL; |
|---|
| 4933 | n/a | SetMovieActive(_self->ob_itself, |
|---|
| 4934 | n/a | active); |
|---|
| 4935 | n/a | Py_INCREF(Py_None); |
|---|
| 4936 | n/a | _res = Py_None; |
|---|
| 4937 | n/a | return _res; |
|---|
| 4938 | n/a | } |
|---|
| 4939 | n/a | |
|---|
| 4940 | n/a | static PyObject *MovieObj_GetMovieActive(MovieObject *_self, PyObject *_args) |
|---|
| 4941 | n/a | { |
|---|
| 4942 | n/a | PyObject *_res = NULL; |
|---|
| 4943 | n/a | Boolean _rv; |
|---|
| 4944 | n/a | #ifndef GetMovieActive |
|---|
| 4945 | n/a | PyMac_PRECHECK(GetMovieActive); |
|---|
| 4946 | n/a | #endif |
|---|
| 4947 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4948 | n/a | return NULL; |
|---|
| 4949 | n/a | _rv = GetMovieActive(_self->ob_itself); |
|---|
| 4950 | n/a | _res = Py_BuildValue("b", |
|---|
| 4951 | n/a | _rv); |
|---|
| 4952 | n/a | return _res; |
|---|
| 4953 | n/a | } |
|---|
| 4954 | n/a | |
|---|
| 4955 | n/a | static PyObject *MovieObj_StartMovie(MovieObject *_self, PyObject *_args) |
|---|
| 4956 | n/a | { |
|---|
| 4957 | n/a | PyObject *_res = NULL; |
|---|
| 4958 | n/a | #ifndef StartMovie |
|---|
| 4959 | n/a | PyMac_PRECHECK(StartMovie); |
|---|
| 4960 | n/a | #endif |
|---|
| 4961 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4962 | n/a | return NULL; |
|---|
| 4963 | n/a | StartMovie(_self->ob_itself); |
|---|
| 4964 | n/a | Py_INCREF(Py_None); |
|---|
| 4965 | n/a | _res = Py_None; |
|---|
| 4966 | n/a | return _res; |
|---|
| 4967 | n/a | } |
|---|
| 4968 | n/a | |
|---|
| 4969 | n/a | static PyObject *MovieObj_StopMovie(MovieObject *_self, PyObject *_args) |
|---|
| 4970 | n/a | { |
|---|
| 4971 | n/a | PyObject *_res = NULL; |
|---|
| 4972 | n/a | #ifndef StopMovie |
|---|
| 4973 | n/a | PyMac_PRECHECK(StopMovie); |
|---|
| 4974 | n/a | #endif |
|---|
| 4975 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4976 | n/a | return NULL; |
|---|
| 4977 | n/a | StopMovie(_self->ob_itself); |
|---|
| 4978 | n/a | Py_INCREF(Py_None); |
|---|
| 4979 | n/a | _res = Py_None; |
|---|
| 4980 | n/a | return _res; |
|---|
| 4981 | n/a | } |
|---|
| 4982 | n/a | |
|---|
| 4983 | n/a | static PyObject *MovieObj_GoToBeginningOfMovie(MovieObject *_self, PyObject *_args) |
|---|
| 4984 | n/a | { |
|---|
| 4985 | n/a | PyObject *_res = NULL; |
|---|
| 4986 | n/a | #ifndef GoToBeginningOfMovie |
|---|
| 4987 | n/a | PyMac_PRECHECK(GoToBeginningOfMovie); |
|---|
| 4988 | n/a | #endif |
|---|
| 4989 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 4990 | n/a | return NULL; |
|---|
| 4991 | n/a | GoToBeginningOfMovie(_self->ob_itself); |
|---|
| 4992 | n/a | Py_INCREF(Py_None); |
|---|
| 4993 | n/a | _res = Py_None; |
|---|
| 4994 | n/a | return _res; |
|---|
| 4995 | n/a | } |
|---|
| 4996 | n/a | |
|---|
| 4997 | n/a | static PyObject *MovieObj_GoToEndOfMovie(MovieObject *_self, PyObject *_args) |
|---|
| 4998 | n/a | { |
|---|
| 4999 | n/a | PyObject *_res = NULL; |
|---|
| 5000 | n/a | #ifndef GoToEndOfMovie |
|---|
| 5001 | n/a | PyMac_PRECHECK(GoToEndOfMovie); |
|---|
| 5002 | n/a | #endif |
|---|
| 5003 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5004 | n/a | return NULL; |
|---|
| 5005 | n/a | GoToEndOfMovie(_self->ob_itself); |
|---|
| 5006 | n/a | Py_INCREF(Py_None); |
|---|
| 5007 | n/a | _res = Py_None; |
|---|
| 5008 | n/a | return _res; |
|---|
| 5009 | n/a | } |
|---|
| 5010 | n/a | |
|---|
| 5011 | n/a | static PyObject *MovieObj_IsMovieDone(MovieObject *_self, PyObject *_args) |
|---|
| 5012 | n/a | { |
|---|
| 5013 | n/a | PyObject *_res = NULL; |
|---|
| 5014 | n/a | Boolean _rv; |
|---|
| 5015 | n/a | #ifndef IsMovieDone |
|---|
| 5016 | n/a | PyMac_PRECHECK(IsMovieDone); |
|---|
| 5017 | n/a | #endif |
|---|
| 5018 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5019 | n/a | return NULL; |
|---|
| 5020 | n/a | _rv = IsMovieDone(_self->ob_itself); |
|---|
| 5021 | n/a | _res = Py_BuildValue("b", |
|---|
| 5022 | n/a | _rv); |
|---|
| 5023 | n/a | return _res; |
|---|
| 5024 | n/a | } |
|---|
| 5025 | n/a | |
|---|
| 5026 | n/a | static PyObject *MovieObj_GetMoviePreviewMode(MovieObject *_self, PyObject *_args) |
|---|
| 5027 | n/a | { |
|---|
| 5028 | n/a | PyObject *_res = NULL; |
|---|
| 5029 | n/a | Boolean _rv; |
|---|
| 5030 | n/a | #ifndef GetMoviePreviewMode |
|---|
| 5031 | n/a | PyMac_PRECHECK(GetMoviePreviewMode); |
|---|
| 5032 | n/a | #endif |
|---|
| 5033 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5034 | n/a | return NULL; |
|---|
| 5035 | n/a | _rv = GetMoviePreviewMode(_self->ob_itself); |
|---|
| 5036 | n/a | _res = Py_BuildValue("b", |
|---|
| 5037 | n/a | _rv); |
|---|
| 5038 | n/a | return _res; |
|---|
| 5039 | n/a | } |
|---|
| 5040 | n/a | |
|---|
| 5041 | n/a | static PyObject *MovieObj_SetMoviePreviewMode(MovieObject *_self, PyObject *_args) |
|---|
| 5042 | n/a | { |
|---|
| 5043 | n/a | PyObject *_res = NULL; |
|---|
| 5044 | n/a | Boolean usePreview; |
|---|
| 5045 | n/a | #ifndef SetMoviePreviewMode |
|---|
| 5046 | n/a | PyMac_PRECHECK(SetMoviePreviewMode); |
|---|
| 5047 | n/a | #endif |
|---|
| 5048 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 5049 | n/a | &usePreview)) |
|---|
| 5050 | n/a | return NULL; |
|---|
| 5051 | n/a | SetMoviePreviewMode(_self->ob_itself, |
|---|
| 5052 | n/a | usePreview); |
|---|
| 5053 | n/a | Py_INCREF(Py_None); |
|---|
| 5054 | n/a | _res = Py_None; |
|---|
| 5055 | n/a | return _res; |
|---|
| 5056 | n/a | } |
|---|
| 5057 | n/a | |
|---|
| 5058 | n/a | static PyObject *MovieObj_ShowMoviePoster(MovieObject *_self, PyObject *_args) |
|---|
| 5059 | n/a | { |
|---|
| 5060 | n/a | PyObject *_res = NULL; |
|---|
| 5061 | n/a | #ifndef ShowMoviePoster |
|---|
| 5062 | n/a | PyMac_PRECHECK(ShowMoviePoster); |
|---|
| 5063 | n/a | #endif |
|---|
| 5064 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5065 | n/a | return NULL; |
|---|
| 5066 | n/a | ShowMoviePoster(_self->ob_itself); |
|---|
| 5067 | n/a | Py_INCREF(Py_None); |
|---|
| 5068 | n/a | _res = Py_None; |
|---|
| 5069 | n/a | return _res; |
|---|
| 5070 | n/a | } |
|---|
| 5071 | n/a | |
|---|
| 5072 | n/a | static PyObject *MovieObj_GetMovieTimeBase(MovieObject *_self, PyObject *_args) |
|---|
| 5073 | n/a | { |
|---|
| 5074 | n/a | PyObject *_res = NULL; |
|---|
| 5075 | n/a | TimeBase _rv; |
|---|
| 5076 | n/a | #ifndef GetMovieTimeBase |
|---|
| 5077 | n/a | PyMac_PRECHECK(GetMovieTimeBase); |
|---|
| 5078 | n/a | #endif |
|---|
| 5079 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5080 | n/a | return NULL; |
|---|
| 5081 | n/a | _rv = GetMovieTimeBase(_self->ob_itself); |
|---|
| 5082 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5083 | n/a | TimeBaseObj_New, _rv); |
|---|
| 5084 | n/a | return _res; |
|---|
| 5085 | n/a | } |
|---|
| 5086 | n/a | |
|---|
| 5087 | n/a | static PyObject *MovieObj_SetMovieMasterTimeBase(MovieObject *_self, PyObject *_args) |
|---|
| 5088 | n/a | { |
|---|
| 5089 | n/a | PyObject *_res = NULL; |
|---|
| 5090 | n/a | TimeBase tb; |
|---|
| 5091 | n/a | TimeRecord slaveZero; |
|---|
| 5092 | n/a | #ifndef SetMovieMasterTimeBase |
|---|
| 5093 | n/a | PyMac_PRECHECK(SetMovieMasterTimeBase); |
|---|
| 5094 | n/a | #endif |
|---|
| 5095 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 5096 | n/a | TimeBaseObj_Convert, &tb, |
|---|
| 5097 | n/a | QtTimeRecord_Convert, &slaveZero)) |
|---|
| 5098 | n/a | return NULL; |
|---|
| 5099 | n/a | SetMovieMasterTimeBase(_self->ob_itself, |
|---|
| 5100 | n/a | tb, |
|---|
| 5101 | n/a | &slaveZero); |
|---|
| 5102 | n/a | Py_INCREF(Py_None); |
|---|
| 5103 | n/a | _res = Py_None; |
|---|
| 5104 | n/a | return _res; |
|---|
| 5105 | n/a | } |
|---|
| 5106 | n/a | |
|---|
| 5107 | n/a | static PyObject *MovieObj_SetMovieMasterClock(MovieObject *_self, PyObject *_args) |
|---|
| 5108 | n/a | { |
|---|
| 5109 | n/a | PyObject *_res = NULL; |
|---|
| 5110 | n/a | Component clockMeister; |
|---|
| 5111 | n/a | TimeRecord slaveZero; |
|---|
| 5112 | n/a | #ifndef SetMovieMasterClock |
|---|
| 5113 | n/a | PyMac_PRECHECK(SetMovieMasterClock); |
|---|
| 5114 | n/a | #endif |
|---|
| 5115 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 5116 | n/a | CmpObj_Convert, &clockMeister, |
|---|
| 5117 | n/a | QtTimeRecord_Convert, &slaveZero)) |
|---|
| 5118 | n/a | return NULL; |
|---|
| 5119 | n/a | SetMovieMasterClock(_self->ob_itself, |
|---|
| 5120 | n/a | clockMeister, |
|---|
| 5121 | n/a | &slaveZero); |
|---|
| 5122 | n/a | Py_INCREF(Py_None); |
|---|
| 5123 | n/a | _res = Py_None; |
|---|
| 5124 | n/a | return _res; |
|---|
| 5125 | n/a | } |
|---|
| 5126 | n/a | |
|---|
| 5127 | n/a | static PyObject *MovieObj_ChooseMovieClock(MovieObject *_self, PyObject *_args) |
|---|
| 5128 | n/a | { |
|---|
| 5129 | n/a | PyObject *_res = NULL; |
|---|
| 5130 | n/a | long flags; |
|---|
| 5131 | n/a | #ifndef ChooseMovieClock |
|---|
| 5132 | n/a | PyMac_PRECHECK(ChooseMovieClock); |
|---|
| 5133 | n/a | #endif |
|---|
| 5134 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 5135 | n/a | &flags)) |
|---|
| 5136 | n/a | return NULL; |
|---|
| 5137 | n/a | ChooseMovieClock(_self->ob_itself, |
|---|
| 5138 | n/a | flags); |
|---|
| 5139 | n/a | Py_INCREF(Py_None); |
|---|
| 5140 | n/a | _res = Py_None; |
|---|
| 5141 | n/a | return _res; |
|---|
| 5142 | n/a | } |
|---|
| 5143 | n/a | |
|---|
| 5144 | n/a | static PyObject *MovieObj_GetMovieGWorld(MovieObject *_self, PyObject *_args) |
|---|
| 5145 | n/a | { |
|---|
| 5146 | n/a | PyObject *_res = NULL; |
|---|
| 5147 | n/a | CGrafPtr port; |
|---|
| 5148 | n/a | GDHandle gdh; |
|---|
| 5149 | n/a | #ifndef GetMovieGWorld |
|---|
| 5150 | n/a | PyMac_PRECHECK(GetMovieGWorld); |
|---|
| 5151 | n/a | #endif |
|---|
| 5152 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5153 | n/a | return NULL; |
|---|
| 5154 | n/a | GetMovieGWorld(_self->ob_itself, |
|---|
| 5155 | n/a | &port, |
|---|
| 5156 | n/a | &gdh); |
|---|
| 5157 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 5158 | n/a | GrafObj_New, port, |
|---|
| 5159 | n/a | OptResObj_New, gdh); |
|---|
| 5160 | n/a | return _res; |
|---|
| 5161 | n/a | } |
|---|
| 5162 | n/a | |
|---|
| 5163 | n/a | static PyObject *MovieObj_SetMovieGWorld(MovieObject *_self, PyObject *_args) |
|---|
| 5164 | n/a | { |
|---|
| 5165 | n/a | PyObject *_res = NULL; |
|---|
| 5166 | n/a | CGrafPtr port; |
|---|
| 5167 | n/a | GDHandle gdh; |
|---|
| 5168 | n/a | #ifndef SetMovieGWorld |
|---|
| 5169 | n/a | PyMac_PRECHECK(SetMovieGWorld); |
|---|
| 5170 | n/a | #endif |
|---|
| 5171 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 5172 | n/a | GrafObj_Convert, &port, |
|---|
| 5173 | n/a | OptResObj_Convert, &gdh)) |
|---|
| 5174 | n/a | return NULL; |
|---|
| 5175 | n/a | SetMovieGWorld(_self->ob_itself, |
|---|
| 5176 | n/a | port, |
|---|
| 5177 | n/a | gdh); |
|---|
| 5178 | n/a | Py_INCREF(Py_None); |
|---|
| 5179 | n/a | _res = Py_None; |
|---|
| 5180 | n/a | return _res; |
|---|
| 5181 | n/a | } |
|---|
| 5182 | n/a | |
|---|
| 5183 | n/a | static PyObject *MovieObj_GetMovieNaturalBoundsRect(MovieObject *_self, PyObject *_args) |
|---|
| 5184 | n/a | { |
|---|
| 5185 | n/a | PyObject *_res = NULL; |
|---|
| 5186 | n/a | Rect naturalBounds; |
|---|
| 5187 | n/a | #ifndef GetMovieNaturalBoundsRect |
|---|
| 5188 | n/a | PyMac_PRECHECK(GetMovieNaturalBoundsRect); |
|---|
| 5189 | n/a | #endif |
|---|
| 5190 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5191 | n/a | return NULL; |
|---|
| 5192 | n/a | GetMovieNaturalBoundsRect(_self->ob_itself, |
|---|
| 5193 | n/a | &naturalBounds); |
|---|
| 5194 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5195 | n/a | PyMac_BuildRect, &naturalBounds); |
|---|
| 5196 | n/a | return _res; |
|---|
| 5197 | n/a | } |
|---|
| 5198 | n/a | |
|---|
| 5199 | n/a | static PyObject *MovieObj_GetNextTrackForCompositing(MovieObject *_self, PyObject *_args) |
|---|
| 5200 | n/a | { |
|---|
| 5201 | n/a | PyObject *_res = NULL; |
|---|
| 5202 | n/a | Track _rv; |
|---|
| 5203 | n/a | Track theTrack; |
|---|
| 5204 | n/a | #ifndef GetNextTrackForCompositing |
|---|
| 5205 | n/a | PyMac_PRECHECK(GetNextTrackForCompositing); |
|---|
| 5206 | n/a | #endif |
|---|
| 5207 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5208 | n/a | TrackObj_Convert, &theTrack)) |
|---|
| 5209 | n/a | return NULL; |
|---|
| 5210 | n/a | _rv = GetNextTrackForCompositing(_self->ob_itself, |
|---|
| 5211 | n/a | theTrack); |
|---|
| 5212 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5213 | n/a | TrackObj_New, _rv); |
|---|
| 5214 | n/a | return _res; |
|---|
| 5215 | n/a | } |
|---|
| 5216 | n/a | |
|---|
| 5217 | n/a | static PyObject *MovieObj_GetPrevTrackForCompositing(MovieObject *_self, PyObject *_args) |
|---|
| 5218 | n/a | { |
|---|
| 5219 | n/a | PyObject *_res = NULL; |
|---|
| 5220 | n/a | Track _rv; |
|---|
| 5221 | n/a | Track theTrack; |
|---|
| 5222 | n/a | #ifndef GetPrevTrackForCompositing |
|---|
| 5223 | n/a | PyMac_PRECHECK(GetPrevTrackForCompositing); |
|---|
| 5224 | n/a | #endif |
|---|
| 5225 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5226 | n/a | TrackObj_Convert, &theTrack)) |
|---|
| 5227 | n/a | return NULL; |
|---|
| 5228 | n/a | _rv = GetPrevTrackForCompositing(_self->ob_itself, |
|---|
| 5229 | n/a | theTrack); |
|---|
| 5230 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5231 | n/a | TrackObj_New, _rv); |
|---|
| 5232 | n/a | return _res; |
|---|
| 5233 | n/a | } |
|---|
| 5234 | n/a | |
|---|
| 5235 | n/a | static PyObject *MovieObj_GetMoviePict(MovieObject *_self, PyObject *_args) |
|---|
| 5236 | n/a | { |
|---|
| 5237 | n/a | PyObject *_res = NULL; |
|---|
| 5238 | n/a | PicHandle _rv; |
|---|
| 5239 | n/a | TimeValue time; |
|---|
| 5240 | n/a | #ifndef GetMoviePict |
|---|
| 5241 | n/a | PyMac_PRECHECK(GetMoviePict); |
|---|
| 5242 | n/a | #endif |
|---|
| 5243 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 5244 | n/a | &time)) |
|---|
| 5245 | n/a | return NULL; |
|---|
| 5246 | n/a | _rv = GetMoviePict(_self->ob_itself, |
|---|
| 5247 | n/a | time); |
|---|
| 5248 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5249 | n/a | ResObj_New, _rv); |
|---|
| 5250 | n/a | return _res; |
|---|
| 5251 | n/a | } |
|---|
| 5252 | n/a | |
|---|
| 5253 | n/a | static PyObject *MovieObj_GetMoviePosterPict(MovieObject *_self, PyObject *_args) |
|---|
| 5254 | n/a | { |
|---|
| 5255 | n/a | PyObject *_res = NULL; |
|---|
| 5256 | n/a | PicHandle _rv; |
|---|
| 5257 | n/a | #ifndef GetMoviePosterPict |
|---|
| 5258 | n/a | PyMac_PRECHECK(GetMoviePosterPict); |
|---|
| 5259 | n/a | #endif |
|---|
| 5260 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5261 | n/a | return NULL; |
|---|
| 5262 | n/a | _rv = GetMoviePosterPict(_self->ob_itself); |
|---|
| 5263 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5264 | n/a | ResObj_New, _rv); |
|---|
| 5265 | n/a | return _res; |
|---|
| 5266 | n/a | } |
|---|
| 5267 | n/a | |
|---|
| 5268 | n/a | static PyObject *MovieObj_UpdateMovie(MovieObject *_self, PyObject *_args) |
|---|
| 5269 | n/a | { |
|---|
| 5270 | n/a | PyObject *_res = NULL; |
|---|
| 5271 | n/a | OSErr _err; |
|---|
| 5272 | n/a | #ifndef UpdateMovie |
|---|
| 5273 | n/a | PyMac_PRECHECK(UpdateMovie); |
|---|
| 5274 | n/a | #endif |
|---|
| 5275 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5276 | n/a | return NULL; |
|---|
| 5277 | n/a | _err = UpdateMovie(_self->ob_itself); |
|---|
| 5278 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5279 | n/a | Py_INCREF(Py_None); |
|---|
| 5280 | n/a | _res = Py_None; |
|---|
| 5281 | n/a | return _res; |
|---|
| 5282 | n/a | } |
|---|
| 5283 | n/a | |
|---|
| 5284 | n/a | static PyObject *MovieObj_InvalidateMovieRegion(MovieObject *_self, PyObject *_args) |
|---|
| 5285 | n/a | { |
|---|
| 5286 | n/a | PyObject *_res = NULL; |
|---|
| 5287 | n/a | OSErr _err; |
|---|
| 5288 | n/a | RgnHandle invalidRgn; |
|---|
| 5289 | n/a | #ifndef InvalidateMovieRegion |
|---|
| 5290 | n/a | PyMac_PRECHECK(InvalidateMovieRegion); |
|---|
| 5291 | n/a | #endif |
|---|
| 5292 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5293 | n/a | ResObj_Convert, &invalidRgn)) |
|---|
| 5294 | n/a | return NULL; |
|---|
| 5295 | n/a | _err = InvalidateMovieRegion(_self->ob_itself, |
|---|
| 5296 | n/a | invalidRgn); |
|---|
| 5297 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5298 | n/a | Py_INCREF(Py_None); |
|---|
| 5299 | n/a | _res = Py_None; |
|---|
| 5300 | n/a | return _res; |
|---|
| 5301 | n/a | } |
|---|
| 5302 | n/a | |
|---|
| 5303 | n/a | static PyObject *MovieObj_GetMovieBox(MovieObject *_self, PyObject *_args) |
|---|
| 5304 | n/a | { |
|---|
| 5305 | n/a | PyObject *_res = NULL; |
|---|
| 5306 | n/a | Rect boxRect; |
|---|
| 5307 | n/a | #ifndef GetMovieBox |
|---|
| 5308 | n/a | PyMac_PRECHECK(GetMovieBox); |
|---|
| 5309 | n/a | #endif |
|---|
| 5310 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5311 | n/a | return NULL; |
|---|
| 5312 | n/a | GetMovieBox(_self->ob_itself, |
|---|
| 5313 | n/a | &boxRect); |
|---|
| 5314 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5315 | n/a | PyMac_BuildRect, &boxRect); |
|---|
| 5316 | n/a | return _res; |
|---|
| 5317 | n/a | } |
|---|
| 5318 | n/a | |
|---|
| 5319 | n/a | static PyObject *MovieObj_SetMovieBox(MovieObject *_self, PyObject *_args) |
|---|
| 5320 | n/a | { |
|---|
| 5321 | n/a | PyObject *_res = NULL; |
|---|
| 5322 | n/a | Rect boxRect; |
|---|
| 5323 | n/a | #ifndef SetMovieBox |
|---|
| 5324 | n/a | PyMac_PRECHECK(SetMovieBox); |
|---|
| 5325 | n/a | #endif |
|---|
| 5326 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5327 | n/a | PyMac_GetRect, &boxRect)) |
|---|
| 5328 | n/a | return NULL; |
|---|
| 5329 | n/a | SetMovieBox(_self->ob_itself, |
|---|
| 5330 | n/a | &boxRect); |
|---|
| 5331 | n/a | Py_INCREF(Py_None); |
|---|
| 5332 | n/a | _res = Py_None; |
|---|
| 5333 | n/a | return _res; |
|---|
| 5334 | n/a | } |
|---|
| 5335 | n/a | |
|---|
| 5336 | n/a | static PyObject *MovieObj_GetMovieDisplayClipRgn(MovieObject *_self, PyObject *_args) |
|---|
| 5337 | n/a | { |
|---|
| 5338 | n/a | PyObject *_res = NULL; |
|---|
| 5339 | n/a | RgnHandle _rv; |
|---|
| 5340 | n/a | #ifndef GetMovieDisplayClipRgn |
|---|
| 5341 | n/a | PyMac_PRECHECK(GetMovieDisplayClipRgn); |
|---|
| 5342 | n/a | #endif |
|---|
| 5343 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5344 | n/a | return NULL; |
|---|
| 5345 | n/a | _rv = GetMovieDisplayClipRgn(_self->ob_itself); |
|---|
| 5346 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5347 | n/a | ResObj_New, _rv); |
|---|
| 5348 | n/a | return _res; |
|---|
| 5349 | n/a | } |
|---|
| 5350 | n/a | |
|---|
| 5351 | n/a | static PyObject *MovieObj_SetMovieDisplayClipRgn(MovieObject *_self, PyObject *_args) |
|---|
| 5352 | n/a | { |
|---|
| 5353 | n/a | PyObject *_res = NULL; |
|---|
| 5354 | n/a | RgnHandle theClip; |
|---|
| 5355 | n/a | #ifndef SetMovieDisplayClipRgn |
|---|
| 5356 | n/a | PyMac_PRECHECK(SetMovieDisplayClipRgn); |
|---|
| 5357 | n/a | #endif |
|---|
| 5358 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5359 | n/a | ResObj_Convert, &theClip)) |
|---|
| 5360 | n/a | return NULL; |
|---|
| 5361 | n/a | SetMovieDisplayClipRgn(_self->ob_itself, |
|---|
| 5362 | n/a | theClip); |
|---|
| 5363 | n/a | Py_INCREF(Py_None); |
|---|
| 5364 | n/a | _res = Py_None; |
|---|
| 5365 | n/a | return _res; |
|---|
| 5366 | n/a | } |
|---|
| 5367 | n/a | |
|---|
| 5368 | n/a | static PyObject *MovieObj_GetMovieClipRgn(MovieObject *_self, PyObject *_args) |
|---|
| 5369 | n/a | { |
|---|
| 5370 | n/a | PyObject *_res = NULL; |
|---|
| 5371 | n/a | RgnHandle _rv; |
|---|
| 5372 | n/a | #ifndef GetMovieClipRgn |
|---|
| 5373 | n/a | PyMac_PRECHECK(GetMovieClipRgn); |
|---|
| 5374 | n/a | #endif |
|---|
| 5375 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5376 | n/a | return NULL; |
|---|
| 5377 | n/a | _rv = GetMovieClipRgn(_self->ob_itself); |
|---|
| 5378 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5379 | n/a | ResObj_New, _rv); |
|---|
| 5380 | n/a | return _res; |
|---|
| 5381 | n/a | } |
|---|
| 5382 | n/a | |
|---|
| 5383 | n/a | static PyObject *MovieObj_SetMovieClipRgn(MovieObject *_self, PyObject *_args) |
|---|
| 5384 | n/a | { |
|---|
| 5385 | n/a | PyObject *_res = NULL; |
|---|
| 5386 | n/a | RgnHandle theClip; |
|---|
| 5387 | n/a | #ifndef SetMovieClipRgn |
|---|
| 5388 | n/a | PyMac_PRECHECK(SetMovieClipRgn); |
|---|
| 5389 | n/a | #endif |
|---|
| 5390 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5391 | n/a | ResObj_Convert, &theClip)) |
|---|
| 5392 | n/a | return NULL; |
|---|
| 5393 | n/a | SetMovieClipRgn(_self->ob_itself, |
|---|
| 5394 | n/a | theClip); |
|---|
| 5395 | n/a | Py_INCREF(Py_None); |
|---|
| 5396 | n/a | _res = Py_None; |
|---|
| 5397 | n/a | return _res; |
|---|
| 5398 | n/a | } |
|---|
| 5399 | n/a | |
|---|
| 5400 | n/a | static PyObject *MovieObj_GetMovieDisplayBoundsRgn(MovieObject *_self, PyObject *_args) |
|---|
| 5401 | n/a | { |
|---|
| 5402 | n/a | PyObject *_res = NULL; |
|---|
| 5403 | n/a | RgnHandle _rv; |
|---|
| 5404 | n/a | #ifndef GetMovieDisplayBoundsRgn |
|---|
| 5405 | n/a | PyMac_PRECHECK(GetMovieDisplayBoundsRgn); |
|---|
| 5406 | n/a | #endif |
|---|
| 5407 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5408 | n/a | return NULL; |
|---|
| 5409 | n/a | _rv = GetMovieDisplayBoundsRgn(_self->ob_itself); |
|---|
| 5410 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5411 | n/a | ResObj_New, _rv); |
|---|
| 5412 | n/a | return _res; |
|---|
| 5413 | n/a | } |
|---|
| 5414 | n/a | |
|---|
| 5415 | n/a | static PyObject *MovieObj_GetMovieBoundsRgn(MovieObject *_self, PyObject *_args) |
|---|
| 5416 | n/a | { |
|---|
| 5417 | n/a | PyObject *_res = NULL; |
|---|
| 5418 | n/a | RgnHandle _rv; |
|---|
| 5419 | n/a | #ifndef GetMovieBoundsRgn |
|---|
| 5420 | n/a | PyMac_PRECHECK(GetMovieBoundsRgn); |
|---|
| 5421 | n/a | #endif |
|---|
| 5422 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5423 | n/a | return NULL; |
|---|
| 5424 | n/a | _rv = GetMovieBoundsRgn(_self->ob_itself); |
|---|
| 5425 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5426 | n/a | ResObj_New, _rv); |
|---|
| 5427 | n/a | return _res; |
|---|
| 5428 | n/a | } |
|---|
| 5429 | n/a | |
|---|
| 5430 | n/a | static PyObject *MovieObj_SetMovieVideoOutput(MovieObject *_self, PyObject *_args) |
|---|
| 5431 | n/a | { |
|---|
| 5432 | n/a | PyObject *_res = NULL; |
|---|
| 5433 | n/a | ComponentInstance vout; |
|---|
| 5434 | n/a | #ifndef SetMovieVideoOutput |
|---|
| 5435 | n/a | PyMac_PRECHECK(SetMovieVideoOutput); |
|---|
| 5436 | n/a | #endif |
|---|
| 5437 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5438 | n/a | CmpInstObj_Convert, &vout)) |
|---|
| 5439 | n/a | return NULL; |
|---|
| 5440 | n/a | SetMovieVideoOutput(_self->ob_itself, |
|---|
| 5441 | n/a | vout); |
|---|
| 5442 | n/a | Py_INCREF(Py_None); |
|---|
| 5443 | n/a | _res = Py_None; |
|---|
| 5444 | n/a | return _res; |
|---|
| 5445 | n/a | } |
|---|
| 5446 | n/a | |
|---|
| 5447 | n/a | static PyObject *MovieObj_PutMovieIntoHandle(MovieObject *_self, PyObject *_args) |
|---|
| 5448 | n/a | { |
|---|
| 5449 | n/a | PyObject *_res = NULL; |
|---|
| 5450 | n/a | OSErr _err; |
|---|
| 5451 | n/a | Handle publicMovie; |
|---|
| 5452 | n/a | #ifndef PutMovieIntoHandle |
|---|
| 5453 | n/a | PyMac_PRECHECK(PutMovieIntoHandle); |
|---|
| 5454 | n/a | #endif |
|---|
| 5455 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5456 | n/a | ResObj_Convert, &publicMovie)) |
|---|
| 5457 | n/a | return NULL; |
|---|
| 5458 | n/a | _err = PutMovieIntoHandle(_self->ob_itself, |
|---|
| 5459 | n/a | publicMovie); |
|---|
| 5460 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5461 | n/a | Py_INCREF(Py_None); |
|---|
| 5462 | n/a | _res = Py_None; |
|---|
| 5463 | n/a | return _res; |
|---|
| 5464 | n/a | } |
|---|
| 5465 | n/a | |
|---|
| 5466 | n/a | static PyObject *MovieObj_PutMovieIntoDataFork(MovieObject *_self, PyObject *_args) |
|---|
| 5467 | n/a | { |
|---|
| 5468 | n/a | PyObject *_res = NULL; |
|---|
| 5469 | n/a | OSErr _err; |
|---|
| 5470 | n/a | short fRefNum; |
|---|
| 5471 | n/a | long offset; |
|---|
| 5472 | n/a | long maxSize; |
|---|
| 5473 | n/a | #ifndef PutMovieIntoDataFork |
|---|
| 5474 | n/a | PyMac_PRECHECK(PutMovieIntoDataFork); |
|---|
| 5475 | n/a | #endif |
|---|
| 5476 | n/a | if (!PyArg_ParseTuple(_args, "hll", |
|---|
| 5477 | n/a | &fRefNum, |
|---|
| 5478 | n/a | &offset, |
|---|
| 5479 | n/a | &maxSize)) |
|---|
| 5480 | n/a | return NULL; |
|---|
| 5481 | n/a | _err = PutMovieIntoDataFork(_self->ob_itself, |
|---|
| 5482 | n/a | fRefNum, |
|---|
| 5483 | n/a | offset, |
|---|
| 5484 | n/a | maxSize); |
|---|
| 5485 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5486 | n/a | Py_INCREF(Py_None); |
|---|
| 5487 | n/a | _res = Py_None; |
|---|
| 5488 | n/a | return _res; |
|---|
| 5489 | n/a | } |
|---|
| 5490 | n/a | |
|---|
| 5491 | n/a | static PyObject *MovieObj_PutMovieIntoDataFork64(MovieObject *_self, PyObject *_args) |
|---|
| 5492 | n/a | { |
|---|
| 5493 | n/a | PyObject *_res = NULL; |
|---|
| 5494 | n/a | OSErr _err; |
|---|
| 5495 | n/a | long fRefNum; |
|---|
| 5496 | n/a | wide offset; |
|---|
| 5497 | n/a | unsigned long maxSize; |
|---|
| 5498 | n/a | #ifndef PutMovieIntoDataFork64 |
|---|
| 5499 | n/a | PyMac_PRECHECK(PutMovieIntoDataFork64); |
|---|
| 5500 | n/a | #endif |
|---|
| 5501 | n/a | if (!PyArg_ParseTuple(_args, "lO&l", |
|---|
| 5502 | n/a | &fRefNum, |
|---|
| 5503 | n/a | PyMac_Getwide, &offset, |
|---|
| 5504 | n/a | &maxSize)) |
|---|
| 5505 | n/a | return NULL; |
|---|
| 5506 | n/a | _err = PutMovieIntoDataFork64(_self->ob_itself, |
|---|
| 5507 | n/a | fRefNum, |
|---|
| 5508 | n/a | &offset, |
|---|
| 5509 | n/a | maxSize); |
|---|
| 5510 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5511 | n/a | Py_INCREF(Py_None); |
|---|
| 5512 | n/a | _res = Py_None; |
|---|
| 5513 | n/a | return _res; |
|---|
| 5514 | n/a | } |
|---|
| 5515 | n/a | |
|---|
| 5516 | n/a | static PyObject *MovieObj_PutMovieIntoStorage(MovieObject *_self, PyObject *_args) |
|---|
| 5517 | n/a | { |
|---|
| 5518 | n/a | PyObject *_res = NULL; |
|---|
| 5519 | n/a | OSErr _err; |
|---|
| 5520 | n/a | DataHandler dh; |
|---|
| 5521 | n/a | wide offset; |
|---|
| 5522 | n/a | unsigned long maxSize; |
|---|
| 5523 | n/a | #ifndef PutMovieIntoStorage |
|---|
| 5524 | n/a | PyMac_PRECHECK(PutMovieIntoStorage); |
|---|
| 5525 | n/a | #endif |
|---|
| 5526 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 5527 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 5528 | n/a | PyMac_Getwide, &offset, |
|---|
| 5529 | n/a | &maxSize)) |
|---|
| 5530 | n/a | return NULL; |
|---|
| 5531 | n/a | _err = PutMovieIntoStorage(_self->ob_itself, |
|---|
| 5532 | n/a | dh, |
|---|
| 5533 | n/a | &offset, |
|---|
| 5534 | n/a | maxSize); |
|---|
| 5535 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5536 | n/a | Py_INCREF(Py_None); |
|---|
| 5537 | n/a | _res = Py_None; |
|---|
| 5538 | n/a | return _res; |
|---|
| 5539 | n/a | } |
|---|
| 5540 | n/a | |
|---|
| 5541 | n/a | static PyObject *MovieObj_PutMovieForDataRefIntoHandle(MovieObject *_self, PyObject *_args) |
|---|
| 5542 | n/a | { |
|---|
| 5543 | n/a | PyObject *_res = NULL; |
|---|
| 5544 | n/a | OSErr _err; |
|---|
| 5545 | n/a | Handle dataRef; |
|---|
| 5546 | n/a | OSType dataRefType; |
|---|
| 5547 | n/a | Handle publicMovie; |
|---|
| 5548 | n/a | #ifndef PutMovieForDataRefIntoHandle |
|---|
| 5549 | n/a | PyMac_PRECHECK(PutMovieForDataRefIntoHandle); |
|---|
| 5550 | n/a | #endif |
|---|
| 5551 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 5552 | n/a | ResObj_Convert, &dataRef, |
|---|
| 5553 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 5554 | n/a | ResObj_Convert, &publicMovie)) |
|---|
| 5555 | n/a | return NULL; |
|---|
| 5556 | n/a | _err = PutMovieForDataRefIntoHandle(_self->ob_itself, |
|---|
| 5557 | n/a | dataRef, |
|---|
| 5558 | n/a | dataRefType, |
|---|
| 5559 | n/a | publicMovie); |
|---|
| 5560 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 5561 | n/a | Py_INCREF(Py_None); |
|---|
| 5562 | n/a | _res = Py_None; |
|---|
| 5563 | n/a | return _res; |
|---|
| 5564 | n/a | } |
|---|
| 5565 | n/a | |
|---|
| 5566 | n/a | static PyObject *MovieObj_GetMovieCreationTime(MovieObject *_self, PyObject *_args) |
|---|
| 5567 | n/a | { |
|---|
| 5568 | n/a | PyObject *_res = NULL; |
|---|
| 5569 | n/a | unsigned long _rv; |
|---|
| 5570 | n/a | #ifndef GetMovieCreationTime |
|---|
| 5571 | n/a | PyMac_PRECHECK(GetMovieCreationTime); |
|---|
| 5572 | n/a | #endif |
|---|
| 5573 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5574 | n/a | return NULL; |
|---|
| 5575 | n/a | _rv = GetMovieCreationTime(_self->ob_itself); |
|---|
| 5576 | n/a | _res = Py_BuildValue("l", |
|---|
| 5577 | n/a | _rv); |
|---|
| 5578 | n/a | return _res; |
|---|
| 5579 | n/a | } |
|---|
| 5580 | n/a | |
|---|
| 5581 | n/a | static PyObject *MovieObj_GetMovieModificationTime(MovieObject *_self, PyObject *_args) |
|---|
| 5582 | n/a | { |
|---|
| 5583 | n/a | PyObject *_res = NULL; |
|---|
| 5584 | n/a | unsigned long _rv; |
|---|
| 5585 | n/a | #ifndef GetMovieModificationTime |
|---|
| 5586 | n/a | PyMac_PRECHECK(GetMovieModificationTime); |
|---|
| 5587 | n/a | #endif |
|---|
| 5588 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5589 | n/a | return NULL; |
|---|
| 5590 | n/a | _rv = GetMovieModificationTime(_self->ob_itself); |
|---|
| 5591 | n/a | _res = Py_BuildValue("l", |
|---|
| 5592 | n/a | _rv); |
|---|
| 5593 | n/a | return _res; |
|---|
| 5594 | n/a | } |
|---|
| 5595 | n/a | |
|---|
| 5596 | n/a | static PyObject *MovieObj_GetMovieTimeScale(MovieObject *_self, PyObject *_args) |
|---|
| 5597 | n/a | { |
|---|
| 5598 | n/a | PyObject *_res = NULL; |
|---|
| 5599 | n/a | TimeScale _rv; |
|---|
| 5600 | n/a | #ifndef GetMovieTimeScale |
|---|
| 5601 | n/a | PyMac_PRECHECK(GetMovieTimeScale); |
|---|
| 5602 | n/a | #endif |
|---|
| 5603 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5604 | n/a | return NULL; |
|---|
| 5605 | n/a | _rv = GetMovieTimeScale(_self->ob_itself); |
|---|
| 5606 | n/a | _res = Py_BuildValue("l", |
|---|
| 5607 | n/a | _rv); |
|---|
| 5608 | n/a | return _res; |
|---|
| 5609 | n/a | } |
|---|
| 5610 | n/a | |
|---|
| 5611 | n/a | static PyObject *MovieObj_SetMovieTimeScale(MovieObject *_self, PyObject *_args) |
|---|
| 5612 | n/a | { |
|---|
| 5613 | n/a | PyObject *_res = NULL; |
|---|
| 5614 | n/a | TimeScale timeScale; |
|---|
| 5615 | n/a | #ifndef SetMovieTimeScale |
|---|
| 5616 | n/a | PyMac_PRECHECK(SetMovieTimeScale); |
|---|
| 5617 | n/a | #endif |
|---|
| 5618 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 5619 | n/a | &timeScale)) |
|---|
| 5620 | n/a | return NULL; |
|---|
| 5621 | n/a | SetMovieTimeScale(_self->ob_itself, |
|---|
| 5622 | n/a | timeScale); |
|---|
| 5623 | n/a | Py_INCREF(Py_None); |
|---|
| 5624 | n/a | _res = Py_None; |
|---|
| 5625 | n/a | return _res; |
|---|
| 5626 | n/a | } |
|---|
| 5627 | n/a | |
|---|
| 5628 | n/a | static PyObject *MovieObj_GetMovieDuration(MovieObject *_self, PyObject *_args) |
|---|
| 5629 | n/a | { |
|---|
| 5630 | n/a | PyObject *_res = NULL; |
|---|
| 5631 | n/a | TimeValue _rv; |
|---|
| 5632 | n/a | #ifndef GetMovieDuration |
|---|
| 5633 | n/a | PyMac_PRECHECK(GetMovieDuration); |
|---|
| 5634 | n/a | #endif |
|---|
| 5635 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5636 | n/a | return NULL; |
|---|
| 5637 | n/a | _rv = GetMovieDuration(_self->ob_itself); |
|---|
| 5638 | n/a | _res = Py_BuildValue("l", |
|---|
| 5639 | n/a | _rv); |
|---|
| 5640 | n/a | return _res; |
|---|
| 5641 | n/a | } |
|---|
| 5642 | n/a | |
|---|
| 5643 | n/a | static PyObject *MovieObj_GetMovieRate(MovieObject *_self, PyObject *_args) |
|---|
| 5644 | n/a | { |
|---|
| 5645 | n/a | PyObject *_res = NULL; |
|---|
| 5646 | n/a | Fixed _rv; |
|---|
| 5647 | n/a | #ifndef GetMovieRate |
|---|
| 5648 | n/a | PyMac_PRECHECK(GetMovieRate); |
|---|
| 5649 | n/a | #endif |
|---|
| 5650 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5651 | n/a | return NULL; |
|---|
| 5652 | n/a | _rv = GetMovieRate(_self->ob_itself); |
|---|
| 5653 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5654 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 5655 | n/a | return _res; |
|---|
| 5656 | n/a | } |
|---|
| 5657 | n/a | |
|---|
| 5658 | n/a | static PyObject *MovieObj_SetMovieRate(MovieObject *_self, PyObject *_args) |
|---|
| 5659 | n/a | { |
|---|
| 5660 | n/a | PyObject *_res = NULL; |
|---|
| 5661 | n/a | Fixed rate; |
|---|
| 5662 | n/a | #ifndef SetMovieRate |
|---|
| 5663 | n/a | PyMac_PRECHECK(SetMovieRate); |
|---|
| 5664 | n/a | #endif |
|---|
| 5665 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5666 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 5667 | n/a | return NULL; |
|---|
| 5668 | n/a | SetMovieRate(_self->ob_itself, |
|---|
| 5669 | n/a | rate); |
|---|
| 5670 | n/a | Py_INCREF(Py_None); |
|---|
| 5671 | n/a | _res = Py_None; |
|---|
| 5672 | n/a | return _res; |
|---|
| 5673 | n/a | } |
|---|
| 5674 | n/a | |
|---|
| 5675 | n/a | static PyObject *MovieObj_GetMoviePreferredRate(MovieObject *_self, PyObject *_args) |
|---|
| 5676 | n/a | { |
|---|
| 5677 | n/a | PyObject *_res = NULL; |
|---|
| 5678 | n/a | Fixed _rv; |
|---|
| 5679 | n/a | #ifndef GetMoviePreferredRate |
|---|
| 5680 | n/a | PyMac_PRECHECK(GetMoviePreferredRate); |
|---|
| 5681 | n/a | #endif |
|---|
| 5682 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5683 | n/a | return NULL; |
|---|
| 5684 | n/a | _rv = GetMoviePreferredRate(_self->ob_itself); |
|---|
| 5685 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5686 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 5687 | n/a | return _res; |
|---|
| 5688 | n/a | } |
|---|
| 5689 | n/a | |
|---|
| 5690 | n/a | static PyObject *MovieObj_SetMoviePreferredRate(MovieObject *_self, PyObject *_args) |
|---|
| 5691 | n/a | { |
|---|
| 5692 | n/a | PyObject *_res = NULL; |
|---|
| 5693 | n/a | Fixed rate; |
|---|
| 5694 | n/a | #ifndef SetMoviePreferredRate |
|---|
| 5695 | n/a | PyMac_PRECHECK(SetMoviePreferredRate); |
|---|
| 5696 | n/a | #endif |
|---|
| 5697 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5698 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 5699 | n/a | return NULL; |
|---|
| 5700 | n/a | SetMoviePreferredRate(_self->ob_itself, |
|---|
| 5701 | n/a | rate); |
|---|
| 5702 | n/a | Py_INCREF(Py_None); |
|---|
| 5703 | n/a | _res = Py_None; |
|---|
| 5704 | n/a | return _res; |
|---|
| 5705 | n/a | } |
|---|
| 5706 | n/a | |
|---|
| 5707 | n/a | static PyObject *MovieObj_GetMoviePreferredVolume(MovieObject *_self, PyObject *_args) |
|---|
| 5708 | n/a | { |
|---|
| 5709 | n/a | PyObject *_res = NULL; |
|---|
| 5710 | n/a | short _rv; |
|---|
| 5711 | n/a | #ifndef GetMoviePreferredVolume |
|---|
| 5712 | n/a | PyMac_PRECHECK(GetMoviePreferredVolume); |
|---|
| 5713 | n/a | #endif |
|---|
| 5714 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5715 | n/a | return NULL; |
|---|
| 5716 | n/a | _rv = GetMoviePreferredVolume(_self->ob_itself); |
|---|
| 5717 | n/a | _res = Py_BuildValue("h", |
|---|
| 5718 | n/a | _rv); |
|---|
| 5719 | n/a | return _res; |
|---|
| 5720 | n/a | } |
|---|
| 5721 | n/a | |
|---|
| 5722 | n/a | static PyObject *MovieObj_SetMoviePreferredVolume(MovieObject *_self, PyObject *_args) |
|---|
| 5723 | n/a | { |
|---|
| 5724 | n/a | PyObject *_res = NULL; |
|---|
| 5725 | n/a | short volume; |
|---|
| 5726 | n/a | #ifndef SetMoviePreferredVolume |
|---|
| 5727 | n/a | PyMac_PRECHECK(SetMoviePreferredVolume); |
|---|
| 5728 | n/a | #endif |
|---|
| 5729 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 5730 | n/a | &volume)) |
|---|
| 5731 | n/a | return NULL; |
|---|
| 5732 | n/a | SetMoviePreferredVolume(_self->ob_itself, |
|---|
| 5733 | n/a | volume); |
|---|
| 5734 | n/a | Py_INCREF(Py_None); |
|---|
| 5735 | n/a | _res = Py_None; |
|---|
| 5736 | n/a | return _res; |
|---|
| 5737 | n/a | } |
|---|
| 5738 | n/a | |
|---|
| 5739 | n/a | static PyObject *MovieObj_GetMovieVolume(MovieObject *_self, PyObject *_args) |
|---|
| 5740 | n/a | { |
|---|
| 5741 | n/a | PyObject *_res = NULL; |
|---|
| 5742 | n/a | short _rv; |
|---|
| 5743 | n/a | #ifndef GetMovieVolume |
|---|
| 5744 | n/a | PyMac_PRECHECK(GetMovieVolume); |
|---|
| 5745 | n/a | #endif |
|---|
| 5746 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5747 | n/a | return NULL; |
|---|
| 5748 | n/a | _rv = GetMovieVolume(_self->ob_itself); |
|---|
| 5749 | n/a | _res = Py_BuildValue("h", |
|---|
| 5750 | n/a | _rv); |
|---|
| 5751 | n/a | return _res; |
|---|
| 5752 | n/a | } |
|---|
| 5753 | n/a | |
|---|
| 5754 | n/a | static PyObject *MovieObj_SetMovieVolume(MovieObject *_self, PyObject *_args) |
|---|
| 5755 | n/a | { |
|---|
| 5756 | n/a | PyObject *_res = NULL; |
|---|
| 5757 | n/a | short volume; |
|---|
| 5758 | n/a | #ifndef SetMovieVolume |
|---|
| 5759 | n/a | PyMac_PRECHECK(SetMovieVolume); |
|---|
| 5760 | n/a | #endif |
|---|
| 5761 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 5762 | n/a | &volume)) |
|---|
| 5763 | n/a | return NULL; |
|---|
| 5764 | n/a | SetMovieVolume(_self->ob_itself, |
|---|
| 5765 | n/a | volume); |
|---|
| 5766 | n/a | Py_INCREF(Py_None); |
|---|
| 5767 | n/a | _res = Py_None; |
|---|
| 5768 | n/a | return _res; |
|---|
| 5769 | n/a | } |
|---|
| 5770 | n/a | |
|---|
| 5771 | n/a | static PyObject *MovieObj_GetMoviePreviewTime(MovieObject *_self, PyObject *_args) |
|---|
| 5772 | n/a | { |
|---|
| 5773 | n/a | PyObject *_res = NULL; |
|---|
| 5774 | n/a | TimeValue previewTime; |
|---|
| 5775 | n/a | TimeValue previewDuration; |
|---|
| 5776 | n/a | #ifndef GetMoviePreviewTime |
|---|
| 5777 | n/a | PyMac_PRECHECK(GetMoviePreviewTime); |
|---|
| 5778 | n/a | #endif |
|---|
| 5779 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5780 | n/a | return NULL; |
|---|
| 5781 | n/a | GetMoviePreviewTime(_self->ob_itself, |
|---|
| 5782 | n/a | &previewTime, |
|---|
| 5783 | n/a | &previewDuration); |
|---|
| 5784 | n/a | _res = Py_BuildValue("ll", |
|---|
| 5785 | n/a | previewTime, |
|---|
| 5786 | n/a | previewDuration); |
|---|
| 5787 | n/a | return _res; |
|---|
| 5788 | n/a | } |
|---|
| 5789 | n/a | |
|---|
| 5790 | n/a | static PyObject *MovieObj_SetMoviePreviewTime(MovieObject *_self, PyObject *_args) |
|---|
| 5791 | n/a | { |
|---|
| 5792 | n/a | PyObject *_res = NULL; |
|---|
| 5793 | n/a | TimeValue previewTime; |
|---|
| 5794 | n/a | TimeValue previewDuration; |
|---|
| 5795 | n/a | #ifndef SetMoviePreviewTime |
|---|
| 5796 | n/a | PyMac_PRECHECK(SetMoviePreviewTime); |
|---|
| 5797 | n/a | #endif |
|---|
| 5798 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 5799 | n/a | &previewTime, |
|---|
| 5800 | n/a | &previewDuration)) |
|---|
| 5801 | n/a | return NULL; |
|---|
| 5802 | n/a | SetMoviePreviewTime(_self->ob_itself, |
|---|
| 5803 | n/a | previewTime, |
|---|
| 5804 | n/a | previewDuration); |
|---|
| 5805 | n/a | Py_INCREF(Py_None); |
|---|
| 5806 | n/a | _res = Py_None; |
|---|
| 5807 | n/a | return _res; |
|---|
| 5808 | n/a | } |
|---|
| 5809 | n/a | |
|---|
| 5810 | n/a | static PyObject *MovieObj_GetMoviePosterTime(MovieObject *_self, PyObject *_args) |
|---|
| 5811 | n/a | { |
|---|
| 5812 | n/a | PyObject *_res = NULL; |
|---|
| 5813 | n/a | TimeValue _rv; |
|---|
| 5814 | n/a | #ifndef GetMoviePosterTime |
|---|
| 5815 | n/a | PyMac_PRECHECK(GetMoviePosterTime); |
|---|
| 5816 | n/a | #endif |
|---|
| 5817 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5818 | n/a | return NULL; |
|---|
| 5819 | n/a | _rv = GetMoviePosterTime(_self->ob_itself); |
|---|
| 5820 | n/a | _res = Py_BuildValue("l", |
|---|
| 5821 | n/a | _rv); |
|---|
| 5822 | n/a | return _res; |
|---|
| 5823 | n/a | } |
|---|
| 5824 | n/a | |
|---|
| 5825 | n/a | static PyObject *MovieObj_SetMoviePosterTime(MovieObject *_self, PyObject *_args) |
|---|
| 5826 | n/a | { |
|---|
| 5827 | n/a | PyObject *_res = NULL; |
|---|
| 5828 | n/a | TimeValue posterTime; |
|---|
| 5829 | n/a | #ifndef SetMoviePosterTime |
|---|
| 5830 | n/a | PyMac_PRECHECK(SetMoviePosterTime); |
|---|
| 5831 | n/a | #endif |
|---|
| 5832 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 5833 | n/a | &posterTime)) |
|---|
| 5834 | n/a | return NULL; |
|---|
| 5835 | n/a | SetMoviePosterTime(_self->ob_itself, |
|---|
| 5836 | n/a | posterTime); |
|---|
| 5837 | n/a | Py_INCREF(Py_None); |
|---|
| 5838 | n/a | _res = Py_None; |
|---|
| 5839 | n/a | return _res; |
|---|
| 5840 | n/a | } |
|---|
| 5841 | n/a | |
|---|
| 5842 | n/a | static PyObject *MovieObj_GetMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 5843 | n/a | { |
|---|
| 5844 | n/a | PyObject *_res = NULL; |
|---|
| 5845 | n/a | TimeValue selectionTime; |
|---|
| 5846 | n/a | TimeValue selectionDuration; |
|---|
| 5847 | n/a | #ifndef GetMovieSelection |
|---|
| 5848 | n/a | PyMac_PRECHECK(GetMovieSelection); |
|---|
| 5849 | n/a | #endif |
|---|
| 5850 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5851 | n/a | return NULL; |
|---|
| 5852 | n/a | GetMovieSelection(_self->ob_itself, |
|---|
| 5853 | n/a | &selectionTime, |
|---|
| 5854 | n/a | &selectionDuration); |
|---|
| 5855 | n/a | _res = Py_BuildValue("ll", |
|---|
| 5856 | n/a | selectionTime, |
|---|
| 5857 | n/a | selectionDuration); |
|---|
| 5858 | n/a | return _res; |
|---|
| 5859 | n/a | } |
|---|
| 5860 | n/a | |
|---|
| 5861 | n/a | static PyObject *MovieObj_SetMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 5862 | n/a | { |
|---|
| 5863 | n/a | PyObject *_res = NULL; |
|---|
| 5864 | n/a | TimeValue selectionTime; |
|---|
| 5865 | n/a | TimeValue selectionDuration; |
|---|
| 5866 | n/a | #ifndef SetMovieSelection |
|---|
| 5867 | n/a | PyMac_PRECHECK(SetMovieSelection); |
|---|
| 5868 | n/a | #endif |
|---|
| 5869 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 5870 | n/a | &selectionTime, |
|---|
| 5871 | n/a | &selectionDuration)) |
|---|
| 5872 | n/a | return NULL; |
|---|
| 5873 | n/a | SetMovieSelection(_self->ob_itself, |
|---|
| 5874 | n/a | selectionTime, |
|---|
| 5875 | n/a | selectionDuration); |
|---|
| 5876 | n/a | Py_INCREF(Py_None); |
|---|
| 5877 | n/a | _res = Py_None; |
|---|
| 5878 | n/a | return _res; |
|---|
| 5879 | n/a | } |
|---|
| 5880 | n/a | |
|---|
| 5881 | n/a | static PyObject *MovieObj_SetMovieActiveSegment(MovieObject *_self, PyObject *_args) |
|---|
| 5882 | n/a | { |
|---|
| 5883 | n/a | PyObject *_res = NULL; |
|---|
| 5884 | n/a | TimeValue startTime; |
|---|
| 5885 | n/a | TimeValue duration; |
|---|
| 5886 | n/a | #ifndef SetMovieActiveSegment |
|---|
| 5887 | n/a | PyMac_PRECHECK(SetMovieActiveSegment); |
|---|
| 5888 | n/a | #endif |
|---|
| 5889 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 5890 | n/a | &startTime, |
|---|
| 5891 | n/a | &duration)) |
|---|
| 5892 | n/a | return NULL; |
|---|
| 5893 | n/a | SetMovieActiveSegment(_self->ob_itself, |
|---|
| 5894 | n/a | startTime, |
|---|
| 5895 | n/a | duration); |
|---|
| 5896 | n/a | Py_INCREF(Py_None); |
|---|
| 5897 | n/a | _res = Py_None; |
|---|
| 5898 | n/a | return _res; |
|---|
| 5899 | n/a | } |
|---|
| 5900 | n/a | |
|---|
| 5901 | n/a | static PyObject *MovieObj_GetMovieActiveSegment(MovieObject *_self, PyObject *_args) |
|---|
| 5902 | n/a | { |
|---|
| 5903 | n/a | PyObject *_res = NULL; |
|---|
| 5904 | n/a | TimeValue startTime; |
|---|
| 5905 | n/a | TimeValue duration; |
|---|
| 5906 | n/a | #ifndef GetMovieActiveSegment |
|---|
| 5907 | n/a | PyMac_PRECHECK(GetMovieActiveSegment); |
|---|
| 5908 | n/a | #endif |
|---|
| 5909 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5910 | n/a | return NULL; |
|---|
| 5911 | n/a | GetMovieActiveSegment(_self->ob_itself, |
|---|
| 5912 | n/a | &startTime, |
|---|
| 5913 | n/a | &duration); |
|---|
| 5914 | n/a | _res = Py_BuildValue("ll", |
|---|
| 5915 | n/a | startTime, |
|---|
| 5916 | n/a | duration); |
|---|
| 5917 | n/a | return _res; |
|---|
| 5918 | n/a | } |
|---|
| 5919 | n/a | |
|---|
| 5920 | n/a | static PyObject *MovieObj_GetMovieTime(MovieObject *_self, PyObject *_args) |
|---|
| 5921 | n/a | { |
|---|
| 5922 | n/a | PyObject *_res = NULL; |
|---|
| 5923 | n/a | TimeValue _rv; |
|---|
| 5924 | n/a | TimeRecord currentTime; |
|---|
| 5925 | n/a | #ifndef GetMovieTime |
|---|
| 5926 | n/a | PyMac_PRECHECK(GetMovieTime); |
|---|
| 5927 | n/a | #endif |
|---|
| 5928 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5929 | n/a | return NULL; |
|---|
| 5930 | n/a | _rv = GetMovieTime(_self->ob_itself, |
|---|
| 5931 | n/a | ¤tTime); |
|---|
| 5932 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 5933 | n/a | _rv, |
|---|
| 5934 | n/a | QtTimeRecord_New, ¤tTime); |
|---|
| 5935 | n/a | return _res; |
|---|
| 5936 | n/a | } |
|---|
| 5937 | n/a | |
|---|
| 5938 | n/a | static PyObject *MovieObj_SetMovieTime(MovieObject *_self, PyObject *_args) |
|---|
| 5939 | n/a | { |
|---|
| 5940 | n/a | PyObject *_res = NULL; |
|---|
| 5941 | n/a | TimeRecord newtime; |
|---|
| 5942 | n/a | #ifndef SetMovieTime |
|---|
| 5943 | n/a | PyMac_PRECHECK(SetMovieTime); |
|---|
| 5944 | n/a | #endif |
|---|
| 5945 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 5946 | n/a | QtTimeRecord_Convert, &newtime)) |
|---|
| 5947 | n/a | return NULL; |
|---|
| 5948 | n/a | SetMovieTime(_self->ob_itself, |
|---|
| 5949 | n/a | &newtime); |
|---|
| 5950 | n/a | Py_INCREF(Py_None); |
|---|
| 5951 | n/a | _res = Py_None; |
|---|
| 5952 | n/a | return _res; |
|---|
| 5953 | n/a | } |
|---|
| 5954 | n/a | |
|---|
| 5955 | n/a | static PyObject *MovieObj_SetMovieTimeValue(MovieObject *_self, PyObject *_args) |
|---|
| 5956 | n/a | { |
|---|
| 5957 | n/a | PyObject *_res = NULL; |
|---|
| 5958 | n/a | TimeValue newtime; |
|---|
| 5959 | n/a | #ifndef SetMovieTimeValue |
|---|
| 5960 | n/a | PyMac_PRECHECK(SetMovieTimeValue); |
|---|
| 5961 | n/a | #endif |
|---|
| 5962 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 5963 | n/a | &newtime)) |
|---|
| 5964 | n/a | return NULL; |
|---|
| 5965 | n/a | SetMovieTimeValue(_self->ob_itself, |
|---|
| 5966 | n/a | newtime); |
|---|
| 5967 | n/a | Py_INCREF(Py_None); |
|---|
| 5968 | n/a | _res = Py_None; |
|---|
| 5969 | n/a | return _res; |
|---|
| 5970 | n/a | } |
|---|
| 5971 | n/a | |
|---|
| 5972 | n/a | static PyObject *MovieObj_GetMovieUserData(MovieObject *_self, PyObject *_args) |
|---|
| 5973 | n/a | { |
|---|
| 5974 | n/a | PyObject *_res = NULL; |
|---|
| 5975 | n/a | UserData _rv; |
|---|
| 5976 | n/a | #ifndef GetMovieUserData |
|---|
| 5977 | n/a | PyMac_PRECHECK(GetMovieUserData); |
|---|
| 5978 | n/a | #endif |
|---|
| 5979 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5980 | n/a | return NULL; |
|---|
| 5981 | n/a | _rv = GetMovieUserData(_self->ob_itself); |
|---|
| 5982 | n/a | _res = Py_BuildValue("O&", |
|---|
| 5983 | n/a | UserDataObj_New, _rv); |
|---|
| 5984 | n/a | return _res; |
|---|
| 5985 | n/a | } |
|---|
| 5986 | n/a | |
|---|
| 5987 | n/a | static PyObject *MovieObj_GetMovieTrackCount(MovieObject *_self, PyObject *_args) |
|---|
| 5988 | n/a | { |
|---|
| 5989 | n/a | PyObject *_res = NULL; |
|---|
| 5990 | n/a | long _rv; |
|---|
| 5991 | n/a | #ifndef GetMovieTrackCount |
|---|
| 5992 | n/a | PyMac_PRECHECK(GetMovieTrackCount); |
|---|
| 5993 | n/a | #endif |
|---|
| 5994 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 5995 | n/a | return NULL; |
|---|
| 5996 | n/a | _rv = GetMovieTrackCount(_self->ob_itself); |
|---|
| 5997 | n/a | _res = Py_BuildValue("l", |
|---|
| 5998 | n/a | _rv); |
|---|
| 5999 | n/a | return _res; |
|---|
| 6000 | n/a | } |
|---|
| 6001 | n/a | |
|---|
| 6002 | n/a | static PyObject *MovieObj_GetMovieTrack(MovieObject *_self, PyObject *_args) |
|---|
| 6003 | n/a | { |
|---|
| 6004 | n/a | PyObject *_res = NULL; |
|---|
| 6005 | n/a | Track _rv; |
|---|
| 6006 | n/a | long trackID; |
|---|
| 6007 | n/a | #ifndef GetMovieTrack |
|---|
| 6008 | n/a | PyMac_PRECHECK(GetMovieTrack); |
|---|
| 6009 | n/a | #endif |
|---|
| 6010 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 6011 | n/a | &trackID)) |
|---|
| 6012 | n/a | return NULL; |
|---|
| 6013 | n/a | _rv = GetMovieTrack(_self->ob_itself, |
|---|
| 6014 | n/a | trackID); |
|---|
| 6015 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6016 | n/a | TrackObj_New, _rv); |
|---|
| 6017 | n/a | return _res; |
|---|
| 6018 | n/a | } |
|---|
| 6019 | n/a | |
|---|
| 6020 | n/a | static PyObject *MovieObj_GetMovieIndTrack(MovieObject *_self, PyObject *_args) |
|---|
| 6021 | n/a | { |
|---|
| 6022 | n/a | PyObject *_res = NULL; |
|---|
| 6023 | n/a | Track _rv; |
|---|
| 6024 | n/a | long index; |
|---|
| 6025 | n/a | #ifndef GetMovieIndTrack |
|---|
| 6026 | n/a | PyMac_PRECHECK(GetMovieIndTrack); |
|---|
| 6027 | n/a | #endif |
|---|
| 6028 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 6029 | n/a | &index)) |
|---|
| 6030 | n/a | return NULL; |
|---|
| 6031 | n/a | _rv = GetMovieIndTrack(_self->ob_itself, |
|---|
| 6032 | n/a | index); |
|---|
| 6033 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6034 | n/a | TrackObj_New, _rv); |
|---|
| 6035 | n/a | return _res; |
|---|
| 6036 | n/a | } |
|---|
| 6037 | n/a | |
|---|
| 6038 | n/a | static PyObject *MovieObj_GetMovieIndTrackType(MovieObject *_self, PyObject *_args) |
|---|
| 6039 | n/a | { |
|---|
| 6040 | n/a | PyObject *_res = NULL; |
|---|
| 6041 | n/a | Track _rv; |
|---|
| 6042 | n/a | long index; |
|---|
| 6043 | n/a | OSType trackType; |
|---|
| 6044 | n/a | long flags; |
|---|
| 6045 | n/a | #ifndef GetMovieIndTrackType |
|---|
| 6046 | n/a | PyMac_PRECHECK(GetMovieIndTrackType); |
|---|
| 6047 | n/a | #endif |
|---|
| 6048 | n/a | if (!PyArg_ParseTuple(_args, "lO&l", |
|---|
| 6049 | n/a | &index, |
|---|
| 6050 | n/a | PyMac_GetOSType, &trackType, |
|---|
| 6051 | n/a | &flags)) |
|---|
| 6052 | n/a | return NULL; |
|---|
| 6053 | n/a | _rv = GetMovieIndTrackType(_self->ob_itself, |
|---|
| 6054 | n/a | index, |
|---|
| 6055 | n/a | trackType, |
|---|
| 6056 | n/a | flags); |
|---|
| 6057 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6058 | n/a | TrackObj_New, _rv); |
|---|
| 6059 | n/a | return _res; |
|---|
| 6060 | n/a | } |
|---|
| 6061 | n/a | |
|---|
| 6062 | n/a | static PyObject *MovieObj_NewMovieTrack(MovieObject *_self, PyObject *_args) |
|---|
| 6063 | n/a | { |
|---|
| 6064 | n/a | PyObject *_res = NULL; |
|---|
| 6065 | n/a | Track _rv; |
|---|
| 6066 | n/a | Fixed width; |
|---|
| 6067 | n/a | Fixed height; |
|---|
| 6068 | n/a | short trackVolume; |
|---|
| 6069 | n/a | #ifndef NewMovieTrack |
|---|
| 6070 | n/a | PyMac_PRECHECK(NewMovieTrack); |
|---|
| 6071 | n/a | #endif |
|---|
| 6072 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 6073 | n/a | PyMac_GetFixed, &width, |
|---|
| 6074 | n/a | PyMac_GetFixed, &height, |
|---|
| 6075 | n/a | &trackVolume)) |
|---|
| 6076 | n/a | return NULL; |
|---|
| 6077 | n/a | _rv = NewMovieTrack(_self->ob_itself, |
|---|
| 6078 | n/a | width, |
|---|
| 6079 | n/a | height, |
|---|
| 6080 | n/a | trackVolume); |
|---|
| 6081 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6082 | n/a | TrackObj_New, _rv); |
|---|
| 6083 | n/a | return _res; |
|---|
| 6084 | n/a | } |
|---|
| 6085 | n/a | |
|---|
| 6086 | n/a | static PyObject *MovieObj_SetAutoTrackAlternatesEnabled(MovieObject *_self, PyObject *_args) |
|---|
| 6087 | n/a | { |
|---|
| 6088 | n/a | PyObject *_res = NULL; |
|---|
| 6089 | n/a | Boolean enable; |
|---|
| 6090 | n/a | #ifndef SetAutoTrackAlternatesEnabled |
|---|
| 6091 | n/a | PyMac_PRECHECK(SetAutoTrackAlternatesEnabled); |
|---|
| 6092 | n/a | #endif |
|---|
| 6093 | n/a | if (!PyArg_ParseTuple(_args, "b", |
|---|
| 6094 | n/a | &enable)) |
|---|
| 6095 | n/a | return NULL; |
|---|
| 6096 | n/a | SetAutoTrackAlternatesEnabled(_self->ob_itself, |
|---|
| 6097 | n/a | enable); |
|---|
| 6098 | n/a | Py_INCREF(Py_None); |
|---|
| 6099 | n/a | _res = Py_None; |
|---|
| 6100 | n/a | return _res; |
|---|
| 6101 | n/a | } |
|---|
| 6102 | n/a | |
|---|
| 6103 | n/a | static PyObject *MovieObj_SelectMovieAlternates(MovieObject *_self, PyObject *_args) |
|---|
| 6104 | n/a | { |
|---|
| 6105 | n/a | PyObject *_res = NULL; |
|---|
| 6106 | n/a | #ifndef SelectMovieAlternates |
|---|
| 6107 | n/a | PyMac_PRECHECK(SelectMovieAlternates); |
|---|
| 6108 | n/a | #endif |
|---|
| 6109 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6110 | n/a | return NULL; |
|---|
| 6111 | n/a | SelectMovieAlternates(_self->ob_itself); |
|---|
| 6112 | n/a | Py_INCREF(Py_None); |
|---|
| 6113 | n/a | _res = Py_None; |
|---|
| 6114 | n/a | return _res; |
|---|
| 6115 | n/a | } |
|---|
| 6116 | n/a | |
|---|
| 6117 | n/a | static PyObject *MovieObj_InsertMovieSegment(MovieObject *_self, PyObject *_args) |
|---|
| 6118 | n/a | { |
|---|
| 6119 | n/a | PyObject *_res = NULL; |
|---|
| 6120 | n/a | OSErr _err; |
|---|
| 6121 | n/a | Movie dstMovie; |
|---|
| 6122 | n/a | TimeValue srcIn; |
|---|
| 6123 | n/a | TimeValue srcDuration; |
|---|
| 6124 | n/a | TimeValue dstIn; |
|---|
| 6125 | n/a | #ifndef InsertMovieSegment |
|---|
| 6126 | n/a | PyMac_PRECHECK(InsertMovieSegment); |
|---|
| 6127 | n/a | #endif |
|---|
| 6128 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 6129 | n/a | MovieObj_Convert, &dstMovie, |
|---|
| 6130 | n/a | &srcIn, |
|---|
| 6131 | n/a | &srcDuration, |
|---|
| 6132 | n/a | &dstIn)) |
|---|
| 6133 | n/a | return NULL; |
|---|
| 6134 | n/a | _err = InsertMovieSegment(_self->ob_itself, |
|---|
| 6135 | n/a | dstMovie, |
|---|
| 6136 | n/a | srcIn, |
|---|
| 6137 | n/a | srcDuration, |
|---|
| 6138 | n/a | dstIn); |
|---|
| 6139 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6140 | n/a | Py_INCREF(Py_None); |
|---|
| 6141 | n/a | _res = Py_None; |
|---|
| 6142 | n/a | return _res; |
|---|
| 6143 | n/a | } |
|---|
| 6144 | n/a | |
|---|
| 6145 | n/a | static PyObject *MovieObj_InsertEmptyMovieSegment(MovieObject *_self, PyObject *_args) |
|---|
| 6146 | n/a | { |
|---|
| 6147 | n/a | PyObject *_res = NULL; |
|---|
| 6148 | n/a | OSErr _err; |
|---|
| 6149 | n/a | TimeValue dstIn; |
|---|
| 6150 | n/a | TimeValue dstDuration; |
|---|
| 6151 | n/a | #ifndef InsertEmptyMovieSegment |
|---|
| 6152 | n/a | PyMac_PRECHECK(InsertEmptyMovieSegment); |
|---|
| 6153 | n/a | #endif |
|---|
| 6154 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 6155 | n/a | &dstIn, |
|---|
| 6156 | n/a | &dstDuration)) |
|---|
| 6157 | n/a | return NULL; |
|---|
| 6158 | n/a | _err = InsertEmptyMovieSegment(_self->ob_itself, |
|---|
| 6159 | n/a | dstIn, |
|---|
| 6160 | n/a | dstDuration); |
|---|
| 6161 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6162 | n/a | Py_INCREF(Py_None); |
|---|
| 6163 | n/a | _res = Py_None; |
|---|
| 6164 | n/a | return _res; |
|---|
| 6165 | n/a | } |
|---|
| 6166 | n/a | |
|---|
| 6167 | n/a | static PyObject *MovieObj_DeleteMovieSegment(MovieObject *_self, PyObject *_args) |
|---|
| 6168 | n/a | { |
|---|
| 6169 | n/a | PyObject *_res = NULL; |
|---|
| 6170 | n/a | OSErr _err; |
|---|
| 6171 | n/a | TimeValue startTime; |
|---|
| 6172 | n/a | TimeValue duration; |
|---|
| 6173 | n/a | #ifndef DeleteMovieSegment |
|---|
| 6174 | n/a | PyMac_PRECHECK(DeleteMovieSegment); |
|---|
| 6175 | n/a | #endif |
|---|
| 6176 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 6177 | n/a | &startTime, |
|---|
| 6178 | n/a | &duration)) |
|---|
| 6179 | n/a | return NULL; |
|---|
| 6180 | n/a | _err = DeleteMovieSegment(_self->ob_itself, |
|---|
| 6181 | n/a | startTime, |
|---|
| 6182 | n/a | duration); |
|---|
| 6183 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6184 | n/a | Py_INCREF(Py_None); |
|---|
| 6185 | n/a | _res = Py_None; |
|---|
| 6186 | n/a | return _res; |
|---|
| 6187 | n/a | } |
|---|
| 6188 | n/a | |
|---|
| 6189 | n/a | static PyObject *MovieObj_ScaleMovieSegment(MovieObject *_self, PyObject *_args) |
|---|
| 6190 | n/a | { |
|---|
| 6191 | n/a | PyObject *_res = NULL; |
|---|
| 6192 | n/a | OSErr _err; |
|---|
| 6193 | n/a | TimeValue startTime; |
|---|
| 6194 | n/a | TimeValue oldDuration; |
|---|
| 6195 | n/a | TimeValue newDuration; |
|---|
| 6196 | n/a | #ifndef ScaleMovieSegment |
|---|
| 6197 | n/a | PyMac_PRECHECK(ScaleMovieSegment); |
|---|
| 6198 | n/a | #endif |
|---|
| 6199 | n/a | if (!PyArg_ParseTuple(_args, "lll", |
|---|
| 6200 | n/a | &startTime, |
|---|
| 6201 | n/a | &oldDuration, |
|---|
| 6202 | n/a | &newDuration)) |
|---|
| 6203 | n/a | return NULL; |
|---|
| 6204 | n/a | _err = ScaleMovieSegment(_self->ob_itself, |
|---|
| 6205 | n/a | startTime, |
|---|
| 6206 | n/a | oldDuration, |
|---|
| 6207 | n/a | newDuration); |
|---|
| 6208 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6209 | n/a | Py_INCREF(Py_None); |
|---|
| 6210 | n/a | _res = Py_None; |
|---|
| 6211 | n/a | return _res; |
|---|
| 6212 | n/a | } |
|---|
| 6213 | n/a | |
|---|
| 6214 | n/a | static PyObject *MovieObj_CutMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 6215 | n/a | { |
|---|
| 6216 | n/a | PyObject *_res = NULL; |
|---|
| 6217 | n/a | Movie _rv; |
|---|
| 6218 | n/a | #ifndef CutMovieSelection |
|---|
| 6219 | n/a | PyMac_PRECHECK(CutMovieSelection); |
|---|
| 6220 | n/a | #endif |
|---|
| 6221 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6222 | n/a | return NULL; |
|---|
| 6223 | n/a | _rv = CutMovieSelection(_self->ob_itself); |
|---|
| 6224 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6225 | n/a | MovieObj_New, _rv); |
|---|
| 6226 | n/a | return _res; |
|---|
| 6227 | n/a | } |
|---|
| 6228 | n/a | |
|---|
| 6229 | n/a | static PyObject *MovieObj_CopyMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 6230 | n/a | { |
|---|
| 6231 | n/a | PyObject *_res = NULL; |
|---|
| 6232 | n/a | Movie _rv; |
|---|
| 6233 | n/a | #ifndef CopyMovieSelection |
|---|
| 6234 | n/a | PyMac_PRECHECK(CopyMovieSelection); |
|---|
| 6235 | n/a | #endif |
|---|
| 6236 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6237 | n/a | return NULL; |
|---|
| 6238 | n/a | _rv = CopyMovieSelection(_self->ob_itself); |
|---|
| 6239 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6240 | n/a | MovieObj_New, _rv); |
|---|
| 6241 | n/a | return _res; |
|---|
| 6242 | n/a | } |
|---|
| 6243 | n/a | |
|---|
| 6244 | n/a | static PyObject *MovieObj_PasteMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 6245 | n/a | { |
|---|
| 6246 | n/a | PyObject *_res = NULL; |
|---|
| 6247 | n/a | Movie src; |
|---|
| 6248 | n/a | #ifndef PasteMovieSelection |
|---|
| 6249 | n/a | PyMac_PRECHECK(PasteMovieSelection); |
|---|
| 6250 | n/a | #endif |
|---|
| 6251 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6252 | n/a | MovieObj_Convert, &src)) |
|---|
| 6253 | n/a | return NULL; |
|---|
| 6254 | n/a | PasteMovieSelection(_self->ob_itself, |
|---|
| 6255 | n/a | src); |
|---|
| 6256 | n/a | Py_INCREF(Py_None); |
|---|
| 6257 | n/a | _res = Py_None; |
|---|
| 6258 | n/a | return _res; |
|---|
| 6259 | n/a | } |
|---|
| 6260 | n/a | |
|---|
| 6261 | n/a | static PyObject *MovieObj_AddMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 6262 | n/a | { |
|---|
| 6263 | n/a | PyObject *_res = NULL; |
|---|
| 6264 | n/a | Movie src; |
|---|
| 6265 | n/a | #ifndef AddMovieSelection |
|---|
| 6266 | n/a | PyMac_PRECHECK(AddMovieSelection); |
|---|
| 6267 | n/a | #endif |
|---|
| 6268 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6269 | n/a | MovieObj_Convert, &src)) |
|---|
| 6270 | n/a | return NULL; |
|---|
| 6271 | n/a | AddMovieSelection(_self->ob_itself, |
|---|
| 6272 | n/a | src); |
|---|
| 6273 | n/a | Py_INCREF(Py_None); |
|---|
| 6274 | n/a | _res = Py_None; |
|---|
| 6275 | n/a | return _res; |
|---|
| 6276 | n/a | } |
|---|
| 6277 | n/a | |
|---|
| 6278 | n/a | static PyObject *MovieObj_ClearMovieSelection(MovieObject *_self, PyObject *_args) |
|---|
| 6279 | n/a | { |
|---|
| 6280 | n/a | PyObject *_res = NULL; |
|---|
| 6281 | n/a | #ifndef ClearMovieSelection |
|---|
| 6282 | n/a | PyMac_PRECHECK(ClearMovieSelection); |
|---|
| 6283 | n/a | #endif |
|---|
| 6284 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6285 | n/a | return NULL; |
|---|
| 6286 | n/a | ClearMovieSelection(_self->ob_itself); |
|---|
| 6287 | n/a | Py_INCREF(Py_None); |
|---|
| 6288 | n/a | _res = Py_None; |
|---|
| 6289 | n/a | return _res; |
|---|
| 6290 | n/a | } |
|---|
| 6291 | n/a | |
|---|
| 6292 | n/a | static PyObject *MovieObj_PutMovieIntoTypedHandle(MovieObject *_self, PyObject *_args) |
|---|
| 6293 | n/a | { |
|---|
| 6294 | n/a | PyObject *_res = NULL; |
|---|
| 6295 | n/a | OSErr _err; |
|---|
| 6296 | n/a | Track targetTrack; |
|---|
| 6297 | n/a | OSType handleType; |
|---|
| 6298 | n/a | Handle publicMovie; |
|---|
| 6299 | n/a | TimeValue start; |
|---|
| 6300 | n/a | TimeValue dur; |
|---|
| 6301 | n/a | long flags; |
|---|
| 6302 | n/a | ComponentInstance userComp; |
|---|
| 6303 | n/a | #ifndef PutMovieIntoTypedHandle |
|---|
| 6304 | n/a | PyMac_PRECHECK(PutMovieIntoTypedHandle); |
|---|
| 6305 | n/a | #endif |
|---|
| 6306 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&lllO&", |
|---|
| 6307 | n/a | TrackObj_Convert, &targetTrack, |
|---|
| 6308 | n/a | PyMac_GetOSType, &handleType, |
|---|
| 6309 | n/a | ResObj_Convert, &publicMovie, |
|---|
| 6310 | n/a | &start, |
|---|
| 6311 | n/a | &dur, |
|---|
| 6312 | n/a | &flags, |
|---|
| 6313 | n/a | CmpInstObj_Convert, &userComp)) |
|---|
| 6314 | n/a | return NULL; |
|---|
| 6315 | n/a | _err = PutMovieIntoTypedHandle(_self->ob_itself, |
|---|
| 6316 | n/a | targetTrack, |
|---|
| 6317 | n/a | handleType, |
|---|
| 6318 | n/a | publicMovie, |
|---|
| 6319 | n/a | start, |
|---|
| 6320 | n/a | dur, |
|---|
| 6321 | n/a | flags, |
|---|
| 6322 | n/a | userComp); |
|---|
| 6323 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6324 | n/a | Py_INCREF(Py_None); |
|---|
| 6325 | n/a | _res = Py_None; |
|---|
| 6326 | n/a | return _res; |
|---|
| 6327 | n/a | } |
|---|
| 6328 | n/a | |
|---|
| 6329 | n/a | static PyObject *MovieObj_CopyMovieSettings(MovieObject *_self, PyObject *_args) |
|---|
| 6330 | n/a | { |
|---|
| 6331 | n/a | PyObject *_res = NULL; |
|---|
| 6332 | n/a | OSErr _err; |
|---|
| 6333 | n/a | Movie dstMovie; |
|---|
| 6334 | n/a | #ifndef CopyMovieSettings |
|---|
| 6335 | n/a | PyMac_PRECHECK(CopyMovieSettings); |
|---|
| 6336 | n/a | #endif |
|---|
| 6337 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6338 | n/a | MovieObj_Convert, &dstMovie)) |
|---|
| 6339 | n/a | return NULL; |
|---|
| 6340 | n/a | _err = CopyMovieSettings(_self->ob_itself, |
|---|
| 6341 | n/a | dstMovie); |
|---|
| 6342 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6343 | n/a | Py_INCREF(Py_None); |
|---|
| 6344 | n/a | _res = Py_None; |
|---|
| 6345 | n/a | return _res; |
|---|
| 6346 | n/a | } |
|---|
| 6347 | n/a | |
|---|
| 6348 | n/a | static PyObject *MovieObj_ConvertMovieToFile(MovieObject *_self, PyObject *_args) |
|---|
| 6349 | n/a | { |
|---|
| 6350 | n/a | PyObject *_res = NULL; |
|---|
| 6351 | n/a | OSErr _err; |
|---|
| 6352 | n/a | Track onlyTrack; |
|---|
| 6353 | n/a | FSSpec outputFile; |
|---|
| 6354 | n/a | OSType fileType; |
|---|
| 6355 | n/a | OSType creator; |
|---|
| 6356 | n/a | ScriptCode scriptTag; |
|---|
| 6357 | n/a | short resID; |
|---|
| 6358 | n/a | long flags; |
|---|
| 6359 | n/a | ComponentInstance userComp; |
|---|
| 6360 | n/a | #ifndef ConvertMovieToFile |
|---|
| 6361 | n/a | PyMac_PRECHECK(ConvertMovieToFile); |
|---|
| 6362 | n/a | #endif |
|---|
| 6363 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&hlO&", |
|---|
| 6364 | n/a | TrackObj_Convert, &onlyTrack, |
|---|
| 6365 | n/a | PyMac_GetFSSpec, &outputFile, |
|---|
| 6366 | n/a | PyMac_GetOSType, &fileType, |
|---|
| 6367 | n/a | PyMac_GetOSType, &creator, |
|---|
| 6368 | n/a | &scriptTag, |
|---|
| 6369 | n/a | &flags, |
|---|
| 6370 | n/a | CmpInstObj_Convert, &userComp)) |
|---|
| 6371 | n/a | return NULL; |
|---|
| 6372 | n/a | _err = ConvertMovieToFile(_self->ob_itself, |
|---|
| 6373 | n/a | onlyTrack, |
|---|
| 6374 | n/a | &outputFile, |
|---|
| 6375 | n/a | fileType, |
|---|
| 6376 | n/a | creator, |
|---|
| 6377 | n/a | scriptTag, |
|---|
| 6378 | n/a | &resID, |
|---|
| 6379 | n/a | flags, |
|---|
| 6380 | n/a | userComp); |
|---|
| 6381 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6382 | n/a | _res = Py_BuildValue("h", |
|---|
| 6383 | n/a | resID); |
|---|
| 6384 | n/a | return _res; |
|---|
| 6385 | n/a | } |
|---|
| 6386 | n/a | |
|---|
| 6387 | n/a | static PyObject *MovieObj_GetMovieDataSize(MovieObject *_self, PyObject *_args) |
|---|
| 6388 | n/a | { |
|---|
| 6389 | n/a | PyObject *_res = NULL; |
|---|
| 6390 | n/a | long _rv; |
|---|
| 6391 | n/a | TimeValue startTime; |
|---|
| 6392 | n/a | TimeValue duration; |
|---|
| 6393 | n/a | #ifndef GetMovieDataSize |
|---|
| 6394 | n/a | PyMac_PRECHECK(GetMovieDataSize); |
|---|
| 6395 | n/a | #endif |
|---|
| 6396 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 6397 | n/a | &startTime, |
|---|
| 6398 | n/a | &duration)) |
|---|
| 6399 | n/a | return NULL; |
|---|
| 6400 | n/a | _rv = GetMovieDataSize(_self->ob_itself, |
|---|
| 6401 | n/a | startTime, |
|---|
| 6402 | n/a | duration); |
|---|
| 6403 | n/a | _res = Py_BuildValue("l", |
|---|
| 6404 | n/a | _rv); |
|---|
| 6405 | n/a | return _res; |
|---|
| 6406 | n/a | } |
|---|
| 6407 | n/a | |
|---|
| 6408 | n/a | static PyObject *MovieObj_GetMovieDataSize64(MovieObject *_self, PyObject *_args) |
|---|
| 6409 | n/a | { |
|---|
| 6410 | n/a | PyObject *_res = NULL; |
|---|
| 6411 | n/a | OSErr _err; |
|---|
| 6412 | n/a | TimeValue startTime; |
|---|
| 6413 | n/a | TimeValue duration; |
|---|
| 6414 | n/a | wide dataSize; |
|---|
| 6415 | n/a | #ifndef GetMovieDataSize64 |
|---|
| 6416 | n/a | PyMac_PRECHECK(GetMovieDataSize64); |
|---|
| 6417 | n/a | #endif |
|---|
| 6418 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 6419 | n/a | &startTime, |
|---|
| 6420 | n/a | &duration)) |
|---|
| 6421 | n/a | return NULL; |
|---|
| 6422 | n/a | _err = GetMovieDataSize64(_self->ob_itself, |
|---|
| 6423 | n/a | startTime, |
|---|
| 6424 | n/a | duration, |
|---|
| 6425 | n/a | &dataSize); |
|---|
| 6426 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6427 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6428 | n/a | PyMac_Buildwide, dataSize); |
|---|
| 6429 | n/a | return _res; |
|---|
| 6430 | n/a | } |
|---|
| 6431 | n/a | |
|---|
| 6432 | n/a | static PyObject *MovieObj_PtInMovie(MovieObject *_self, PyObject *_args) |
|---|
| 6433 | n/a | { |
|---|
| 6434 | n/a | PyObject *_res = NULL; |
|---|
| 6435 | n/a | Boolean _rv; |
|---|
| 6436 | n/a | Point pt; |
|---|
| 6437 | n/a | #ifndef PtInMovie |
|---|
| 6438 | n/a | PyMac_PRECHECK(PtInMovie); |
|---|
| 6439 | n/a | #endif |
|---|
| 6440 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6441 | n/a | PyMac_GetPoint, &pt)) |
|---|
| 6442 | n/a | return NULL; |
|---|
| 6443 | n/a | _rv = PtInMovie(_self->ob_itself, |
|---|
| 6444 | n/a | pt); |
|---|
| 6445 | n/a | _res = Py_BuildValue("b", |
|---|
| 6446 | n/a | _rv); |
|---|
| 6447 | n/a | return _res; |
|---|
| 6448 | n/a | } |
|---|
| 6449 | n/a | |
|---|
| 6450 | n/a | static PyObject *MovieObj_SetMovieLanguage(MovieObject *_self, PyObject *_args) |
|---|
| 6451 | n/a | { |
|---|
| 6452 | n/a | PyObject *_res = NULL; |
|---|
| 6453 | n/a | long language; |
|---|
| 6454 | n/a | #ifndef SetMovieLanguage |
|---|
| 6455 | n/a | PyMac_PRECHECK(SetMovieLanguage); |
|---|
| 6456 | n/a | #endif |
|---|
| 6457 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 6458 | n/a | &language)) |
|---|
| 6459 | n/a | return NULL; |
|---|
| 6460 | n/a | SetMovieLanguage(_self->ob_itself, |
|---|
| 6461 | n/a | language); |
|---|
| 6462 | n/a | Py_INCREF(Py_None); |
|---|
| 6463 | n/a | _res = Py_None; |
|---|
| 6464 | n/a | return _res; |
|---|
| 6465 | n/a | } |
|---|
| 6466 | n/a | |
|---|
| 6467 | n/a | static PyObject *MovieObj_CopyMovieUserData(MovieObject *_self, PyObject *_args) |
|---|
| 6468 | n/a | { |
|---|
| 6469 | n/a | PyObject *_res = NULL; |
|---|
| 6470 | n/a | OSErr _err; |
|---|
| 6471 | n/a | Movie dstMovie; |
|---|
| 6472 | n/a | OSType copyRule; |
|---|
| 6473 | n/a | #ifndef CopyMovieUserData |
|---|
| 6474 | n/a | PyMac_PRECHECK(CopyMovieUserData); |
|---|
| 6475 | n/a | #endif |
|---|
| 6476 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 6477 | n/a | MovieObj_Convert, &dstMovie, |
|---|
| 6478 | n/a | PyMac_GetOSType, ©Rule)) |
|---|
| 6479 | n/a | return NULL; |
|---|
| 6480 | n/a | _err = CopyMovieUserData(_self->ob_itself, |
|---|
| 6481 | n/a | dstMovie, |
|---|
| 6482 | n/a | copyRule); |
|---|
| 6483 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6484 | n/a | Py_INCREF(Py_None); |
|---|
| 6485 | n/a | _res = Py_None; |
|---|
| 6486 | n/a | return _res; |
|---|
| 6487 | n/a | } |
|---|
| 6488 | n/a | |
|---|
| 6489 | n/a | static PyObject *MovieObj_GetMovieNextInterestingTime(MovieObject *_self, PyObject *_args) |
|---|
| 6490 | n/a | { |
|---|
| 6491 | n/a | PyObject *_res = NULL; |
|---|
| 6492 | n/a | short interestingTimeFlags; |
|---|
| 6493 | n/a | short numMediaTypes; |
|---|
| 6494 | n/a | OSType whichMediaTypes; |
|---|
| 6495 | n/a | TimeValue time; |
|---|
| 6496 | n/a | Fixed rate; |
|---|
| 6497 | n/a | TimeValue interestingTime; |
|---|
| 6498 | n/a | TimeValue interestingDuration; |
|---|
| 6499 | n/a | #ifndef GetMovieNextInterestingTime |
|---|
| 6500 | n/a | PyMac_PRECHECK(GetMovieNextInterestingTime); |
|---|
| 6501 | n/a | #endif |
|---|
| 6502 | n/a | if (!PyArg_ParseTuple(_args, "hhO&lO&", |
|---|
| 6503 | n/a | &interestingTimeFlags, |
|---|
| 6504 | n/a | &numMediaTypes, |
|---|
| 6505 | n/a | PyMac_GetOSType, &whichMediaTypes, |
|---|
| 6506 | n/a | &time, |
|---|
| 6507 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 6508 | n/a | return NULL; |
|---|
| 6509 | n/a | GetMovieNextInterestingTime(_self->ob_itself, |
|---|
| 6510 | n/a | interestingTimeFlags, |
|---|
| 6511 | n/a | numMediaTypes, |
|---|
| 6512 | n/a | &whichMediaTypes, |
|---|
| 6513 | n/a | time, |
|---|
| 6514 | n/a | rate, |
|---|
| 6515 | n/a | &interestingTime, |
|---|
| 6516 | n/a | &interestingDuration); |
|---|
| 6517 | n/a | _res = Py_BuildValue("ll", |
|---|
| 6518 | n/a | interestingTime, |
|---|
| 6519 | n/a | interestingDuration); |
|---|
| 6520 | n/a | return _res; |
|---|
| 6521 | n/a | } |
|---|
| 6522 | n/a | |
|---|
| 6523 | n/a | static PyObject *MovieObj_AddMovieResource(MovieObject *_self, PyObject *_args) |
|---|
| 6524 | n/a | { |
|---|
| 6525 | n/a | PyObject *_res = NULL; |
|---|
| 6526 | n/a | OSErr _err; |
|---|
| 6527 | n/a | short resRefNum; |
|---|
| 6528 | n/a | short resId; |
|---|
| 6529 | n/a | Str255 resName; |
|---|
| 6530 | n/a | #ifndef AddMovieResource |
|---|
| 6531 | n/a | PyMac_PRECHECK(AddMovieResource); |
|---|
| 6532 | n/a | #endif |
|---|
| 6533 | n/a | if (!PyArg_ParseTuple(_args, "hO&", |
|---|
| 6534 | n/a | &resRefNum, |
|---|
| 6535 | n/a | PyMac_GetStr255, resName)) |
|---|
| 6536 | n/a | return NULL; |
|---|
| 6537 | n/a | _err = AddMovieResource(_self->ob_itself, |
|---|
| 6538 | n/a | resRefNum, |
|---|
| 6539 | n/a | &resId, |
|---|
| 6540 | n/a | resName); |
|---|
| 6541 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6542 | n/a | _res = Py_BuildValue("h", |
|---|
| 6543 | n/a | resId); |
|---|
| 6544 | n/a | return _res; |
|---|
| 6545 | n/a | } |
|---|
| 6546 | n/a | |
|---|
| 6547 | n/a | static PyObject *MovieObj_UpdateMovieResource(MovieObject *_self, PyObject *_args) |
|---|
| 6548 | n/a | { |
|---|
| 6549 | n/a | PyObject *_res = NULL; |
|---|
| 6550 | n/a | OSErr _err; |
|---|
| 6551 | n/a | short resRefNum; |
|---|
| 6552 | n/a | short resId; |
|---|
| 6553 | n/a | Str255 resName; |
|---|
| 6554 | n/a | #ifndef UpdateMovieResource |
|---|
| 6555 | n/a | PyMac_PRECHECK(UpdateMovieResource); |
|---|
| 6556 | n/a | #endif |
|---|
| 6557 | n/a | if (!PyArg_ParseTuple(_args, "hhO&", |
|---|
| 6558 | n/a | &resRefNum, |
|---|
| 6559 | n/a | &resId, |
|---|
| 6560 | n/a | PyMac_GetStr255, resName)) |
|---|
| 6561 | n/a | return NULL; |
|---|
| 6562 | n/a | _err = UpdateMovieResource(_self->ob_itself, |
|---|
| 6563 | n/a | resRefNum, |
|---|
| 6564 | n/a | resId, |
|---|
| 6565 | n/a | resName); |
|---|
| 6566 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6567 | n/a | Py_INCREF(Py_None); |
|---|
| 6568 | n/a | _res = Py_None; |
|---|
| 6569 | n/a | return _res; |
|---|
| 6570 | n/a | } |
|---|
| 6571 | n/a | |
|---|
| 6572 | n/a | static PyObject *MovieObj_AddMovieToStorage(MovieObject *_self, PyObject *_args) |
|---|
| 6573 | n/a | { |
|---|
| 6574 | n/a | PyObject *_res = NULL; |
|---|
| 6575 | n/a | OSErr _err; |
|---|
| 6576 | n/a | DataHandler dh; |
|---|
| 6577 | n/a | #ifndef AddMovieToStorage |
|---|
| 6578 | n/a | PyMac_PRECHECK(AddMovieToStorage); |
|---|
| 6579 | n/a | #endif |
|---|
| 6580 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6581 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 6582 | n/a | return NULL; |
|---|
| 6583 | n/a | _err = AddMovieToStorage(_self->ob_itself, |
|---|
| 6584 | n/a | dh); |
|---|
| 6585 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6586 | n/a | Py_INCREF(Py_None); |
|---|
| 6587 | n/a | _res = Py_None; |
|---|
| 6588 | n/a | return _res; |
|---|
| 6589 | n/a | } |
|---|
| 6590 | n/a | |
|---|
| 6591 | n/a | static PyObject *MovieObj_UpdateMovieInStorage(MovieObject *_self, PyObject *_args) |
|---|
| 6592 | n/a | { |
|---|
| 6593 | n/a | PyObject *_res = NULL; |
|---|
| 6594 | n/a | OSErr _err; |
|---|
| 6595 | n/a | DataHandler dh; |
|---|
| 6596 | n/a | #ifndef UpdateMovieInStorage |
|---|
| 6597 | n/a | PyMac_PRECHECK(UpdateMovieInStorage); |
|---|
| 6598 | n/a | #endif |
|---|
| 6599 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6600 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 6601 | n/a | return NULL; |
|---|
| 6602 | n/a | _err = UpdateMovieInStorage(_self->ob_itself, |
|---|
| 6603 | n/a | dh); |
|---|
| 6604 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6605 | n/a | Py_INCREF(Py_None); |
|---|
| 6606 | n/a | _res = Py_None; |
|---|
| 6607 | n/a | return _res; |
|---|
| 6608 | n/a | } |
|---|
| 6609 | n/a | |
|---|
| 6610 | n/a | static PyObject *MovieObj_HasMovieChanged(MovieObject *_self, PyObject *_args) |
|---|
| 6611 | n/a | { |
|---|
| 6612 | n/a | PyObject *_res = NULL; |
|---|
| 6613 | n/a | Boolean _rv; |
|---|
| 6614 | n/a | #ifndef HasMovieChanged |
|---|
| 6615 | n/a | PyMac_PRECHECK(HasMovieChanged); |
|---|
| 6616 | n/a | #endif |
|---|
| 6617 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6618 | n/a | return NULL; |
|---|
| 6619 | n/a | _rv = HasMovieChanged(_self->ob_itself); |
|---|
| 6620 | n/a | _res = Py_BuildValue("b", |
|---|
| 6621 | n/a | _rv); |
|---|
| 6622 | n/a | return _res; |
|---|
| 6623 | n/a | } |
|---|
| 6624 | n/a | |
|---|
| 6625 | n/a | static PyObject *MovieObj_ClearMovieChanged(MovieObject *_self, PyObject *_args) |
|---|
| 6626 | n/a | { |
|---|
| 6627 | n/a | PyObject *_res = NULL; |
|---|
| 6628 | n/a | #ifndef ClearMovieChanged |
|---|
| 6629 | n/a | PyMac_PRECHECK(ClearMovieChanged); |
|---|
| 6630 | n/a | #endif |
|---|
| 6631 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6632 | n/a | return NULL; |
|---|
| 6633 | n/a | ClearMovieChanged(_self->ob_itself); |
|---|
| 6634 | n/a | Py_INCREF(Py_None); |
|---|
| 6635 | n/a | _res = Py_None; |
|---|
| 6636 | n/a | return _res; |
|---|
| 6637 | n/a | } |
|---|
| 6638 | n/a | |
|---|
| 6639 | n/a | static PyObject *MovieObj_SetMovieDefaultDataRef(MovieObject *_self, PyObject *_args) |
|---|
| 6640 | n/a | { |
|---|
| 6641 | n/a | PyObject *_res = NULL; |
|---|
| 6642 | n/a | OSErr _err; |
|---|
| 6643 | n/a | Handle dataRef; |
|---|
| 6644 | n/a | OSType dataRefType; |
|---|
| 6645 | n/a | #ifndef SetMovieDefaultDataRef |
|---|
| 6646 | n/a | PyMac_PRECHECK(SetMovieDefaultDataRef); |
|---|
| 6647 | n/a | #endif |
|---|
| 6648 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 6649 | n/a | ResObj_Convert, &dataRef, |
|---|
| 6650 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 6651 | n/a | return NULL; |
|---|
| 6652 | n/a | _err = SetMovieDefaultDataRef(_self->ob_itself, |
|---|
| 6653 | n/a | dataRef, |
|---|
| 6654 | n/a | dataRefType); |
|---|
| 6655 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6656 | n/a | Py_INCREF(Py_None); |
|---|
| 6657 | n/a | _res = Py_None; |
|---|
| 6658 | n/a | return _res; |
|---|
| 6659 | n/a | } |
|---|
| 6660 | n/a | |
|---|
| 6661 | n/a | static PyObject *MovieObj_GetMovieDefaultDataRef(MovieObject *_self, PyObject *_args) |
|---|
| 6662 | n/a | { |
|---|
| 6663 | n/a | PyObject *_res = NULL; |
|---|
| 6664 | n/a | OSErr _err; |
|---|
| 6665 | n/a | Handle dataRef; |
|---|
| 6666 | n/a | OSType dataRefType; |
|---|
| 6667 | n/a | #ifndef GetMovieDefaultDataRef |
|---|
| 6668 | n/a | PyMac_PRECHECK(GetMovieDefaultDataRef); |
|---|
| 6669 | n/a | #endif |
|---|
| 6670 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6671 | n/a | return NULL; |
|---|
| 6672 | n/a | _err = GetMovieDefaultDataRef(_self->ob_itself, |
|---|
| 6673 | n/a | &dataRef, |
|---|
| 6674 | n/a | &dataRefType); |
|---|
| 6675 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6676 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 6677 | n/a | ResObj_New, dataRef, |
|---|
| 6678 | n/a | PyMac_BuildOSType, dataRefType); |
|---|
| 6679 | n/a | return _res; |
|---|
| 6680 | n/a | } |
|---|
| 6681 | n/a | |
|---|
| 6682 | n/a | static PyObject *MovieObj_SetMovieColorTable(MovieObject *_self, PyObject *_args) |
|---|
| 6683 | n/a | { |
|---|
| 6684 | n/a | PyObject *_res = NULL; |
|---|
| 6685 | n/a | OSErr _err; |
|---|
| 6686 | n/a | CTabHandle ctab; |
|---|
| 6687 | n/a | #ifndef SetMovieColorTable |
|---|
| 6688 | n/a | PyMac_PRECHECK(SetMovieColorTable); |
|---|
| 6689 | n/a | #endif |
|---|
| 6690 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6691 | n/a | ResObj_Convert, &ctab)) |
|---|
| 6692 | n/a | return NULL; |
|---|
| 6693 | n/a | _err = SetMovieColorTable(_self->ob_itself, |
|---|
| 6694 | n/a | ctab); |
|---|
| 6695 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6696 | n/a | Py_INCREF(Py_None); |
|---|
| 6697 | n/a | _res = Py_None; |
|---|
| 6698 | n/a | return _res; |
|---|
| 6699 | n/a | } |
|---|
| 6700 | n/a | |
|---|
| 6701 | n/a | static PyObject *MovieObj_GetMovieColorTable(MovieObject *_self, PyObject *_args) |
|---|
| 6702 | n/a | { |
|---|
| 6703 | n/a | PyObject *_res = NULL; |
|---|
| 6704 | n/a | OSErr _err; |
|---|
| 6705 | n/a | CTabHandle ctab; |
|---|
| 6706 | n/a | #ifndef GetMovieColorTable |
|---|
| 6707 | n/a | PyMac_PRECHECK(GetMovieColorTable); |
|---|
| 6708 | n/a | #endif |
|---|
| 6709 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6710 | n/a | return NULL; |
|---|
| 6711 | n/a | _err = GetMovieColorTable(_self->ob_itself, |
|---|
| 6712 | n/a | &ctab); |
|---|
| 6713 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6714 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6715 | n/a | ResObj_New, ctab); |
|---|
| 6716 | n/a | return _res; |
|---|
| 6717 | n/a | } |
|---|
| 6718 | n/a | |
|---|
| 6719 | n/a | static PyObject *MovieObj_FlattenMovie(MovieObject *_self, PyObject *_args) |
|---|
| 6720 | n/a | { |
|---|
| 6721 | n/a | PyObject *_res = NULL; |
|---|
| 6722 | n/a | long movieFlattenFlags; |
|---|
| 6723 | n/a | FSSpec theFile; |
|---|
| 6724 | n/a | OSType creator; |
|---|
| 6725 | n/a | ScriptCode scriptTag; |
|---|
| 6726 | n/a | long createMovieFileFlags; |
|---|
| 6727 | n/a | short resId; |
|---|
| 6728 | n/a | Str255 resName; |
|---|
| 6729 | n/a | #ifndef FlattenMovie |
|---|
| 6730 | n/a | PyMac_PRECHECK(FlattenMovie); |
|---|
| 6731 | n/a | #endif |
|---|
| 6732 | n/a | if (!PyArg_ParseTuple(_args, "lO&O&hlO&", |
|---|
| 6733 | n/a | &movieFlattenFlags, |
|---|
| 6734 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 6735 | n/a | PyMac_GetOSType, &creator, |
|---|
| 6736 | n/a | &scriptTag, |
|---|
| 6737 | n/a | &createMovieFileFlags, |
|---|
| 6738 | n/a | PyMac_GetStr255, resName)) |
|---|
| 6739 | n/a | return NULL; |
|---|
| 6740 | n/a | FlattenMovie(_self->ob_itself, |
|---|
| 6741 | n/a | movieFlattenFlags, |
|---|
| 6742 | n/a | &theFile, |
|---|
| 6743 | n/a | creator, |
|---|
| 6744 | n/a | scriptTag, |
|---|
| 6745 | n/a | createMovieFileFlags, |
|---|
| 6746 | n/a | &resId, |
|---|
| 6747 | n/a | resName); |
|---|
| 6748 | n/a | _res = Py_BuildValue("h", |
|---|
| 6749 | n/a | resId); |
|---|
| 6750 | n/a | return _res; |
|---|
| 6751 | n/a | } |
|---|
| 6752 | n/a | |
|---|
| 6753 | n/a | static PyObject *MovieObj_FlattenMovieData(MovieObject *_self, PyObject *_args) |
|---|
| 6754 | n/a | { |
|---|
| 6755 | n/a | PyObject *_res = NULL; |
|---|
| 6756 | n/a | Movie _rv; |
|---|
| 6757 | n/a | long movieFlattenFlags; |
|---|
| 6758 | n/a | FSSpec theFile; |
|---|
| 6759 | n/a | OSType creator; |
|---|
| 6760 | n/a | ScriptCode scriptTag; |
|---|
| 6761 | n/a | long createMovieFileFlags; |
|---|
| 6762 | n/a | #ifndef FlattenMovieData |
|---|
| 6763 | n/a | PyMac_PRECHECK(FlattenMovieData); |
|---|
| 6764 | n/a | #endif |
|---|
| 6765 | n/a | if (!PyArg_ParseTuple(_args, "lO&O&hl", |
|---|
| 6766 | n/a | &movieFlattenFlags, |
|---|
| 6767 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 6768 | n/a | PyMac_GetOSType, &creator, |
|---|
| 6769 | n/a | &scriptTag, |
|---|
| 6770 | n/a | &createMovieFileFlags)) |
|---|
| 6771 | n/a | return NULL; |
|---|
| 6772 | n/a | _rv = FlattenMovieData(_self->ob_itself, |
|---|
| 6773 | n/a | movieFlattenFlags, |
|---|
| 6774 | n/a | &theFile, |
|---|
| 6775 | n/a | creator, |
|---|
| 6776 | n/a | scriptTag, |
|---|
| 6777 | n/a | createMovieFileFlags); |
|---|
| 6778 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6779 | n/a | MovieObj_New, _rv); |
|---|
| 6780 | n/a | return _res; |
|---|
| 6781 | n/a | } |
|---|
| 6782 | n/a | |
|---|
| 6783 | n/a | static PyObject *MovieObj_FlattenMovieDataToDataRef(MovieObject *_self, PyObject *_args) |
|---|
| 6784 | n/a | { |
|---|
| 6785 | n/a | PyObject *_res = NULL; |
|---|
| 6786 | n/a | Movie _rv; |
|---|
| 6787 | n/a | long movieFlattenFlags; |
|---|
| 6788 | n/a | Handle dataRef; |
|---|
| 6789 | n/a | OSType dataRefType; |
|---|
| 6790 | n/a | OSType creator; |
|---|
| 6791 | n/a | ScriptCode scriptTag; |
|---|
| 6792 | n/a | long createMovieFileFlags; |
|---|
| 6793 | n/a | #ifndef FlattenMovieDataToDataRef |
|---|
| 6794 | n/a | PyMac_PRECHECK(FlattenMovieDataToDataRef); |
|---|
| 6795 | n/a | #endif |
|---|
| 6796 | n/a | if (!PyArg_ParseTuple(_args, "lO&O&O&hl", |
|---|
| 6797 | n/a | &movieFlattenFlags, |
|---|
| 6798 | n/a | ResObj_Convert, &dataRef, |
|---|
| 6799 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 6800 | n/a | PyMac_GetOSType, &creator, |
|---|
| 6801 | n/a | &scriptTag, |
|---|
| 6802 | n/a | &createMovieFileFlags)) |
|---|
| 6803 | n/a | return NULL; |
|---|
| 6804 | n/a | _rv = FlattenMovieDataToDataRef(_self->ob_itself, |
|---|
| 6805 | n/a | movieFlattenFlags, |
|---|
| 6806 | n/a | dataRef, |
|---|
| 6807 | n/a | dataRefType, |
|---|
| 6808 | n/a | creator, |
|---|
| 6809 | n/a | scriptTag, |
|---|
| 6810 | n/a | createMovieFileFlags); |
|---|
| 6811 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6812 | n/a | MovieObj_New, _rv); |
|---|
| 6813 | n/a | return _res; |
|---|
| 6814 | n/a | } |
|---|
| 6815 | n/a | |
|---|
| 6816 | n/a | static PyObject *MovieObj_MovieSearchText(MovieObject *_self, PyObject *_args) |
|---|
| 6817 | n/a | { |
|---|
| 6818 | n/a | PyObject *_res = NULL; |
|---|
| 6819 | n/a | OSErr _err; |
|---|
| 6820 | n/a | Ptr text; |
|---|
| 6821 | n/a | long size; |
|---|
| 6822 | n/a | long searchFlags; |
|---|
| 6823 | n/a | Track searchTrack; |
|---|
| 6824 | n/a | TimeValue searchTime; |
|---|
| 6825 | n/a | long searchOffset; |
|---|
| 6826 | n/a | #ifndef MovieSearchText |
|---|
| 6827 | n/a | PyMac_PRECHECK(MovieSearchText); |
|---|
| 6828 | n/a | #endif |
|---|
| 6829 | n/a | if (!PyArg_ParseTuple(_args, "sll", |
|---|
| 6830 | n/a | &text, |
|---|
| 6831 | n/a | &size, |
|---|
| 6832 | n/a | &searchFlags)) |
|---|
| 6833 | n/a | return NULL; |
|---|
| 6834 | n/a | _err = MovieSearchText(_self->ob_itself, |
|---|
| 6835 | n/a | text, |
|---|
| 6836 | n/a | size, |
|---|
| 6837 | n/a | searchFlags, |
|---|
| 6838 | n/a | &searchTrack, |
|---|
| 6839 | n/a | &searchTime, |
|---|
| 6840 | n/a | &searchOffset); |
|---|
| 6841 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6842 | n/a | _res = Py_BuildValue("O&ll", |
|---|
| 6843 | n/a | TrackObj_New, searchTrack, |
|---|
| 6844 | n/a | searchTime, |
|---|
| 6845 | n/a | searchOffset); |
|---|
| 6846 | n/a | return _res; |
|---|
| 6847 | n/a | } |
|---|
| 6848 | n/a | |
|---|
| 6849 | n/a | static PyObject *MovieObj_GetPosterBox(MovieObject *_self, PyObject *_args) |
|---|
| 6850 | n/a | { |
|---|
| 6851 | n/a | PyObject *_res = NULL; |
|---|
| 6852 | n/a | Rect boxRect; |
|---|
| 6853 | n/a | #ifndef GetPosterBox |
|---|
| 6854 | n/a | PyMac_PRECHECK(GetPosterBox); |
|---|
| 6855 | n/a | #endif |
|---|
| 6856 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6857 | n/a | return NULL; |
|---|
| 6858 | n/a | GetPosterBox(_self->ob_itself, |
|---|
| 6859 | n/a | &boxRect); |
|---|
| 6860 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6861 | n/a | PyMac_BuildRect, &boxRect); |
|---|
| 6862 | n/a | return _res; |
|---|
| 6863 | n/a | } |
|---|
| 6864 | n/a | |
|---|
| 6865 | n/a | static PyObject *MovieObj_SetPosterBox(MovieObject *_self, PyObject *_args) |
|---|
| 6866 | n/a | { |
|---|
| 6867 | n/a | PyObject *_res = NULL; |
|---|
| 6868 | n/a | Rect boxRect; |
|---|
| 6869 | n/a | #ifndef SetPosterBox |
|---|
| 6870 | n/a | PyMac_PRECHECK(SetPosterBox); |
|---|
| 6871 | n/a | #endif |
|---|
| 6872 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 6873 | n/a | PyMac_GetRect, &boxRect)) |
|---|
| 6874 | n/a | return NULL; |
|---|
| 6875 | n/a | SetPosterBox(_self->ob_itself, |
|---|
| 6876 | n/a | &boxRect); |
|---|
| 6877 | n/a | Py_INCREF(Py_None); |
|---|
| 6878 | n/a | _res = Py_None; |
|---|
| 6879 | n/a | return _res; |
|---|
| 6880 | n/a | } |
|---|
| 6881 | n/a | |
|---|
| 6882 | n/a | static PyObject *MovieObj_GetMovieSegmentDisplayBoundsRgn(MovieObject *_self, PyObject *_args) |
|---|
| 6883 | n/a | { |
|---|
| 6884 | n/a | PyObject *_res = NULL; |
|---|
| 6885 | n/a | RgnHandle _rv; |
|---|
| 6886 | n/a | TimeValue time; |
|---|
| 6887 | n/a | TimeValue duration; |
|---|
| 6888 | n/a | #ifndef GetMovieSegmentDisplayBoundsRgn |
|---|
| 6889 | n/a | PyMac_PRECHECK(GetMovieSegmentDisplayBoundsRgn); |
|---|
| 6890 | n/a | #endif |
|---|
| 6891 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 6892 | n/a | &time, |
|---|
| 6893 | n/a | &duration)) |
|---|
| 6894 | n/a | return NULL; |
|---|
| 6895 | n/a | _rv = GetMovieSegmentDisplayBoundsRgn(_self->ob_itself, |
|---|
| 6896 | n/a | time, |
|---|
| 6897 | n/a | duration); |
|---|
| 6898 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6899 | n/a | ResObj_New, _rv); |
|---|
| 6900 | n/a | return _res; |
|---|
| 6901 | n/a | } |
|---|
| 6902 | n/a | |
|---|
| 6903 | n/a | static PyObject *MovieObj_GetMovieStatus(MovieObject *_self, PyObject *_args) |
|---|
| 6904 | n/a | { |
|---|
| 6905 | n/a | PyObject *_res = NULL; |
|---|
| 6906 | n/a | ComponentResult _rv; |
|---|
| 6907 | n/a | Track firstProblemTrack; |
|---|
| 6908 | n/a | #ifndef GetMovieStatus |
|---|
| 6909 | n/a | PyMac_PRECHECK(GetMovieStatus); |
|---|
| 6910 | n/a | #endif |
|---|
| 6911 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6912 | n/a | return NULL; |
|---|
| 6913 | n/a | _rv = GetMovieStatus(_self->ob_itself, |
|---|
| 6914 | n/a | &firstProblemTrack); |
|---|
| 6915 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 6916 | n/a | _rv, |
|---|
| 6917 | n/a | TrackObj_New, firstProblemTrack); |
|---|
| 6918 | n/a | return _res; |
|---|
| 6919 | n/a | } |
|---|
| 6920 | n/a | |
|---|
| 6921 | n/a | static PyObject *MovieObj_NewMovieController(MovieObject *_self, PyObject *_args) |
|---|
| 6922 | n/a | { |
|---|
| 6923 | n/a | PyObject *_res = NULL; |
|---|
| 6924 | n/a | MovieController _rv; |
|---|
| 6925 | n/a | Rect movieRect; |
|---|
| 6926 | n/a | long someFlags; |
|---|
| 6927 | n/a | #ifndef NewMovieController |
|---|
| 6928 | n/a | PyMac_PRECHECK(NewMovieController); |
|---|
| 6929 | n/a | #endif |
|---|
| 6930 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 6931 | n/a | PyMac_GetRect, &movieRect, |
|---|
| 6932 | n/a | &someFlags)) |
|---|
| 6933 | n/a | return NULL; |
|---|
| 6934 | n/a | _rv = NewMovieController(_self->ob_itself, |
|---|
| 6935 | n/a | &movieRect, |
|---|
| 6936 | n/a | someFlags); |
|---|
| 6937 | n/a | _res = Py_BuildValue("O&", |
|---|
| 6938 | n/a | MovieCtlObj_New, _rv); |
|---|
| 6939 | n/a | return _res; |
|---|
| 6940 | n/a | } |
|---|
| 6941 | n/a | |
|---|
| 6942 | n/a | static PyObject *MovieObj_PutMovieOnScrap(MovieObject *_self, PyObject *_args) |
|---|
| 6943 | n/a | { |
|---|
| 6944 | n/a | PyObject *_res = NULL; |
|---|
| 6945 | n/a | OSErr _err; |
|---|
| 6946 | n/a | long movieScrapFlags; |
|---|
| 6947 | n/a | #ifndef PutMovieOnScrap |
|---|
| 6948 | n/a | PyMac_PRECHECK(PutMovieOnScrap); |
|---|
| 6949 | n/a | #endif |
|---|
| 6950 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 6951 | n/a | &movieScrapFlags)) |
|---|
| 6952 | n/a | return NULL; |
|---|
| 6953 | n/a | _err = PutMovieOnScrap(_self->ob_itself, |
|---|
| 6954 | n/a | movieScrapFlags); |
|---|
| 6955 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6956 | n/a | Py_INCREF(Py_None); |
|---|
| 6957 | n/a | _res = Py_None; |
|---|
| 6958 | n/a | return _res; |
|---|
| 6959 | n/a | } |
|---|
| 6960 | n/a | |
|---|
| 6961 | n/a | static PyObject *MovieObj_SetMoviePlayHints(MovieObject *_self, PyObject *_args) |
|---|
| 6962 | n/a | { |
|---|
| 6963 | n/a | PyObject *_res = NULL; |
|---|
| 6964 | n/a | long flags; |
|---|
| 6965 | n/a | long flagsMask; |
|---|
| 6966 | n/a | #ifndef SetMoviePlayHints |
|---|
| 6967 | n/a | PyMac_PRECHECK(SetMoviePlayHints); |
|---|
| 6968 | n/a | #endif |
|---|
| 6969 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 6970 | n/a | &flags, |
|---|
| 6971 | n/a | &flagsMask)) |
|---|
| 6972 | n/a | return NULL; |
|---|
| 6973 | n/a | SetMoviePlayHints(_self->ob_itself, |
|---|
| 6974 | n/a | flags, |
|---|
| 6975 | n/a | flagsMask); |
|---|
| 6976 | n/a | Py_INCREF(Py_None); |
|---|
| 6977 | n/a | _res = Py_None; |
|---|
| 6978 | n/a | return _res; |
|---|
| 6979 | n/a | } |
|---|
| 6980 | n/a | |
|---|
| 6981 | n/a | static PyObject *MovieObj_GetMaxLoadedTimeInMovie(MovieObject *_self, PyObject *_args) |
|---|
| 6982 | n/a | { |
|---|
| 6983 | n/a | PyObject *_res = NULL; |
|---|
| 6984 | n/a | OSErr _err; |
|---|
| 6985 | n/a | TimeValue time; |
|---|
| 6986 | n/a | #ifndef GetMaxLoadedTimeInMovie |
|---|
| 6987 | n/a | PyMac_PRECHECK(GetMaxLoadedTimeInMovie); |
|---|
| 6988 | n/a | #endif |
|---|
| 6989 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 6990 | n/a | return NULL; |
|---|
| 6991 | n/a | _err = GetMaxLoadedTimeInMovie(_self->ob_itself, |
|---|
| 6992 | n/a | &time); |
|---|
| 6993 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 6994 | n/a | _res = Py_BuildValue("l", |
|---|
| 6995 | n/a | time); |
|---|
| 6996 | n/a | return _res; |
|---|
| 6997 | n/a | } |
|---|
| 6998 | n/a | |
|---|
| 6999 | n/a | static PyObject *MovieObj_QTMovieNeedsTimeTable(MovieObject *_self, PyObject *_args) |
|---|
| 7000 | n/a | { |
|---|
| 7001 | n/a | PyObject *_res = NULL; |
|---|
| 7002 | n/a | OSErr _err; |
|---|
| 7003 | n/a | Boolean needsTimeTable; |
|---|
| 7004 | n/a | #ifndef QTMovieNeedsTimeTable |
|---|
| 7005 | n/a | PyMac_PRECHECK(QTMovieNeedsTimeTable); |
|---|
| 7006 | n/a | #endif |
|---|
| 7007 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7008 | n/a | return NULL; |
|---|
| 7009 | n/a | _err = QTMovieNeedsTimeTable(_self->ob_itself, |
|---|
| 7010 | n/a | &needsTimeTable); |
|---|
| 7011 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7012 | n/a | _res = Py_BuildValue("b", |
|---|
| 7013 | n/a | needsTimeTable); |
|---|
| 7014 | n/a | return _res; |
|---|
| 7015 | n/a | } |
|---|
| 7016 | n/a | |
|---|
| 7017 | n/a | static PyObject *MovieObj_QTGetDataRefMaxFileOffset(MovieObject *_self, PyObject *_args) |
|---|
| 7018 | n/a | { |
|---|
| 7019 | n/a | PyObject *_res = NULL; |
|---|
| 7020 | n/a | OSErr _err; |
|---|
| 7021 | n/a | OSType dataRefType; |
|---|
| 7022 | n/a | Handle dataRef; |
|---|
| 7023 | n/a | long offset; |
|---|
| 7024 | n/a | #ifndef QTGetDataRefMaxFileOffset |
|---|
| 7025 | n/a | PyMac_PRECHECK(QTGetDataRefMaxFileOffset); |
|---|
| 7026 | n/a | #endif |
|---|
| 7027 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 7028 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 7029 | n/a | ResObj_Convert, &dataRef)) |
|---|
| 7030 | n/a | return NULL; |
|---|
| 7031 | n/a | _err = QTGetDataRefMaxFileOffset(_self->ob_itself, |
|---|
| 7032 | n/a | dataRefType, |
|---|
| 7033 | n/a | dataRef, |
|---|
| 7034 | n/a | &offset); |
|---|
| 7035 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7036 | n/a | _res = Py_BuildValue("l", |
|---|
| 7037 | n/a | offset); |
|---|
| 7038 | n/a | return _res; |
|---|
| 7039 | n/a | } |
|---|
| 7040 | n/a | |
|---|
| 7041 | n/a | static PyMethodDef MovieObj_methods[] = { |
|---|
| 7042 | n/a | {"MoviesTask", (PyCFunction)MovieObj_MoviesTask, 1, |
|---|
| 7043 | n/a | PyDoc_STR("(long maxMilliSecToUse) -> None")}, |
|---|
| 7044 | n/a | {"PrerollMovie", (PyCFunction)MovieObj_PrerollMovie, 1, |
|---|
| 7045 | n/a | PyDoc_STR("(TimeValue time, Fixed Rate) -> None")}, |
|---|
| 7046 | n/a | {"AbortPrePrerollMovie", (PyCFunction)MovieObj_AbortPrePrerollMovie, 1, |
|---|
| 7047 | n/a | PyDoc_STR("(OSErr err) -> None")}, |
|---|
| 7048 | n/a | {"LoadMovieIntoRam", (PyCFunction)MovieObj_LoadMovieIntoRam, 1, |
|---|
| 7049 | n/a | PyDoc_STR("(TimeValue time, TimeValue duration, long flags) -> None")}, |
|---|
| 7050 | n/a | {"SetMovieActive", (PyCFunction)MovieObj_SetMovieActive, 1, |
|---|
| 7051 | n/a | PyDoc_STR("(Boolean active) -> None")}, |
|---|
| 7052 | n/a | {"GetMovieActive", (PyCFunction)MovieObj_GetMovieActive, 1, |
|---|
| 7053 | n/a | PyDoc_STR("() -> (Boolean _rv)")}, |
|---|
| 7054 | n/a | {"StartMovie", (PyCFunction)MovieObj_StartMovie, 1, |
|---|
| 7055 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7056 | n/a | {"StopMovie", (PyCFunction)MovieObj_StopMovie, 1, |
|---|
| 7057 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7058 | n/a | {"GoToBeginningOfMovie", (PyCFunction)MovieObj_GoToBeginningOfMovie, 1, |
|---|
| 7059 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7060 | n/a | {"GoToEndOfMovie", (PyCFunction)MovieObj_GoToEndOfMovie, 1, |
|---|
| 7061 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7062 | n/a | {"IsMovieDone", (PyCFunction)MovieObj_IsMovieDone, 1, |
|---|
| 7063 | n/a | PyDoc_STR("() -> (Boolean _rv)")}, |
|---|
| 7064 | n/a | {"GetMoviePreviewMode", (PyCFunction)MovieObj_GetMoviePreviewMode, 1, |
|---|
| 7065 | n/a | PyDoc_STR("() -> (Boolean _rv)")}, |
|---|
| 7066 | n/a | {"SetMoviePreviewMode", (PyCFunction)MovieObj_SetMoviePreviewMode, 1, |
|---|
| 7067 | n/a | PyDoc_STR("(Boolean usePreview) -> None")}, |
|---|
| 7068 | n/a | {"ShowMoviePoster", (PyCFunction)MovieObj_ShowMoviePoster, 1, |
|---|
| 7069 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7070 | n/a | {"GetMovieTimeBase", (PyCFunction)MovieObj_GetMovieTimeBase, 1, |
|---|
| 7071 | n/a | PyDoc_STR("() -> (TimeBase _rv)")}, |
|---|
| 7072 | n/a | {"SetMovieMasterTimeBase", (PyCFunction)MovieObj_SetMovieMasterTimeBase, 1, |
|---|
| 7073 | n/a | PyDoc_STR("(TimeBase tb, TimeRecord slaveZero) -> None")}, |
|---|
| 7074 | n/a | {"SetMovieMasterClock", (PyCFunction)MovieObj_SetMovieMasterClock, 1, |
|---|
| 7075 | n/a | PyDoc_STR("(Component clockMeister, TimeRecord slaveZero) -> None")}, |
|---|
| 7076 | n/a | {"ChooseMovieClock", (PyCFunction)MovieObj_ChooseMovieClock, 1, |
|---|
| 7077 | n/a | PyDoc_STR("(long flags) -> None")}, |
|---|
| 7078 | n/a | {"GetMovieGWorld", (PyCFunction)MovieObj_GetMovieGWorld, 1, |
|---|
| 7079 | n/a | PyDoc_STR("() -> (CGrafPtr port, GDHandle gdh)")}, |
|---|
| 7080 | n/a | {"SetMovieGWorld", (PyCFunction)MovieObj_SetMovieGWorld, 1, |
|---|
| 7081 | n/a | PyDoc_STR("(CGrafPtr port, GDHandle gdh) -> None")}, |
|---|
| 7082 | n/a | {"GetMovieNaturalBoundsRect", (PyCFunction)MovieObj_GetMovieNaturalBoundsRect, 1, |
|---|
| 7083 | n/a | PyDoc_STR("() -> (Rect naturalBounds)")}, |
|---|
| 7084 | n/a | {"GetNextTrackForCompositing", (PyCFunction)MovieObj_GetNextTrackForCompositing, 1, |
|---|
| 7085 | n/a | PyDoc_STR("(Track theTrack) -> (Track _rv)")}, |
|---|
| 7086 | n/a | {"GetPrevTrackForCompositing", (PyCFunction)MovieObj_GetPrevTrackForCompositing, 1, |
|---|
| 7087 | n/a | PyDoc_STR("(Track theTrack) -> (Track _rv)")}, |
|---|
| 7088 | n/a | {"GetMoviePict", (PyCFunction)MovieObj_GetMoviePict, 1, |
|---|
| 7089 | n/a | PyDoc_STR("(TimeValue time) -> (PicHandle _rv)")}, |
|---|
| 7090 | n/a | {"GetMoviePosterPict", (PyCFunction)MovieObj_GetMoviePosterPict, 1, |
|---|
| 7091 | n/a | PyDoc_STR("() -> (PicHandle _rv)")}, |
|---|
| 7092 | n/a | {"UpdateMovie", (PyCFunction)MovieObj_UpdateMovie, 1, |
|---|
| 7093 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7094 | n/a | {"InvalidateMovieRegion", (PyCFunction)MovieObj_InvalidateMovieRegion, 1, |
|---|
| 7095 | n/a | PyDoc_STR("(RgnHandle invalidRgn) -> None")}, |
|---|
| 7096 | n/a | {"GetMovieBox", (PyCFunction)MovieObj_GetMovieBox, 1, |
|---|
| 7097 | n/a | PyDoc_STR("() -> (Rect boxRect)")}, |
|---|
| 7098 | n/a | {"SetMovieBox", (PyCFunction)MovieObj_SetMovieBox, 1, |
|---|
| 7099 | n/a | PyDoc_STR("(Rect boxRect) -> None")}, |
|---|
| 7100 | n/a | {"GetMovieDisplayClipRgn", (PyCFunction)MovieObj_GetMovieDisplayClipRgn, 1, |
|---|
| 7101 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 7102 | n/a | {"SetMovieDisplayClipRgn", (PyCFunction)MovieObj_SetMovieDisplayClipRgn, 1, |
|---|
| 7103 | n/a | PyDoc_STR("(RgnHandle theClip) -> None")}, |
|---|
| 7104 | n/a | {"GetMovieClipRgn", (PyCFunction)MovieObj_GetMovieClipRgn, 1, |
|---|
| 7105 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 7106 | n/a | {"SetMovieClipRgn", (PyCFunction)MovieObj_SetMovieClipRgn, 1, |
|---|
| 7107 | n/a | PyDoc_STR("(RgnHandle theClip) -> None")}, |
|---|
| 7108 | n/a | {"GetMovieDisplayBoundsRgn", (PyCFunction)MovieObj_GetMovieDisplayBoundsRgn, 1, |
|---|
| 7109 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 7110 | n/a | {"GetMovieBoundsRgn", (PyCFunction)MovieObj_GetMovieBoundsRgn, 1, |
|---|
| 7111 | n/a | PyDoc_STR("() -> (RgnHandle _rv)")}, |
|---|
| 7112 | n/a | {"SetMovieVideoOutput", (PyCFunction)MovieObj_SetMovieVideoOutput, 1, |
|---|
| 7113 | n/a | PyDoc_STR("(ComponentInstance vout) -> None")}, |
|---|
| 7114 | n/a | {"PutMovieIntoHandle", (PyCFunction)MovieObj_PutMovieIntoHandle, 1, |
|---|
| 7115 | n/a | PyDoc_STR("(Handle publicMovie) -> None")}, |
|---|
| 7116 | n/a | {"PutMovieIntoDataFork", (PyCFunction)MovieObj_PutMovieIntoDataFork, 1, |
|---|
| 7117 | n/a | PyDoc_STR("(short fRefNum, long offset, long maxSize) -> None")}, |
|---|
| 7118 | n/a | {"PutMovieIntoDataFork64", (PyCFunction)MovieObj_PutMovieIntoDataFork64, 1, |
|---|
| 7119 | n/a | PyDoc_STR("(long fRefNum, wide offset, unsigned long maxSize) -> None")}, |
|---|
| 7120 | n/a | {"PutMovieIntoStorage", (PyCFunction)MovieObj_PutMovieIntoStorage, 1, |
|---|
| 7121 | n/a | PyDoc_STR("(DataHandler dh, wide offset, unsigned long maxSize) -> None")}, |
|---|
| 7122 | n/a | {"PutMovieForDataRefIntoHandle", (PyCFunction)MovieObj_PutMovieForDataRefIntoHandle, 1, |
|---|
| 7123 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType, Handle publicMovie) -> None")}, |
|---|
| 7124 | n/a | {"GetMovieCreationTime", (PyCFunction)MovieObj_GetMovieCreationTime, 1, |
|---|
| 7125 | n/a | PyDoc_STR("() -> (unsigned long _rv)")}, |
|---|
| 7126 | n/a | {"GetMovieModificationTime", (PyCFunction)MovieObj_GetMovieModificationTime, 1, |
|---|
| 7127 | n/a | PyDoc_STR("() -> (unsigned long _rv)")}, |
|---|
| 7128 | n/a | {"GetMovieTimeScale", (PyCFunction)MovieObj_GetMovieTimeScale, 1, |
|---|
| 7129 | n/a | PyDoc_STR("() -> (TimeScale _rv)")}, |
|---|
| 7130 | n/a | {"SetMovieTimeScale", (PyCFunction)MovieObj_SetMovieTimeScale, 1, |
|---|
| 7131 | n/a | PyDoc_STR("(TimeScale timeScale) -> None")}, |
|---|
| 7132 | n/a | {"GetMovieDuration", (PyCFunction)MovieObj_GetMovieDuration, 1, |
|---|
| 7133 | n/a | PyDoc_STR("() -> (TimeValue _rv)")}, |
|---|
| 7134 | n/a | {"GetMovieRate", (PyCFunction)MovieObj_GetMovieRate, 1, |
|---|
| 7135 | n/a | PyDoc_STR("() -> (Fixed _rv)")}, |
|---|
| 7136 | n/a | {"SetMovieRate", (PyCFunction)MovieObj_SetMovieRate, 1, |
|---|
| 7137 | n/a | PyDoc_STR("(Fixed rate) -> None")}, |
|---|
| 7138 | n/a | {"GetMoviePreferredRate", (PyCFunction)MovieObj_GetMoviePreferredRate, 1, |
|---|
| 7139 | n/a | PyDoc_STR("() -> (Fixed _rv)")}, |
|---|
| 7140 | n/a | {"SetMoviePreferredRate", (PyCFunction)MovieObj_SetMoviePreferredRate, 1, |
|---|
| 7141 | n/a | PyDoc_STR("(Fixed rate) -> None")}, |
|---|
| 7142 | n/a | {"GetMoviePreferredVolume", (PyCFunction)MovieObj_GetMoviePreferredVolume, 1, |
|---|
| 7143 | n/a | PyDoc_STR("() -> (short _rv)")}, |
|---|
| 7144 | n/a | {"SetMoviePreferredVolume", (PyCFunction)MovieObj_SetMoviePreferredVolume, 1, |
|---|
| 7145 | n/a | PyDoc_STR("(short volume) -> None")}, |
|---|
| 7146 | n/a | {"GetMovieVolume", (PyCFunction)MovieObj_GetMovieVolume, 1, |
|---|
| 7147 | n/a | PyDoc_STR("() -> (short _rv)")}, |
|---|
| 7148 | n/a | {"SetMovieVolume", (PyCFunction)MovieObj_SetMovieVolume, 1, |
|---|
| 7149 | n/a | PyDoc_STR("(short volume) -> None")}, |
|---|
| 7150 | n/a | {"GetMoviePreviewTime", (PyCFunction)MovieObj_GetMoviePreviewTime, 1, |
|---|
| 7151 | n/a | PyDoc_STR("() -> (TimeValue previewTime, TimeValue previewDuration)")}, |
|---|
| 7152 | n/a | {"SetMoviePreviewTime", (PyCFunction)MovieObj_SetMoviePreviewTime, 1, |
|---|
| 7153 | n/a | PyDoc_STR("(TimeValue previewTime, TimeValue previewDuration) -> None")}, |
|---|
| 7154 | n/a | {"GetMoviePosterTime", (PyCFunction)MovieObj_GetMoviePosterTime, 1, |
|---|
| 7155 | n/a | PyDoc_STR("() -> (TimeValue _rv)")}, |
|---|
| 7156 | n/a | {"SetMoviePosterTime", (PyCFunction)MovieObj_SetMoviePosterTime, 1, |
|---|
| 7157 | n/a | PyDoc_STR("(TimeValue posterTime) -> None")}, |
|---|
| 7158 | n/a | {"GetMovieSelection", (PyCFunction)MovieObj_GetMovieSelection, 1, |
|---|
| 7159 | n/a | PyDoc_STR("() -> (TimeValue selectionTime, TimeValue selectionDuration)")}, |
|---|
| 7160 | n/a | {"SetMovieSelection", (PyCFunction)MovieObj_SetMovieSelection, 1, |
|---|
| 7161 | n/a | PyDoc_STR("(TimeValue selectionTime, TimeValue selectionDuration) -> None")}, |
|---|
| 7162 | n/a | {"SetMovieActiveSegment", (PyCFunction)MovieObj_SetMovieActiveSegment, 1, |
|---|
| 7163 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> None")}, |
|---|
| 7164 | n/a | {"GetMovieActiveSegment", (PyCFunction)MovieObj_GetMovieActiveSegment, 1, |
|---|
| 7165 | n/a | PyDoc_STR("() -> (TimeValue startTime, TimeValue duration)")}, |
|---|
| 7166 | n/a | {"GetMovieTime", (PyCFunction)MovieObj_GetMovieTime, 1, |
|---|
| 7167 | n/a | PyDoc_STR("() -> (TimeValue _rv, TimeRecord currentTime)")}, |
|---|
| 7168 | n/a | {"SetMovieTime", (PyCFunction)MovieObj_SetMovieTime, 1, |
|---|
| 7169 | n/a | PyDoc_STR("(TimeRecord newtime) -> None")}, |
|---|
| 7170 | n/a | {"SetMovieTimeValue", (PyCFunction)MovieObj_SetMovieTimeValue, 1, |
|---|
| 7171 | n/a | PyDoc_STR("(TimeValue newtime) -> None")}, |
|---|
| 7172 | n/a | {"GetMovieUserData", (PyCFunction)MovieObj_GetMovieUserData, 1, |
|---|
| 7173 | n/a | PyDoc_STR("() -> (UserData _rv)")}, |
|---|
| 7174 | n/a | {"GetMovieTrackCount", (PyCFunction)MovieObj_GetMovieTrackCount, 1, |
|---|
| 7175 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 7176 | n/a | {"GetMovieTrack", (PyCFunction)MovieObj_GetMovieTrack, 1, |
|---|
| 7177 | n/a | PyDoc_STR("(long trackID) -> (Track _rv)")}, |
|---|
| 7178 | n/a | {"GetMovieIndTrack", (PyCFunction)MovieObj_GetMovieIndTrack, 1, |
|---|
| 7179 | n/a | PyDoc_STR("(long index) -> (Track _rv)")}, |
|---|
| 7180 | n/a | {"GetMovieIndTrackType", (PyCFunction)MovieObj_GetMovieIndTrackType, 1, |
|---|
| 7181 | n/a | PyDoc_STR("(long index, OSType trackType, long flags) -> (Track _rv)")}, |
|---|
| 7182 | n/a | {"NewMovieTrack", (PyCFunction)MovieObj_NewMovieTrack, 1, |
|---|
| 7183 | n/a | PyDoc_STR("(Fixed width, Fixed height, short trackVolume) -> (Track _rv)")}, |
|---|
| 7184 | n/a | {"SetAutoTrackAlternatesEnabled", (PyCFunction)MovieObj_SetAutoTrackAlternatesEnabled, 1, |
|---|
| 7185 | n/a | PyDoc_STR("(Boolean enable) -> None")}, |
|---|
| 7186 | n/a | {"SelectMovieAlternates", (PyCFunction)MovieObj_SelectMovieAlternates, 1, |
|---|
| 7187 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7188 | n/a | {"InsertMovieSegment", (PyCFunction)MovieObj_InsertMovieSegment, 1, |
|---|
| 7189 | n/a | PyDoc_STR("(Movie dstMovie, TimeValue srcIn, TimeValue srcDuration, TimeValue dstIn) -> None")}, |
|---|
| 7190 | n/a | {"InsertEmptyMovieSegment", (PyCFunction)MovieObj_InsertEmptyMovieSegment, 1, |
|---|
| 7191 | n/a | PyDoc_STR("(TimeValue dstIn, TimeValue dstDuration) -> None")}, |
|---|
| 7192 | n/a | {"DeleteMovieSegment", (PyCFunction)MovieObj_DeleteMovieSegment, 1, |
|---|
| 7193 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> None")}, |
|---|
| 7194 | n/a | {"ScaleMovieSegment", (PyCFunction)MovieObj_ScaleMovieSegment, 1, |
|---|
| 7195 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue oldDuration, TimeValue newDuration) -> None")}, |
|---|
| 7196 | n/a | {"CutMovieSelection", (PyCFunction)MovieObj_CutMovieSelection, 1, |
|---|
| 7197 | n/a | PyDoc_STR("() -> (Movie _rv)")}, |
|---|
| 7198 | n/a | {"CopyMovieSelection", (PyCFunction)MovieObj_CopyMovieSelection, 1, |
|---|
| 7199 | n/a | PyDoc_STR("() -> (Movie _rv)")}, |
|---|
| 7200 | n/a | {"PasteMovieSelection", (PyCFunction)MovieObj_PasteMovieSelection, 1, |
|---|
| 7201 | n/a | PyDoc_STR("(Movie src) -> None")}, |
|---|
| 7202 | n/a | {"AddMovieSelection", (PyCFunction)MovieObj_AddMovieSelection, 1, |
|---|
| 7203 | n/a | PyDoc_STR("(Movie src) -> None")}, |
|---|
| 7204 | n/a | {"ClearMovieSelection", (PyCFunction)MovieObj_ClearMovieSelection, 1, |
|---|
| 7205 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7206 | n/a | {"PutMovieIntoTypedHandle", (PyCFunction)MovieObj_PutMovieIntoTypedHandle, 1, |
|---|
| 7207 | n/a | PyDoc_STR("(Track targetTrack, OSType handleType, Handle publicMovie, TimeValue start, TimeValue dur, long flags, ComponentInstance userComp) -> None")}, |
|---|
| 7208 | n/a | {"CopyMovieSettings", (PyCFunction)MovieObj_CopyMovieSettings, 1, |
|---|
| 7209 | n/a | PyDoc_STR("(Movie dstMovie) -> None")}, |
|---|
| 7210 | n/a | {"ConvertMovieToFile", (PyCFunction)MovieObj_ConvertMovieToFile, 1, |
|---|
| 7211 | n/a | PyDoc_STR("(Track onlyTrack, FSSpec outputFile, OSType fileType, OSType creator, ScriptCode scriptTag, long flags, ComponentInstance userComp) -> (short resID)")}, |
|---|
| 7212 | n/a | {"GetMovieDataSize", (PyCFunction)MovieObj_GetMovieDataSize, 1, |
|---|
| 7213 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (long _rv)")}, |
|---|
| 7214 | n/a | {"GetMovieDataSize64", (PyCFunction)MovieObj_GetMovieDataSize64, 1, |
|---|
| 7215 | n/a | PyDoc_STR("(TimeValue startTime, TimeValue duration) -> (wide dataSize)")}, |
|---|
| 7216 | n/a | {"PtInMovie", (PyCFunction)MovieObj_PtInMovie, 1, |
|---|
| 7217 | n/a | PyDoc_STR("(Point pt) -> (Boolean _rv)")}, |
|---|
| 7218 | n/a | {"SetMovieLanguage", (PyCFunction)MovieObj_SetMovieLanguage, 1, |
|---|
| 7219 | n/a | PyDoc_STR("(long language) -> None")}, |
|---|
| 7220 | n/a | {"CopyMovieUserData", (PyCFunction)MovieObj_CopyMovieUserData, 1, |
|---|
| 7221 | n/a | PyDoc_STR("(Movie dstMovie, OSType copyRule) -> None")}, |
|---|
| 7222 | n/a | {"GetMovieNextInterestingTime", (PyCFunction)MovieObj_GetMovieNextInterestingTime, 1, |
|---|
| 7223 | n/a | PyDoc_STR("(short interestingTimeFlags, short numMediaTypes, OSType whichMediaTypes, TimeValue time, Fixed rate) -> (TimeValue interestingTime, TimeValue interestingDuration)")}, |
|---|
| 7224 | n/a | {"AddMovieResource", (PyCFunction)MovieObj_AddMovieResource, 1, |
|---|
| 7225 | n/a | PyDoc_STR("(short resRefNum, Str255 resName) -> (short resId)")}, |
|---|
| 7226 | n/a | {"UpdateMovieResource", (PyCFunction)MovieObj_UpdateMovieResource, 1, |
|---|
| 7227 | n/a | PyDoc_STR("(short resRefNum, short resId, Str255 resName) -> None")}, |
|---|
| 7228 | n/a | {"AddMovieToStorage", (PyCFunction)MovieObj_AddMovieToStorage, 1, |
|---|
| 7229 | n/a | PyDoc_STR("(DataHandler dh) -> None")}, |
|---|
| 7230 | n/a | {"UpdateMovieInStorage", (PyCFunction)MovieObj_UpdateMovieInStorage, 1, |
|---|
| 7231 | n/a | PyDoc_STR("(DataHandler dh) -> None")}, |
|---|
| 7232 | n/a | {"HasMovieChanged", (PyCFunction)MovieObj_HasMovieChanged, 1, |
|---|
| 7233 | n/a | PyDoc_STR("() -> (Boolean _rv)")}, |
|---|
| 7234 | n/a | {"ClearMovieChanged", (PyCFunction)MovieObj_ClearMovieChanged, 1, |
|---|
| 7235 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 7236 | n/a | {"SetMovieDefaultDataRef", (PyCFunction)MovieObj_SetMovieDefaultDataRef, 1, |
|---|
| 7237 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType) -> None")}, |
|---|
| 7238 | n/a | {"GetMovieDefaultDataRef", (PyCFunction)MovieObj_GetMovieDefaultDataRef, 1, |
|---|
| 7239 | n/a | PyDoc_STR("() -> (Handle dataRef, OSType dataRefType)")}, |
|---|
| 7240 | n/a | {"SetMovieColorTable", (PyCFunction)MovieObj_SetMovieColorTable, 1, |
|---|
| 7241 | n/a | PyDoc_STR("(CTabHandle ctab) -> None")}, |
|---|
| 7242 | n/a | {"GetMovieColorTable", (PyCFunction)MovieObj_GetMovieColorTable, 1, |
|---|
| 7243 | n/a | PyDoc_STR("() -> (CTabHandle ctab)")}, |
|---|
| 7244 | n/a | {"FlattenMovie", (PyCFunction)MovieObj_FlattenMovie, 1, |
|---|
| 7245 | n/a | PyDoc_STR("(long movieFlattenFlags, FSSpec theFile, OSType creator, ScriptCode scriptTag, long createMovieFileFlags, Str255 resName) -> (short resId)")}, |
|---|
| 7246 | n/a | {"FlattenMovieData", (PyCFunction)MovieObj_FlattenMovieData, 1, |
|---|
| 7247 | n/a | PyDoc_STR("(long movieFlattenFlags, FSSpec theFile, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (Movie _rv)")}, |
|---|
| 7248 | n/a | {"FlattenMovieDataToDataRef", (PyCFunction)MovieObj_FlattenMovieDataToDataRef, 1, |
|---|
| 7249 | n/a | PyDoc_STR("(long movieFlattenFlags, Handle dataRef, OSType dataRefType, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (Movie _rv)")}, |
|---|
| 7250 | n/a | {"MovieSearchText", (PyCFunction)MovieObj_MovieSearchText, 1, |
|---|
| 7251 | n/a | PyDoc_STR("(Ptr text, long size, long searchFlags) -> (Track searchTrack, TimeValue searchTime, long searchOffset)")}, |
|---|
| 7252 | n/a | {"GetPosterBox", (PyCFunction)MovieObj_GetPosterBox, 1, |
|---|
| 7253 | n/a | PyDoc_STR("() -> (Rect boxRect)")}, |
|---|
| 7254 | n/a | {"SetPosterBox", (PyCFunction)MovieObj_SetPosterBox, 1, |
|---|
| 7255 | n/a | PyDoc_STR("(Rect boxRect) -> None")}, |
|---|
| 7256 | n/a | {"GetMovieSegmentDisplayBoundsRgn", (PyCFunction)MovieObj_GetMovieSegmentDisplayBoundsRgn, 1, |
|---|
| 7257 | n/a | PyDoc_STR("(TimeValue time, TimeValue duration) -> (RgnHandle _rv)")}, |
|---|
| 7258 | n/a | {"GetMovieStatus", (PyCFunction)MovieObj_GetMovieStatus, 1, |
|---|
| 7259 | n/a | PyDoc_STR("() -> (ComponentResult _rv, Track firstProblemTrack)")}, |
|---|
| 7260 | n/a | {"NewMovieController", (PyCFunction)MovieObj_NewMovieController, 1, |
|---|
| 7261 | n/a | PyDoc_STR("(Rect movieRect, long someFlags) -> (MovieController _rv)")}, |
|---|
| 7262 | n/a | {"PutMovieOnScrap", (PyCFunction)MovieObj_PutMovieOnScrap, 1, |
|---|
| 7263 | n/a | PyDoc_STR("(long movieScrapFlags) -> None")}, |
|---|
| 7264 | n/a | {"SetMoviePlayHints", (PyCFunction)MovieObj_SetMoviePlayHints, 1, |
|---|
| 7265 | n/a | PyDoc_STR("(long flags, long flagsMask) -> None")}, |
|---|
| 7266 | n/a | {"GetMaxLoadedTimeInMovie", (PyCFunction)MovieObj_GetMaxLoadedTimeInMovie, 1, |
|---|
| 7267 | n/a | PyDoc_STR("() -> (TimeValue time)")}, |
|---|
| 7268 | n/a | {"QTMovieNeedsTimeTable", (PyCFunction)MovieObj_QTMovieNeedsTimeTable, 1, |
|---|
| 7269 | n/a | PyDoc_STR("() -> (Boolean needsTimeTable)")}, |
|---|
| 7270 | n/a | {"QTGetDataRefMaxFileOffset", (PyCFunction)MovieObj_QTGetDataRefMaxFileOffset, 1, |
|---|
| 7271 | n/a | PyDoc_STR("(OSType dataRefType, Handle dataRef) -> (long offset)")}, |
|---|
| 7272 | n/a | {NULL, NULL, 0} |
|---|
| 7273 | n/a | }; |
|---|
| 7274 | n/a | |
|---|
| 7275 | n/a | #define MovieObj_getsetlist NULL |
|---|
| 7276 | n/a | |
|---|
| 7277 | n/a | |
|---|
| 7278 | n/a | #define MovieObj_compare NULL |
|---|
| 7279 | n/a | |
|---|
| 7280 | n/a | #define MovieObj_repr NULL |
|---|
| 7281 | n/a | |
|---|
| 7282 | n/a | #define MovieObj_hash NULL |
|---|
| 7283 | n/a | #define MovieObj_tp_init 0 |
|---|
| 7284 | n/a | |
|---|
| 7285 | n/a | #define MovieObj_tp_alloc PyType_GenericAlloc |
|---|
| 7286 | n/a | |
|---|
| 7287 | n/a | static PyObject *MovieObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 7288 | n/a | { |
|---|
| 7289 | n/a | PyObject *_self; |
|---|
| 7290 | n/a | Movie itself; |
|---|
| 7291 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 7292 | n/a | |
|---|
| 7293 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, MovieObj_Convert, &itself)) return NULL; |
|---|
| 7294 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 7295 | n/a | ((MovieObject *)_self)->ob_itself = itself; |
|---|
| 7296 | n/a | return _self; |
|---|
| 7297 | n/a | } |
|---|
| 7298 | n/a | |
|---|
| 7299 | n/a | #define MovieObj_tp_free PyObject_Del |
|---|
| 7300 | n/a | |
|---|
| 7301 | n/a | |
|---|
| 7302 | n/a | PyTypeObject Movie_Type = { |
|---|
| 7303 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 7304 | n/a | 0, /*ob_size*/ |
|---|
| 7305 | n/a | "_Qt.Movie", /*tp_name*/ |
|---|
| 7306 | n/a | sizeof(MovieObject), /*tp_basicsize*/ |
|---|
| 7307 | n/a | 0, /*tp_itemsize*/ |
|---|
| 7308 | n/a | /* methods */ |
|---|
| 7309 | n/a | (destructor) MovieObj_dealloc, /*tp_dealloc*/ |
|---|
| 7310 | n/a | 0, /*tp_print*/ |
|---|
| 7311 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 7312 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 7313 | n/a | (cmpfunc) MovieObj_compare, /*tp_compare*/ |
|---|
| 7314 | n/a | (reprfunc) MovieObj_repr, /*tp_repr*/ |
|---|
| 7315 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 7316 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 7317 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 7318 | n/a | (hashfunc) MovieObj_hash, /*tp_hash*/ |
|---|
| 7319 | n/a | 0, /*tp_call*/ |
|---|
| 7320 | n/a | 0, /*tp_str*/ |
|---|
| 7321 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 7322 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 7323 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 7324 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 7325 | n/a | 0, /*tp_doc*/ |
|---|
| 7326 | n/a | 0, /*tp_traverse*/ |
|---|
| 7327 | n/a | 0, /*tp_clear*/ |
|---|
| 7328 | n/a | 0, /*tp_richcompare*/ |
|---|
| 7329 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 7330 | n/a | 0, /*tp_iter*/ |
|---|
| 7331 | n/a | 0, /*tp_iternext*/ |
|---|
| 7332 | n/a | MovieObj_methods, /* tp_methods */ |
|---|
| 7333 | n/a | 0, /*tp_members*/ |
|---|
| 7334 | n/a | MovieObj_getsetlist, /*tp_getset*/ |
|---|
| 7335 | n/a | 0, /*tp_base*/ |
|---|
| 7336 | n/a | 0, /*tp_dict*/ |
|---|
| 7337 | n/a | 0, /*tp_descr_get*/ |
|---|
| 7338 | n/a | 0, /*tp_descr_set*/ |
|---|
| 7339 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 7340 | n/a | MovieObj_tp_init, /* tp_init */ |
|---|
| 7341 | n/a | MovieObj_tp_alloc, /* tp_alloc */ |
|---|
| 7342 | n/a | MovieObj_tp_new, /* tp_new */ |
|---|
| 7343 | n/a | MovieObj_tp_free, /* tp_free */ |
|---|
| 7344 | n/a | }; |
|---|
| 7345 | n/a | |
|---|
| 7346 | n/a | /* --------------------- End object type Movie ---------------------- */ |
|---|
| 7347 | n/a | |
|---|
| 7348 | n/a | |
|---|
| 7349 | n/a | /* ---------------------- Object type SGOutput ---------------------- */ |
|---|
| 7350 | n/a | |
|---|
| 7351 | n/a | PyTypeObject SGOutput_Type; |
|---|
| 7352 | n/a | |
|---|
| 7353 | n/a | #define SGOutputObj_Check(x) ((x)->ob_type == &SGOutput_Type || PyObject_TypeCheck((x), &SGOutput_Type)) |
|---|
| 7354 | n/a | |
|---|
| 7355 | n/a | typedef struct SGOutputObject { |
|---|
| 7356 | n/a | PyObject_HEAD |
|---|
| 7357 | n/a | SGOutput ob_itself; |
|---|
| 7358 | n/a | } SGOutputObject; |
|---|
| 7359 | n/a | |
|---|
| 7360 | n/a | PyObject *SGOutputObj_New(SGOutput itself) |
|---|
| 7361 | n/a | { |
|---|
| 7362 | n/a | SGOutputObject *it; |
|---|
| 7363 | n/a | if (itself == NULL) { |
|---|
| 7364 | n/a | PyErr_SetString(Qt_Error,"Cannot create SGOutput from NULL pointer"); |
|---|
| 7365 | n/a | return NULL; |
|---|
| 7366 | n/a | } |
|---|
| 7367 | n/a | it = PyObject_NEW(SGOutputObject, &SGOutput_Type); |
|---|
| 7368 | n/a | if (it == NULL) return NULL; |
|---|
| 7369 | n/a | it->ob_itself = itself; |
|---|
| 7370 | n/a | return (PyObject *)it; |
|---|
| 7371 | n/a | } |
|---|
| 7372 | n/a | |
|---|
| 7373 | n/a | int SGOutputObj_Convert(PyObject *v, SGOutput *p_itself) |
|---|
| 7374 | n/a | { |
|---|
| 7375 | n/a | if (v == Py_None) |
|---|
| 7376 | n/a | { |
|---|
| 7377 | n/a | *p_itself = NULL; |
|---|
| 7378 | n/a | return 1; |
|---|
| 7379 | n/a | } |
|---|
| 7380 | n/a | if (!SGOutputObj_Check(v)) |
|---|
| 7381 | n/a | { |
|---|
| 7382 | n/a | PyErr_SetString(PyExc_TypeError, "SGOutput required"); |
|---|
| 7383 | n/a | return 0; |
|---|
| 7384 | n/a | } |
|---|
| 7385 | n/a | *p_itself = ((SGOutputObject *)v)->ob_itself; |
|---|
| 7386 | n/a | return 1; |
|---|
| 7387 | n/a | } |
|---|
| 7388 | n/a | |
|---|
| 7389 | n/a | static void SGOutputObj_dealloc(SGOutputObject *self) |
|---|
| 7390 | n/a | { |
|---|
| 7391 | n/a | /* Cleanup of self->ob_itself goes here */ |
|---|
| 7392 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 7393 | n/a | } |
|---|
| 7394 | n/a | |
|---|
| 7395 | n/a | static PyMethodDef SGOutputObj_methods[] = { |
|---|
| 7396 | n/a | {NULL, NULL, 0} |
|---|
| 7397 | n/a | }; |
|---|
| 7398 | n/a | |
|---|
| 7399 | n/a | #define SGOutputObj_getsetlist NULL |
|---|
| 7400 | n/a | |
|---|
| 7401 | n/a | |
|---|
| 7402 | n/a | #define SGOutputObj_compare NULL |
|---|
| 7403 | n/a | |
|---|
| 7404 | n/a | #define SGOutputObj_repr NULL |
|---|
| 7405 | n/a | |
|---|
| 7406 | n/a | #define SGOutputObj_hash NULL |
|---|
| 7407 | n/a | #define SGOutputObj_tp_init 0 |
|---|
| 7408 | n/a | |
|---|
| 7409 | n/a | #define SGOutputObj_tp_alloc PyType_GenericAlloc |
|---|
| 7410 | n/a | |
|---|
| 7411 | n/a | static PyObject *SGOutputObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 7412 | n/a | { |
|---|
| 7413 | n/a | PyObject *_self; |
|---|
| 7414 | n/a | SGOutput itself; |
|---|
| 7415 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 7416 | n/a | |
|---|
| 7417 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, SGOutputObj_Convert, &itself)) return NULL; |
|---|
| 7418 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 7419 | n/a | ((SGOutputObject *)_self)->ob_itself = itself; |
|---|
| 7420 | n/a | return _self; |
|---|
| 7421 | n/a | } |
|---|
| 7422 | n/a | |
|---|
| 7423 | n/a | #define SGOutputObj_tp_free PyObject_Del |
|---|
| 7424 | n/a | |
|---|
| 7425 | n/a | |
|---|
| 7426 | n/a | PyTypeObject SGOutput_Type = { |
|---|
| 7427 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 7428 | n/a | 0, /*ob_size*/ |
|---|
| 7429 | n/a | "_Qt.SGOutput", /*tp_name*/ |
|---|
| 7430 | n/a | sizeof(SGOutputObject), /*tp_basicsize*/ |
|---|
| 7431 | n/a | 0, /*tp_itemsize*/ |
|---|
| 7432 | n/a | /* methods */ |
|---|
| 7433 | n/a | (destructor) SGOutputObj_dealloc, /*tp_dealloc*/ |
|---|
| 7434 | n/a | 0, /*tp_print*/ |
|---|
| 7435 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 7436 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 7437 | n/a | (cmpfunc) SGOutputObj_compare, /*tp_compare*/ |
|---|
| 7438 | n/a | (reprfunc) SGOutputObj_repr, /*tp_repr*/ |
|---|
| 7439 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 7440 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 7441 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 7442 | n/a | (hashfunc) SGOutputObj_hash, /*tp_hash*/ |
|---|
| 7443 | n/a | 0, /*tp_call*/ |
|---|
| 7444 | n/a | 0, /*tp_str*/ |
|---|
| 7445 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 7446 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 7447 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 7448 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 7449 | n/a | 0, /*tp_doc*/ |
|---|
| 7450 | n/a | 0, /*tp_traverse*/ |
|---|
| 7451 | n/a | 0, /*tp_clear*/ |
|---|
| 7452 | n/a | 0, /*tp_richcompare*/ |
|---|
| 7453 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 7454 | n/a | 0, /*tp_iter*/ |
|---|
| 7455 | n/a | 0, /*tp_iternext*/ |
|---|
| 7456 | n/a | SGOutputObj_methods, /* tp_methods */ |
|---|
| 7457 | n/a | 0, /*tp_members*/ |
|---|
| 7458 | n/a | SGOutputObj_getsetlist, /*tp_getset*/ |
|---|
| 7459 | n/a | 0, /*tp_base*/ |
|---|
| 7460 | n/a | 0, /*tp_dict*/ |
|---|
| 7461 | n/a | 0, /*tp_descr_get*/ |
|---|
| 7462 | n/a | 0, /*tp_descr_set*/ |
|---|
| 7463 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 7464 | n/a | SGOutputObj_tp_init, /* tp_init */ |
|---|
| 7465 | n/a | SGOutputObj_tp_alloc, /* tp_alloc */ |
|---|
| 7466 | n/a | SGOutputObj_tp_new, /* tp_new */ |
|---|
| 7467 | n/a | SGOutputObj_tp_free, /* tp_free */ |
|---|
| 7468 | n/a | }; |
|---|
| 7469 | n/a | |
|---|
| 7470 | n/a | /* -------------------- End object type SGOutput -------------------- */ |
|---|
| 7471 | n/a | |
|---|
| 7472 | n/a | |
|---|
| 7473 | n/a | static PyObject *Qt_EnterMovies(PyObject *_self, PyObject *_args) |
|---|
| 7474 | n/a | { |
|---|
| 7475 | n/a | PyObject *_res = NULL; |
|---|
| 7476 | n/a | OSErr _err; |
|---|
| 7477 | n/a | #ifndef EnterMovies |
|---|
| 7478 | n/a | PyMac_PRECHECK(EnterMovies); |
|---|
| 7479 | n/a | #endif |
|---|
| 7480 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7481 | n/a | return NULL; |
|---|
| 7482 | n/a | _err = EnterMovies(); |
|---|
| 7483 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7484 | n/a | Py_INCREF(Py_None); |
|---|
| 7485 | n/a | _res = Py_None; |
|---|
| 7486 | n/a | return _res; |
|---|
| 7487 | n/a | } |
|---|
| 7488 | n/a | |
|---|
| 7489 | n/a | static PyObject *Qt_ExitMovies(PyObject *_self, PyObject *_args) |
|---|
| 7490 | n/a | { |
|---|
| 7491 | n/a | PyObject *_res = NULL; |
|---|
| 7492 | n/a | #ifndef ExitMovies |
|---|
| 7493 | n/a | PyMac_PRECHECK(ExitMovies); |
|---|
| 7494 | n/a | #endif |
|---|
| 7495 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7496 | n/a | return NULL; |
|---|
| 7497 | n/a | ExitMovies(); |
|---|
| 7498 | n/a | Py_INCREF(Py_None); |
|---|
| 7499 | n/a | _res = Py_None; |
|---|
| 7500 | n/a | return _res; |
|---|
| 7501 | n/a | } |
|---|
| 7502 | n/a | |
|---|
| 7503 | n/a | static PyObject *Qt_GetMoviesError(PyObject *_self, PyObject *_args) |
|---|
| 7504 | n/a | { |
|---|
| 7505 | n/a | PyObject *_res = NULL; |
|---|
| 7506 | n/a | OSErr _err; |
|---|
| 7507 | n/a | #ifndef GetMoviesError |
|---|
| 7508 | n/a | PyMac_PRECHECK(GetMoviesError); |
|---|
| 7509 | n/a | #endif |
|---|
| 7510 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7511 | n/a | return NULL; |
|---|
| 7512 | n/a | _err = GetMoviesError(); |
|---|
| 7513 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7514 | n/a | Py_INCREF(Py_None); |
|---|
| 7515 | n/a | _res = Py_None; |
|---|
| 7516 | n/a | return _res; |
|---|
| 7517 | n/a | } |
|---|
| 7518 | n/a | |
|---|
| 7519 | n/a | static PyObject *Qt_ClearMoviesStickyError(PyObject *_self, PyObject *_args) |
|---|
| 7520 | n/a | { |
|---|
| 7521 | n/a | PyObject *_res = NULL; |
|---|
| 7522 | n/a | #ifndef ClearMoviesStickyError |
|---|
| 7523 | n/a | PyMac_PRECHECK(ClearMoviesStickyError); |
|---|
| 7524 | n/a | #endif |
|---|
| 7525 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7526 | n/a | return NULL; |
|---|
| 7527 | n/a | ClearMoviesStickyError(); |
|---|
| 7528 | n/a | Py_INCREF(Py_None); |
|---|
| 7529 | n/a | _res = Py_None; |
|---|
| 7530 | n/a | return _res; |
|---|
| 7531 | n/a | } |
|---|
| 7532 | n/a | |
|---|
| 7533 | n/a | static PyObject *Qt_GetMoviesStickyError(PyObject *_self, PyObject *_args) |
|---|
| 7534 | n/a | { |
|---|
| 7535 | n/a | PyObject *_res = NULL; |
|---|
| 7536 | n/a | OSErr _err; |
|---|
| 7537 | n/a | #ifndef GetMoviesStickyError |
|---|
| 7538 | n/a | PyMac_PRECHECK(GetMoviesStickyError); |
|---|
| 7539 | n/a | #endif |
|---|
| 7540 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7541 | n/a | return NULL; |
|---|
| 7542 | n/a | _err = GetMoviesStickyError(); |
|---|
| 7543 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7544 | n/a | Py_INCREF(Py_None); |
|---|
| 7545 | n/a | _res = Py_None; |
|---|
| 7546 | n/a | return _res; |
|---|
| 7547 | n/a | } |
|---|
| 7548 | n/a | |
|---|
| 7549 | n/a | static PyObject *Qt_QTGetWallClockTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 7550 | n/a | { |
|---|
| 7551 | n/a | PyObject *_res = NULL; |
|---|
| 7552 | n/a | OSErr _err; |
|---|
| 7553 | n/a | TimeBase wallClockTimeBase; |
|---|
| 7554 | n/a | #ifndef QTGetWallClockTimeBase |
|---|
| 7555 | n/a | PyMac_PRECHECK(QTGetWallClockTimeBase); |
|---|
| 7556 | n/a | #endif |
|---|
| 7557 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7558 | n/a | return NULL; |
|---|
| 7559 | n/a | _err = QTGetWallClockTimeBase(&wallClockTimeBase); |
|---|
| 7560 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7561 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7562 | n/a | TimeBaseObj_New, wallClockTimeBase); |
|---|
| 7563 | n/a | return _res; |
|---|
| 7564 | n/a | } |
|---|
| 7565 | n/a | |
|---|
| 7566 | n/a | static PyObject *Qt_QTIdleManagerOpen(PyObject *_self, PyObject *_args) |
|---|
| 7567 | n/a | { |
|---|
| 7568 | n/a | PyObject *_res = NULL; |
|---|
| 7569 | n/a | IdleManager _rv; |
|---|
| 7570 | n/a | #ifndef QTIdleManagerOpen |
|---|
| 7571 | n/a | PyMac_PRECHECK(QTIdleManagerOpen); |
|---|
| 7572 | n/a | #endif |
|---|
| 7573 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7574 | n/a | return NULL; |
|---|
| 7575 | n/a | _rv = QTIdleManagerOpen(); |
|---|
| 7576 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7577 | n/a | IdleManagerObj_New, _rv); |
|---|
| 7578 | n/a | return _res; |
|---|
| 7579 | n/a | } |
|---|
| 7580 | n/a | |
|---|
| 7581 | n/a | static PyObject *Qt_CreateMovieControl(PyObject *_self, PyObject *_args) |
|---|
| 7582 | n/a | { |
|---|
| 7583 | n/a | PyObject *_res = NULL; |
|---|
| 7584 | n/a | OSErr _err; |
|---|
| 7585 | n/a | WindowPtr theWindow; |
|---|
| 7586 | n/a | Rect localRect; |
|---|
| 7587 | n/a | Movie theMovie; |
|---|
| 7588 | n/a | UInt32 options; |
|---|
| 7589 | n/a | ControlHandle returnedControl; |
|---|
| 7590 | n/a | #ifndef CreateMovieControl |
|---|
| 7591 | n/a | PyMac_PRECHECK(CreateMovieControl); |
|---|
| 7592 | n/a | #endif |
|---|
| 7593 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 7594 | n/a | WinObj_Convert, &theWindow, |
|---|
| 7595 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 7596 | n/a | &options)) |
|---|
| 7597 | n/a | return NULL; |
|---|
| 7598 | n/a | _err = CreateMovieControl(theWindow, |
|---|
| 7599 | n/a | &localRect, |
|---|
| 7600 | n/a | theMovie, |
|---|
| 7601 | n/a | options, |
|---|
| 7602 | n/a | &returnedControl); |
|---|
| 7603 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7604 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 7605 | n/a | PyMac_BuildRect, &localRect, |
|---|
| 7606 | n/a | CtlObj_New, returnedControl); |
|---|
| 7607 | n/a | return _res; |
|---|
| 7608 | n/a | } |
|---|
| 7609 | n/a | |
|---|
| 7610 | n/a | static PyObject *Qt_DisposeMatte(PyObject *_self, PyObject *_args) |
|---|
| 7611 | n/a | { |
|---|
| 7612 | n/a | PyObject *_res = NULL; |
|---|
| 7613 | n/a | PixMapHandle theMatte; |
|---|
| 7614 | n/a | #ifndef DisposeMatte |
|---|
| 7615 | n/a | PyMac_PRECHECK(DisposeMatte); |
|---|
| 7616 | n/a | #endif |
|---|
| 7617 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 7618 | n/a | ResObj_Convert, &theMatte)) |
|---|
| 7619 | n/a | return NULL; |
|---|
| 7620 | n/a | DisposeMatte(theMatte); |
|---|
| 7621 | n/a | Py_INCREF(Py_None); |
|---|
| 7622 | n/a | _res = Py_None; |
|---|
| 7623 | n/a | return _res; |
|---|
| 7624 | n/a | } |
|---|
| 7625 | n/a | |
|---|
| 7626 | n/a | static PyObject *Qt_NewMovie(PyObject *_self, PyObject *_args) |
|---|
| 7627 | n/a | { |
|---|
| 7628 | n/a | PyObject *_res = NULL; |
|---|
| 7629 | n/a | Movie _rv; |
|---|
| 7630 | n/a | long flags; |
|---|
| 7631 | n/a | #ifndef NewMovie |
|---|
| 7632 | n/a | PyMac_PRECHECK(NewMovie); |
|---|
| 7633 | n/a | #endif |
|---|
| 7634 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 7635 | n/a | &flags)) |
|---|
| 7636 | n/a | return NULL; |
|---|
| 7637 | n/a | _rv = NewMovie(flags); |
|---|
| 7638 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7639 | n/a | MovieObj_New, _rv); |
|---|
| 7640 | n/a | return _res; |
|---|
| 7641 | n/a | } |
|---|
| 7642 | n/a | |
|---|
| 7643 | n/a | static PyObject *Qt_QTGetTimeUntilNextTask(PyObject *_self, PyObject *_args) |
|---|
| 7644 | n/a | { |
|---|
| 7645 | n/a | PyObject *_res = NULL; |
|---|
| 7646 | n/a | OSErr _err; |
|---|
| 7647 | n/a | long duration; |
|---|
| 7648 | n/a | long scale; |
|---|
| 7649 | n/a | #ifndef QTGetTimeUntilNextTask |
|---|
| 7650 | n/a | PyMac_PRECHECK(QTGetTimeUntilNextTask); |
|---|
| 7651 | n/a | #endif |
|---|
| 7652 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 7653 | n/a | &scale)) |
|---|
| 7654 | n/a | return NULL; |
|---|
| 7655 | n/a | _err = QTGetTimeUntilNextTask(&duration, |
|---|
| 7656 | n/a | scale); |
|---|
| 7657 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7658 | n/a | _res = Py_BuildValue("l", |
|---|
| 7659 | n/a | duration); |
|---|
| 7660 | n/a | return _res; |
|---|
| 7661 | n/a | } |
|---|
| 7662 | n/a | |
|---|
| 7663 | n/a | static PyObject *Qt_GetDataHandler(PyObject *_self, PyObject *_args) |
|---|
| 7664 | n/a | { |
|---|
| 7665 | n/a | PyObject *_res = NULL; |
|---|
| 7666 | n/a | Component _rv; |
|---|
| 7667 | n/a | Handle dataRef; |
|---|
| 7668 | n/a | OSType dataHandlerSubType; |
|---|
| 7669 | n/a | long flags; |
|---|
| 7670 | n/a | #ifndef GetDataHandler |
|---|
| 7671 | n/a | PyMac_PRECHECK(GetDataHandler); |
|---|
| 7672 | n/a | #endif |
|---|
| 7673 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 7674 | n/a | ResObj_Convert, &dataRef, |
|---|
| 7675 | n/a | PyMac_GetOSType, &dataHandlerSubType, |
|---|
| 7676 | n/a | &flags)) |
|---|
| 7677 | n/a | return NULL; |
|---|
| 7678 | n/a | _rv = GetDataHandler(dataRef, |
|---|
| 7679 | n/a | dataHandlerSubType, |
|---|
| 7680 | n/a | flags); |
|---|
| 7681 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7682 | n/a | CmpObj_New, _rv); |
|---|
| 7683 | n/a | return _res; |
|---|
| 7684 | n/a | } |
|---|
| 7685 | n/a | |
|---|
| 7686 | n/a | static PyObject *Qt_PasteHandleIntoMovie(PyObject *_self, PyObject *_args) |
|---|
| 7687 | n/a | { |
|---|
| 7688 | n/a | PyObject *_res = NULL; |
|---|
| 7689 | n/a | OSErr _err; |
|---|
| 7690 | n/a | Handle h; |
|---|
| 7691 | n/a | OSType handleType; |
|---|
| 7692 | n/a | Movie theMovie; |
|---|
| 7693 | n/a | long flags; |
|---|
| 7694 | n/a | ComponentInstance userComp; |
|---|
| 7695 | n/a | #ifndef PasteHandleIntoMovie |
|---|
| 7696 | n/a | PyMac_PRECHECK(PasteHandleIntoMovie); |
|---|
| 7697 | n/a | #endif |
|---|
| 7698 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&lO&", |
|---|
| 7699 | n/a | ResObj_Convert, &h, |
|---|
| 7700 | n/a | PyMac_GetOSType, &handleType, |
|---|
| 7701 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 7702 | n/a | &flags, |
|---|
| 7703 | n/a | CmpInstObj_Convert, &userComp)) |
|---|
| 7704 | n/a | return NULL; |
|---|
| 7705 | n/a | _err = PasteHandleIntoMovie(h, |
|---|
| 7706 | n/a | handleType, |
|---|
| 7707 | n/a | theMovie, |
|---|
| 7708 | n/a | flags, |
|---|
| 7709 | n/a | userComp); |
|---|
| 7710 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7711 | n/a | Py_INCREF(Py_None); |
|---|
| 7712 | n/a | _res = Py_None; |
|---|
| 7713 | n/a | return _res; |
|---|
| 7714 | n/a | } |
|---|
| 7715 | n/a | |
|---|
| 7716 | n/a | static PyObject *Qt_GetMovieImporterForDataRef(PyObject *_self, PyObject *_args) |
|---|
| 7717 | n/a | { |
|---|
| 7718 | n/a | PyObject *_res = NULL; |
|---|
| 7719 | n/a | OSErr _err; |
|---|
| 7720 | n/a | OSType dataRefType; |
|---|
| 7721 | n/a | Handle dataRef; |
|---|
| 7722 | n/a | long flags; |
|---|
| 7723 | n/a | Component importer; |
|---|
| 7724 | n/a | #ifndef GetMovieImporterForDataRef |
|---|
| 7725 | n/a | PyMac_PRECHECK(GetMovieImporterForDataRef); |
|---|
| 7726 | n/a | #endif |
|---|
| 7727 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 7728 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 7729 | n/a | ResObj_Convert, &dataRef, |
|---|
| 7730 | n/a | &flags)) |
|---|
| 7731 | n/a | return NULL; |
|---|
| 7732 | n/a | _err = GetMovieImporterForDataRef(dataRefType, |
|---|
| 7733 | n/a | dataRef, |
|---|
| 7734 | n/a | flags, |
|---|
| 7735 | n/a | &importer); |
|---|
| 7736 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7737 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7738 | n/a | CmpObj_New, importer); |
|---|
| 7739 | n/a | return _res; |
|---|
| 7740 | n/a | } |
|---|
| 7741 | n/a | |
|---|
| 7742 | n/a | static PyObject *Qt_QTGetMIMETypeInfo(PyObject *_self, PyObject *_args) |
|---|
| 7743 | n/a | { |
|---|
| 7744 | n/a | PyObject *_res = NULL; |
|---|
| 7745 | n/a | OSErr _err; |
|---|
| 7746 | n/a | char* mimeStringStart; |
|---|
| 7747 | n/a | short mimeStringLength; |
|---|
| 7748 | n/a | OSType infoSelector; |
|---|
| 7749 | n/a | void * infoDataPtr; |
|---|
| 7750 | n/a | long infoDataSize; |
|---|
| 7751 | n/a | #ifndef QTGetMIMETypeInfo |
|---|
| 7752 | n/a | PyMac_PRECHECK(QTGetMIMETypeInfo); |
|---|
| 7753 | n/a | #endif |
|---|
| 7754 | n/a | if (!PyArg_ParseTuple(_args, "shO&s", |
|---|
| 7755 | n/a | &mimeStringStart, |
|---|
| 7756 | n/a | &mimeStringLength, |
|---|
| 7757 | n/a | PyMac_GetOSType, &infoSelector, |
|---|
| 7758 | n/a | &infoDataPtr)) |
|---|
| 7759 | n/a | return NULL; |
|---|
| 7760 | n/a | _err = QTGetMIMETypeInfo(mimeStringStart, |
|---|
| 7761 | n/a | mimeStringLength, |
|---|
| 7762 | n/a | infoSelector, |
|---|
| 7763 | n/a | infoDataPtr, |
|---|
| 7764 | n/a | &infoDataSize); |
|---|
| 7765 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7766 | n/a | _res = Py_BuildValue("l", |
|---|
| 7767 | n/a | infoDataSize); |
|---|
| 7768 | n/a | return _res; |
|---|
| 7769 | n/a | } |
|---|
| 7770 | n/a | |
|---|
| 7771 | n/a | static PyObject *Qt_TrackTimeToMediaTime(PyObject *_self, PyObject *_args) |
|---|
| 7772 | n/a | { |
|---|
| 7773 | n/a | PyObject *_res = NULL; |
|---|
| 7774 | n/a | TimeValue _rv; |
|---|
| 7775 | n/a | TimeValue value; |
|---|
| 7776 | n/a | Track theTrack; |
|---|
| 7777 | n/a | #ifndef TrackTimeToMediaTime |
|---|
| 7778 | n/a | PyMac_PRECHECK(TrackTimeToMediaTime); |
|---|
| 7779 | n/a | #endif |
|---|
| 7780 | n/a | if (!PyArg_ParseTuple(_args, "lO&", |
|---|
| 7781 | n/a | &value, |
|---|
| 7782 | n/a | TrackObj_Convert, &theTrack)) |
|---|
| 7783 | n/a | return NULL; |
|---|
| 7784 | n/a | _rv = TrackTimeToMediaTime(value, |
|---|
| 7785 | n/a | theTrack); |
|---|
| 7786 | n/a | _res = Py_BuildValue("l", |
|---|
| 7787 | n/a | _rv); |
|---|
| 7788 | n/a | return _res; |
|---|
| 7789 | n/a | } |
|---|
| 7790 | n/a | |
|---|
| 7791 | n/a | static PyObject *Qt_NewUserData(PyObject *_self, PyObject *_args) |
|---|
| 7792 | n/a | { |
|---|
| 7793 | n/a | PyObject *_res = NULL; |
|---|
| 7794 | n/a | OSErr _err; |
|---|
| 7795 | n/a | UserData theUserData; |
|---|
| 7796 | n/a | #ifndef NewUserData |
|---|
| 7797 | n/a | PyMac_PRECHECK(NewUserData); |
|---|
| 7798 | n/a | #endif |
|---|
| 7799 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 7800 | n/a | return NULL; |
|---|
| 7801 | n/a | _err = NewUserData(&theUserData); |
|---|
| 7802 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7803 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7804 | n/a | UserDataObj_New, theUserData); |
|---|
| 7805 | n/a | return _res; |
|---|
| 7806 | n/a | } |
|---|
| 7807 | n/a | |
|---|
| 7808 | n/a | static PyObject *Qt_NewUserDataFromHandle(PyObject *_self, PyObject *_args) |
|---|
| 7809 | n/a | { |
|---|
| 7810 | n/a | PyObject *_res = NULL; |
|---|
| 7811 | n/a | OSErr _err; |
|---|
| 7812 | n/a | Handle h; |
|---|
| 7813 | n/a | UserData theUserData; |
|---|
| 7814 | n/a | #ifndef NewUserDataFromHandle |
|---|
| 7815 | n/a | PyMac_PRECHECK(NewUserDataFromHandle); |
|---|
| 7816 | n/a | #endif |
|---|
| 7817 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 7818 | n/a | ResObj_Convert, &h)) |
|---|
| 7819 | n/a | return NULL; |
|---|
| 7820 | n/a | _err = NewUserDataFromHandle(h, |
|---|
| 7821 | n/a | &theUserData); |
|---|
| 7822 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7823 | n/a | _res = Py_BuildValue("O&", |
|---|
| 7824 | n/a | UserDataObj_New, theUserData); |
|---|
| 7825 | n/a | return _res; |
|---|
| 7826 | n/a | } |
|---|
| 7827 | n/a | |
|---|
| 7828 | n/a | static PyObject *Qt_CreateMovieFile(PyObject *_self, PyObject *_args) |
|---|
| 7829 | n/a | { |
|---|
| 7830 | n/a | PyObject *_res = NULL; |
|---|
| 7831 | n/a | OSErr _err; |
|---|
| 7832 | n/a | FSSpec fileSpec; |
|---|
| 7833 | n/a | OSType creator; |
|---|
| 7834 | n/a | ScriptCode scriptTag; |
|---|
| 7835 | n/a | long createMovieFileFlags; |
|---|
| 7836 | n/a | short resRefNum; |
|---|
| 7837 | n/a | Movie newmovie; |
|---|
| 7838 | n/a | #ifndef CreateMovieFile |
|---|
| 7839 | n/a | PyMac_PRECHECK(CreateMovieFile); |
|---|
| 7840 | n/a | #endif |
|---|
| 7841 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hl", |
|---|
| 7842 | n/a | PyMac_GetFSSpec, &fileSpec, |
|---|
| 7843 | n/a | PyMac_GetOSType, &creator, |
|---|
| 7844 | n/a | &scriptTag, |
|---|
| 7845 | n/a | &createMovieFileFlags)) |
|---|
| 7846 | n/a | return NULL; |
|---|
| 7847 | n/a | _err = CreateMovieFile(&fileSpec, |
|---|
| 7848 | n/a | creator, |
|---|
| 7849 | n/a | scriptTag, |
|---|
| 7850 | n/a | createMovieFileFlags, |
|---|
| 7851 | n/a | &resRefNum, |
|---|
| 7852 | n/a | &newmovie); |
|---|
| 7853 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7854 | n/a | _res = Py_BuildValue("hO&", |
|---|
| 7855 | n/a | resRefNum, |
|---|
| 7856 | n/a | MovieObj_New, newmovie); |
|---|
| 7857 | n/a | return _res; |
|---|
| 7858 | n/a | } |
|---|
| 7859 | n/a | |
|---|
| 7860 | n/a | static PyObject *Qt_OpenMovieFile(PyObject *_self, PyObject *_args) |
|---|
| 7861 | n/a | { |
|---|
| 7862 | n/a | PyObject *_res = NULL; |
|---|
| 7863 | n/a | OSErr _err; |
|---|
| 7864 | n/a | FSSpec fileSpec; |
|---|
| 7865 | n/a | short resRefNum; |
|---|
| 7866 | n/a | SInt8 permission; |
|---|
| 7867 | n/a | #ifndef OpenMovieFile |
|---|
| 7868 | n/a | PyMac_PRECHECK(OpenMovieFile); |
|---|
| 7869 | n/a | #endif |
|---|
| 7870 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 7871 | n/a | PyMac_GetFSSpec, &fileSpec, |
|---|
| 7872 | n/a | &permission)) |
|---|
| 7873 | n/a | return NULL; |
|---|
| 7874 | n/a | _err = OpenMovieFile(&fileSpec, |
|---|
| 7875 | n/a | &resRefNum, |
|---|
| 7876 | n/a | permission); |
|---|
| 7877 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7878 | n/a | _res = Py_BuildValue("h", |
|---|
| 7879 | n/a | resRefNum); |
|---|
| 7880 | n/a | return _res; |
|---|
| 7881 | n/a | } |
|---|
| 7882 | n/a | |
|---|
| 7883 | n/a | static PyObject *Qt_CloseMovieFile(PyObject *_self, PyObject *_args) |
|---|
| 7884 | n/a | { |
|---|
| 7885 | n/a | PyObject *_res = NULL; |
|---|
| 7886 | n/a | OSErr _err; |
|---|
| 7887 | n/a | short resRefNum; |
|---|
| 7888 | n/a | #ifndef CloseMovieFile |
|---|
| 7889 | n/a | PyMac_PRECHECK(CloseMovieFile); |
|---|
| 7890 | n/a | #endif |
|---|
| 7891 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 7892 | n/a | &resRefNum)) |
|---|
| 7893 | n/a | return NULL; |
|---|
| 7894 | n/a | _err = CloseMovieFile(resRefNum); |
|---|
| 7895 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7896 | n/a | Py_INCREF(Py_None); |
|---|
| 7897 | n/a | _res = Py_None; |
|---|
| 7898 | n/a | return _res; |
|---|
| 7899 | n/a | } |
|---|
| 7900 | n/a | |
|---|
| 7901 | n/a | static PyObject *Qt_DeleteMovieFile(PyObject *_self, PyObject *_args) |
|---|
| 7902 | n/a | { |
|---|
| 7903 | n/a | PyObject *_res = NULL; |
|---|
| 7904 | n/a | OSErr _err; |
|---|
| 7905 | n/a | FSSpec fileSpec; |
|---|
| 7906 | n/a | #ifndef DeleteMovieFile |
|---|
| 7907 | n/a | PyMac_PRECHECK(DeleteMovieFile); |
|---|
| 7908 | n/a | #endif |
|---|
| 7909 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 7910 | n/a | PyMac_GetFSSpec, &fileSpec)) |
|---|
| 7911 | n/a | return NULL; |
|---|
| 7912 | n/a | _err = DeleteMovieFile(&fileSpec); |
|---|
| 7913 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7914 | n/a | Py_INCREF(Py_None); |
|---|
| 7915 | n/a | _res = Py_None; |
|---|
| 7916 | n/a | return _res; |
|---|
| 7917 | n/a | } |
|---|
| 7918 | n/a | |
|---|
| 7919 | n/a | static PyObject *Qt_NewMovieFromFile(PyObject *_self, PyObject *_args) |
|---|
| 7920 | n/a | { |
|---|
| 7921 | n/a | PyObject *_res = NULL; |
|---|
| 7922 | n/a | OSErr _err; |
|---|
| 7923 | n/a | Movie theMovie; |
|---|
| 7924 | n/a | short resRefNum; |
|---|
| 7925 | n/a | short resId; |
|---|
| 7926 | n/a | short newMovieFlags; |
|---|
| 7927 | n/a | Boolean dataRefWasChanged; |
|---|
| 7928 | n/a | #ifndef NewMovieFromFile |
|---|
| 7929 | n/a | PyMac_PRECHECK(NewMovieFromFile); |
|---|
| 7930 | n/a | #endif |
|---|
| 7931 | n/a | if (!PyArg_ParseTuple(_args, "hhh", |
|---|
| 7932 | n/a | &resRefNum, |
|---|
| 7933 | n/a | &resId, |
|---|
| 7934 | n/a | &newMovieFlags)) |
|---|
| 7935 | n/a | return NULL; |
|---|
| 7936 | n/a | _err = NewMovieFromFile(&theMovie, |
|---|
| 7937 | n/a | resRefNum, |
|---|
| 7938 | n/a | &resId, |
|---|
| 7939 | n/a | (StringPtr)0, |
|---|
| 7940 | n/a | newMovieFlags, |
|---|
| 7941 | n/a | &dataRefWasChanged); |
|---|
| 7942 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7943 | n/a | _res = Py_BuildValue("O&hb", |
|---|
| 7944 | n/a | MovieObj_New, theMovie, |
|---|
| 7945 | n/a | resId, |
|---|
| 7946 | n/a | dataRefWasChanged); |
|---|
| 7947 | n/a | return _res; |
|---|
| 7948 | n/a | } |
|---|
| 7949 | n/a | |
|---|
| 7950 | n/a | static PyObject *Qt_NewMovieFromHandle(PyObject *_self, PyObject *_args) |
|---|
| 7951 | n/a | { |
|---|
| 7952 | n/a | PyObject *_res = NULL; |
|---|
| 7953 | n/a | OSErr _err; |
|---|
| 7954 | n/a | Movie theMovie; |
|---|
| 7955 | n/a | Handle h; |
|---|
| 7956 | n/a | short newMovieFlags; |
|---|
| 7957 | n/a | Boolean dataRefWasChanged; |
|---|
| 7958 | n/a | #ifndef NewMovieFromHandle |
|---|
| 7959 | n/a | PyMac_PRECHECK(NewMovieFromHandle); |
|---|
| 7960 | n/a | #endif |
|---|
| 7961 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 7962 | n/a | ResObj_Convert, &h, |
|---|
| 7963 | n/a | &newMovieFlags)) |
|---|
| 7964 | n/a | return NULL; |
|---|
| 7965 | n/a | _err = NewMovieFromHandle(&theMovie, |
|---|
| 7966 | n/a | h, |
|---|
| 7967 | n/a | newMovieFlags, |
|---|
| 7968 | n/a | &dataRefWasChanged); |
|---|
| 7969 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7970 | n/a | _res = Py_BuildValue("O&b", |
|---|
| 7971 | n/a | MovieObj_New, theMovie, |
|---|
| 7972 | n/a | dataRefWasChanged); |
|---|
| 7973 | n/a | return _res; |
|---|
| 7974 | n/a | } |
|---|
| 7975 | n/a | |
|---|
| 7976 | n/a | static PyObject *Qt_NewMovieFromDataFork(PyObject *_self, PyObject *_args) |
|---|
| 7977 | n/a | { |
|---|
| 7978 | n/a | PyObject *_res = NULL; |
|---|
| 7979 | n/a | OSErr _err; |
|---|
| 7980 | n/a | Movie theMovie; |
|---|
| 7981 | n/a | short fRefNum; |
|---|
| 7982 | n/a | long fileOffset; |
|---|
| 7983 | n/a | short newMovieFlags; |
|---|
| 7984 | n/a | Boolean dataRefWasChanged; |
|---|
| 7985 | n/a | #ifndef NewMovieFromDataFork |
|---|
| 7986 | n/a | PyMac_PRECHECK(NewMovieFromDataFork); |
|---|
| 7987 | n/a | #endif |
|---|
| 7988 | n/a | if (!PyArg_ParseTuple(_args, "hlh", |
|---|
| 7989 | n/a | &fRefNum, |
|---|
| 7990 | n/a | &fileOffset, |
|---|
| 7991 | n/a | &newMovieFlags)) |
|---|
| 7992 | n/a | return NULL; |
|---|
| 7993 | n/a | _err = NewMovieFromDataFork(&theMovie, |
|---|
| 7994 | n/a | fRefNum, |
|---|
| 7995 | n/a | fileOffset, |
|---|
| 7996 | n/a | newMovieFlags, |
|---|
| 7997 | n/a | &dataRefWasChanged); |
|---|
| 7998 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 7999 | n/a | _res = Py_BuildValue("O&b", |
|---|
| 8000 | n/a | MovieObj_New, theMovie, |
|---|
| 8001 | n/a | dataRefWasChanged); |
|---|
| 8002 | n/a | return _res; |
|---|
| 8003 | n/a | } |
|---|
| 8004 | n/a | |
|---|
| 8005 | n/a | static PyObject *Qt_NewMovieFromDataFork64(PyObject *_self, PyObject *_args) |
|---|
| 8006 | n/a | { |
|---|
| 8007 | n/a | PyObject *_res = NULL; |
|---|
| 8008 | n/a | OSErr _err; |
|---|
| 8009 | n/a | Movie theMovie; |
|---|
| 8010 | n/a | long fRefNum; |
|---|
| 8011 | n/a | wide fileOffset; |
|---|
| 8012 | n/a | short newMovieFlags; |
|---|
| 8013 | n/a | Boolean dataRefWasChanged; |
|---|
| 8014 | n/a | #ifndef NewMovieFromDataFork64 |
|---|
| 8015 | n/a | PyMac_PRECHECK(NewMovieFromDataFork64); |
|---|
| 8016 | n/a | #endif |
|---|
| 8017 | n/a | if (!PyArg_ParseTuple(_args, "lO&h", |
|---|
| 8018 | n/a | &fRefNum, |
|---|
| 8019 | n/a | PyMac_Getwide, &fileOffset, |
|---|
| 8020 | n/a | &newMovieFlags)) |
|---|
| 8021 | n/a | return NULL; |
|---|
| 8022 | n/a | _err = NewMovieFromDataFork64(&theMovie, |
|---|
| 8023 | n/a | fRefNum, |
|---|
| 8024 | n/a | &fileOffset, |
|---|
| 8025 | n/a | newMovieFlags, |
|---|
| 8026 | n/a | &dataRefWasChanged); |
|---|
| 8027 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8028 | n/a | _res = Py_BuildValue("O&b", |
|---|
| 8029 | n/a | MovieObj_New, theMovie, |
|---|
| 8030 | n/a | dataRefWasChanged); |
|---|
| 8031 | n/a | return _res; |
|---|
| 8032 | n/a | } |
|---|
| 8033 | n/a | |
|---|
| 8034 | n/a | static PyObject *Qt_NewMovieFromDataRef(PyObject *_self, PyObject *_args) |
|---|
| 8035 | n/a | { |
|---|
| 8036 | n/a | PyObject *_res = NULL; |
|---|
| 8037 | n/a | OSErr _err; |
|---|
| 8038 | n/a | Movie m; |
|---|
| 8039 | n/a | short flags; |
|---|
| 8040 | n/a | short id; |
|---|
| 8041 | n/a | Handle dataRef; |
|---|
| 8042 | n/a | OSType dtaRefType; |
|---|
| 8043 | n/a | #ifndef NewMovieFromDataRef |
|---|
| 8044 | n/a | PyMac_PRECHECK(NewMovieFromDataRef); |
|---|
| 8045 | n/a | #endif |
|---|
| 8046 | n/a | if (!PyArg_ParseTuple(_args, "hO&O&", |
|---|
| 8047 | n/a | &flags, |
|---|
| 8048 | n/a | ResObj_Convert, &dataRef, |
|---|
| 8049 | n/a | PyMac_GetOSType, &dtaRefType)) |
|---|
| 8050 | n/a | return NULL; |
|---|
| 8051 | n/a | _err = NewMovieFromDataRef(&m, |
|---|
| 8052 | n/a | flags, |
|---|
| 8053 | n/a | &id, |
|---|
| 8054 | n/a | dataRef, |
|---|
| 8055 | n/a | dtaRefType); |
|---|
| 8056 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8057 | n/a | _res = Py_BuildValue("O&h", |
|---|
| 8058 | n/a | MovieObj_New, m, |
|---|
| 8059 | n/a | id); |
|---|
| 8060 | n/a | return _res; |
|---|
| 8061 | n/a | } |
|---|
| 8062 | n/a | |
|---|
| 8063 | n/a | static PyObject *Qt_NewMovieFromStorageOffset(PyObject *_self, PyObject *_args) |
|---|
| 8064 | n/a | { |
|---|
| 8065 | n/a | PyObject *_res = NULL; |
|---|
| 8066 | n/a | OSErr _err; |
|---|
| 8067 | n/a | Movie theMovie; |
|---|
| 8068 | n/a | DataHandler dh; |
|---|
| 8069 | n/a | wide fileOffset; |
|---|
| 8070 | n/a | short newMovieFlags; |
|---|
| 8071 | n/a | Boolean dataRefWasCataRefType; |
|---|
| 8072 | n/a | #ifndef NewMovieFromStorageOffset |
|---|
| 8073 | n/a | PyMac_PRECHECK(NewMovieFromStorageOffset); |
|---|
| 8074 | n/a | #endif |
|---|
| 8075 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 8076 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 8077 | n/a | PyMac_Getwide, &fileOffset, |
|---|
| 8078 | n/a | &newMovieFlags)) |
|---|
| 8079 | n/a | return NULL; |
|---|
| 8080 | n/a | _err = NewMovieFromStorageOffset(&theMovie, |
|---|
| 8081 | n/a | dh, |
|---|
| 8082 | n/a | &fileOffset, |
|---|
| 8083 | n/a | newMovieFlags, |
|---|
| 8084 | n/a | &dataRefWasCataRefType); |
|---|
| 8085 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8086 | n/a | _res = Py_BuildValue("O&b", |
|---|
| 8087 | n/a | MovieObj_New, theMovie, |
|---|
| 8088 | n/a | dataRefWasCataRefType); |
|---|
| 8089 | n/a | return _res; |
|---|
| 8090 | n/a | } |
|---|
| 8091 | n/a | |
|---|
| 8092 | n/a | static PyObject *Qt_NewMovieForDataRefFromHandle(PyObject *_self, PyObject *_args) |
|---|
| 8093 | n/a | { |
|---|
| 8094 | n/a | PyObject *_res = NULL; |
|---|
| 8095 | n/a | OSErr _err; |
|---|
| 8096 | n/a | Movie theMovie; |
|---|
| 8097 | n/a | Handle h; |
|---|
| 8098 | n/a | short newMovieFlags; |
|---|
| 8099 | n/a | Boolean dataRefWasChanged; |
|---|
| 8100 | n/a | Handle dataRef; |
|---|
| 8101 | n/a | OSType dataRefType; |
|---|
| 8102 | n/a | #ifndef NewMovieForDataRefFromHandle |
|---|
| 8103 | n/a | PyMac_PRECHECK(NewMovieForDataRefFromHandle); |
|---|
| 8104 | n/a | #endif |
|---|
| 8105 | n/a | if (!PyArg_ParseTuple(_args, "O&hO&O&", |
|---|
| 8106 | n/a | ResObj_Convert, &h, |
|---|
| 8107 | n/a | &newMovieFlags, |
|---|
| 8108 | n/a | ResObj_Convert, &dataRef, |
|---|
| 8109 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 8110 | n/a | return NULL; |
|---|
| 8111 | n/a | _err = NewMovieForDataRefFromHandle(&theMovie, |
|---|
| 8112 | n/a | h, |
|---|
| 8113 | n/a | newMovieFlags, |
|---|
| 8114 | n/a | &dataRefWasChanged, |
|---|
| 8115 | n/a | dataRef, |
|---|
| 8116 | n/a | dataRefType); |
|---|
| 8117 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8118 | n/a | _res = Py_BuildValue("O&b", |
|---|
| 8119 | n/a | MovieObj_New, theMovie, |
|---|
| 8120 | n/a | dataRefWasChanged); |
|---|
| 8121 | n/a | return _res; |
|---|
| 8122 | n/a | } |
|---|
| 8123 | n/a | |
|---|
| 8124 | n/a | static PyObject *Qt_RemoveMovieResource(PyObject *_self, PyObject *_args) |
|---|
| 8125 | n/a | { |
|---|
| 8126 | n/a | PyObject *_res = NULL; |
|---|
| 8127 | n/a | OSErr _err; |
|---|
| 8128 | n/a | short resRefNum; |
|---|
| 8129 | n/a | short resId; |
|---|
| 8130 | n/a | #ifndef RemoveMovieResource |
|---|
| 8131 | n/a | PyMac_PRECHECK(RemoveMovieResource); |
|---|
| 8132 | n/a | #endif |
|---|
| 8133 | n/a | if (!PyArg_ParseTuple(_args, "hh", |
|---|
| 8134 | n/a | &resRefNum, |
|---|
| 8135 | n/a | &resId)) |
|---|
| 8136 | n/a | return NULL; |
|---|
| 8137 | n/a | _err = RemoveMovieResource(resRefNum, |
|---|
| 8138 | n/a | resId); |
|---|
| 8139 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8140 | n/a | Py_INCREF(Py_None); |
|---|
| 8141 | n/a | _res = Py_None; |
|---|
| 8142 | n/a | return _res; |
|---|
| 8143 | n/a | } |
|---|
| 8144 | n/a | |
|---|
| 8145 | n/a | static PyObject *Qt_CreateMovieStorage(PyObject *_self, PyObject *_args) |
|---|
| 8146 | n/a | { |
|---|
| 8147 | n/a | PyObject *_res = NULL; |
|---|
| 8148 | n/a | OSErr _err; |
|---|
| 8149 | n/a | Handle dataRef; |
|---|
| 8150 | n/a | OSType dataRefType; |
|---|
| 8151 | n/a | OSType creator; |
|---|
| 8152 | n/a | ScriptCode scriptTag; |
|---|
| 8153 | n/a | long createMovieFileFlags; |
|---|
| 8154 | n/a | DataHandler outDataHandler; |
|---|
| 8155 | n/a | Movie newmovie; |
|---|
| 8156 | n/a | #ifndef CreateMovieStorage |
|---|
| 8157 | n/a | PyMac_PRECHECK(CreateMovieStorage); |
|---|
| 8158 | n/a | #endif |
|---|
| 8159 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&hl", |
|---|
| 8160 | n/a | ResObj_Convert, &dataRef, |
|---|
| 8161 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 8162 | n/a | PyMac_GetOSType, &creator, |
|---|
| 8163 | n/a | &scriptTag, |
|---|
| 8164 | n/a | &createMovieFileFlags)) |
|---|
| 8165 | n/a | return NULL; |
|---|
| 8166 | n/a | _err = CreateMovieStorage(dataRef, |
|---|
| 8167 | n/a | dataRefType, |
|---|
| 8168 | n/a | creator, |
|---|
| 8169 | n/a | scriptTag, |
|---|
| 8170 | n/a | createMovieFileFlags, |
|---|
| 8171 | n/a | &outDataHandler, |
|---|
| 8172 | n/a | &newmovie); |
|---|
| 8173 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8174 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 8175 | n/a | CmpInstObj_New, outDataHandler, |
|---|
| 8176 | n/a | MovieObj_New, newmovie); |
|---|
| 8177 | n/a | return _res; |
|---|
| 8178 | n/a | } |
|---|
| 8179 | n/a | |
|---|
| 8180 | n/a | static PyObject *Qt_OpenMovieStorage(PyObject *_self, PyObject *_args) |
|---|
| 8181 | n/a | { |
|---|
| 8182 | n/a | PyObject *_res = NULL; |
|---|
| 8183 | n/a | OSErr _err; |
|---|
| 8184 | n/a | Handle dataRef; |
|---|
| 8185 | n/a | OSType dataRefType; |
|---|
| 8186 | n/a | long flags; |
|---|
| 8187 | n/a | DataHandler outDataHandler; |
|---|
| 8188 | n/a | #ifndef OpenMovieStorage |
|---|
| 8189 | n/a | PyMac_PRECHECK(OpenMovieStorage); |
|---|
| 8190 | n/a | #endif |
|---|
| 8191 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 8192 | n/a | ResObj_Convert, &dataRef, |
|---|
| 8193 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 8194 | n/a | &flags)) |
|---|
| 8195 | n/a | return NULL; |
|---|
| 8196 | n/a | _err = OpenMovieStorage(dataRef, |
|---|
| 8197 | n/a | dataRefType, |
|---|
| 8198 | n/a | flags, |
|---|
| 8199 | n/a | &outDataHandler); |
|---|
| 8200 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8201 | n/a | _res = Py_BuildValue("O&", |
|---|
| 8202 | n/a | CmpInstObj_New, outDataHandler); |
|---|
| 8203 | n/a | return _res; |
|---|
| 8204 | n/a | } |
|---|
| 8205 | n/a | |
|---|
| 8206 | n/a | static PyObject *Qt_CloseMovieStorage(PyObject *_self, PyObject *_args) |
|---|
| 8207 | n/a | { |
|---|
| 8208 | n/a | PyObject *_res = NULL; |
|---|
| 8209 | n/a | OSErr _err; |
|---|
| 8210 | n/a | DataHandler dh; |
|---|
| 8211 | n/a | #ifndef CloseMovieStorage |
|---|
| 8212 | n/a | PyMac_PRECHECK(CloseMovieStorage); |
|---|
| 8213 | n/a | #endif |
|---|
| 8214 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 8215 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 8216 | n/a | return NULL; |
|---|
| 8217 | n/a | _err = CloseMovieStorage(dh); |
|---|
| 8218 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8219 | n/a | Py_INCREF(Py_None); |
|---|
| 8220 | n/a | _res = Py_None; |
|---|
| 8221 | n/a | return _res; |
|---|
| 8222 | n/a | } |
|---|
| 8223 | n/a | |
|---|
| 8224 | n/a | static PyObject *Qt_DeleteMovieStorage(PyObject *_self, PyObject *_args) |
|---|
| 8225 | n/a | { |
|---|
| 8226 | n/a | PyObject *_res = NULL; |
|---|
| 8227 | n/a | OSErr _err; |
|---|
| 8228 | n/a | Handle dataRef; |
|---|
| 8229 | n/a | OSType dataRefType; |
|---|
| 8230 | n/a | #ifndef DeleteMovieStorage |
|---|
| 8231 | n/a | PyMac_PRECHECK(DeleteMovieStorage); |
|---|
| 8232 | n/a | #endif |
|---|
| 8233 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 8234 | n/a | ResObj_Convert, &dataRef, |
|---|
| 8235 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 8236 | n/a | return NULL; |
|---|
| 8237 | n/a | _err = DeleteMovieStorage(dataRef, |
|---|
| 8238 | n/a | dataRefType); |
|---|
| 8239 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8240 | n/a | Py_INCREF(Py_None); |
|---|
| 8241 | n/a | _res = Py_None; |
|---|
| 8242 | n/a | return _res; |
|---|
| 8243 | n/a | } |
|---|
| 8244 | n/a | |
|---|
| 8245 | n/a | static PyObject *Qt_CreateShortcutMovieFile(PyObject *_self, PyObject *_args) |
|---|
| 8246 | n/a | { |
|---|
| 8247 | n/a | PyObject *_res = NULL; |
|---|
| 8248 | n/a | OSErr _err; |
|---|
| 8249 | n/a | FSSpec fileSpec; |
|---|
| 8250 | n/a | OSType creator; |
|---|
| 8251 | n/a | ScriptCode scriptTag; |
|---|
| 8252 | n/a | long createMovieFileFlags; |
|---|
| 8253 | n/a | Handle targetDataRef; |
|---|
| 8254 | n/a | OSType targetDataRefType; |
|---|
| 8255 | n/a | #ifndef CreateShortcutMovieFile |
|---|
| 8256 | n/a | PyMac_PRECHECK(CreateShortcutMovieFile); |
|---|
| 8257 | n/a | #endif |
|---|
| 8258 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hlO&O&", |
|---|
| 8259 | n/a | PyMac_GetFSSpec, &fileSpec, |
|---|
| 8260 | n/a | PyMac_GetOSType, &creator, |
|---|
| 8261 | n/a | &scriptTag, |
|---|
| 8262 | n/a | &createMovieFileFlags, |
|---|
| 8263 | n/a | ResObj_Convert, &targetDataRef, |
|---|
| 8264 | n/a | PyMac_GetOSType, &targetDataRefType)) |
|---|
| 8265 | n/a | return NULL; |
|---|
| 8266 | n/a | _err = CreateShortcutMovieFile(&fileSpec, |
|---|
| 8267 | n/a | creator, |
|---|
| 8268 | n/a | scriptTag, |
|---|
| 8269 | n/a | createMovieFileFlags, |
|---|
| 8270 | n/a | targetDataRef, |
|---|
| 8271 | n/a | targetDataRefType); |
|---|
| 8272 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8273 | n/a | Py_INCREF(Py_None); |
|---|
| 8274 | n/a | _res = Py_None; |
|---|
| 8275 | n/a | return _res; |
|---|
| 8276 | n/a | } |
|---|
| 8277 | n/a | |
|---|
| 8278 | n/a | static PyObject *Qt_CanQuickTimeOpenFile(PyObject *_self, PyObject *_args) |
|---|
| 8279 | n/a | { |
|---|
| 8280 | n/a | PyObject *_res = NULL; |
|---|
| 8281 | n/a | OSErr _err; |
|---|
| 8282 | n/a | FSSpec fileSpec; |
|---|
| 8283 | n/a | OSType fileType; |
|---|
| 8284 | n/a | OSType fileNameExtension; |
|---|
| 8285 | n/a | Boolean outCanOpenWithGraphicsImporter; |
|---|
| 8286 | n/a | Boolean outCanOpenAsMovie; |
|---|
| 8287 | n/a | Boolean outPreferGraphicsImporter; |
|---|
| 8288 | n/a | UInt32 inFlags; |
|---|
| 8289 | n/a | #ifndef CanQuickTimeOpenFile |
|---|
| 8290 | n/a | PyMac_PRECHECK(CanQuickTimeOpenFile); |
|---|
| 8291 | n/a | #endif |
|---|
| 8292 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&l", |
|---|
| 8293 | n/a | PyMac_GetFSSpec, &fileSpec, |
|---|
| 8294 | n/a | PyMac_GetOSType, &fileType, |
|---|
| 8295 | n/a | PyMac_GetOSType, &fileNameExtension, |
|---|
| 8296 | n/a | &inFlags)) |
|---|
| 8297 | n/a | return NULL; |
|---|
| 8298 | n/a | _err = CanQuickTimeOpenFile(&fileSpec, |
|---|
| 8299 | n/a | fileType, |
|---|
| 8300 | n/a | fileNameExtension, |
|---|
| 8301 | n/a | &outCanOpenWithGraphicsImporter, |
|---|
| 8302 | n/a | &outCanOpenAsMovie, |
|---|
| 8303 | n/a | &outPreferGraphicsImporter, |
|---|
| 8304 | n/a | inFlags); |
|---|
| 8305 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8306 | n/a | _res = Py_BuildValue("bbb", |
|---|
| 8307 | n/a | outCanOpenWithGraphicsImporter, |
|---|
| 8308 | n/a | outCanOpenAsMovie, |
|---|
| 8309 | n/a | outPreferGraphicsImporter); |
|---|
| 8310 | n/a | return _res; |
|---|
| 8311 | n/a | } |
|---|
| 8312 | n/a | |
|---|
| 8313 | n/a | static PyObject *Qt_CanQuickTimeOpenDataRef(PyObject *_self, PyObject *_args) |
|---|
| 8314 | n/a | { |
|---|
| 8315 | n/a | PyObject *_res = NULL; |
|---|
| 8316 | n/a | OSErr _err; |
|---|
| 8317 | n/a | Handle dataRef; |
|---|
| 8318 | n/a | OSType dataRefType; |
|---|
| 8319 | n/a | Boolean outCanOpenWithGraphicsImporter; |
|---|
| 8320 | n/a | Boolean outCanOpenAsMovie; |
|---|
| 8321 | n/a | Boolean outPreferGraphicsImporter; |
|---|
| 8322 | n/a | UInt32 inFlags; |
|---|
| 8323 | n/a | #ifndef CanQuickTimeOpenDataRef |
|---|
| 8324 | n/a | PyMac_PRECHECK(CanQuickTimeOpenDataRef); |
|---|
| 8325 | n/a | #endif |
|---|
| 8326 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 8327 | n/a | ResObj_Convert, &dataRef, |
|---|
| 8328 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 8329 | n/a | &inFlags)) |
|---|
| 8330 | n/a | return NULL; |
|---|
| 8331 | n/a | _err = CanQuickTimeOpenDataRef(dataRef, |
|---|
| 8332 | n/a | dataRefType, |
|---|
| 8333 | n/a | &outCanOpenWithGraphicsImporter, |
|---|
| 8334 | n/a | &outCanOpenAsMovie, |
|---|
| 8335 | n/a | &outPreferGraphicsImporter, |
|---|
| 8336 | n/a | inFlags); |
|---|
| 8337 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8338 | n/a | _res = Py_BuildValue("bbb", |
|---|
| 8339 | n/a | outCanOpenWithGraphicsImporter, |
|---|
| 8340 | n/a | outCanOpenAsMovie, |
|---|
| 8341 | n/a | outPreferGraphicsImporter); |
|---|
| 8342 | n/a | return _res; |
|---|
| 8343 | n/a | } |
|---|
| 8344 | n/a | |
|---|
| 8345 | n/a | static PyObject *Qt_NewMovieFromScrap(PyObject *_self, PyObject *_args) |
|---|
| 8346 | n/a | { |
|---|
| 8347 | n/a | PyObject *_res = NULL; |
|---|
| 8348 | n/a | Movie _rv; |
|---|
| 8349 | n/a | long newMovieFlags; |
|---|
| 8350 | n/a | #ifndef NewMovieFromScrap |
|---|
| 8351 | n/a | PyMac_PRECHECK(NewMovieFromScrap); |
|---|
| 8352 | n/a | #endif |
|---|
| 8353 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 8354 | n/a | &newMovieFlags)) |
|---|
| 8355 | n/a | return NULL; |
|---|
| 8356 | n/a | _rv = NewMovieFromScrap(newMovieFlags); |
|---|
| 8357 | n/a | _res = Py_BuildValue("O&", |
|---|
| 8358 | n/a | MovieObj_New, _rv); |
|---|
| 8359 | n/a | return _res; |
|---|
| 8360 | n/a | } |
|---|
| 8361 | n/a | |
|---|
| 8362 | n/a | static PyObject *Qt_QTNewAlias(PyObject *_self, PyObject *_args) |
|---|
| 8363 | n/a | { |
|---|
| 8364 | n/a | PyObject *_res = NULL; |
|---|
| 8365 | n/a | OSErr _err; |
|---|
| 8366 | n/a | FSSpec fss; |
|---|
| 8367 | n/a | AliasHandle alias; |
|---|
| 8368 | n/a | Boolean minimal; |
|---|
| 8369 | n/a | #ifndef QTNewAlias |
|---|
| 8370 | n/a | PyMac_PRECHECK(QTNewAlias); |
|---|
| 8371 | n/a | #endif |
|---|
| 8372 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 8373 | n/a | PyMac_GetFSSpec, &fss, |
|---|
| 8374 | n/a | &minimal)) |
|---|
| 8375 | n/a | return NULL; |
|---|
| 8376 | n/a | _err = QTNewAlias(&fss, |
|---|
| 8377 | n/a | &alias, |
|---|
| 8378 | n/a | minimal); |
|---|
| 8379 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8380 | n/a | _res = Py_BuildValue("O&", |
|---|
| 8381 | n/a | ResObj_New, alias); |
|---|
| 8382 | n/a | return _res; |
|---|
| 8383 | n/a | } |
|---|
| 8384 | n/a | |
|---|
| 8385 | n/a | static PyObject *Qt_EndFullScreen(PyObject *_self, PyObject *_args) |
|---|
| 8386 | n/a | { |
|---|
| 8387 | n/a | PyObject *_res = NULL; |
|---|
| 8388 | n/a | OSErr _err; |
|---|
| 8389 | n/a | Ptr fullState; |
|---|
| 8390 | n/a | long flags; |
|---|
| 8391 | n/a | #ifndef EndFullScreen |
|---|
| 8392 | n/a | PyMac_PRECHECK(EndFullScreen); |
|---|
| 8393 | n/a | #endif |
|---|
| 8394 | n/a | if (!PyArg_ParseTuple(_args, "sl", |
|---|
| 8395 | n/a | &fullState, |
|---|
| 8396 | n/a | &flags)) |
|---|
| 8397 | n/a | return NULL; |
|---|
| 8398 | n/a | _err = EndFullScreen(fullState, |
|---|
| 8399 | n/a | flags); |
|---|
| 8400 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8401 | n/a | Py_INCREF(Py_None); |
|---|
| 8402 | n/a | _res = Py_None; |
|---|
| 8403 | n/a | return _res; |
|---|
| 8404 | n/a | } |
|---|
| 8405 | n/a | |
|---|
| 8406 | n/a | static PyObject *Qt_AddSoundDescriptionExtension(PyObject *_self, PyObject *_args) |
|---|
| 8407 | n/a | { |
|---|
| 8408 | n/a | PyObject *_res = NULL; |
|---|
| 8409 | n/a | OSErr _err; |
|---|
| 8410 | n/a | SoundDescriptionHandle desc; |
|---|
| 8411 | n/a | Handle extension; |
|---|
| 8412 | n/a | OSType idType; |
|---|
| 8413 | n/a | #ifndef AddSoundDescriptionExtension |
|---|
| 8414 | n/a | PyMac_PRECHECK(AddSoundDescriptionExtension); |
|---|
| 8415 | n/a | #endif |
|---|
| 8416 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 8417 | n/a | ResObj_Convert, &desc, |
|---|
| 8418 | n/a | ResObj_Convert, &extension, |
|---|
| 8419 | n/a | PyMac_GetOSType, &idType)) |
|---|
| 8420 | n/a | return NULL; |
|---|
| 8421 | n/a | _err = AddSoundDescriptionExtension(desc, |
|---|
| 8422 | n/a | extension, |
|---|
| 8423 | n/a | idType); |
|---|
| 8424 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8425 | n/a | Py_INCREF(Py_None); |
|---|
| 8426 | n/a | _res = Py_None; |
|---|
| 8427 | n/a | return _res; |
|---|
| 8428 | n/a | } |
|---|
| 8429 | n/a | |
|---|
| 8430 | n/a | static PyObject *Qt_GetSoundDescriptionExtension(PyObject *_self, PyObject *_args) |
|---|
| 8431 | n/a | { |
|---|
| 8432 | n/a | PyObject *_res = NULL; |
|---|
| 8433 | n/a | OSErr _err; |
|---|
| 8434 | n/a | SoundDescriptionHandle desc; |
|---|
| 8435 | n/a | Handle extension; |
|---|
| 8436 | n/a | OSType idType; |
|---|
| 8437 | n/a | #ifndef GetSoundDescriptionExtension |
|---|
| 8438 | n/a | PyMac_PRECHECK(GetSoundDescriptionExtension); |
|---|
| 8439 | n/a | #endif |
|---|
| 8440 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 8441 | n/a | ResObj_Convert, &desc, |
|---|
| 8442 | n/a | PyMac_GetOSType, &idType)) |
|---|
| 8443 | n/a | return NULL; |
|---|
| 8444 | n/a | _err = GetSoundDescriptionExtension(desc, |
|---|
| 8445 | n/a | &extension, |
|---|
| 8446 | n/a | idType); |
|---|
| 8447 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8448 | n/a | _res = Py_BuildValue("O&", |
|---|
| 8449 | n/a | ResObj_New, extension); |
|---|
| 8450 | n/a | return _res; |
|---|
| 8451 | n/a | } |
|---|
| 8452 | n/a | |
|---|
| 8453 | n/a | static PyObject *Qt_RemoveSoundDescriptionExtension(PyObject *_self, PyObject *_args) |
|---|
| 8454 | n/a | { |
|---|
| 8455 | n/a | PyObject *_res = NULL; |
|---|
| 8456 | n/a | OSErr _err; |
|---|
| 8457 | n/a | SoundDescriptionHandle desc; |
|---|
| 8458 | n/a | OSType idType; |
|---|
| 8459 | n/a | #ifndef RemoveSoundDescriptionExtension |
|---|
| 8460 | n/a | PyMac_PRECHECK(RemoveSoundDescriptionExtension); |
|---|
| 8461 | n/a | #endif |
|---|
| 8462 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 8463 | n/a | ResObj_Convert, &desc, |
|---|
| 8464 | n/a | PyMac_GetOSType, &idType)) |
|---|
| 8465 | n/a | return NULL; |
|---|
| 8466 | n/a | _err = RemoveSoundDescriptionExtension(desc, |
|---|
| 8467 | n/a | idType); |
|---|
| 8468 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8469 | n/a | Py_INCREF(Py_None); |
|---|
| 8470 | n/a | _res = Py_None; |
|---|
| 8471 | n/a | return _res; |
|---|
| 8472 | n/a | } |
|---|
| 8473 | n/a | |
|---|
| 8474 | n/a | static PyObject *Qt_QTIsStandardParameterDialogEvent(PyObject *_self, PyObject *_args) |
|---|
| 8475 | n/a | { |
|---|
| 8476 | n/a | PyObject *_res = NULL; |
|---|
| 8477 | n/a | OSErr _err; |
|---|
| 8478 | n/a | EventRecord pEvent; |
|---|
| 8479 | n/a | QTParameterDialog createdDialog; |
|---|
| 8480 | n/a | #ifndef QTIsStandardParameterDialogEvent |
|---|
| 8481 | n/a | PyMac_PRECHECK(QTIsStandardParameterDialogEvent); |
|---|
| 8482 | n/a | #endif |
|---|
| 8483 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 8484 | n/a | &createdDialog)) |
|---|
| 8485 | n/a | return NULL; |
|---|
| 8486 | n/a | _err = QTIsStandardParameterDialogEvent(&pEvent, |
|---|
| 8487 | n/a | createdDialog); |
|---|
| 8488 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8489 | n/a | _res = Py_BuildValue("O&", |
|---|
| 8490 | n/a | PyMac_BuildEventRecord, &pEvent); |
|---|
| 8491 | n/a | return _res; |
|---|
| 8492 | n/a | } |
|---|
| 8493 | n/a | |
|---|
| 8494 | n/a | static PyObject *Qt_QTDismissStandardParameterDialog(PyObject *_self, PyObject *_args) |
|---|
| 8495 | n/a | { |
|---|
| 8496 | n/a | PyObject *_res = NULL; |
|---|
| 8497 | n/a | OSErr _err; |
|---|
| 8498 | n/a | QTParameterDialog createdDialog; |
|---|
| 8499 | n/a | #ifndef QTDismissStandardParameterDialog |
|---|
| 8500 | n/a | PyMac_PRECHECK(QTDismissStandardParameterDialog); |
|---|
| 8501 | n/a | #endif |
|---|
| 8502 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 8503 | n/a | &createdDialog)) |
|---|
| 8504 | n/a | return NULL; |
|---|
| 8505 | n/a | _err = QTDismissStandardParameterDialog(createdDialog); |
|---|
| 8506 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8507 | n/a | Py_INCREF(Py_None); |
|---|
| 8508 | n/a | _res = Py_None; |
|---|
| 8509 | n/a | return _res; |
|---|
| 8510 | n/a | } |
|---|
| 8511 | n/a | |
|---|
| 8512 | n/a | static PyObject *Qt_QTStandardParameterDialogDoAction(PyObject *_self, PyObject *_args) |
|---|
| 8513 | n/a | { |
|---|
| 8514 | n/a | PyObject *_res = NULL; |
|---|
| 8515 | n/a | OSErr _err; |
|---|
| 8516 | n/a | QTParameterDialog createdDialog; |
|---|
| 8517 | n/a | long action; |
|---|
| 8518 | n/a | void * params; |
|---|
| 8519 | n/a | #ifndef QTStandardParameterDialogDoAction |
|---|
| 8520 | n/a | PyMac_PRECHECK(QTStandardParameterDialogDoAction); |
|---|
| 8521 | n/a | #endif |
|---|
| 8522 | n/a | if (!PyArg_ParseTuple(_args, "lls", |
|---|
| 8523 | n/a | &createdDialog, |
|---|
| 8524 | n/a | &action, |
|---|
| 8525 | n/a | ¶ms)) |
|---|
| 8526 | n/a | return NULL; |
|---|
| 8527 | n/a | _err = QTStandardParameterDialogDoAction(createdDialog, |
|---|
| 8528 | n/a | action, |
|---|
| 8529 | n/a | params); |
|---|
| 8530 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8531 | n/a | Py_INCREF(Py_None); |
|---|
| 8532 | n/a | _res = Py_None; |
|---|
| 8533 | n/a | return _res; |
|---|
| 8534 | n/a | } |
|---|
| 8535 | n/a | |
|---|
| 8536 | n/a | static PyObject *Qt_QTRegisterAccessKey(PyObject *_self, PyObject *_args) |
|---|
| 8537 | n/a | { |
|---|
| 8538 | n/a | PyObject *_res = NULL; |
|---|
| 8539 | n/a | OSErr _err; |
|---|
| 8540 | n/a | Str255 accessKeyType; |
|---|
| 8541 | n/a | long flags; |
|---|
| 8542 | n/a | Handle accessKey; |
|---|
| 8543 | n/a | #ifndef QTRegisterAccessKey |
|---|
| 8544 | n/a | PyMac_PRECHECK(QTRegisterAccessKey); |
|---|
| 8545 | n/a | #endif |
|---|
| 8546 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 8547 | n/a | PyMac_GetStr255, accessKeyType, |
|---|
| 8548 | n/a | &flags, |
|---|
| 8549 | n/a | ResObj_Convert, &accessKey)) |
|---|
| 8550 | n/a | return NULL; |
|---|
| 8551 | n/a | _err = QTRegisterAccessKey(accessKeyType, |
|---|
| 8552 | n/a | flags, |
|---|
| 8553 | n/a | accessKey); |
|---|
| 8554 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8555 | n/a | Py_INCREF(Py_None); |
|---|
| 8556 | n/a | _res = Py_None; |
|---|
| 8557 | n/a | return _res; |
|---|
| 8558 | n/a | } |
|---|
| 8559 | n/a | |
|---|
| 8560 | n/a | static PyObject *Qt_QTUnregisterAccessKey(PyObject *_self, PyObject *_args) |
|---|
| 8561 | n/a | { |
|---|
| 8562 | n/a | PyObject *_res = NULL; |
|---|
| 8563 | n/a | OSErr _err; |
|---|
| 8564 | n/a | Str255 accessKeyType; |
|---|
| 8565 | n/a | long flags; |
|---|
| 8566 | n/a | Handle accessKey; |
|---|
| 8567 | n/a | #ifndef QTUnregisterAccessKey |
|---|
| 8568 | n/a | PyMac_PRECHECK(QTUnregisterAccessKey); |
|---|
| 8569 | n/a | #endif |
|---|
| 8570 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 8571 | n/a | PyMac_GetStr255, accessKeyType, |
|---|
| 8572 | n/a | &flags, |
|---|
| 8573 | n/a | ResObj_Convert, &accessKey)) |
|---|
| 8574 | n/a | return NULL; |
|---|
| 8575 | n/a | _err = QTUnregisterAccessKey(accessKeyType, |
|---|
| 8576 | n/a | flags, |
|---|
| 8577 | n/a | accessKey); |
|---|
| 8578 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8579 | n/a | Py_INCREF(Py_None); |
|---|
| 8580 | n/a | _res = Py_None; |
|---|
| 8581 | n/a | return _res; |
|---|
| 8582 | n/a | } |
|---|
| 8583 | n/a | |
|---|
| 8584 | n/a | static PyObject *Qt_QTGetSupportedRestrictions(PyObject *_self, PyObject *_args) |
|---|
| 8585 | n/a | { |
|---|
| 8586 | n/a | PyObject *_res = NULL; |
|---|
| 8587 | n/a | OSErr _err; |
|---|
| 8588 | n/a | OSType inRestrictionClass; |
|---|
| 8589 | n/a | UInt32 outRestrictionIDs; |
|---|
| 8590 | n/a | #ifndef QTGetSupportedRestrictions |
|---|
| 8591 | n/a | PyMac_PRECHECK(QTGetSupportedRestrictions); |
|---|
| 8592 | n/a | #endif |
|---|
| 8593 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 8594 | n/a | PyMac_GetOSType, &inRestrictionClass)) |
|---|
| 8595 | n/a | return NULL; |
|---|
| 8596 | n/a | _err = QTGetSupportedRestrictions(inRestrictionClass, |
|---|
| 8597 | n/a | &outRestrictionIDs); |
|---|
| 8598 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8599 | n/a | _res = Py_BuildValue("l", |
|---|
| 8600 | n/a | outRestrictionIDs); |
|---|
| 8601 | n/a | return _res; |
|---|
| 8602 | n/a | } |
|---|
| 8603 | n/a | |
|---|
| 8604 | n/a | static PyObject *Qt_QTTextToNativeText(PyObject *_self, PyObject *_args) |
|---|
| 8605 | n/a | { |
|---|
| 8606 | n/a | PyObject *_res = NULL; |
|---|
| 8607 | n/a | OSErr _err; |
|---|
| 8608 | n/a | Handle theText; |
|---|
| 8609 | n/a | long encoding; |
|---|
| 8610 | n/a | long flags; |
|---|
| 8611 | n/a | #ifndef QTTextToNativeText |
|---|
| 8612 | n/a | PyMac_PRECHECK(QTTextToNativeText); |
|---|
| 8613 | n/a | #endif |
|---|
| 8614 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 8615 | n/a | ResObj_Convert, &theText, |
|---|
| 8616 | n/a | &encoding, |
|---|
| 8617 | n/a | &flags)) |
|---|
| 8618 | n/a | return NULL; |
|---|
| 8619 | n/a | _err = QTTextToNativeText(theText, |
|---|
| 8620 | n/a | encoding, |
|---|
| 8621 | n/a | flags); |
|---|
| 8622 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 8623 | n/a | Py_INCREF(Py_None); |
|---|
| 8624 | n/a | _res = Py_None; |
|---|
| 8625 | n/a | return _res; |
|---|
| 8626 | n/a | } |
|---|
| 8627 | n/a | |
|---|
| 8628 | n/a | static PyObject *Qt_VideoMediaResetStatistics(PyObject *_self, PyObject *_args) |
|---|
| 8629 | n/a | { |
|---|
| 8630 | n/a | PyObject *_res = NULL; |
|---|
| 8631 | n/a | ComponentResult _rv; |
|---|
| 8632 | n/a | MediaHandler mh; |
|---|
| 8633 | n/a | #ifndef VideoMediaResetStatistics |
|---|
| 8634 | n/a | PyMac_PRECHECK(VideoMediaResetStatistics); |
|---|
| 8635 | n/a | #endif |
|---|
| 8636 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 8637 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 8638 | n/a | return NULL; |
|---|
| 8639 | n/a | _rv = VideoMediaResetStatistics(mh); |
|---|
| 8640 | n/a | _res = Py_BuildValue("l", |
|---|
| 8641 | n/a | _rv); |
|---|
| 8642 | n/a | return _res; |
|---|
| 8643 | n/a | } |
|---|
| 8644 | n/a | |
|---|
| 8645 | n/a | static PyObject *Qt_VideoMediaGetStatistics(PyObject *_self, PyObject *_args) |
|---|
| 8646 | n/a | { |
|---|
| 8647 | n/a | PyObject *_res = NULL; |
|---|
| 8648 | n/a | ComponentResult _rv; |
|---|
| 8649 | n/a | MediaHandler mh; |
|---|
| 8650 | n/a | #ifndef VideoMediaGetStatistics |
|---|
| 8651 | n/a | PyMac_PRECHECK(VideoMediaGetStatistics); |
|---|
| 8652 | n/a | #endif |
|---|
| 8653 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 8654 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 8655 | n/a | return NULL; |
|---|
| 8656 | n/a | _rv = VideoMediaGetStatistics(mh); |
|---|
| 8657 | n/a | _res = Py_BuildValue("l", |
|---|
| 8658 | n/a | _rv); |
|---|
| 8659 | n/a | return _res; |
|---|
| 8660 | n/a | } |
|---|
| 8661 | n/a | |
|---|
| 8662 | n/a | static PyObject *Qt_VideoMediaGetStallCount(PyObject *_self, PyObject *_args) |
|---|
| 8663 | n/a | { |
|---|
| 8664 | n/a | PyObject *_res = NULL; |
|---|
| 8665 | n/a | ComponentResult _rv; |
|---|
| 8666 | n/a | MediaHandler mh; |
|---|
| 8667 | n/a | unsigned long stalls; |
|---|
| 8668 | n/a | #ifndef VideoMediaGetStallCount |
|---|
| 8669 | n/a | PyMac_PRECHECK(VideoMediaGetStallCount); |
|---|
| 8670 | n/a | #endif |
|---|
| 8671 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 8672 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 8673 | n/a | return NULL; |
|---|
| 8674 | n/a | _rv = VideoMediaGetStallCount(mh, |
|---|
| 8675 | n/a | &stalls); |
|---|
| 8676 | n/a | _res = Py_BuildValue("ll", |
|---|
| 8677 | n/a | _rv, |
|---|
| 8678 | n/a | stalls); |
|---|
| 8679 | n/a | return _res; |
|---|
| 8680 | n/a | } |
|---|
| 8681 | n/a | |
|---|
| 8682 | n/a | static PyObject *Qt_VideoMediaSetCodecParameter(PyObject *_self, PyObject *_args) |
|---|
| 8683 | n/a | { |
|---|
| 8684 | n/a | PyObject *_res = NULL; |
|---|
| 8685 | n/a | ComponentResult _rv; |
|---|
| 8686 | n/a | MediaHandler mh; |
|---|
| 8687 | n/a | CodecType cType; |
|---|
| 8688 | n/a | OSType parameterID; |
|---|
| 8689 | n/a | long parameterChangeSeed; |
|---|
| 8690 | n/a | void * dataPtr; |
|---|
| 8691 | n/a | long dataSize; |
|---|
| 8692 | n/a | #ifndef VideoMediaSetCodecParameter |
|---|
| 8693 | n/a | PyMac_PRECHECK(VideoMediaSetCodecParameter); |
|---|
| 8694 | n/a | #endif |
|---|
| 8695 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&lsl", |
|---|
| 8696 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8697 | n/a | PyMac_GetOSType, &cType, |
|---|
| 8698 | n/a | PyMac_GetOSType, ¶meterID, |
|---|
| 8699 | n/a | ¶meterChangeSeed, |
|---|
| 8700 | n/a | &dataPtr, |
|---|
| 8701 | n/a | &dataSize)) |
|---|
| 8702 | n/a | return NULL; |
|---|
| 8703 | n/a | _rv = VideoMediaSetCodecParameter(mh, |
|---|
| 8704 | n/a | cType, |
|---|
| 8705 | n/a | parameterID, |
|---|
| 8706 | n/a | parameterChangeSeed, |
|---|
| 8707 | n/a | dataPtr, |
|---|
| 8708 | n/a | dataSize); |
|---|
| 8709 | n/a | _res = Py_BuildValue("l", |
|---|
| 8710 | n/a | _rv); |
|---|
| 8711 | n/a | return _res; |
|---|
| 8712 | n/a | } |
|---|
| 8713 | n/a | |
|---|
| 8714 | n/a | static PyObject *Qt_VideoMediaGetCodecParameter(PyObject *_self, PyObject *_args) |
|---|
| 8715 | n/a | { |
|---|
| 8716 | n/a | PyObject *_res = NULL; |
|---|
| 8717 | n/a | ComponentResult _rv; |
|---|
| 8718 | n/a | MediaHandler mh; |
|---|
| 8719 | n/a | CodecType cType; |
|---|
| 8720 | n/a | OSType parameterID; |
|---|
| 8721 | n/a | Handle outParameterData; |
|---|
| 8722 | n/a | #ifndef VideoMediaGetCodecParameter |
|---|
| 8723 | n/a | PyMac_PRECHECK(VideoMediaGetCodecParameter); |
|---|
| 8724 | n/a | #endif |
|---|
| 8725 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 8726 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8727 | n/a | PyMac_GetOSType, &cType, |
|---|
| 8728 | n/a | PyMac_GetOSType, ¶meterID, |
|---|
| 8729 | n/a | ResObj_Convert, &outParameterData)) |
|---|
| 8730 | n/a | return NULL; |
|---|
| 8731 | n/a | _rv = VideoMediaGetCodecParameter(mh, |
|---|
| 8732 | n/a | cType, |
|---|
| 8733 | n/a | parameterID, |
|---|
| 8734 | n/a | outParameterData); |
|---|
| 8735 | n/a | _res = Py_BuildValue("l", |
|---|
| 8736 | n/a | _rv); |
|---|
| 8737 | n/a | return _res; |
|---|
| 8738 | n/a | } |
|---|
| 8739 | n/a | |
|---|
| 8740 | n/a | static PyObject *Qt_TextMediaAddTextSample(PyObject *_self, PyObject *_args) |
|---|
| 8741 | n/a | { |
|---|
| 8742 | n/a | PyObject *_res = NULL; |
|---|
| 8743 | n/a | ComponentResult _rv; |
|---|
| 8744 | n/a | MediaHandler mh; |
|---|
| 8745 | n/a | Ptr text; |
|---|
| 8746 | n/a | unsigned long size; |
|---|
| 8747 | n/a | short fontNumber; |
|---|
| 8748 | n/a | short fontSize; |
|---|
| 8749 | n/a | Style textFace; |
|---|
| 8750 | n/a | RGBColor textColor; |
|---|
| 8751 | n/a | RGBColor backColor; |
|---|
| 8752 | n/a | short textJustification; |
|---|
| 8753 | n/a | Rect textBox; |
|---|
| 8754 | n/a | long displayFlags; |
|---|
| 8755 | n/a | TimeValue scrollDelay; |
|---|
| 8756 | n/a | short hiliteStart; |
|---|
| 8757 | n/a | short hiliteEnd; |
|---|
| 8758 | n/a | RGBColor rgbHiliteColor; |
|---|
| 8759 | n/a | TimeValue duration; |
|---|
| 8760 | n/a | TimeValue sampleTime; |
|---|
| 8761 | n/a | #ifndef TextMediaAddTextSample |
|---|
| 8762 | n/a | PyMac_PRECHECK(TextMediaAddTextSample); |
|---|
| 8763 | n/a | #endif |
|---|
| 8764 | n/a | if (!PyArg_ParseTuple(_args, "O&slhhbhllhhl", |
|---|
| 8765 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8766 | n/a | &text, |
|---|
| 8767 | n/a | &size, |
|---|
| 8768 | n/a | &fontNumber, |
|---|
| 8769 | n/a | &fontSize, |
|---|
| 8770 | n/a | &textFace, |
|---|
| 8771 | n/a | &textJustification, |
|---|
| 8772 | n/a | &displayFlags, |
|---|
| 8773 | n/a | &scrollDelay, |
|---|
| 8774 | n/a | &hiliteStart, |
|---|
| 8775 | n/a | &hiliteEnd, |
|---|
| 8776 | n/a | &duration)) |
|---|
| 8777 | n/a | return NULL; |
|---|
| 8778 | n/a | _rv = TextMediaAddTextSample(mh, |
|---|
| 8779 | n/a | text, |
|---|
| 8780 | n/a | size, |
|---|
| 8781 | n/a | fontNumber, |
|---|
| 8782 | n/a | fontSize, |
|---|
| 8783 | n/a | textFace, |
|---|
| 8784 | n/a | &textColor, |
|---|
| 8785 | n/a | &backColor, |
|---|
| 8786 | n/a | textJustification, |
|---|
| 8787 | n/a | &textBox, |
|---|
| 8788 | n/a | displayFlags, |
|---|
| 8789 | n/a | scrollDelay, |
|---|
| 8790 | n/a | hiliteStart, |
|---|
| 8791 | n/a | hiliteEnd, |
|---|
| 8792 | n/a | &rgbHiliteColor, |
|---|
| 8793 | n/a | duration, |
|---|
| 8794 | n/a | &sampleTime); |
|---|
| 8795 | n/a | _res = Py_BuildValue("lO&O&O&O&l", |
|---|
| 8796 | n/a | _rv, |
|---|
| 8797 | n/a | QdRGB_New, &textColor, |
|---|
| 8798 | n/a | QdRGB_New, &backColor, |
|---|
| 8799 | n/a | PyMac_BuildRect, &textBox, |
|---|
| 8800 | n/a | QdRGB_New, &rgbHiliteColor, |
|---|
| 8801 | n/a | sampleTime); |
|---|
| 8802 | n/a | return _res; |
|---|
| 8803 | n/a | } |
|---|
| 8804 | n/a | |
|---|
| 8805 | n/a | static PyObject *Qt_TextMediaAddTESample(PyObject *_self, PyObject *_args) |
|---|
| 8806 | n/a | { |
|---|
| 8807 | n/a | PyObject *_res = NULL; |
|---|
| 8808 | n/a | ComponentResult _rv; |
|---|
| 8809 | n/a | MediaHandler mh; |
|---|
| 8810 | n/a | TEHandle hTE; |
|---|
| 8811 | n/a | RGBColor backColor; |
|---|
| 8812 | n/a | short textJustification; |
|---|
| 8813 | n/a | Rect textBox; |
|---|
| 8814 | n/a | long displayFlags; |
|---|
| 8815 | n/a | TimeValue scrollDelay; |
|---|
| 8816 | n/a | short hiliteStart; |
|---|
| 8817 | n/a | short hiliteEnd; |
|---|
| 8818 | n/a | RGBColor rgbHiliteColor; |
|---|
| 8819 | n/a | TimeValue duration; |
|---|
| 8820 | n/a | TimeValue sampleTime; |
|---|
| 8821 | n/a | #ifndef TextMediaAddTESample |
|---|
| 8822 | n/a | PyMac_PRECHECK(TextMediaAddTESample); |
|---|
| 8823 | n/a | #endif |
|---|
| 8824 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hllhhl", |
|---|
| 8825 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8826 | n/a | ResObj_Convert, &hTE, |
|---|
| 8827 | n/a | &textJustification, |
|---|
| 8828 | n/a | &displayFlags, |
|---|
| 8829 | n/a | &scrollDelay, |
|---|
| 8830 | n/a | &hiliteStart, |
|---|
| 8831 | n/a | &hiliteEnd, |
|---|
| 8832 | n/a | &duration)) |
|---|
| 8833 | n/a | return NULL; |
|---|
| 8834 | n/a | _rv = TextMediaAddTESample(mh, |
|---|
| 8835 | n/a | hTE, |
|---|
| 8836 | n/a | &backColor, |
|---|
| 8837 | n/a | textJustification, |
|---|
| 8838 | n/a | &textBox, |
|---|
| 8839 | n/a | displayFlags, |
|---|
| 8840 | n/a | scrollDelay, |
|---|
| 8841 | n/a | hiliteStart, |
|---|
| 8842 | n/a | hiliteEnd, |
|---|
| 8843 | n/a | &rgbHiliteColor, |
|---|
| 8844 | n/a | duration, |
|---|
| 8845 | n/a | &sampleTime); |
|---|
| 8846 | n/a | _res = Py_BuildValue("lO&O&O&l", |
|---|
| 8847 | n/a | _rv, |
|---|
| 8848 | n/a | QdRGB_New, &backColor, |
|---|
| 8849 | n/a | PyMac_BuildRect, &textBox, |
|---|
| 8850 | n/a | QdRGB_New, &rgbHiliteColor, |
|---|
| 8851 | n/a | sampleTime); |
|---|
| 8852 | n/a | return _res; |
|---|
| 8853 | n/a | } |
|---|
| 8854 | n/a | |
|---|
| 8855 | n/a | static PyObject *Qt_TextMediaAddHiliteSample(PyObject *_self, PyObject *_args) |
|---|
| 8856 | n/a | { |
|---|
| 8857 | n/a | PyObject *_res = NULL; |
|---|
| 8858 | n/a | ComponentResult _rv; |
|---|
| 8859 | n/a | MediaHandler mh; |
|---|
| 8860 | n/a | short hiliteStart; |
|---|
| 8861 | n/a | short hiliteEnd; |
|---|
| 8862 | n/a | RGBColor rgbHiliteColor; |
|---|
| 8863 | n/a | TimeValue duration; |
|---|
| 8864 | n/a | TimeValue sampleTime; |
|---|
| 8865 | n/a | #ifndef TextMediaAddHiliteSample |
|---|
| 8866 | n/a | PyMac_PRECHECK(TextMediaAddHiliteSample); |
|---|
| 8867 | n/a | #endif |
|---|
| 8868 | n/a | if (!PyArg_ParseTuple(_args, "O&hhl", |
|---|
| 8869 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8870 | n/a | &hiliteStart, |
|---|
| 8871 | n/a | &hiliteEnd, |
|---|
| 8872 | n/a | &duration)) |
|---|
| 8873 | n/a | return NULL; |
|---|
| 8874 | n/a | _rv = TextMediaAddHiliteSample(mh, |
|---|
| 8875 | n/a | hiliteStart, |
|---|
| 8876 | n/a | hiliteEnd, |
|---|
| 8877 | n/a | &rgbHiliteColor, |
|---|
| 8878 | n/a | duration, |
|---|
| 8879 | n/a | &sampleTime); |
|---|
| 8880 | n/a | _res = Py_BuildValue("lO&l", |
|---|
| 8881 | n/a | _rv, |
|---|
| 8882 | n/a | QdRGB_New, &rgbHiliteColor, |
|---|
| 8883 | n/a | sampleTime); |
|---|
| 8884 | n/a | return _res; |
|---|
| 8885 | n/a | } |
|---|
| 8886 | n/a | |
|---|
| 8887 | n/a | static PyObject *Qt_TextMediaDrawRaw(PyObject *_self, PyObject *_args) |
|---|
| 8888 | n/a | { |
|---|
| 8889 | n/a | PyObject *_res = NULL; |
|---|
| 8890 | n/a | ComponentResult _rv; |
|---|
| 8891 | n/a | MediaHandler mh; |
|---|
| 8892 | n/a | GWorldPtr gw; |
|---|
| 8893 | n/a | GDHandle gd; |
|---|
| 8894 | n/a | void * data; |
|---|
| 8895 | n/a | long dataSize; |
|---|
| 8896 | n/a | TextDescriptionHandle tdh; |
|---|
| 8897 | n/a | #ifndef TextMediaDrawRaw |
|---|
| 8898 | n/a | PyMac_PRECHECK(TextMediaDrawRaw); |
|---|
| 8899 | n/a | #endif |
|---|
| 8900 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&slO&", |
|---|
| 8901 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8902 | n/a | GWorldObj_Convert, &gw, |
|---|
| 8903 | n/a | OptResObj_Convert, &gd, |
|---|
| 8904 | n/a | &data, |
|---|
| 8905 | n/a | &dataSize, |
|---|
| 8906 | n/a | ResObj_Convert, &tdh)) |
|---|
| 8907 | n/a | return NULL; |
|---|
| 8908 | n/a | _rv = TextMediaDrawRaw(mh, |
|---|
| 8909 | n/a | gw, |
|---|
| 8910 | n/a | gd, |
|---|
| 8911 | n/a | data, |
|---|
| 8912 | n/a | dataSize, |
|---|
| 8913 | n/a | tdh); |
|---|
| 8914 | n/a | _res = Py_BuildValue("l", |
|---|
| 8915 | n/a | _rv); |
|---|
| 8916 | n/a | return _res; |
|---|
| 8917 | n/a | } |
|---|
| 8918 | n/a | |
|---|
| 8919 | n/a | static PyObject *Qt_TextMediaSetTextProperty(PyObject *_self, PyObject *_args) |
|---|
| 8920 | n/a | { |
|---|
| 8921 | n/a | PyObject *_res = NULL; |
|---|
| 8922 | n/a | ComponentResult _rv; |
|---|
| 8923 | n/a | MediaHandler mh; |
|---|
| 8924 | n/a | TimeValue atMediaTime; |
|---|
| 8925 | n/a | long propertyType; |
|---|
| 8926 | n/a | void * data; |
|---|
| 8927 | n/a | long dataSize; |
|---|
| 8928 | n/a | #ifndef TextMediaSetTextProperty |
|---|
| 8929 | n/a | PyMac_PRECHECK(TextMediaSetTextProperty); |
|---|
| 8930 | n/a | #endif |
|---|
| 8931 | n/a | if (!PyArg_ParseTuple(_args, "O&llsl", |
|---|
| 8932 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8933 | n/a | &atMediaTime, |
|---|
| 8934 | n/a | &propertyType, |
|---|
| 8935 | n/a | &data, |
|---|
| 8936 | n/a | &dataSize)) |
|---|
| 8937 | n/a | return NULL; |
|---|
| 8938 | n/a | _rv = TextMediaSetTextProperty(mh, |
|---|
| 8939 | n/a | atMediaTime, |
|---|
| 8940 | n/a | propertyType, |
|---|
| 8941 | n/a | data, |
|---|
| 8942 | n/a | dataSize); |
|---|
| 8943 | n/a | _res = Py_BuildValue("l", |
|---|
| 8944 | n/a | _rv); |
|---|
| 8945 | n/a | return _res; |
|---|
| 8946 | n/a | } |
|---|
| 8947 | n/a | |
|---|
| 8948 | n/a | static PyObject *Qt_TextMediaRawSetup(PyObject *_self, PyObject *_args) |
|---|
| 8949 | n/a | { |
|---|
| 8950 | n/a | PyObject *_res = NULL; |
|---|
| 8951 | n/a | ComponentResult _rv; |
|---|
| 8952 | n/a | MediaHandler mh; |
|---|
| 8953 | n/a | GWorldPtr gw; |
|---|
| 8954 | n/a | GDHandle gd; |
|---|
| 8955 | n/a | void * data; |
|---|
| 8956 | n/a | long dataSize; |
|---|
| 8957 | n/a | TextDescriptionHandle tdh; |
|---|
| 8958 | n/a | TimeValue sampleDuration; |
|---|
| 8959 | n/a | #ifndef TextMediaRawSetup |
|---|
| 8960 | n/a | PyMac_PRECHECK(TextMediaRawSetup); |
|---|
| 8961 | n/a | #endif |
|---|
| 8962 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&slO&l", |
|---|
| 8963 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8964 | n/a | GWorldObj_Convert, &gw, |
|---|
| 8965 | n/a | OptResObj_Convert, &gd, |
|---|
| 8966 | n/a | &data, |
|---|
| 8967 | n/a | &dataSize, |
|---|
| 8968 | n/a | ResObj_Convert, &tdh, |
|---|
| 8969 | n/a | &sampleDuration)) |
|---|
| 8970 | n/a | return NULL; |
|---|
| 8971 | n/a | _rv = TextMediaRawSetup(mh, |
|---|
| 8972 | n/a | gw, |
|---|
| 8973 | n/a | gd, |
|---|
| 8974 | n/a | data, |
|---|
| 8975 | n/a | dataSize, |
|---|
| 8976 | n/a | tdh, |
|---|
| 8977 | n/a | sampleDuration); |
|---|
| 8978 | n/a | _res = Py_BuildValue("l", |
|---|
| 8979 | n/a | _rv); |
|---|
| 8980 | n/a | return _res; |
|---|
| 8981 | n/a | } |
|---|
| 8982 | n/a | |
|---|
| 8983 | n/a | static PyObject *Qt_TextMediaRawIdle(PyObject *_self, PyObject *_args) |
|---|
| 8984 | n/a | { |
|---|
| 8985 | n/a | PyObject *_res = NULL; |
|---|
| 8986 | n/a | ComponentResult _rv; |
|---|
| 8987 | n/a | MediaHandler mh; |
|---|
| 8988 | n/a | GWorldPtr gw; |
|---|
| 8989 | n/a | GDHandle gd; |
|---|
| 8990 | n/a | TimeValue sampleTime; |
|---|
| 8991 | n/a | long flagsIn; |
|---|
| 8992 | n/a | long flagsOut; |
|---|
| 8993 | n/a | #ifndef TextMediaRawIdle |
|---|
| 8994 | n/a | PyMac_PRECHECK(TextMediaRawIdle); |
|---|
| 8995 | n/a | #endif |
|---|
| 8996 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&ll", |
|---|
| 8997 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 8998 | n/a | GWorldObj_Convert, &gw, |
|---|
| 8999 | n/a | OptResObj_Convert, &gd, |
|---|
| 9000 | n/a | &sampleTime, |
|---|
| 9001 | n/a | &flagsIn)) |
|---|
| 9002 | n/a | return NULL; |
|---|
| 9003 | n/a | _rv = TextMediaRawIdle(mh, |
|---|
| 9004 | n/a | gw, |
|---|
| 9005 | n/a | gd, |
|---|
| 9006 | n/a | sampleTime, |
|---|
| 9007 | n/a | flagsIn, |
|---|
| 9008 | n/a | &flagsOut); |
|---|
| 9009 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9010 | n/a | _rv, |
|---|
| 9011 | n/a | flagsOut); |
|---|
| 9012 | n/a | return _res; |
|---|
| 9013 | n/a | } |
|---|
| 9014 | n/a | |
|---|
| 9015 | n/a | static PyObject *Qt_TextMediaGetTextProperty(PyObject *_self, PyObject *_args) |
|---|
| 9016 | n/a | { |
|---|
| 9017 | n/a | PyObject *_res = NULL; |
|---|
| 9018 | n/a | ComponentResult _rv; |
|---|
| 9019 | n/a | MediaHandler mh; |
|---|
| 9020 | n/a | TimeValue atMediaTime; |
|---|
| 9021 | n/a | long propertyType; |
|---|
| 9022 | n/a | void * data; |
|---|
| 9023 | n/a | long dataSize; |
|---|
| 9024 | n/a | #ifndef TextMediaGetTextProperty |
|---|
| 9025 | n/a | PyMac_PRECHECK(TextMediaGetTextProperty); |
|---|
| 9026 | n/a | #endif |
|---|
| 9027 | n/a | if (!PyArg_ParseTuple(_args, "O&llsl", |
|---|
| 9028 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9029 | n/a | &atMediaTime, |
|---|
| 9030 | n/a | &propertyType, |
|---|
| 9031 | n/a | &data, |
|---|
| 9032 | n/a | &dataSize)) |
|---|
| 9033 | n/a | return NULL; |
|---|
| 9034 | n/a | _rv = TextMediaGetTextProperty(mh, |
|---|
| 9035 | n/a | atMediaTime, |
|---|
| 9036 | n/a | propertyType, |
|---|
| 9037 | n/a | data, |
|---|
| 9038 | n/a | dataSize); |
|---|
| 9039 | n/a | _res = Py_BuildValue("l", |
|---|
| 9040 | n/a | _rv); |
|---|
| 9041 | n/a | return _res; |
|---|
| 9042 | n/a | } |
|---|
| 9043 | n/a | |
|---|
| 9044 | n/a | static PyObject *Qt_TextMediaFindNextText(PyObject *_self, PyObject *_args) |
|---|
| 9045 | n/a | { |
|---|
| 9046 | n/a | PyObject *_res = NULL; |
|---|
| 9047 | n/a | ComponentResult _rv; |
|---|
| 9048 | n/a | MediaHandler mh; |
|---|
| 9049 | n/a | Ptr text; |
|---|
| 9050 | n/a | long size; |
|---|
| 9051 | n/a | short findFlags; |
|---|
| 9052 | n/a | TimeValue startTime; |
|---|
| 9053 | n/a | TimeValue foundTime; |
|---|
| 9054 | n/a | TimeValue foundDuration; |
|---|
| 9055 | n/a | long offset; |
|---|
| 9056 | n/a | #ifndef TextMediaFindNextText |
|---|
| 9057 | n/a | PyMac_PRECHECK(TextMediaFindNextText); |
|---|
| 9058 | n/a | #endif |
|---|
| 9059 | n/a | if (!PyArg_ParseTuple(_args, "O&slhl", |
|---|
| 9060 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9061 | n/a | &text, |
|---|
| 9062 | n/a | &size, |
|---|
| 9063 | n/a | &findFlags, |
|---|
| 9064 | n/a | &startTime)) |
|---|
| 9065 | n/a | return NULL; |
|---|
| 9066 | n/a | _rv = TextMediaFindNextText(mh, |
|---|
| 9067 | n/a | text, |
|---|
| 9068 | n/a | size, |
|---|
| 9069 | n/a | findFlags, |
|---|
| 9070 | n/a | startTime, |
|---|
| 9071 | n/a | &foundTime, |
|---|
| 9072 | n/a | &foundDuration, |
|---|
| 9073 | n/a | &offset); |
|---|
| 9074 | n/a | _res = Py_BuildValue("llll", |
|---|
| 9075 | n/a | _rv, |
|---|
| 9076 | n/a | foundTime, |
|---|
| 9077 | n/a | foundDuration, |
|---|
| 9078 | n/a | offset); |
|---|
| 9079 | n/a | return _res; |
|---|
| 9080 | n/a | } |
|---|
| 9081 | n/a | |
|---|
| 9082 | n/a | static PyObject *Qt_TextMediaHiliteTextSample(PyObject *_self, PyObject *_args) |
|---|
| 9083 | n/a | { |
|---|
| 9084 | n/a | PyObject *_res = NULL; |
|---|
| 9085 | n/a | ComponentResult _rv; |
|---|
| 9086 | n/a | MediaHandler mh; |
|---|
| 9087 | n/a | TimeValue sampleTime; |
|---|
| 9088 | n/a | short hiliteStart; |
|---|
| 9089 | n/a | short hiliteEnd; |
|---|
| 9090 | n/a | RGBColor rgbHiliteColor; |
|---|
| 9091 | n/a | #ifndef TextMediaHiliteTextSample |
|---|
| 9092 | n/a | PyMac_PRECHECK(TextMediaHiliteTextSample); |
|---|
| 9093 | n/a | #endif |
|---|
| 9094 | n/a | if (!PyArg_ParseTuple(_args, "O&lhh", |
|---|
| 9095 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9096 | n/a | &sampleTime, |
|---|
| 9097 | n/a | &hiliteStart, |
|---|
| 9098 | n/a | &hiliteEnd)) |
|---|
| 9099 | n/a | return NULL; |
|---|
| 9100 | n/a | _rv = TextMediaHiliteTextSample(mh, |
|---|
| 9101 | n/a | sampleTime, |
|---|
| 9102 | n/a | hiliteStart, |
|---|
| 9103 | n/a | hiliteEnd, |
|---|
| 9104 | n/a | &rgbHiliteColor); |
|---|
| 9105 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 9106 | n/a | _rv, |
|---|
| 9107 | n/a | QdRGB_New, &rgbHiliteColor); |
|---|
| 9108 | n/a | return _res; |
|---|
| 9109 | n/a | } |
|---|
| 9110 | n/a | |
|---|
| 9111 | n/a | static PyObject *Qt_TextMediaSetTextSampleData(PyObject *_self, PyObject *_args) |
|---|
| 9112 | n/a | { |
|---|
| 9113 | n/a | PyObject *_res = NULL; |
|---|
| 9114 | n/a | ComponentResult _rv; |
|---|
| 9115 | n/a | MediaHandler mh; |
|---|
| 9116 | n/a | void * data; |
|---|
| 9117 | n/a | OSType dataType; |
|---|
| 9118 | n/a | #ifndef TextMediaSetTextSampleData |
|---|
| 9119 | n/a | PyMac_PRECHECK(TextMediaSetTextSampleData); |
|---|
| 9120 | n/a | #endif |
|---|
| 9121 | n/a | if (!PyArg_ParseTuple(_args, "O&sO&", |
|---|
| 9122 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9123 | n/a | &data, |
|---|
| 9124 | n/a | PyMac_GetOSType, &dataType)) |
|---|
| 9125 | n/a | return NULL; |
|---|
| 9126 | n/a | _rv = TextMediaSetTextSampleData(mh, |
|---|
| 9127 | n/a | data, |
|---|
| 9128 | n/a | dataType); |
|---|
| 9129 | n/a | _res = Py_BuildValue("l", |
|---|
| 9130 | n/a | _rv); |
|---|
| 9131 | n/a | return _res; |
|---|
| 9132 | n/a | } |
|---|
| 9133 | n/a | |
|---|
| 9134 | n/a | static PyObject *Qt_SpriteMediaSetProperty(PyObject *_self, PyObject *_args) |
|---|
| 9135 | n/a | { |
|---|
| 9136 | n/a | PyObject *_res = NULL; |
|---|
| 9137 | n/a | ComponentResult _rv; |
|---|
| 9138 | n/a | MediaHandler mh; |
|---|
| 9139 | n/a | short spriteIndex; |
|---|
| 9140 | n/a | long propertyType; |
|---|
| 9141 | n/a | void * propertyValue; |
|---|
| 9142 | n/a | #ifndef SpriteMediaSetProperty |
|---|
| 9143 | n/a | PyMac_PRECHECK(SpriteMediaSetProperty); |
|---|
| 9144 | n/a | #endif |
|---|
| 9145 | n/a | if (!PyArg_ParseTuple(_args, "O&hls", |
|---|
| 9146 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9147 | n/a | &spriteIndex, |
|---|
| 9148 | n/a | &propertyType, |
|---|
| 9149 | n/a | &propertyValue)) |
|---|
| 9150 | n/a | return NULL; |
|---|
| 9151 | n/a | _rv = SpriteMediaSetProperty(mh, |
|---|
| 9152 | n/a | spriteIndex, |
|---|
| 9153 | n/a | propertyType, |
|---|
| 9154 | n/a | propertyValue); |
|---|
| 9155 | n/a | _res = Py_BuildValue("l", |
|---|
| 9156 | n/a | _rv); |
|---|
| 9157 | n/a | return _res; |
|---|
| 9158 | n/a | } |
|---|
| 9159 | n/a | |
|---|
| 9160 | n/a | static PyObject *Qt_SpriteMediaGetProperty(PyObject *_self, PyObject *_args) |
|---|
| 9161 | n/a | { |
|---|
| 9162 | n/a | PyObject *_res = NULL; |
|---|
| 9163 | n/a | ComponentResult _rv; |
|---|
| 9164 | n/a | MediaHandler mh; |
|---|
| 9165 | n/a | short spriteIndex; |
|---|
| 9166 | n/a | long propertyType; |
|---|
| 9167 | n/a | void * propertyValue; |
|---|
| 9168 | n/a | #ifndef SpriteMediaGetProperty |
|---|
| 9169 | n/a | PyMac_PRECHECK(SpriteMediaGetProperty); |
|---|
| 9170 | n/a | #endif |
|---|
| 9171 | n/a | if (!PyArg_ParseTuple(_args, "O&hls", |
|---|
| 9172 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9173 | n/a | &spriteIndex, |
|---|
| 9174 | n/a | &propertyType, |
|---|
| 9175 | n/a | &propertyValue)) |
|---|
| 9176 | n/a | return NULL; |
|---|
| 9177 | n/a | _rv = SpriteMediaGetProperty(mh, |
|---|
| 9178 | n/a | spriteIndex, |
|---|
| 9179 | n/a | propertyType, |
|---|
| 9180 | n/a | propertyValue); |
|---|
| 9181 | n/a | _res = Py_BuildValue("l", |
|---|
| 9182 | n/a | _rv); |
|---|
| 9183 | n/a | return _res; |
|---|
| 9184 | n/a | } |
|---|
| 9185 | n/a | |
|---|
| 9186 | n/a | static PyObject *Qt_SpriteMediaHitTestSprites(PyObject *_self, PyObject *_args) |
|---|
| 9187 | n/a | { |
|---|
| 9188 | n/a | PyObject *_res = NULL; |
|---|
| 9189 | n/a | ComponentResult _rv; |
|---|
| 9190 | n/a | MediaHandler mh; |
|---|
| 9191 | n/a | long flags; |
|---|
| 9192 | n/a | Point loc; |
|---|
| 9193 | n/a | short spriteHitIndex; |
|---|
| 9194 | n/a | #ifndef SpriteMediaHitTestSprites |
|---|
| 9195 | n/a | PyMac_PRECHECK(SpriteMediaHitTestSprites); |
|---|
| 9196 | n/a | #endif |
|---|
| 9197 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 9198 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9199 | n/a | &flags, |
|---|
| 9200 | n/a | PyMac_GetPoint, &loc)) |
|---|
| 9201 | n/a | return NULL; |
|---|
| 9202 | n/a | _rv = SpriteMediaHitTestSprites(mh, |
|---|
| 9203 | n/a | flags, |
|---|
| 9204 | n/a | loc, |
|---|
| 9205 | n/a | &spriteHitIndex); |
|---|
| 9206 | n/a | _res = Py_BuildValue("lh", |
|---|
| 9207 | n/a | _rv, |
|---|
| 9208 | n/a | spriteHitIndex); |
|---|
| 9209 | n/a | return _res; |
|---|
| 9210 | n/a | } |
|---|
| 9211 | n/a | |
|---|
| 9212 | n/a | static PyObject *Qt_SpriteMediaCountSprites(PyObject *_self, PyObject *_args) |
|---|
| 9213 | n/a | { |
|---|
| 9214 | n/a | PyObject *_res = NULL; |
|---|
| 9215 | n/a | ComponentResult _rv; |
|---|
| 9216 | n/a | MediaHandler mh; |
|---|
| 9217 | n/a | short numSprites; |
|---|
| 9218 | n/a | #ifndef SpriteMediaCountSprites |
|---|
| 9219 | n/a | PyMac_PRECHECK(SpriteMediaCountSprites); |
|---|
| 9220 | n/a | #endif |
|---|
| 9221 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 9222 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 9223 | n/a | return NULL; |
|---|
| 9224 | n/a | _rv = SpriteMediaCountSprites(mh, |
|---|
| 9225 | n/a | &numSprites); |
|---|
| 9226 | n/a | _res = Py_BuildValue("lh", |
|---|
| 9227 | n/a | _rv, |
|---|
| 9228 | n/a | numSprites); |
|---|
| 9229 | n/a | return _res; |
|---|
| 9230 | n/a | } |
|---|
| 9231 | n/a | |
|---|
| 9232 | n/a | static PyObject *Qt_SpriteMediaCountImages(PyObject *_self, PyObject *_args) |
|---|
| 9233 | n/a | { |
|---|
| 9234 | n/a | PyObject *_res = NULL; |
|---|
| 9235 | n/a | ComponentResult _rv; |
|---|
| 9236 | n/a | MediaHandler mh; |
|---|
| 9237 | n/a | short numImages; |
|---|
| 9238 | n/a | #ifndef SpriteMediaCountImages |
|---|
| 9239 | n/a | PyMac_PRECHECK(SpriteMediaCountImages); |
|---|
| 9240 | n/a | #endif |
|---|
| 9241 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 9242 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 9243 | n/a | return NULL; |
|---|
| 9244 | n/a | _rv = SpriteMediaCountImages(mh, |
|---|
| 9245 | n/a | &numImages); |
|---|
| 9246 | n/a | _res = Py_BuildValue("lh", |
|---|
| 9247 | n/a | _rv, |
|---|
| 9248 | n/a | numImages); |
|---|
| 9249 | n/a | return _res; |
|---|
| 9250 | n/a | } |
|---|
| 9251 | n/a | |
|---|
| 9252 | n/a | static PyObject *Qt_SpriteMediaGetIndImageDescription(PyObject *_self, PyObject *_args) |
|---|
| 9253 | n/a | { |
|---|
| 9254 | n/a | PyObject *_res = NULL; |
|---|
| 9255 | n/a | ComponentResult _rv; |
|---|
| 9256 | n/a | MediaHandler mh; |
|---|
| 9257 | n/a | short imageIndex; |
|---|
| 9258 | n/a | ImageDescriptionHandle imageDescription; |
|---|
| 9259 | n/a | #ifndef SpriteMediaGetIndImageDescription |
|---|
| 9260 | n/a | PyMac_PRECHECK(SpriteMediaGetIndImageDescription); |
|---|
| 9261 | n/a | #endif |
|---|
| 9262 | n/a | if (!PyArg_ParseTuple(_args, "O&hO&", |
|---|
| 9263 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9264 | n/a | &imageIndex, |
|---|
| 9265 | n/a | ResObj_Convert, &imageDescription)) |
|---|
| 9266 | n/a | return NULL; |
|---|
| 9267 | n/a | _rv = SpriteMediaGetIndImageDescription(mh, |
|---|
| 9268 | n/a | imageIndex, |
|---|
| 9269 | n/a | imageDescription); |
|---|
| 9270 | n/a | _res = Py_BuildValue("l", |
|---|
| 9271 | n/a | _rv); |
|---|
| 9272 | n/a | return _res; |
|---|
| 9273 | n/a | } |
|---|
| 9274 | n/a | |
|---|
| 9275 | n/a | static PyObject *Qt_SpriteMediaGetDisplayedSampleNumber(PyObject *_self, PyObject *_args) |
|---|
| 9276 | n/a | { |
|---|
| 9277 | n/a | PyObject *_res = NULL; |
|---|
| 9278 | n/a | ComponentResult _rv; |
|---|
| 9279 | n/a | MediaHandler mh; |
|---|
| 9280 | n/a | long sampleNum; |
|---|
| 9281 | n/a | #ifndef SpriteMediaGetDisplayedSampleNumber |
|---|
| 9282 | n/a | PyMac_PRECHECK(SpriteMediaGetDisplayedSampleNumber); |
|---|
| 9283 | n/a | #endif |
|---|
| 9284 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 9285 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 9286 | n/a | return NULL; |
|---|
| 9287 | n/a | _rv = SpriteMediaGetDisplayedSampleNumber(mh, |
|---|
| 9288 | n/a | &sampleNum); |
|---|
| 9289 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9290 | n/a | _rv, |
|---|
| 9291 | n/a | sampleNum); |
|---|
| 9292 | n/a | return _res; |
|---|
| 9293 | n/a | } |
|---|
| 9294 | n/a | |
|---|
| 9295 | n/a | static PyObject *Qt_SpriteMediaGetSpriteName(PyObject *_self, PyObject *_args) |
|---|
| 9296 | n/a | { |
|---|
| 9297 | n/a | PyObject *_res = NULL; |
|---|
| 9298 | n/a | ComponentResult _rv; |
|---|
| 9299 | n/a | MediaHandler mh; |
|---|
| 9300 | n/a | QTAtomID spriteID; |
|---|
| 9301 | n/a | Str255 spriteName; |
|---|
| 9302 | n/a | #ifndef SpriteMediaGetSpriteName |
|---|
| 9303 | n/a | PyMac_PRECHECK(SpriteMediaGetSpriteName); |
|---|
| 9304 | n/a | #endif |
|---|
| 9305 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 9306 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9307 | n/a | &spriteID, |
|---|
| 9308 | n/a | PyMac_GetStr255, spriteName)) |
|---|
| 9309 | n/a | return NULL; |
|---|
| 9310 | n/a | _rv = SpriteMediaGetSpriteName(mh, |
|---|
| 9311 | n/a | spriteID, |
|---|
| 9312 | n/a | spriteName); |
|---|
| 9313 | n/a | _res = Py_BuildValue("l", |
|---|
| 9314 | n/a | _rv); |
|---|
| 9315 | n/a | return _res; |
|---|
| 9316 | n/a | } |
|---|
| 9317 | n/a | |
|---|
| 9318 | n/a | static PyObject *Qt_SpriteMediaGetImageName(PyObject *_self, PyObject *_args) |
|---|
| 9319 | n/a | { |
|---|
| 9320 | n/a | PyObject *_res = NULL; |
|---|
| 9321 | n/a | ComponentResult _rv; |
|---|
| 9322 | n/a | MediaHandler mh; |
|---|
| 9323 | n/a | short imageIndex; |
|---|
| 9324 | n/a | Str255 imageName; |
|---|
| 9325 | n/a | #ifndef SpriteMediaGetImageName |
|---|
| 9326 | n/a | PyMac_PRECHECK(SpriteMediaGetImageName); |
|---|
| 9327 | n/a | #endif |
|---|
| 9328 | n/a | if (!PyArg_ParseTuple(_args, "O&hO&", |
|---|
| 9329 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9330 | n/a | &imageIndex, |
|---|
| 9331 | n/a | PyMac_GetStr255, imageName)) |
|---|
| 9332 | n/a | return NULL; |
|---|
| 9333 | n/a | _rv = SpriteMediaGetImageName(mh, |
|---|
| 9334 | n/a | imageIndex, |
|---|
| 9335 | n/a | imageName); |
|---|
| 9336 | n/a | _res = Py_BuildValue("l", |
|---|
| 9337 | n/a | _rv); |
|---|
| 9338 | n/a | return _res; |
|---|
| 9339 | n/a | } |
|---|
| 9340 | n/a | |
|---|
| 9341 | n/a | static PyObject *Qt_SpriteMediaSetSpriteProperty(PyObject *_self, PyObject *_args) |
|---|
| 9342 | n/a | { |
|---|
| 9343 | n/a | PyObject *_res = NULL; |
|---|
| 9344 | n/a | ComponentResult _rv; |
|---|
| 9345 | n/a | MediaHandler mh; |
|---|
| 9346 | n/a | QTAtomID spriteID; |
|---|
| 9347 | n/a | long propertyType; |
|---|
| 9348 | n/a | void * propertyValue; |
|---|
| 9349 | n/a | #ifndef SpriteMediaSetSpriteProperty |
|---|
| 9350 | n/a | PyMac_PRECHECK(SpriteMediaSetSpriteProperty); |
|---|
| 9351 | n/a | #endif |
|---|
| 9352 | n/a | if (!PyArg_ParseTuple(_args, "O&lls", |
|---|
| 9353 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9354 | n/a | &spriteID, |
|---|
| 9355 | n/a | &propertyType, |
|---|
| 9356 | n/a | &propertyValue)) |
|---|
| 9357 | n/a | return NULL; |
|---|
| 9358 | n/a | _rv = SpriteMediaSetSpriteProperty(mh, |
|---|
| 9359 | n/a | spriteID, |
|---|
| 9360 | n/a | propertyType, |
|---|
| 9361 | n/a | propertyValue); |
|---|
| 9362 | n/a | _res = Py_BuildValue("l", |
|---|
| 9363 | n/a | _rv); |
|---|
| 9364 | n/a | return _res; |
|---|
| 9365 | n/a | } |
|---|
| 9366 | n/a | |
|---|
| 9367 | n/a | static PyObject *Qt_SpriteMediaGetSpriteProperty(PyObject *_self, PyObject *_args) |
|---|
| 9368 | n/a | { |
|---|
| 9369 | n/a | PyObject *_res = NULL; |
|---|
| 9370 | n/a | ComponentResult _rv; |
|---|
| 9371 | n/a | MediaHandler mh; |
|---|
| 9372 | n/a | QTAtomID spriteID; |
|---|
| 9373 | n/a | long propertyType; |
|---|
| 9374 | n/a | void * propertyValue; |
|---|
| 9375 | n/a | #ifndef SpriteMediaGetSpriteProperty |
|---|
| 9376 | n/a | PyMac_PRECHECK(SpriteMediaGetSpriteProperty); |
|---|
| 9377 | n/a | #endif |
|---|
| 9378 | n/a | if (!PyArg_ParseTuple(_args, "O&lls", |
|---|
| 9379 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9380 | n/a | &spriteID, |
|---|
| 9381 | n/a | &propertyType, |
|---|
| 9382 | n/a | &propertyValue)) |
|---|
| 9383 | n/a | return NULL; |
|---|
| 9384 | n/a | _rv = SpriteMediaGetSpriteProperty(mh, |
|---|
| 9385 | n/a | spriteID, |
|---|
| 9386 | n/a | propertyType, |
|---|
| 9387 | n/a | propertyValue); |
|---|
| 9388 | n/a | _res = Py_BuildValue("l", |
|---|
| 9389 | n/a | _rv); |
|---|
| 9390 | n/a | return _res; |
|---|
| 9391 | n/a | } |
|---|
| 9392 | n/a | |
|---|
| 9393 | n/a | static PyObject *Qt_SpriteMediaHitTestAllSprites(PyObject *_self, PyObject *_args) |
|---|
| 9394 | n/a | { |
|---|
| 9395 | n/a | PyObject *_res = NULL; |
|---|
| 9396 | n/a | ComponentResult _rv; |
|---|
| 9397 | n/a | MediaHandler mh; |
|---|
| 9398 | n/a | long flags; |
|---|
| 9399 | n/a | Point loc; |
|---|
| 9400 | n/a | QTAtomID spriteHitID; |
|---|
| 9401 | n/a | #ifndef SpriteMediaHitTestAllSprites |
|---|
| 9402 | n/a | PyMac_PRECHECK(SpriteMediaHitTestAllSprites); |
|---|
| 9403 | n/a | #endif |
|---|
| 9404 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 9405 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9406 | n/a | &flags, |
|---|
| 9407 | n/a | PyMac_GetPoint, &loc)) |
|---|
| 9408 | n/a | return NULL; |
|---|
| 9409 | n/a | _rv = SpriteMediaHitTestAllSprites(mh, |
|---|
| 9410 | n/a | flags, |
|---|
| 9411 | n/a | loc, |
|---|
| 9412 | n/a | &spriteHitID); |
|---|
| 9413 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9414 | n/a | _rv, |
|---|
| 9415 | n/a | spriteHitID); |
|---|
| 9416 | n/a | return _res; |
|---|
| 9417 | n/a | } |
|---|
| 9418 | n/a | |
|---|
| 9419 | n/a | static PyObject *Qt_SpriteMediaHitTestOneSprite(PyObject *_self, PyObject *_args) |
|---|
| 9420 | n/a | { |
|---|
| 9421 | n/a | PyObject *_res = NULL; |
|---|
| 9422 | n/a | ComponentResult _rv; |
|---|
| 9423 | n/a | MediaHandler mh; |
|---|
| 9424 | n/a | QTAtomID spriteID; |
|---|
| 9425 | n/a | long flags; |
|---|
| 9426 | n/a | Point loc; |
|---|
| 9427 | n/a | Boolean wasHit; |
|---|
| 9428 | n/a | #ifndef SpriteMediaHitTestOneSprite |
|---|
| 9429 | n/a | PyMac_PRECHECK(SpriteMediaHitTestOneSprite); |
|---|
| 9430 | n/a | #endif |
|---|
| 9431 | n/a | if (!PyArg_ParseTuple(_args, "O&llO&", |
|---|
| 9432 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9433 | n/a | &spriteID, |
|---|
| 9434 | n/a | &flags, |
|---|
| 9435 | n/a | PyMac_GetPoint, &loc)) |
|---|
| 9436 | n/a | return NULL; |
|---|
| 9437 | n/a | _rv = SpriteMediaHitTestOneSprite(mh, |
|---|
| 9438 | n/a | spriteID, |
|---|
| 9439 | n/a | flags, |
|---|
| 9440 | n/a | loc, |
|---|
| 9441 | n/a | &wasHit); |
|---|
| 9442 | n/a | _res = Py_BuildValue("lb", |
|---|
| 9443 | n/a | _rv, |
|---|
| 9444 | n/a | wasHit); |
|---|
| 9445 | n/a | return _res; |
|---|
| 9446 | n/a | } |
|---|
| 9447 | n/a | |
|---|
| 9448 | n/a | static PyObject *Qt_SpriteMediaSpriteIndexToID(PyObject *_self, PyObject *_args) |
|---|
| 9449 | n/a | { |
|---|
| 9450 | n/a | PyObject *_res = NULL; |
|---|
| 9451 | n/a | ComponentResult _rv; |
|---|
| 9452 | n/a | MediaHandler mh; |
|---|
| 9453 | n/a | short spriteIndex; |
|---|
| 9454 | n/a | QTAtomID spriteID; |
|---|
| 9455 | n/a | #ifndef SpriteMediaSpriteIndexToID |
|---|
| 9456 | n/a | PyMac_PRECHECK(SpriteMediaSpriteIndexToID); |
|---|
| 9457 | n/a | #endif |
|---|
| 9458 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 9459 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9460 | n/a | &spriteIndex)) |
|---|
| 9461 | n/a | return NULL; |
|---|
| 9462 | n/a | _rv = SpriteMediaSpriteIndexToID(mh, |
|---|
| 9463 | n/a | spriteIndex, |
|---|
| 9464 | n/a | &spriteID); |
|---|
| 9465 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9466 | n/a | _rv, |
|---|
| 9467 | n/a | spriteID); |
|---|
| 9468 | n/a | return _res; |
|---|
| 9469 | n/a | } |
|---|
| 9470 | n/a | |
|---|
| 9471 | n/a | static PyObject *Qt_SpriteMediaSpriteIDToIndex(PyObject *_self, PyObject *_args) |
|---|
| 9472 | n/a | { |
|---|
| 9473 | n/a | PyObject *_res = NULL; |
|---|
| 9474 | n/a | ComponentResult _rv; |
|---|
| 9475 | n/a | MediaHandler mh; |
|---|
| 9476 | n/a | QTAtomID spriteID; |
|---|
| 9477 | n/a | short spriteIndex; |
|---|
| 9478 | n/a | #ifndef SpriteMediaSpriteIDToIndex |
|---|
| 9479 | n/a | PyMac_PRECHECK(SpriteMediaSpriteIDToIndex); |
|---|
| 9480 | n/a | #endif |
|---|
| 9481 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9482 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9483 | n/a | &spriteID)) |
|---|
| 9484 | n/a | return NULL; |
|---|
| 9485 | n/a | _rv = SpriteMediaSpriteIDToIndex(mh, |
|---|
| 9486 | n/a | spriteID, |
|---|
| 9487 | n/a | &spriteIndex); |
|---|
| 9488 | n/a | _res = Py_BuildValue("lh", |
|---|
| 9489 | n/a | _rv, |
|---|
| 9490 | n/a | spriteIndex); |
|---|
| 9491 | n/a | return _res; |
|---|
| 9492 | n/a | } |
|---|
| 9493 | n/a | |
|---|
| 9494 | n/a | static PyObject *Qt_SpriteMediaSetActionVariable(PyObject *_self, PyObject *_args) |
|---|
| 9495 | n/a | { |
|---|
| 9496 | n/a | PyObject *_res = NULL; |
|---|
| 9497 | n/a | ComponentResult _rv; |
|---|
| 9498 | n/a | MediaHandler mh; |
|---|
| 9499 | n/a | QTAtomID variableID; |
|---|
| 9500 | n/a | float value; |
|---|
| 9501 | n/a | #ifndef SpriteMediaSetActionVariable |
|---|
| 9502 | n/a | PyMac_PRECHECK(SpriteMediaSetActionVariable); |
|---|
| 9503 | n/a | #endif |
|---|
| 9504 | n/a | if (!PyArg_ParseTuple(_args, "O&lf", |
|---|
| 9505 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9506 | n/a | &variableID, |
|---|
| 9507 | n/a | &value)) |
|---|
| 9508 | n/a | return NULL; |
|---|
| 9509 | n/a | _rv = SpriteMediaSetActionVariable(mh, |
|---|
| 9510 | n/a | variableID, |
|---|
| 9511 | n/a | &value); |
|---|
| 9512 | n/a | _res = Py_BuildValue("l", |
|---|
| 9513 | n/a | _rv); |
|---|
| 9514 | n/a | return _res; |
|---|
| 9515 | n/a | } |
|---|
| 9516 | n/a | |
|---|
| 9517 | n/a | static PyObject *Qt_SpriteMediaGetActionVariable(PyObject *_self, PyObject *_args) |
|---|
| 9518 | n/a | { |
|---|
| 9519 | n/a | PyObject *_res = NULL; |
|---|
| 9520 | n/a | ComponentResult _rv; |
|---|
| 9521 | n/a | MediaHandler mh; |
|---|
| 9522 | n/a | QTAtomID variableID; |
|---|
| 9523 | n/a | float value; |
|---|
| 9524 | n/a | #ifndef SpriteMediaGetActionVariable |
|---|
| 9525 | n/a | PyMac_PRECHECK(SpriteMediaGetActionVariable); |
|---|
| 9526 | n/a | #endif |
|---|
| 9527 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9528 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9529 | n/a | &variableID)) |
|---|
| 9530 | n/a | return NULL; |
|---|
| 9531 | n/a | _rv = SpriteMediaGetActionVariable(mh, |
|---|
| 9532 | n/a | variableID, |
|---|
| 9533 | n/a | &value); |
|---|
| 9534 | n/a | _res = Py_BuildValue("lf", |
|---|
| 9535 | n/a | _rv, |
|---|
| 9536 | n/a | value); |
|---|
| 9537 | n/a | return _res; |
|---|
| 9538 | n/a | } |
|---|
| 9539 | n/a | |
|---|
| 9540 | n/a | static PyObject *Qt_SpriteMediaDisposeSprite(PyObject *_self, PyObject *_args) |
|---|
| 9541 | n/a | { |
|---|
| 9542 | n/a | PyObject *_res = NULL; |
|---|
| 9543 | n/a | ComponentResult _rv; |
|---|
| 9544 | n/a | MediaHandler mh; |
|---|
| 9545 | n/a | QTAtomID spriteID; |
|---|
| 9546 | n/a | #ifndef SpriteMediaDisposeSprite |
|---|
| 9547 | n/a | PyMac_PRECHECK(SpriteMediaDisposeSprite); |
|---|
| 9548 | n/a | #endif |
|---|
| 9549 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9550 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9551 | n/a | &spriteID)) |
|---|
| 9552 | n/a | return NULL; |
|---|
| 9553 | n/a | _rv = SpriteMediaDisposeSprite(mh, |
|---|
| 9554 | n/a | spriteID); |
|---|
| 9555 | n/a | _res = Py_BuildValue("l", |
|---|
| 9556 | n/a | _rv); |
|---|
| 9557 | n/a | return _res; |
|---|
| 9558 | n/a | } |
|---|
| 9559 | n/a | |
|---|
| 9560 | n/a | static PyObject *Qt_SpriteMediaSetActionVariableToString(PyObject *_self, PyObject *_args) |
|---|
| 9561 | n/a | { |
|---|
| 9562 | n/a | PyObject *_res = NULL; |
|---|
| 9563 | n/a | ComponentResult _rv; |
|---|
| 9564 | n/a | MediaHandler mh; |
|---|
| 9565 | n/a | QTAtomID variableID; |
|---|
| 9566 | n/a | Ptr theCString; |
|---|
| 9567 | n/a | #ifndef SpriteMediaSetActionVariableToString |
|---|
| 9568 | n/a | PyMac_PRECHECK(SpriteMediaSetActionVariableToString); |
|---|
| 9569 | n/a | #endif |
|---|
| 9570 | n/a | if (!PyArg_ParseTuple(_args, "O&ls", |
|---|
| 9571 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9572 | n/a | &variableID, |
|---|
| 9573 | n/a | &theCString)) |
|---|
| 9574 | n/a | return NULL; |
|---|
| 9575 | n/a | _rv = SpriteMediaSetActionVariableToString(mh, |
|---|
| 9576 | n/a | variableID, |
|---|
| 9577 | n/a | theCString); |
|---|
| 9578 | n/a | _res = Py_BuildValue("l", |
|---|
| 9579 | n/a | _rv); |
|---|
| 9580 | n/a | return _res; |
|---|
| 9581 | n/a | } |
|---|
| 9582 | n/a | |
|---|
| 9583 | n/a | static PyObject *Qt_SpriteMediaGetActionVariableAsString(PyObject *_self, PyObject *_args) |
|---|
| 9584 | n/a | { |
|---|
| 9585 | n/a | PyObject *_res = NULL; |
|---|
| 9586 | n/a | ComponentResult _rv; |
|---|
| 9587 | n/a | MediaHandler mh; |
|---|
| 9588 | n/a | QTAtomID variableID; |
|---|
| 9589 | n/a | Handle theCString; |
|---|
| 9590 | n/a | #ifndef SpriteMediaGetActionVariableAsString |
|---|
| 9591 | n/a | PyMac_PRECHECK(SpriteMediaGetActionVariableAsString); |
|---|
| 9592 | n/a | #endif |
|---|
| 9593 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9594 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9595 | n/a | &variableID)) |
|---|
| 9596 | n/a | return NULL; |
|---|
| 9597 | n/a | _rv = SpriteMediaGetActionVariableAsString(mh, |
|---|
| 9598 | n/a | variableID, |
|---|
| 9599 | n/a | &theCString); |
|---|
| 9600 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 9601 | n/a | _rv, |
|---|
| 9602 | n/a | ResObj_New, theCString); |
|---|
| 9603 | n/a | return _res; |
|---|
| 9604 | n/a | } |
|---|
| 9605 | n/a | |
|---|
| 9606 | n/a | static PyObject *Qt_SpriteMediaNewImage(PyObject *_self, PyObject *_args) |
|---|
| 9607 | n/a | { |
|---|
| 9608 | n/a | PyObject *_res = NULL; |
|---|
| 9609 | n/a | ComponentResult _rv; |
|---|
| 9610 | n/a | MediaHandler mh; |
|---|
| 9611 | n/a | Handle dataRef; |
|---|
| 9612 | n/a | OSType dataRefType; |
|---|
| 9613 | n/a | QTAtomID desiredID; |
|---|
| 9614 | n/a | #ifndef SpriteMediaNewImage |
|---|
| 9615 | n/a | PyMac_PRECHECK(SpriteMediaNewImage); |
|---|
| 9616 | n/a | #endif |
|---|
| 9617 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&l", |
|---|
| 9618 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9619 | n/a | ResObj_Convert, &dataRef, |
|---|
| 9620 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 9621 | n/a | &desiredID)) |
|---|
| 9622 | n/a | return NULL; |
|---|
| 9623 | n/a | _rv = SpriteMediaNewImage(mh, |
|---|
| 9624 | n/a | dataRef, |
|---|
| 9625 | n/a | dataRefType, |
|---|
| 9626 | n/a | desiredID); |
|---|
| 9627 | n/a | _res = Py_BuildValue("l", |
|---|
| 9628 | n/a | _rv); |
|---|
| 9629 | n/a | return _res; |
|---|
| 9630 | n/a | } |
|---|
| 9631 | n/a | |
|---|
| 9632 | n/a | static PyObject *Qt_SpriteMediaDisposeImage(PyObject *_self, PyObject *_args) |
|---|
| 9633 | n/a | { |
|---|
| 9634 | n/a | PyObject *_res = NULL; |
|---|
| 9635 | n/a | ComponentResult _rv; |
|---|
| 9636 | n/a | MediaHandler mh; |
|---|
| 9637 | n/a | short imageIndex; |
|---|
| 9638 | n/a | #ifndef SpriteMediaDisposeImage |
|---|
| 9639 | n/a | PyMac_PRECHECK(SpriteMediaDisposeImage); |
|---|
| 9640 | n/a | #endif |
|---|
| 9641 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 9642 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9643 | n/a | &imageIndex)) |
|---|
| 9644 | n/a | return NULL; |
|---|
| 9645 | n/a | _rv = SpriteMediaDisposeImage(mh, |
|---|
| 9646 | n/a | imageIndex); |
|---|
| 9647 | n/a | _res = Py_BuildValue("l", |
|---|
| 9648 | n/a | _rv); |
|---|
| 9649 | n/a | return _res; |
|---|
| 9650 | n/a | } |
|---|
| 9651 | n/a | |
|---|
| 9652 | n/a | static PyObject *Qt_SpriteMediaImageIndexToID(PyObject *_self, PyObject *_args) |
|---|
| 9653 | n/a | { |
|---|
| 9654 | n/a | PyObject *_res = NULL; |
|---|
| 9655 | n/a | ComponentResult _rv; |
|---|
| 9656 | n/a | MediaHandler mh; |
|---|
| 9657 | n/a | short imageIndex; |
|---|
| 9658 | n/a | QTAtomID imageID; |
|---|
| 9659 | n/a | #ifndef SpriteMediaImageIndexToID |
|---|
| 9660 | n/a | PyMac_PRECHECK(SpriteMediaImageIndexToID); |
|---|
| 9661 | n/a | #endif |
|---|
| 9662 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 9663 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9664 | n/a | &imageIndex)) |
|---|
| 9665 | n/a | return NULL; |
|---|
| 9666 | n/a | _rv = SpriteMediaImageIndexToID(mh, |
|---|
| 9667 | n/a | imageIndex, |
|---|
| 9668 | n/a | &imageID); |
|---|
| 9669 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9670 | n/a | _rv, |
|---|
| 9671 | n/a | imageID); |
|---|
| 9672 | n/a | return _res; |
|---|
| 9673 | n/a | } |
|---|
| 9674 | n/a | |
|---|
| 9675 | n/a | static PyObject *Qt_SpriteMediaImageIDToIndex(PyObject *_self, PyObject *_args) |
|---|
| 9676 | n/a | { |
|---|
| 9677 | n/a | PyObject *_res = NULL; |
|---|
| 9678 | n/a | ComponentResult _rv; |
|---|
| 9679 | n/a | MediaHandler mh; |
|---|
| 9680 | n/a | QTAtomID imageID; |
|---|
| 9681 | n/a | short imageIndex; |
|---|
| 9682 | n/a | #ifndef SpriteMediaImageIDToIndex |
|---|
| 9683 | n/a | PyMac_PRECHECK(SpriteMediaImageIDToIndex); |
|---|
| 9684 | n/a | #endif |
|---|
| 9685 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9686 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9687 | n/a | &imageID)) |
|---|
| 9688 | n/a | return NULL; |
|---|
| 9689 | n/a | _rv = SpriteMediaImageIDToIndex(mh, |
|---|
| 9690 | n/a | imageID, |
|---|
| 9691 | n/a | &imageIndex); |
|---|
| 9692 | n/a | _res = Py_BuildValue("lh", |
|---|
| 9693 | n/a | _rv, |
|---|
| 9694 | n/a | imageIndex); |
|---|
| 9695 | n/a | return _res; |
|---|
| 9696 | n/a | } |
|---|
| 9697 | n/a | |
|---|
| 9698 | n/a | static PyObject *Qt_FlashMediaSetPan(PyObject *_self, PyObject *_args) |
|---|
| 9699 | n/a | { |
|---|
| 9700 | n/a | PyObject *_res = NULL; |
|---|
| 9701 | n/a | ComponentResult _rv; |
|---|
| 9702 | n/a | MediaHandler mh; |
|---|
| 9703 | n/a | short xPercent; |
|---|
| 9704 | n/a | short yPercent; |
|---|
| 9705 | n/a | #ifndef FlashMediaSetPan |
|---|
| 9706 | n/a | PyMac_PRECHECK(FlashMediaSetPan); |
|---|
| 9707 | n/a | #endif |
|---|
| 9708 | n/a | if (!PyArg_ParseTuple(_args, "O&hh", |
|---|
| 9709 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9710 | n/a | &xPercent, |
|---|
| 9711 | n/a | &yPercent)) |
|---|
| 9712 | n/a | return NULL; |
|---|
| 9713 | n/a | _rv = FlashMediaSetPan(mh, |
|---|
| 9714 | n/a | xPercent, |
|---|
| 9715 | n/a | yPercent); |
|---|
| 9716 | n/a | _res = Py_BuildValue("l", |
|---|
| 9717 | n/a | _rv); |
|---|
| 9718 | n/a | return _res; |
|---|
| 9719 | n/a | } |
|---|
| 9720 | n/a | |
|---|
| 9721 | n/a | static PyObject *Qt_FlashMediaSetZoom(PyObject *_self, PyObject *_args) |
|---|
| 9722 | n/a | { |
|---|
| 9723 | n/a | PyObject *_res = NULL; |
|---|
| 9724 | n/a | ComponentResult _rv; |
|---|
| 9725 | n/a | MediaHandler mh; |
|---|
| 9726 | n/a | short factor; |
|---|
| 9727 | n/a | #ifndef FlashMediaSetZoom |
|---|
| 9728 | n/a | PyMac_PRECHECK(FlashMediaSetZoom); |
|---|
| 9729 | n/a | #endif |
|---|
| 9730 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 9731 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9732 | n/a | &factor)) |
|---|
| 9733 | n/a | return NULL; |
|---|
| 9734 | n/a | _rv = FlashMediaSetZoom(mh, |
|---|
| 9735 | n/a | factor); |
|---|
| 9736 | n/a | _res = Py_BuildValue("l", |
|---|
| 9737 | n/a | _rv); |
|---|
| 9738 | n/a | return _res; |
|---|
| 9739 | n/a | } |
|---|
| 9740 | n/a | |
|---|
| 9741 | n/a | static PyObject *Qt_FlashMediaSetZoomRect(PyObject *_self, PyObject *_args) |
|---|
| 9742 | n/a | { |
|---|
| 9743 | n/a | PyObject *_res = NULL; |
|---|
| 9744 | n/a | ComponentResult _rv; |
|---|
| 9745 | n/a | MediaHandler mh; |
|---|
| 9746 | n/a | long left; |
|---|
| 9747 | n/a | long top; |
|---|
| 9748 | n/a | long right; |
|---|
| 9749 | n/a | long bottom; |
|---|
| 9750 | n/a | #ifndef FlashMediaSetZoomRect |
|---|
| 9751 | n/a | PyMac_PRECHECK(FlashMediaSetZoomRect); |
|---|
| 9752 | n/a | #endif |
|---|
| 9753 | n/a | if (!PyArg_ParseTuple(_args, "O&llll", |
|---|
| 9754 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9755 | n/a | &left, |
|---|
| 9756 | n/a | &top, |
|---|
| 9757 | n/a | &right, |
|---|
| 9758 | n/a | &bottom)) |
|---|
| 9759 | n/a | return NULL; |
|---|
| 9760 | n/a | _rv = FlashMediaSetZoomRect(mh, |
|---|
| 9761 | n/a | left, |
|---|
| 9762 | n/a | top, |
|---|
| 9763 | n/a | right, |
|---|
| 9764 | n/a | bottom); |
|---|
| 9765 | n/a | _res = Py_BuildValue("l", |
|---|
| 9766 | n/a | _rv); |
|---|
| 9767 | n/a | return _res; |
|---|
| 9768 | n/a | } |
|---|
| 9769 | n/a | |
|---|
| 9770 | n/a | static PyObject *Qt_FlashMediaGetRefConBounds(PyObject *_self, PyObject *_args) |
|---|
| 9771 | n/a | { |
|---|
| 9772 | n/a | PyObject *_res = NULL; |
|---|
| 9773 | n/a | ComponentResult _rv; |
|---|
| 9774 | n/a | MediaHandler mh; |
|---|
| 9775 | n/a | long refCon; |
|---|
| 9776 | n/a | long left; |
|---|
| 9777 | n/a | long top; |
|---|
| 9778 | n/a | long right; |
|---|
| 9779 | n/a | long bottom; |
|---|
| 9780 | n/a | #ifndef FlashMediaGetRefConBounds |
|---|
| 9781 | n/a | PyMac_PRECHECK(FlashMediaGetRefConBounds); |
|---|
| 9782 | n/a | #endif |
|---|
| 9783 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9784 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9785 | n/a | &refCon)) |
|---|
| 9786 | n/a | return NULL; |
|---|
| 9787 | n/a | _rv = FlashMediaGetRefConBounds(mh, |
|---|
| 9788 | n/a | refCon, |
|---|
| 9789 | n/a | &left, |
|---|
| 9790 | n/a | &top, |
|---|
| 9791 | n/a | &right, |
|---|
| 9792 | n/a | &bottom); |
|---|
| 9793 | n/a | _res = Py_BuildValue("lllll", |
|---|
| 9794 | n/a | _rv, |
|---|
| 9795 | n/a | left, |
|---|
| 9796 | n/a | top, |
|---|
| 9797 | n/a | right, |
|---|
| 9798 | n/a | bottom); |
|---|
| 9799 | n/a | return _res; |
|---|
| 9800 | n/a | } |
|---|
| 9801 | n/a | |
|---|
| 9802 | n/a | static PyObject *Qt_FlashMediaGetRefConID(PyObject *_self, PyObject *_args) |
|---|
| 9803 | n/a | { |
|---|
| 9804 | n/a | PyObject *_res = NULL; |
|---|
| 9805 | n/a | ComponentResult _rv; |
|---|
| 9806 | n/a | MediaHandler mh; |
|---|
| 9807 | n/a | long refCon; |
|---|
| 9808 | n/a | long refConID; |
|---|
| 9809 | n/a | #ifndef FlashMediaGetRefConID |
|---|
| 9810 | n/a | PyMac_PRECHECK(FlashMediaGetRefConID); |
|---|
| 9811 | n/a | #endif |
|---|
| 9812 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9813 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9814 | n/a | &refCon)) |
|---|
| 9815 | n/a | return NULL; |
|---|
| 9816 | n/a | _rv = FlashMediaGetRefConID(mh, |
|---|
| 9817 | n/a | refCon, |
|---|
| 9818 | n/a | &refConID); |
|---|
| 9819 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9820 | n/a | _rv, |
|---|
| 9821 | n/a | refConID); |
|---|
| 9822 | n/a | return _res; |
|---|
| 9823 | n/a | } |
|---|
| 9824 | n/a | |
|---|
| 9825 | n/a | static PyObject *Qt_FlashMediaIDToRefCon(PyObject *_self, PyObject *_args) |
|---|
| 9826 | n/a | { |
|---|
| 9827 | n/a | PyObject *_res = NULL; |
|---|
| 9828 | n/a | ComponentResult _rv; |
|---|
| 9829 | n/a | MediaHandler mh; |
|---|
| 9830 | n/a | long refConID; |
|---|
| 9831 | n/a | long refCon; |
|---|
| 9832 | n/a | #ifndef FlashMediaIDToRefCon |
|---|
| 9833 | n/a | PyMac_PRECHECK(FlashMediaIDToRefCon); |
|---|
| 9834 | n/a | #endif |
|---|
| 9835 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9836 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9837 | n/a | &refConID)) |
|---|
| 9838 | n/a | return NULL; |
|---|
| 9839 | n/a | _rv = FlashMediaIDToRefCon(mh, |
|---|
| 9840 | n/a | refConID, |
|---|
| 9841 | n/a | &refCon); |
|---|
| 9842 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9843 | n/a | _rv, |
|---|
| 9844 | n/a | refCon); |
|---|
| 9845 | n/a | return _res; |
|---|
| 9846 | n/a | } |
|---|
| 9847 | n/a | |
|---|
| 9848 | n/a | static PyObject *Qt_FlashMediaGetDisplayedFrameNumber(PyObject *_self, PyObject *_args) |
|---|
| 9849 | n/a | { |
|---|
| 9850 | n/a | PyObject *_res = NULL; |
|---|
| 9851 | n/a | ComponentResult _rv; |
|---|
| 9852 | n/a | MediaHandler mh; |
|---|
| 9853 | n/a | long flashFrameNumber; |
|---|
| 9854 | n/a | #ifndef FlashMediaGetDisplayedFrameNumber |
|---|
| 9855 | n/a | PyMac_PRECHECK(FlashMediaGetDisplayedFrameNumber); |
|---|
| 9856 | n/a | #endif |
|---|
| 9857 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 9858 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 9859 | n/a | return NULL; |
|---|
| 9860 | n/a | _rv = FlashMediaGetDisplayedFrameNumber(mh, |
|---|
| 9861 | n/a | &flashFrameNumber); |
|---|
| 9862 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9863 | n/a | _rv, |
|---|
| 9864 | n/a | flashFrameNumber); |
|---|
| 9865 | n/a | return _res; |
|---|
| 9866 | n/a | } |
|---|
| 9867 | n/a | |
|---|
| 9868 | n/a | static PyObject *Qt_FlashMediaFrameNumberToMovieTime(PyObject *_self, PyObject *_args) |
|---|
| 9869 | n/a | { |
|---|
| 9870 | n/a | PyObject *_res = NULL; |
|---|
| 9871 | n/a | ComponentResult _rv; |
|---|
| 9872 | n/a | MediaHandler mh; |
|---|
| 9873 | n/a | long flashFrameNumber; |
|---|
| 9874 | n/a | TimeValue movieTime; |
|---|
| 9875 | n/a | #ifndef FlashMediaFrameNumberToMovieTime |
|---|
| 9876 | n/a | PyMac_PRECHECK(FlashMediaFrameNumberToMovieTime); |
|---|
| 9877 | n/a | #endif |
|---|
| 9878 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 9879 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9880 | n/a | &flashFrameNumber)) |
|---|
| 9881 | n/a | return NULL; |
|---|
| 9882 | n/a | _rv = FlashMediaFrameNumberToMovieTime(mh, |
|---|
| 9883 | n/a | flashFrameNumber, |
|---|
| 9884 | n/a | &movieTime); |
|---|
| 9885 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9886 | n/a | _rv, |
|---|
| 9887 | n/a | movieTime); |
|---|
| 9888 | n/a | return _res; |
|---|
| 9889 | n/a | } |
|---|
| 9890 | n/a | |
|---|
| 9891 | n/a | static PyObject *Qt_FlashMediaFrameLabelToMovieTime(PyObject *_self, PyObject *_args) |
|---|
| 9892 | n/a | { |
|---|
| 9893 | n/a | PyObject *_res = NULL; |
|---|
| 9894 | n/a | ComponentResult _rv; |
|---|
| 9895 | n/a | MediaHandler mh; |
|---|
| 9896 | n/a | Ptr theLabel; |
|---|
| 9897 | n/a | TimeValue movieTime; |
|---|
| 9898 | n/a | #ifndef FlashMediaFrameLabelToMovieTime |
|---|
| 9899 | n/a | PyMac_PRECHECK(FlashMediaFrameLabelToMovieTime); |
|---|
| 9900 | n/a | #endif |
|---|
| 9901 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 9902 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9903 | n/a | &theLabel)) |
|---|
| 9904 | n/a | return NULL; |
|---|
| 9905 | n/a | _rv = FlashMediaFrameLabelToMovieTime(mh, |
|---|
| 9906 | n/a | theLabel, |
|---|
| 9907 | n/a | &movieTime); |
|---|
| 9908 | n/a | _res = Py_BuildValue("ll", |
|---|
| 9909 | n/a | _rv, |
|---|
| 9910 | n/a | movieTime); |
|---|
| 9911 | n/a | return _res; |
|---|
| 9912 | n/a | } |
|---|
| 9913 | n/a | |
|---|
| 9914 | n/a | static PyObject *Qt_FlashMediaGetFlashVariable(PyObject *_self, PyObject *_args) |
|---|
| 9915 | n/a | { |
|---|
| 9916 | n/a | PyObject *_res = NULL; |
|---|
| 9917 | n/a | ComponentResult _rv; |
|---|
| 9918 | n/a | MediaHandler mh; |
|---|
| 9919 | n/a | char path; |
|---|
| 9920 | n/a | char name; |
|---|
| 9921 | n/a | Handle theVariableCStringOut; |
|---|
| 9922 | n/a | #ifndef FlashMediaGetFlashVariable |
|---|
| 9923 | n/a | PyMac_PRECHECK(FlashMediaGetFlashVariable); |
|---|
| 9924 | n/a | #endif |
|---|
| 9925 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 9926 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 9927 | n/a | return NULL; |
|---|
| 9928 | n/a | _rv = FlashMediaGetFlashVariable(mh, |
|---|
| 9929 | n/a | &path, |
|---|
| 9930 | n/a | &name, |
|---|
| 9931 | n/a | &theVariableCStringOut); |
|---|
| 9932 | n/a | _res = Py_BuildValue("lccO&", |
|---|
| 9933 | n/a | _rv, |
|---|
| 9934 | n/a | path, |
|---|
| 9935 | n/a | name, |
|---|
| 9936 | n/a | ResObj_New, theVariableCStringOut); |
|---|
| 9937 | n/a | return _res; |
|---|
| 9938 | n/a | } |
|---|
| 9939 | n/a | |
|---|
| 9940 | n/a | static PyObject *Qt_FlashMediaSetFlashVariable(PyObject *_self, PyObject *_args) |
|---|
| 9941 | n/a | { |
|---|
| 9942 | n/a | PyObject *_res = NULL; |
|---|
| 9943 | n/a | ComponentResult _rv; |
|---|
| 9944 | n/a | MediaHandler mh; |
|---|
| 9945 | n/a | char path; |
|---|
| 9946 | n/a | char name; |
|---|
| 9947 | n/a | char value; |
|---|
| 9948 | n/a | Boolean updateFocus; |
|---|
| 9949 | n/a | #ifndef FlashMediaSetFlashVariable |
|---|
| 9950 | n/a | PyMac_PRECHECK(FlashMediaSetFlashVariable); |
|---|
| 9951 | n/a | #endif |
|---|
| 9952 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 9953 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9954 | n/a | &updateFocus)) |
|---|
| 9955 | n/a | return NULL; |
|---|
| 9956 | n/a | _rv = FlashMediaSetFlashVariable(mh, |
|---|
| 9957 | n/a | &path, |
|---|
| 9958 | n/a | &name, |
|---|
| 9959 | n/a | &value, |
|---|
| 9960 | n/a | updateFocus); |
|---|
| 9961 | n/a | _res = Py_BuildValue("lccc", |
|---|
| 9962 | n/a | _rv, |
|---|
| 9963 | n/a | path, |
|---|
| 9964 | n/a | name, |
|---|
| 9965 | n/a | value); |
|---|
| 9966 | n/a | return _res; |
|---|
| 9967 | n/a | } |
|---|
| 9968 | n/a | |
|---|
| 9969 | n/a | static PyObject *Qt_FlashMediaDoButtonActions(PyObject *_self, PyObject *_args) |
|---|
| 9970 | n/a | { |
|---|
| 9971 | n/a | PyObject *_res = NULL; |
|---|
| 9972 | n/a | ComponentResult _rv; |
|---|
| 9973 | n/a | MediaHandler mh; |
|---|
| 9974 | n/a | char path; |
|---|
| 9975 | n/a | long buttonID; |
|---|
| 9976 | n/a | long transition; |
|---|
| 9977 | n/a | #ifndef FlashMediaDoButtonActions |
|---|
| 9978 | n/a | PyMac_PRECHECK(FlashMediaDoButtonActions); |
|---|
| 9979 | n/a | #endif |
|---|
| 9980 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 9981 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 9982 | n/a | &buttonID, |
|---|
| 9983 | n/a | &transition)) |
|---|
| 9984 | n/a | return NULL; |
|---|
| 9985 | n/a | _rv = FlashMediaDoButtonActions(mh, |
|---|
| 9986 | n/a | &path, |
|---|
| 9987 | n/a | buttonID, |
|---|
| 9988 | n/a | transition); |
|---|
| 9989 | n/a | _res = Py_BuildValue("lc", |
|---|
| 9990 | n/a | _rv, |
|---|
| 9991 | n/a | path); |
|---|
| 9992 | n/a | return _res; |
|---|
| 9993 | n/a | } |
|---|
| 9994 | n/a | |
|---|
| 9995 | n/a | static PyObject *Qt_FlashMediaGetSupportedSwfVersion(PyObject *_self, PyObject *_args) |
|---|
| 9996 | n/a | { |
|---|
| 9997 | n/a | PyObject *_res = NULL; |
|---|
| 9998 | n/a | ComponentResult _rv; |
|---|
| 9999 | n/a | MediaHandler mh; |
|---|
| 10000 | n/a | UInt8 swfVersion; |
|---|
| 10001 | n/a | #ifndef FlashMediaGetSupportedSwfVersion |
|---|
| 10002 | n/a | PyMac_PRECHECK(FlashMediaGetSupportedSwfVersion); |
|---|
| 10003 | n/a | #endif |
|---|
| 10004 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 10005 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 10006 | n/a | return NULL; |
|---|
| 10007 | n/a | _rv = FlashMediaGetSupportedSwfVersion(mh, |
|---|
| 10008 | n/a | &swfVersion); |
|---|
| 10009 | n/a | _res = Py_BuildValue("lb", |
|---|
| 10010 | n/a | _rv, |
|---|
| 10011 | n/a | swfVersion); |
|---|
| 10012 | n/a | return _res; |
|---|
| 10013 | n/a | } |
|---|
| 10014 | n/a | |
|---|
| 10015 | n/a | static PyObject *Qt_Media3DGetCurrentGroup(PyObject *_self, PyObject *_args) |
|---|
| 10016 | n/a | { |
|---|
| 10017 | n/a | PyObject *_res = NULL; |
|---|
| 10018 | n/a | ComponentResult _rv; |
|---|
| 10019 | n/a | MediaHandler mh; |
|---|
| 10020 | n/a | void * group; |
|---|
| 10021 | n/a | #ifndef Media3DGetCurrentGroup |
|---|
| 10022 | n/a | PyMac_PRECHECK(Media3DGetCurrentGroup); |
|---|
| 10023 | n/a | #endif |
|---|
| 10024 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 10025 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10026 | n/a | &group)) |
|---|
| 10027 | n/a | return NULL; |
|---|
| 10028 | n/a | _rv = Media3DGetCurrentGroup(mh, |
|---|
| 10029 | n/a | group); |
|---|
| 10030 | n/a | _res = Py_BuildValue("l", |
|---|
| 10031 | n/a | _rv); |
|---|
| 10032 | n/a | return _res; |
|---|
| 10033 | n/a | } |
|---|
| 10034 | n/a | |
|---|
| 10035 | n/a | static PyObject *Qt_Media3DTranslateNamedObjectTo(PyObject *_self, PyObject *_args) |
|---|
| 10036 | n/a | { |
|---|
| 10037 | n/a | PyObject *_res = NULL; |
|---|
| 10038 | n/a | ComponentResult _rv; |
|---|
| 10039 | n/a | MediaHandler mh; |
|---|
| 10040 | n/a | char objectName; |
|---|
| 10041 | n/a | Fixed x; |
|---|
| 10042 | n/a | Fixed y; |
|---|
| 10043 | n/a | Fixed z; |
|---|
| 10044 | n/a | #ifndef Media3DTranslateNamedObjectTo |
|---|
| 10045 | n/a | PyMac_PRECHECK(Media3DTranslateNamedObjectTo); |
|---|
| 10046 | n/a | #endif |
|---|
| 10047 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 10048 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10049 | n/a | PyMac_GetFixed, &x, |
|---|
| 10050 | n/a | PyMac_GetFixed, &y, |
|---|
| 10051 | n/a | PyMac_GetFixed, &z)) |
|---|
| 10052 | n/a | return NULL; |
|---|
| 10053 | n/a | _rv = Media3DTranslateNamedObjectTo(mh, |
|---|
| 10054 | n/a | &objectName, |
|---|
| 10055 | n/a | x, |
|---|
| 10056 | n/a | y, |
|---|
| 10057 | n/a | z); |
|---|
| 10058 | n/a | _res = Py_BuildValue("lc", |
|---|
| 10059 | n/a | _rv, |
|---|
| 10060 | n/a | objectName); |
|---|
| 10061 | n/a | return _res; |
|---|
| 10062 | n/a | } |
|---|
| 10063 | n/a | |
|---|
| 10064 | n/a | static PyObject *Qt_Media3DScaleNamedObjectTo(PyObject *_self, PyObject *_args) |
|---|
| 10065 | n/a | { |
|---|
| 10066 | n/a | PyObject *_res = NULL; |
|---|
| 10067 | n/a | ComponentResult _rv; |
|---|
| 10068 | n/a | MediaHandler mh; |
|---|
| 10069 | n/a | char objectName; |
|---|
| 10070 | n/a | Fixed xScale; |
|---|
| 10071 | n/a | Fixed yScale; |
|---|
| 10072 | n/a | Fixed zScale; |
|---|
| 10073 | n/a | #ifndef Media3DScaleNamedObjectTo |
|---|
| 10074 | n/a | PyMac_PRECHECK(Media3DScaleNamedObjectTo); |
|---|
| 10075 | n/a | #endif |
|---|
| 10076 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 10077 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10078 | n/a | PyMac_GetFixed, &xScale, |
|---|
| 10079 | n/a | PyMac_GetFixed, &yScale, |
|---|
| 10080 | n/a | PyMac_GetFixed, &zScale)) |
|---|
| 10081 | n/a | return NULL; |
|---|
| 10082 | n/a | _rv = Media3DScaleNamedObjectTo(mh, |
|---|
| 10083 | n/a | &objectName, |
|---|
| 10084 | n/a | xScale, |
|---|
| 10085 | n/a | yScale, |
|---|
| 10086 | n/a | zScale); |
|---|
| 10087 | n/a | _res = Py_BuildValue("lc", |
|---|
| 10088 | n/a | _rv, |
|---|
| 10089 | n/a | objectName); |
|---|
| 10090 | n/a | return _res; |
|---|
| 10091 | n/a | } |
|---|
| 10092 | n/a | |
|---|
| 10093 | n/a | static PyObject *Qt_Media3DRotateNamedObjectTo(PyObject *_self, PyObject *_args) |
|---|
| 10094 | n/a | { |
|---|
| 10095 | n/a | PyObject *_res = NULL; |
|---|
| 10096 | n/a | ComponentResult _rv; |
|---|
| 10097 | n/a | MediaHandler mh; |
|---|
| 10098 | n/a | char objectName; |
|---|
| 10099 | n/a | Fixed xDegrees; |
|---|
| 10100 | n/a | Fixed yDegrees; |
|---|
| 10101 | n/a | Fixed zDegrees; |
|---|
| 10102 | n/a | #ifndef Media3DRotateNamedObjectTo |
|---|
| 10103 | n/a | PyMac_PRECHECK(Media3DRotateNamedObjectTo); |
|---|
| 10104 | n/a | #endif |
|---|
| 10105 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 10106 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10107 | n/a | PyMac_GetFixed, &xDegrees, |
|---|
| 10108 | n/a | PyMac_GetFixed, &yDegrees, |
|---|
| 10109 | n/a | PyMac_GetFixed, &zDegrees)) |
|---|
| 10110 | n/a | return NULL; |
|---|
| 10111 | n/a | _rv = Media3DRotateNamedObjectTo(mh, |
|---|
| 10112 | n/a | &objectName, |
|---|
| 10113 | n/a | xDegrees, |
|---|
| 10114 | n/a | yDegrees, |
|---|
| 10115 | n/a | zDegrees); |
|---|
| 10116 | n/a | _res = Py_BuildValue("lc", |
|---|
| 10117 | n/a | _rv, |
|---|
| 10118 | n/a | objectName); |
|---|
| 10119 | n/a | return _res; |
|---|
| 10120 | n/a | } |
|---|
| 10121 | n/a | |
|---|
| 10122 | n/a | static PyObject *Qt_Media3DSetCameraData(PyObject *_self, PyObject *_args) |
|---|
| 10123 | n/a | { |
|---|
| 10124 | n/a | PyObject *_res = NULL; |
|---|
| 10125 | n/a | ComponentResult _rv; |
|---|
| 10126 | n/a | MediaHandler mh; |
|---|
| 10127 | n/a | void * cameraData; |
|---|
| 10128 | n/a | #ifndef Media3DSetCameraData |
|---|
| 10129 | n/a | PyMac_PRECHECK(Media3DSetCameraData); |
|---|
| 10130 | n/a | #endif |
|---|
| 10131 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 10132 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10133 | n/a | &cameraData)) |
|---|
| 10134 | n/a | return NULL; |
|---|
| 10135 | n/a | _rv = Media3DSetCameraData(mh, |
|---|
| 10136 | n/a | cameraData); |
|---|
| 10137 | n/a | _res = Py_BuildValue("l", |
|---|
| 10138 | n/a | _rv); |
|---|
| 10139 | n/a | return _res; |
|---|
| 10140 | n/a | } |
|---|
| 10141 | n/a | |
|---|
| 10142 | n/a | static PyObject *Qt_Media3DGetCameraData(PyObject *_self, PyObject *_args) |
|---|
| 10143 | n/a | { |
|---|
| 10144 | n/a | PyObject *_res = NULL; |
|---|
| 10145 | n/a | ComponentResult _rv; |
|---|
| 10146 | n/a | MediaHandler mh; |
|---|
| 10147 | n/a | void * cameraData; |
|---|
| 10148 | n/a | #ifndef Media3DGetCameraData |
|---|
| 10149 | n/a | PyMac_PRECHECK(Media3DGetCameraData); |
|---|
| 10150 | n/a | #endif |
|---|
| 10151 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 10152 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10153 | n/a | &cameraData)) |
|---|
| 10154 | n/a | return NULL; |
|---|
| 10155 | n/a | _rv = Media3DGetCameraData(mh, |
|---|
| 10156 | n/a | cameraData); |
|---|
| 10157 | n/a | _res = Py_BuildValue("l", |
|---|
| 10158 | n/a | _rv); |
|---|
| 10159 | n/a | return _res; |
|---|
| 10160 | n/a | } |
|---|
| 10161 | n/a | |
|---|
| 10162 | n/a | static PyObject *Qt_Media3DSetCameraAngleAspect(PyObject *_self, PyObject *_args) |
|---|
| 10163 | n/a | { |
|---|
| 10164 | n/a | PyObject *_res = NULL; |
|---|
| 10165 | n/a | ComponentResult _rv; |
|---|
| 10166 | n/a | MediaHandler mh; |
|---|
| 10167 | n/a | QTFloatSingle fov; |
|---|
| 10168 | n/a | QTFloatSingle aspectRatioXToY; |
|---|
| 10169 | n/a | #ifndef Media3DSetCameraAngleAspect |
|---|
| 10170 | n/a | PyMac_PRECHECK(Media3DSetCameraAngleAspect); |
|---|
| 10171 | n/a | #endif |
|---|
| 10172 | n/a | if (!PyArg_ParseTuple(_args, "O&ff", |
|---|
| 10173 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10174 | n/a | &fov, |
|---|
| 10175 | n/a | &aspectRatioXToY)) |
|---|
| 10176 | n/a | return NULL; |
|---|
| 10177 | n/a | _rv = Media3DSetCameraAngleAspect(mh, |
|---|
| 10178 | n/a | fov, |
|---|
| 10179 | n/a | aspectRatioXToY); |
|---|
| 10180 | n/a | _res = Py_BuildValue("l", |
|---|
| 10181 | n/a | _rv); |
|---|
| 10182 | n/a | return _res; |
|---|
| 10183 | n/a | } |
|---|
| 10184 | n/a | |
|---|
| 10185 | n/a | static PyObject *Qt_Media3DGetCameraAngleAspect(PyObject *_self, PyObject *_args) |
|---|
| 10186 | n/a | { |
|---|
| 10187 | n/a | PyObject *_res = NULL; |
|---|
| 10188 | n/a | ComponentResult _rv; |
|---|
| 10189 | n/a | MediaHandler mh; |
|---|
| 10190 | n/a | QTFloatSingle fov; |
|---|
| 10191 | n/a | QTFloatSingle aspectRatioXToY; |
|---|
| 10192 | n/a | #ifndef Media3DGetCameraAngleAspect |
|---|
| 10193 | n/a | PyMac_PRECHECK(Media3DGetCameraAngleAspect); |
|---|
| 10194 | n/a | #endif |
|---|
| 10195 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 10196 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 10197 | n/a | return NULL; |
|---|
| 10198 | n/a | _rv = Media3DGetCameraAngleAspect(mh, |
|---|
| 10199 | n/a | &fov, |
|---|
| 10200 | n/a | &aspectRatioXToY); |
|---|
| 10201 | n/a | _res = Py_BuildValue("lff", |
|---|
| 10202 | n/a | _rv, |
|---|
| 10203 | n/a | fov, |
|---|
| 10204 | n/a | aspectRatioXToY); |
|---|
| 10205 | n/a | return _res; |
|---|
| 10206 | n/a | } |
|---|
| 10207 | n/a | |
|---|
| 10208 | n/a | static PyObject *Qt_Media3DSetCameraRange(PyObject *_self, PyObject *_args) |
|---|
| 10209 | n/a | { |
|---|
| 10210 | n/a | PyObject *_res = NULL; |
|---|
| 10211 | n/a | ComponentResult _rv; |
|---|
| 10212 | n/a | MediaHandler mh; |
|---|
| 10213 | n/a | void * tQ3CameraRange; |
|---|
| 10214 | n/a | #ifndef Media3DSetCameraRange |
|---|
| 10215 | n/a | PyMac_PRECHECK(Media3DSetCameraRange); |
|---|
| 10216 | n/a | #endif |
|---|
| 10217 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 10218 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10219 | n/a | &tQ3CameraRange)) |
|---|
| 10220 | n/a | return NULL; |
|---|
| 10221 | n/a | _rv = Media3DSetCameraRange(mh, |
|---|
| 10222 | n/a | tQ3CameraRange); |
|---|
| 10223 | n/a | _res = Py_BuildValue("l", |
|---|
| 10224 | n/a | _rv); |
|---|
| 10225 | n/a | return _res; |
|---|
| 10226 | n/a | } |
|---|
| 10227 | n/a | |
|---|
| 10228 | n/a | static PyObject *Qt_Media3DGetCameraRange(PyObject *_self, PyObject *_args) |
|---|
| 10229 | n/a | { |
|---|
| 10230 | n/a | PyObject *_res = NULL; |
|---|
| 10231 | n/a | ComponentResult _rv; |
|---|
| 10232 | n/a | MediaHandler mh; |
|---|
| 10233 | n/a | void * tQ3CameraRange; |
|---|
| 10234 | n/a | #ifndef Media3DGetCameraRange |
|---|
| 10235 | n/a | PyMac_PRECHECK(Media3DGetCameraRange); |
|---|
| 10236 | n/a | #endif |
|---|
| 10237 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 10238 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 10239 | n/a | &tQ3CameraRange)) |
|---|
| 10240 | n/a | return NULL; |
|---|
| 10241 | n/a | _rv = Media3DGetCameraRange(mh, |
|---|
| 10242 | n/a | tQ3CameraRange); |
|---|
| 10243 | n/a | _res = Py_BuildValue("l", |
|---|
| 10244 | n/a | _rv); |
|---|
| 10245 | n/a | return _res; |
|---|
| 10246 | n/a | } |
|---|
| 10247 | n/a | |
|---|
| 10248 | n/a | static PyObject *Qt_NewTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 10249 | n/a | { |
|---|
| 10250 | n/a | PyObject *_res = NULL; |
|---|
| 10251 | n/a | TimeBase _rv; |
|---|
| 10252 | n/a | #ifndef NewTimeBase |
|---|
| 10253 | n/a | PyMac_PRECHECK(NewTimeBase); |
|---|
| 10254 | n/a | #endif |
|---|
| 10255 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 10256 | n/a | return NULL; |
|---|
| 10257 | n/a | _rv = NewTimeBase(); |
|---|
| 10258 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10259 | n/a | TimeBaseObj_New, _rv); |
|---|
| 10260 | n/a | return _res; |
|---|
| 10261 | n/a | } |
|---|
| 10262 | n/a | |
|---|
| 10263 | n/a | static PyObject *Qt_ConvertTime(PyObject *_self, PyObject *_args) |
|---|
| 10264 | n/a | { |
|---|
| 10265 | n/a | PyObject *_res = NULL; |
|---|
| 10266 | n/a | TimeRecord theTime; |
|---|
| 10267 | n/a | TimeBase newBase; |
|---|
| 10268 | n/a | #ifndef ConvertTime |
|---|
| 10269 | n/a | PyMac_PRECHECK(ConvertTime); |
|---|
| 10270 | n/a | #endif |
|---|
| 10271 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 10272 | n/a | QtTimeRecord_Convert, &theTime, |
|---|
| 10273 | n/a | TimeBaseObj_Convert, &newBase)) |
|---|
| 10274 | n/a | return NULL; |
|---|
| 10275 | n/a | ConvertTime(&theTime, |
|---|
| 10276 | n/a | newBase); |
|---|
| 10277 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10278 | n/a | QtTimeRecord_New, &theTime); |
|---|
| 10279 | n/a | return _res; |
|---|
| 10280 | n/a | } |
|---|
| 10281 | n/a | |
|---|
| 10282 | n/a | static PyObject *Qt_ConvertTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 10283 | n/a | { |
|---|
| 10284 | n/a | PyObject *_res = NULL; |
|---|
| 10285 | n/a | TimeRecord theTime; |
|---|
| 10286 | n/a | TimeScale newScale; |
|---|
| 10287 | n/a | #ifndef ConvertTimeScale |
|---|
| 10288 | n/a | PyMac_PRECHECK(ConvertTimeScale); |
|---|
| 10289 | n/a | #endif |
|---|
| 10290 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 10291 | n/a | QtTimeRecord_Convert, &theTime, |
|---|
| 10292 | n/a | &newScale)) |
|---|
| 10293 | n/a | return NULL; |
|---|
| 10294 | n/a | ConvertTimeScale(&theTime, |
|---|
| 10295 | n/a | newScale); |
|---|
| 10296 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10297 | n/a | QtTimeRecord_New, &theTime); |
|---|
| 10298 | n/a | return _res; |
|---|
| 10299 | n/a | } |
|---|
| 10300 | n/a | |
|---|
| 10301 | n/a | static PyObject *Qt_AddTime(PyObject *_self, PyObject *_args) |
|---|
| 10302 | n/a | { |
|---|
| 10303 | n/a | PyObject *_res = NULL; |
|---|
| 10304 | n/a | TimeRecord dst; |
|---|
| 10305 | n/a | TimeRecord src; |
|---|
| 10306 | n/a | #ifndef AddTime |
|---|
| 10307 | n/a | PyMac_PRECHECK(AddTime); |
|---|
| 10308 | n/a | #endif |
|---|
| 10309 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 10310 | n/a | QtTimeRecord_Convert, &dst, |
|---|
| 10311 | n/a | QtTimeRecord_Convert, &src)) |
|---|
| 10312 | n/a | return NULL; |
|---|
| 10313 | n/a | AddTime(&dst, |
|---|
| 10314 | n/a | &src); |
|---|
| 10315 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10316 | n/a | QtTimeRecord_New, &dst); |
|---|
| 10317 | n/a | return _res; |
|---|
| 10318 | n/a | } |
|---|
| 10319 | n/a | |
|---|
| 10320 | n/a | static PyObject *Qt_SubtractTime(PyObject *_self, PyObject *_args) |
|---|
| 10321 | n/a | { |
|---|
| 10322 | n/a | PyObject *_res = NULL; |
|---|
| 10323 | n/a | TimeRecord dst; |
|---|
| 10324 | n/a | TimeRecord src; |
|---|
| 10325 | n/a | #ifndef SubtractTime |
|---|
| 10326 | n/a | PyMac_PRECHECK(SubtractTime); |
|---|
| 10327 | n/a | #endif |
|---|
| 10328 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 10329 | n/a | QtTimeRecord_Convert, &dst, |
|---|
| 10330 | n/a | QtTimeRecord_Convert, &src)) |
|---|
| 10331 | n/a | return NULL; |
|---|
| 10332 | n/a | SubtractTime(&dst, |
|---|
| 10333 | n/a | &src); |
|---|
| 10334 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10335 | n/a | QtTimeRecord_New, &dst); |
|---|
| 10336 | n/a | return _res; |
|---|
| 10337 | n/a | } |
|---|
| 10338 | n/a | |
|---|
| 10339 | n/a | static PyObject *Qt_MusicMediaGetIndexedTunePlayer(PyObject *_self, PyObject *_args) |
|---|
| 10340 | n/a | { |
|---|
| 10341 | n/a | PyObject *_res = NULL; |
|---|
| 10342 | n/a | ComponentResult _rv; |
|---|
| 10343 | n/a | ComponentInstance ti; |
|---|
| 10344 | n/a | long sampleDescIndex; |
|---|
| 10345 | n/a | ComponentInstance tp; |
|---|
| 10346 | n/a | #ifndef MusicMediaGetIndexedTunePlayer |
|---|
| 10347 | n/a | PyMac_PRECHECK(MusicMediaGetIndexedTunePlayer); |
|---|
| 10348 | n/a | #endif |
|---|
| 10349 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 10350 | n/a | CmpInstObj_Convert, &ti, |
|---|
| 10351 | n/a | &sampleDescIndex)) |
|---|
| 10352 | n/a | return NULL; |
|---|
| 10353 | n/a | _rv = MusicMediaGetIndexedTunePlayer(ti, |
|---|
| 10354 | n/a | sampleDescIndex, |
|---|
| 10355 | n/a | &tp); |
|---|
| 10356 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 10357 | n/a | _rv, |
|---|
| 10358 | n/a | CmpInstObj_New, tp); |
|---|
| 10359 | n/a | return _res; |
|---|
| 10360 | n/a | } |
|---|
| 10361 | n/a | |
|---|
| 10362 | n/a | static PyObject *Qt_CodecManagerVersion(PyObject *_self, PyObject *_args) |
|---|
| 10363 | n/a | { |
|---|
| 10364 | n/a | PyObject *_res = NULL; |
|---|
| 10365 | n/a | OSErr _err; |
|---|
| 10366 | n/a | long version; |
|---|
| 10367 | n/a | #ifndef CodecManagerVersion |
|---|
| 10368 | n/a | PyMac_PRECHECK(CodecManagerVersion); |
|---|
| 10369 | n/a | #endif |
|---|
| 10370 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 10371 | n/a | return NULL; |
|---|
| 10372 | n/a | _err = CodecManagerVersion(&version); |
|---|
| 10373 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10374 | n/a | _res = Py_BuildValue("l", |
|---|
| 10375 | n/a | version); |
|---|
| 10376 | n/a | return _res; |
|---|
| 10377 | n/a | } |
|---|
| 10378 | n/a | |
|---|
| 10379 | n/a | static PyObject *Qt_GetMaxCompressionSize(PyObject *_self, PyObject *_args) |
|---|
| 10380 | n/a | { |
|---|
| 10381 | n/a | PyObject *_res = NULL; |
|---|
| 10382 | n/a | OSErr _err; |
|---|
| 10383 | n/a | PixMapHandle src; |
|---|
| 10384 | n/a | Rect srcRect; |
|---|
| 10385 | n/a | short colorDepth; |
|---|
| 10386 | n/a | CodecQ quality; |
|---|
| 10387 | n/a | CodecType cType; |
|---|
| 10388 | n/a | CompressorComponent codec; |
|---|
| 10389 | n/a | long size; |
|---|
| 10390 | n/a | #ifndef GetMaxCompressionSize |
|---|
| 10391 | n/a | PyMac_PRECHECK(GetMaxCompressionSize); |
|---|
| 10392 | n/a | #endif |
|---|
| 10393 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hlO&O&", |
|---|
| 10394 | n/a | ResObj_Convert, &src, |
|---|
| 10395 | n/a | PyMac_GetRect, &srcRect, |
|---|
| 10396 | n/a | &colorDepth, |
|---|
| 10397 | n/a | &quality, |
|---|
| 10398 | n/a | PyMac_GetOSType, &cType, |
|---|
| 10399 | n/a | CmpObj_Convert, &codec)) |
|---|
| 10400 | n/a | return NULL; |
|---|
| 10401 | n/a | _err = GetMaxCompressionSize(src, |
|---|
| 10402 | n/a | &srcRect, |
|---|
| 10403 | n/a | colorDepth, |
|---|
| 10404 | n/a | quality, |
|---|
| 10405 | n/a | cType, |
|---|
| 10406 | n/a | codec, |
|---|
| 10407 | n/a | &size); |
|---|
| 10408 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10409 | n/a | _res = Py_BuildValue("l", |
|---|
| 10410 | n/a | size); |
|---|
| 10411 | n/a | return _res; |
|---|
| 10412 | n/a | } |
|---|
| 10413 | n/a | |
|---|
| 10414 | n/a | static PyObject *Qt_GetCompressionTime(PyObject *_self, PyObject *_args) |
|---|
| 10415 | n/a | { |
|---|
| 10416 | n/a | PyObject *_res = NULL; |
|---|
| 10417 | n/a | OSErr _err; |
|---|
| 10418 | n/a | PixMapHandle src; |
|---|
| 10419 | n/a | Rect srcRect; |
|---|
| 10420 | n/a | short colorDepth; |
|---|
| 10421 | n/a | CodecType cType; |
|---|
| 10422 | n/a | CompressorComponent codec; |
|---|
| 10423 | n/a | CodecQ spatialQuality; |
|---|
| 10424 | n/a | CodecQ temporalQuality; |
|---|
| 10425 | n/a | unsigned long compressTime; |
|---|
| 10426 | n/a | #ifndef GetCompressionTime |
|---|
| 10427 | n/a | PyMac_PRECHECK(GetCompressionTime); |
|---|
| 10428 | n/a | #endif |
|---|
| 10429 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hO&O&", |
|---|
| 10430 | n/a | ResObj_Convert, &src, |
|---|
| 10431 | n/a | PyMac_GetRect, &srcRect, |
|---|
| 10432 | n/a | &colorDepth, |
|---|
| 10433 | n/a | PyMac_GetOSType, &cType, |
|---|
| 10434 | n/a | CmpObj_Convert, &codec)) |
|---|
| 10435 | n/a | return NULL; |
|---|
| 10436 | n/a | _err = GetCompressionTime(src, |
|---|
| 10437 | n/a | &srcRect, |
|---|
| 10438 | n/a | colorDepth, |
|---|
| 10439 | n/a | cType, |
|---|
| 10440 | n/a | codec, |
|---|
| 10441 | n/a | &spatialQuality, |
|---|
| 10442 | n/a | &temporalQuality, |
|---|
| 10443 | n/a | &compressTime); |
|---|
| 10444 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10445 | n/a | _res = Py_BuildValue("lll", |
|---|
| 10446 | n/a | spatialQuality, |
|---|
| 10447 | n/a | temporalQuality, |
|---|
| 10448 | n/a | compressTime); |
|---|
| 10449 | n/a | return _res; |
|---|
| 10450 | n/a | } |
|---|
| 10451 | n/a | |
|---|
| 10452 | n/a | static PyObject *Qt_CompressImage(PyObject *_self, PyObject *_args) |
|---|
| 10453 | n/a | { |
|---|
| 10454 | n/a | PyObject *_res = NULL; |
|---|
| 10455 | n/a | OSErr _err; |
|---|
| 10456 | n/a | PixMapHandle src; |
|---|
| 10457 | n/a | Rect srcRect; |
|---|
| 10458 | n/a | CodecQ quality; |
|---|
| 10459 | n/a | CodecType cType; |
|---|
| 10460 | n/a | ImageDescriptionHandle desc; |
|---|
| 10461 | n/a | Ptr data; |
|---|
| 10462 | n/a | #ifndef CompressImage |
|---|
| 10463 | n/a | PyMac_PRECHECK(CompressImage); |
|---|
| 10464 | n/a | #endif |
|---|
| 10465 | n/a | if (!PyArg_ParseTuple(_args, "O&O&lO&O&s", |
|---|
| 10466 | n/a | ResObj_Convert, &src, |
|---|
| 10467 | n/a | PyMac_GetRect, &srcRect, |
|---|
| 10468 | n/a | &quality, |
|---|
| 10469 | n/a | PyMac_GetOSType, &cType, |
|---|
| 10470 | n/a | ResObj_Convert, &desc, |
|---|
| 10471 | n/a | &data)) |
|---|
| 10472 | n/a | return NULL; |
|---|
| 10473 | n/a | _err = CompressImage(src, |
|---|
| 10474 | n/a | &srcRect, |
|---|
| 10475 | n/a | quality, |
|---|
| 10476 | n/a | cType, |
|---|
| 10477 | n/a | desc, |
|---|
| 10478 | n/a | data); |
|---|
| 10479 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10480 | n/a | Py_INCREF(Py_None); |
|---|
| 10481 | n/a | _res = Py_None; |
|---|
| 10482 | n/a | return _res; |
|---|
| 10483 | n/a | } |
|---|
| 10484 | n/a | |
|---|
| 10485 | n/a | static PyObject *Qt_DecompressImage(PyObject *_self, PyObject *_args) |
|---|
| 10486 | n/a | { |
|---|
| 10487 | n/a | PyObject *_res = NULL; |
|---|
| 10488 | n/a | OSErr _err; |
|---|
| 10489 | n/a | Ptr data; |
|---|
| 10490 | n/a | ImageDescriptionHandle desc; |
|---|
| 10491 | n/a | PixMapHandle dst; |
|---|
| 10492 | n/a | Rect srcRect; |
|---|
| 10493 | n/a | Rect dstRect; |
|---|
| 10494 | n/a | short mode; |
|---|
| 10495 | n/a | RgnHandle mask; |
|---|
| 10496 | n/a | #ifndef DecompressImage |
|---|
| 10497 | n/a | PyMac_PRECHECK(DecompressImage); |
|---|
| 10498 | n/a | #endif |
|---|
| 10499 | n/a | if (!PyArg_ParseTuple(_args, "sO&O&O&O&hO&", |
|---|
| 10500 | n/a | &data, |
|---|
| 10501 | n/a | ResObj_Convert, &desc, |
|---|
| 10502 | n/a | ResObj_Convert, &dst, |
|---|
| 10503 | n/a | PyMac_GetRect, &srcRect, |
|---|
| 10504 | n/a | PyMac_GetRect, &dstRect, |
|---|
| 10505 | n/a | &mode, |
|---|
| 10506 | n/a | ResObj_Convert, &mask)) |
|---|
| 10507 | n/a | return NULL; |
|---|
| 10508 | n/a | _err = DecompressImage(data, |
|---|
| 10509 | n/a | desc, |
|---|
| 10510 | n/a | dst, |
|---|
| 10511 | n/a | &srcRect, |
|---|
| 10512 | n/a | &dstRect, |
|---|
| 10513 | n/a | mode, |
|---|
| 10514 | n/a | mask); |
|---|
| 10515 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10516 | n/a | Py_INCREF(Py_None); |
|---|
| 10517 | n/a | _res = Py_None; |
|---|
| 10518 | n/a | return _res; |
|---|
| 10519 | n/a | } |
|---|
| 10520 | n/a | |
|---|
| 10521 | n/a | static PyObject *Qt_GetSimilarity(PyObject *_self, PyObject *_args) |
|---|
| 10522 | n/a | { |
|---|
| 10523 | n/a | PyObject *_res = NULL; |
|---|
| 10524 | n/a | OSErr _err; |
|---|
| 10525 | n/a | PixMapHandle src; |
|---|
| 10526 | n/a | Rect srcRect; |
|---|
| 10527 | n/a | ImageDescriptionHandle desc; |
|---|
| 10528 | n/a | Ptr data; |
|---|
| 10529 | n/a | Fixed similarity; |
|---|
| 10530 | n/a | #ifndef GetSimilarity |
|---|
| 10531 | n/a | PyMac_PRECHECK(GetSimilarity); |
|---|
| 10532 | n/a | #endif |
|---|
| 10533 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&s", |
|---|
| 10534 | n/a | ResObj_Convert, &src, |
|---|
| 10535 | n/a | PyMac_GetRect, &srcRect, |
|---|
| 10536 | n/a | ResObj_Convert, &desc, |
|---|
| 10537 | n/a | &data)) |
|---|
| 10538 | n/a | return NULL; |
|---|
| 10539 | n/a | _err = GetSimilarity(src, |
|---|
| 10540 | n/a | &srcRect, |
|---|
| 10541 | n/a | desc, |
|---|
| 10542 | n/a | data, |
|---|
| 10543 | n/a | &similarity); |
|---|
| 10544 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10545 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10546 | n/a | PyMac_BuildFixed, similarity); |
|---|
| 10547 | n/a | return _res; |
|---|
| 10548 | n/a | } |
|---|
| 10549 | n/a | |
|---|
| 10550 | n/a | static PyObject *Qt_GetImageDescriptionCTable(PyObject *_self, PyObject *_args) |
|---|
| 10551 | n/a | { |
|---|
| 10552 | n/a | PyObject *_res = NULL; |
|---|
| 10553 | n/a | OSErr _err; |
|---|
| 10554 | n/a | ImageDescriptionHandle desc; |
|---|
| 10555 | n/a | CTabHandle ctable; |
|---|
| 10556 | n/a | #ifndef GetImageDescriptionCTable |
|---|
| 10557 | n/a | PyMac_PRECHECK(GetImageDescriptionCTable); |
|---|
| 10558 | n/a | #endif |
|---|
| 10559 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 10560 | n/a | ResObj_Convert, &desc)) |
|---|
| 10561 | n/a | return NULL; |
|---|
| 10562 | n/a | _err = GetImageDescriptionCTable(desc, |
|---|
| 10563 | n/a | &ctable); |
|---|
| 10564 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10565 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10566 | n/a | ResObj_New, ctable); |
|---|
| 10567 | n/a | return _res; |
|---|
| 10568 | n/a | } |
|---|
| 10569 | n/a | |
|---|
| 10570 | n/a | static PyObject *Qt_SetImageDescriptionCTable(PyObject *_self, PyObject *_args) |
|---|
| 10571 | n/a | { |
|---|
| 10572 | n/a | PyObject *_res = NULL; |
|---|
| 10573 | n/a | OSErr _err; |
|---|
| 10574 | n/a | ImageDescriptionHandle desc; |
|---|
| 10575 | n/a | CTabHandle ctable; |
|---|
| 10576 | n/a | #ifndef SetImageDescriptionCTable |
|---|
| 10577 | n/a | PyMac_PRECHECK(SetImageDescriptionCTable); |
|---|
| 10578 | n/a | #endif |
|---|
| 10579 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 10580 | n/a | ResObj_Convert, &desc, |
|---|
| 10581 | n/a | ResObj_Convert, &ctable)) |
|---|
| 10582 | n/a | return NULL; |
|---|
| 10583 | n/a | _err = SetImageDescriptionCTable(desc, |
|---|
| 10584 | n/a | ctable); |
|---|
| 10585 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10586 | n/a | Py_INCREF(Py_None); |
|---|
| 10587 | n/a | _res = Py_None; |
|---|
| 10588 | n/a | return _res; |
|---|
| 10589 | n/a | } |
|---|
| 10590 | n/a | |
|---|
| 10591 | n/a | static PyObject *Qt_GetImageDescriptionExtension(PyObject *_self, PyObject *_args) |
|---|
| 10592 | n/a | { |
|---|
| 10593 | n/a | PyObject *_res = NULL; |
|---|
| 10594 | n/a | OSErr _err; |
|---|
| 10595 | n/a | ImageDescriptionHandle desc; |
|---|
| 10596 | n/a | Handle extension; |
|---|
| 10597 | n/a | long idType; |
|---|
| 10598 | n/a | long index; |
|---|
| 10599 | n/a | #ifndef GetImageDescriptionExtension |
|---|
| 10600 | n/a | PyMac_PRECHECK(GetImageDescriptionExtension); |
|---|
| 10601 | n/a | #endif |
|---|
| 10602 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 10603 | n/a | ResObj_Convert, &desc, |
|---|
| 10604 | n/a | &idType, |
|---|
| 10605 | n/a | &index)) |
|---|
| 10606 | n/a | return NULL; |
|---|
| 10607 | n/a | _err = GetImageDescriptionExtension(desc, |
|---|
| 10608 | n/a | &extension, |
|---|
| 10609 | n/a | idType, |
|---|
| 10610 | n/a | index); |
|---|
| 10611 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10612 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10613 | n/a | ResObj_New, extension); |
|---|
| 10614 | n/a | return _res; |
|---|
| 10615 | n/a | } |
|---|
| 10616 | n/a | |
|---|
| 10617 | n/a | static PyObject *Qt_AddImageDescriptionExtension(PyObject *_self, PyObject *_args) |
|---|
| 10618 | n/a | { |
|---|
| 10619 | n/a | PyObject *_res = NULL; |
|---|
| 10620 | n/a | OSErr _err; |
|---|
| 10621 | n/a | ImageDescriptionHandle desc; |
|---|
| 10622 | n/a | Handle extension; |
|---|
| 10623 | n/a | long idType; |
|---|
| 10624 | n/a | #ifndef AddImageDescriptionExtension |
|---|
| 10625 | n/a | PyMac_PRECHECK(AddImageDescriptionExtension); |
|---|
| 10626 | n/a | #endif |
|---|
| 10627 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 10628 | n/a | ResObj_Convert, &desc, |
|---|
| 10629 | n/a | ResObj_Convert, &extension, |
|---|
| 10630 | n/a | &idType)) |
|---|
| 10631 | n/a | return NULL; |
|---|
| 10632 | n/a | _err = AddImageDescriptionExtension(desc, |
|---|
| 10633 | n/a | extension, |
|---|
| 10634 | n/a | idType); |
|---|
| 10635 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10636 | n/a | Py_INCREF(Py_None); |
|---|
| 10637 | n/a | _res = Py_None; |
|---|
| 10638 | n/a | return _res; |
|---|
| 10639 | n/a | } |
|---|
| 10640 | n/a | |
|---|
| 10641 | n/a | static PyObject *Qt_RemoveImageDescriptionExtension(PyObject *_self, PyObject *_args) |
|---|
| 10642 | n/a | { |
|---|
| 10643 | n/a | PyObject *_res = NULL; |
|---|
| 10644 | n/a | OSErr _err; |
|---|
| 10645 | n/a | ImageDescriptionHandle desc; |
|---|
| 10646 | n/a | long idType; |
|---|
| 10647 | n/a | long index; |
|---|
| 10648 | n/a | #ifndef RemoveImageDescriptionExtension |
|---|
| 10649 | n/a | PyMac_PRECHECK(RemoveImageDescriptionExtension); |
|---|
| 10650 | n/a | #endif |
|---|
| 10651 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 10652 | n/a | ResObj_Convert, &desc, |
|---|
| 10653 | n/a | &idType, |
|---|
| 10654 | n/a | &index)) |
|---|
| 10655 | n/a | return NULL; |
|---|
| 10656 | n/a | _err = RemoveImageDescriptionExtension(desc, |
|---|
| 10657 | n/a | idType, |
|---|
| 10658 | n/a | index); |
|---|
| 10659 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10660 | n/a | Py_INCREF(Py_None); |
|---|
| 10661 | n/a | _res = Py_None; |
|---|
| 10662 | n/a | return _res; |
|---|
| 10663 | n/a | } |
|---|
| 10664 | n/a | |
|---|
| 10665 | n/a | static PyObject *Qt_CountImageDescriptionExtensionType(PyObject *_self, PyObject *_args) |
|---|
| 10666 | n/a | { |
|---|
| 10667 | n/a | PyObject *_res = NULL; |
|---|
| 10668 | n/a | OSErr _err; |
|---|
| 10669 | n/a | ImageDescriptionHandle desc; |
|---|
| 10670 | n/a | long idType; |
|---|
| 10671 | n/a | long count; |
|---|
| 10672 | n/a | #ifndef CountImageDescriptionExtensionType |
|---|
| 10673 | n/a | PyMac_PRECHECK(CountImageDescriptionExtensionType); |
|---|
| 10674 | n/a | #endif |
|---|
| 10675 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 10676 | n/a | ResObj_Convert, &desc, |
|---|
| 10677 | n/a | &idType)) |
|---|
| 10678 | n/a | return NULL; |
|---|
| 10679 | n/a | _err = CountImageDescriptionExtensionType(desc, |
|---|
| 10680 | n/a | idType, |
|---|
| 10681 | n/a | &count); |
|---|
| 10682 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10683 | n/a | _res = Py_BuildValue("l", |
|---|
| 10684 | n/a | count); |
|---|
| 10685 | n/a | return _res; |
|---|
| 10686 | n/a | } |
|---|
| 10687 | n/a | |
|---|
| 10688 | n/a | static PyObject *Qt_GetNextImageDescriptionExtensionType(PyObject *_self, PyObject *_args) |
|---|
| 10689 | n/a | { |
|---|
| 10690 | n/a | PyObject *_res = NULL; |
|---|
| 10691 | n/a | OSErr _err; |
|---|
| 10692 | n/a | ImageDescriptionHandle desc; |
|---|
| 10693 | n/a | long idType; |
|---|
| 10694 | n/a | #ifndef GetNextImageDescriptionExtensionType |
|---|
| 10695 | n/a | PyMac_PRECHECK(GetNextImageDescriptionExtensionType); |
|---|
| 10696 | n/a | #endif |
|---|
| 10697 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 10698 | n/a | ResObj_Convert, &desc)) |
|---|
| 10699 | n/a | return NULL; |
|---|
| 10700 | n/a | _err = GetNextImageDescriptionExtensionType(desc, |
|---|
| 10701 | n/a | &idType); |
|---|
| 10702 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10703 | n/a | _res = Py_BuildValue("l", |
|---|
| 10704 | n/a | idType); |
|---|
| 10705 | n/a | return _res; |
|---|
| 10706 | n/a | } |
|---|
| 10707 | n/a | |
|---|
| 10708 | n/a | static PyObject *Qt_FindCodec(PyObject *_self, PyObject *_args) |
|---|
| 10709 | n/a | { |
|---|
| 10710 | n/a | PyObject *_res = NULL; |
|---|
| 10711 | n/a | OSErr _err; |
|---|
| 10712 | n/a | CodecType cType; |
|---|
| 10713 | n/a | CodecComponent specCodec; |
|---|
| 10714 | n/a | CompressorComponent compressor; |
|---|
| 10715 | n/a | DecompressorComponent decompressor; |
|---|
| 10716 | n/a | #ifndef FindCodec |
|---|
| 10717 | n/a | PyMac_PRECHECK(FindCodec); |
|---|
| 10718 | n/a | #endif |
|---|
| 10719 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 10720 | n/a | PyMac_GetOSType, &cType, |
|---|
| 10721 | n/a | CmpObj_Convert, &specCodec)) |
|---|
| 10722 | n/a | return NULL; |
|---|
| 10723 | n/a | _err = FindCodec(cType, |
|---|
| 10724 | n/a | specCodec, |
|---|
| 10725 | n/a | &compressor, |
|---|
| 10726 | n/a | &decompressor); |
|---|
| 10727 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10728 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 10729 | n/a | CmpObj_New, compressor, |
|---|
| 10730 | n/a | CmpObj_New, decompressor); |
|---|
| 10731 | n/a | return _res; |
|---|
| 10732 | n/a | } |
|---|
| 10733 | n/a | |
|---|
| 10734 | n/a | static PyObject *Qt_CompressPicture(PyObject *_self, PyObject *_args) |
|---|
| 10735 | n/a | { |
|---|
| 10736 | n/a | PyObject *_res = NULL; |
|---|
| 10737 | n/a | OSErr _err; |
|---|
| 10738 | n/a | PicHandle srcPicture; |
|---|
| 10739 | n/a | PicHandle dstPicture; |
|---|
| 10740 | n/a | CodecQ quality; |
|---|
| 10741 | n/a | CodecType cType; |
|---|
| 10742 | n/a | #ifndef CompressPicture |
|---|
| 10743 | n/a | PyMac_PRECHECK(CompressPicture); |
|---|
| 10744 | n/a | #endif |
|---|
| 10745 | n/a | if (!PyArg_ParseTuple(_args, "O&O&lO&", |
|---|
| 10746 | n/a | ResObj_Convert, &srcPicture, |
|---|
| 10747 | n/a | ResObj_Convert, &dstPicture, |
|---|
| 10748 | n/a | &quality, |
|---|
| 10749 | n/a | PyMac_GetOSType, &cType)) |
|---|
| 10750 | n/a | return NULL; |
|---|
| 10751 | n/a | _err = CompressPicture(srcPicture, |
|---|
| 10752 | n/a | dstPicture, |
|---|
| 10753 | n/a | quality, |
|---|
| 10754 | n/a | cType); |
|---|
| 10755 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10756 | n/a | Py_INCREF(Py_None); |
|---|
| 10757 | n/a | _res = Py_None; |
|---|
| 10758 | n/a | return _res; |
|---|
| 10759 | n/a | } |
|---|
| 10760 | n/a | |
|---|
| 10761 | n/a | static PyObject *Qt_CompressPictureFile(PyObject *_self, PyObject *_args) |
|---|
| 10762 | n/a | { |
|---|
| 10763 | n/a | PyObject *_res = NULL; |
|---|
| 10764 | n/a | OSErr _err; |
|---|
| 10765 | n/a | short srcRefNum; |
|---|
| 10766 | n/a | short dstRefNum; |
|---|
| 10767 | n/a | CodecQ quality; |
|---|
| 10768 | n/a | CodecType cType; |
|---|
| 10769 | n/a | #ifndef CompressPictureFile |
|---|
| 10770 | n/a | PyMac_PRECHECK(CompressPictureFile); |
|---|
| 10771 | n/a | #endif |
|---|
| 10772 | n/a | if (!PyArg_ParseTuple(_args, "hhlO&", |
|---|
| 10773 | n/a | &srcRefNum, |
|---|
| 10774 | n/a | &dstRefNum, |
|---|
| 10775 | n/a | &quality, |
|---|
| 10776 | n/a | PyMac_GetOSType, &cType)) |
|---|
| 10777 | n/a | return NULL; |
|---|
| 10778 | n/a | _err = CompressPictureFile(srcRefNum, |
|---|
| 10779 | n/a | dstRefNum, |
|---|
| 10780 | n/a | quality, |
|---|
| 10781 | n/a | cType); |
|---|
| 10782 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10783 | n/a | Py_INCREF(Py_None); |
|---|
| 10784 | n/a | _res = Py_None; |
|---|
| 10785 | n/a | return _res; |
|---|
| 10786 | n/a | } |
|---|
| 10787 | n/a | |
|---|
| 10788 | n/a | static PyObject *Qt_ConvertImage(PyObject *_self, PyObject *_args) |
|---|
| 10789 | n/a | { |
|---|
| 10790 | n/a | PyObject *_res = NULL; |
|---|
| 10791 | n/a | OSErr _err; |
|---|
| 10792 | n/a | ImageDescriptionHandle srcDD; |
|---|
| 10793 | n/a | Ptr srcData; |
|---|
| 10794 | n/a | short colorDepth; |
|---|
| 10795 | n/a | CTabHandle ctable; |
|---|
| 10796 | n/a | CodecQ accuracy; |
|---|
| 10797 | n/a | CodecQ quality; |
|---|
| 10798 | n/a | CodecType cType; |
|---|
| 10799 | n/a | CodecComponent codec; |
|---|
| 10800 | n/a | ImageDescriptionHandle dstDD; |
|---|
| 10801 | n/a | Ptr dstData; |
|---|
| 10802 | n/a | #ifndef ConvertImage |
|---|
| 10803 | n/a | PyMac_PRECHECK(ConvertImage); |
|---|
| 10804 | n/a | #endif |
|---|
| 10805 | n/a | if (!PyArg_ParseTuple(_args, "O&shO&llO&O&O&s", |
|---|
| 10806 | n/a | ResObj_Convert, &srcDD, |
|---|
| 10807 | n/a | &srcData, |
|---|
| 10808 | n/a | &colorDepth, |
|---|
| 10809 | n/a | ResObj_Convert, &ctable, |
|---|
| 10810 | n/a | &accuracy, |
|---|
| 10811 | n/a | &quality, |
|---|
| 10812 | n/a | PyMac_GetOSType, &cType, |
|---|
| 10813 | n/a | CmpObj_Convert, &codec, |
|---|
| 10814 | n/a | ResObj_Convert, &dstDD, |
|---|
| 10815 | n/a | &dstData)) |
|---|
| 10816 | n/a | return NULL; |
|---|
| 10817 | n/a | _err = ConvertImage(srcDD, |
|---|
| 10818 | n/a | srcData, |
|---|
| 10819 | n/a | colorDepth, |
|---|
| 10820 | n/a | ctable, |
|---|
| 10821 | n/a | accuracy, |
|---|
| 10822 | n/a | quality, |
|---|
| 10823 | n/a | cType, |
|---|
| 10824 | n/a | codec, |
|---|
| 10825 | n/a | dstDD, |
|---|
| 10826 | n/a | dstData); |
|---|
| 10827 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10828 | n/a | Py_INCREF(Py_None); |
|---|
| 10829 | n/a | _res = Py_None; |
|---|
| 10830 | n/a | return _res; |
|---|
| 10831 | n/a | } |
|---|
| 10832 | n/a | |
|---|
| 10833 | n/a | static PyObject *Qt_AddFilePreview(PyObject *_self, PyObject *_args) |
|---|
| 10834 | n/a | { |
|---|
| 10835 | n/a | PyObject *_res = NULL; |
|---|
| 10836 | n/a | OSErr _err; |
|---|
| 10837 | n/a | short resRefNum; |
|---|
| 10838 | n/a | OSType previewType; |
|---|
| 10839 | n/a | Handle previewData; |
|---|
| 10840 | n/a | #ifndef AddFilePreview |
|---|
| 10841 | n/a | PyMac_PRECHECK(AddFilePreview); |
|---|
| 10842 | n/a | #endif |
|---|
| 10843 | n/a | if (!PyArg_ParseTuple(_args, "hO&O&", |
|---|
| 10844 | n/a | &resRefNum, |
|---|
| 10845 | n/a | PyMac_GetOSType, &previewType, |
|---|
| 10846 | n/a | ResObj_Convert, &previewData)) |
|---|
| 10847 | n/a | return NULL; |
|---|
| 10848 | n/a | _err = AddFilePreview(resRefNum, |
|---|
| 10849 | n/a | previewType, |
|---|
| 10850 | n/a | previewData); |
|---|
| 10851 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10852 | n/a | Py_INCREF(Py_None); |
|---|
| 10853 | n/a | _res = Py_None; |
|---|
| 10854 | n/a | return _res; |
|---|
| 10855 | n/a | } |
|---|
| 10856 | n/a | |
|---|
| 10857 | n/a | static PyObject *Qt_GetBestDeviceRect(PyObject *_self, PyObject *_args) |
|---|
| 10858 | n/a | { |
|---|
| 10859 | n/a | PyObject *_res = NULL; |
|---|
| 10860 | n/a | OSErr _err; |
|---|
| 10861 | n/a | GDHandle gdh; |
|---|
| 10862 | n/a | Rect rp; |
|---|
| 10863 | n/a | #ifndef GetBestDeviceRect |
|---|
| 10864 | n/a | PyMac_PRECHECK(GetBestDeviceRect); |
|---|
| 10865 | n/a | #endif |
|---|
| 10866 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 10867 | n/a | return NULL; |
|---|
| 10868 | n/a | _err = GetBestDeviceRect(&gdh, |
|---|
| 10869 | n/a | &rp); |
|---|
| 10870 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10871 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 10872 | n/a | OptResObj_New, gdh, |
|---|
| 10873 | n/a | PyMac_BuildRect, &rp); |
|---|
| 10874 | n/a | return _res; |
|---|
| 10875 | n/a | } |
|---|
| 10876 | n/a | |
|---|
| 10877 | n/a | static PyObject *Qt_GDHasScale(PyObject *_self, PyObject *_args) |
|---|
| 10878 | n/a | { |
|---|
| 10879 | n/a | PyObject *_res = NULL; |
|---|
| 10880 | n/a | OSErr _err; |
|---|
| 10881 | n/a | GDHandle gdh; |
|---|
| 10882 | n/a | short depth; |
|---|
| 10883 | n/a | Fixed scale; |
|---|
| 10884 | n/a | #ifndef GDHasScale |
|---|
| 10885 | n/a | PyMac_PRECHECK(GDHasScale); |
|---|
| 10886 | n/a | #endif |
|---|
| 10887 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 10888 | n/a | OptResObj_Convert, &gdh, |
|---|
| 10889 | n/a | &depth)) |
|---|
| 10890 | n/a | return NULL; |
|---|
| 10891 | n/a | _err = GDHasScale(gdh, |
|---|
| 10892 | n/a | depth, |
|---|
| 10893 | n/a | &scale); |
|---|
| 10894 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10895 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10896 | n/a | PyMac_BuildFixed, scale); |
|---|
| 10897 | n/a | return _res; |
|---|
| 10898 | n/a | } |
|---|
| 10899 | n/a | |
|---|
| 10900 | n/a | static PyObject *Qt_GDGetScale(PyObject *_self, PyObject *_args) |
|---|
| 10901 | n/a | { |
|---|
| 10902 | n/a | PyObject *_res = NULL; |
|---|
| 10903 | n/a | OSErr _err; |
|---|
| 10904 | n/a | GDHandle gdh; |
|---|
| 10905 | n/a | Fixed scale; |
|---|
| 10906 | n/a | short flags; |
|---|
| 10907 | n/a | #ifndef GDGetScale |
|---|
| 10908 | n/a | PyMac_PRECHECK(GDGetScale); |
|---|
| 10909 | n/a | #endif |
|---|
| 10910 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 10911 | n/a | OptResObj_Convert, &gdh)) |
|---|
| 10912 | n/a | return NULL; |
|---|
| 10913 | n/a | _err = GDGetScale(gdh, |
|---|
| 10914 | n/a | &scale, |
|---|
| 10915 | n/a | &flags); |
|---|
| 10916 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10917 | n/a | _res = Py_BuildValue("O&h", |
|---|
| 10918 | n/a | PyMac_BuildFixed, scale, |
|---|
| 10919 | n/a | flags); |
|---|
| 10920 | n/a | return _res; |
|---|
| 10921 | n/a | } |
|---|
| 10922 | n/a | |
|---|
| 10923 | n/a | static PyObject *Qt_GDSetScale(PyObject *_self, PyObject *_args) |
|---|
| 10924 | n/a | { |
|---|
| 10925 | n/a | PyObject *_res = NULL; |
|---|
| 10926 | n/a | OSErr _err; |
|---|
| 10927 | n/a | GDHandle gdh; |
|---|
| 10928 | n/a | Fixed scale; |
|---|
| 10929 | n/a | short flags; |
|---|
| 10930 | n/a | #ifndef GDSetScale |
|---|
| 10931 | n/a | PyMac_PRECHECK(GDSetScale); |
|---|
| 10932 | n/a | #endif |
|---|
| 10933 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 10934 | n/a | OptResObj_Convert, &gdh, |
|---|
| 10935 | n/a | PyMac_GetFixed, &scale, |
|---|
| 10936 | n/a | &flags)) |
|---|
| 10937 | n/a | return NULL; |
|---|
| 10938 | n/a | _err = GDSetScale(gdh, |
|---|
| 10939 | n/a | scale, |
|---|
| 10940 | n/a | flags); |
|---|
| 10941 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10942 | n/a | Py_INCREF(Py_None); |
|---|
| 10943 | n/a | _res = Py_None; |
|---|
| 10944 | n/a | return _res; |
|---|
| 10945 | n/a | } |
|---|
| 10946 | n/a | |
|---|
| 10947 | n/a | static PyObject *Qt_GetGraphicsImporterForFile(PyObject *_self, PyObject *_args) |
|---|
| 10948 | n/a | { |
|---|
| 10949 | n/a | PyObject *_res = NULL; |
|---|
| 10950 | n/a | OSErr _err; |
|---|
| 10951 | n/a | FSSpec theFile; |
|---|
| 10952 | n/a | ComponentInstance gi; |
|---|
| 10953 | n/a | #ifndef GetGraphicsImporterForFile |
|---|
| 10954 | n/a | PyMac_PRECHECK(GetGraphicsImporterForFile); |
|---|
| 10955 | n/a | #endif |
|---|
| 10956 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 10957 | n/a | PyMac_GetFSSpec, &theFile)) |
|---|
| 10958 | n/a | return NULL; |
|---|
| 10959 | n/a | _err = GetGraphicsImporterForFile(&theFile, |
|---|
| 10960 | n/a | &gi); |
|---|
| 10961 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10962 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10963 | n/a | CmpInstObj_New, gi); |
|---|
| 10964 | n/a | return _res; |
|---|
| 10965 | n/a | } |
|---|
| 10966 | n/a | |
|---|
| 10967 | n/a | static PyObject *Qt_GetGraphicsImporterForDataRef(PyObject *_self, PyObject *_args) |
|---|
| 10968 | n/a | { |
|---|
| 10969 | n/a | PyObject *_res = NULL; |
|---|
| 10970 | n/a | OSErr _err; |
|---|
| 10971 | n/a | Handle dataRef; |
|---|
| 10972 | n/a | OSType dataRefType; |
|---|
| 10973 | n/a | ComponentInstance gi; |
|---|
| 10974 | n/a | #ifndef GetGraphicsImporterForDataRef |
|---|
| 10975 | n/a | PyMac_PRECHECK(GetGraphicsImporterForDataRef); |
|---|
| 10976 | n/a | #endif |
|---|
| 10977 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 10978 | n/a | ResObj_Convert, &dataRef, |
|---|
| 10979 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 10980 | n/a | return NULL; |
|---|
| 10981 | n/a | _err = GetGraphicsImporterForDataRef(dataRef, |
|---|
| 10982 | n/a | dataRefType, |
|---|
| 10983 | n/a | &gi); |
|---|
| 10984 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 10985 | n/a | _res = Py_BuildValue("O&", |
|---|
| 10986 | n/a | CmpInstObj_New, gi); |
|---|
| 10987 | n/a | return _res; |
|---|
| 10988 | n/a | } |
|---|
| 10989 | n/a | |
|---|
| 10990 | n/a | static PyObject *Qt_GetGraphicsImporterForFileWithFlags(PyObject *_self, PyObject *_args) |
|---|
| 10991 | n/a | { |
|---|
| 10992 | n/a | PyObject *_res = NULL; |
|---|
| 10993 | n/a | OSErr _err; |
|---|
| 10994 | n/a | FSSpec theFile; |
|---|
| 10995 | n/a | ComponentInstance gi; |
|---|
| 10996 | n/a | long flags; |
|---|
| 10997 | n/a | #ifndef GetGraphicsImporterForFileWithFlags |
|---|
| 10998 | n/a | PyMac_PRECHECK(GetGraphicsImporterForFileWithFlags); |
|---|
| 10999 | n/a | #endif |
|---|
| 11000 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 11001 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 11002 | n/a | &flags)) |
|---|
| 11003 | n/a | return NULL; |
|---|
| 11004 | n/a | _err = GetGraphicsImporterForFileWithFlags(&theFile, |
|---|
| 11005 | n/a | &gi, |
|---|
| 11006 | n/a | flags); |
|---|
| 11007 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11008 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11009 | n/a | CmpInstObj_New, gi); |
|---|
| 11010 | n/a | return _res; |
|---|
| 11011 | n/a | } |
|---|
| 11012 | n/a | |
|---|
| 11013 | n/a | static PyObject *Qt_GetGraphicsImporterForDataRefWithFlags(PyObject *_self, PyObject *_args) |
|---|
| 11014 | n/a | { |
|---|
| 11015 | n/a | PyObject *_res = NULL; |
|---|
| 11016 | n/a | OSErr _err; |
|---|
| 11017 | n/a | Handle dataRef; |
|---|
| 11018 | n/a | OSType dataRefType; |
|---|
| 11019 | n/a | ComponentInstance gi; |
|---|
| 11020 | n/a | long flags; |
|---|
| 11021 | n/a | #ifndef GetGraphicsImporterForDataRefWithFlags |
|---|
| 11022 | n/a | PyMac_PRECHECK(GetGraphicsImporterForDataRefWithFlags); |
|---|
| 11023 | n/a | #endif |
|---|
| 11024 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 11025 | n/a | ResObj_Convert, &dataRef, |
|---|
| 11026 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 11027 | n/a | &flags)) |
|---|
| 11028 | n/a | return NULL; |
|---|
| 11029 | n/a | _err = GetGraphicsImporterForDataRefWithFlags(dataRef, |
|---|
| 11030 | n/a | dataRefType, |
|---|
| 11031 | n/a | &gi, |
|---|
| 11032 | n/a | flags); |
|---|
| 11033 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11034 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11035 | n/a | CmpInstObj_New, gi); |
|---|
| 11036 | n/a | return _res; |
|---|
| 11037 | n/a | } |
|---|
| 11038 | n/a | |
|---|
| 11039 | n/a | static PyObject *Qt_MakeImageDescriptionForPixMap(PyObject *_self, PyObject *_args) |
|---|
| 11040 | n/a | { |
|---|
| 11041 | n/a | PyObject *_res = NULL; |
|---|
| 11042 | n/a | OSErr _err; |
|---|
| 11043 | n/a | PixMapHandle pixmap; |
|---|
| 11044 | n/a | ImageDescriptionHandle idh; |
|---|
| 11045 | n/a | #ifndef MakeImageDescriptionForPixMap |
|---|
| 11046 | n/a | PyMac_PRECHECK(MakeImageDescriptionForPixMap); |
|---|
| 11047 | n/a | #endif |
|---|
| 11048 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11049 | n/a | ResObj_Convert, &pixmap)) |
|---|
| 11050 | n/a | return NULL; |
|---|
| 11051 | n/a | _err = MakeImageDescriptionForPixMap(pixmap, |
|---|
| 11052 | n/a | &idh); |
|---|
| 11053 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11054 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11055 | n/a | ResObj_New, idh); |
|---|
| 11056 | n/a | return _res; |
|---|
| 11057 | n/a | } |
|---|
| 11058 | n/a | |
|---|
| 11059 | n/a | static PyObject *Qt_MakeImageDescriptionForEffect(PyObject *_self, PyObject *_args) |
|---|
| 11060 | n/a | { |
|---|
| 11061 | n/a | PyObject *_res = NULL; |
|---|
| 11062 | n/a | OSErr _err; |
|---|
| 11063 | n/a | OSType effectType; |
|---|
| 11064 | n/a | ImageDescriptionHandle idh; |
|---|
| 11065 | n/a | #ifndef MakeImageDescriptionForEffect |
|---|
| 11066 | n/a | PyMac_PRECHECK(MakeImageDescriptionForEffect); |
|---|
| 11067 | n/a | #endif |
|---|
| 11068 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11069 | n/a | PyMac_GetOSType, &effectType)) |
|---|
| 11070 | n/a | return NULL; |
|---|
| 11071 | n/a | _err = MakeImageDescriptionForEffect(effectType, |
|---|
| 11072 | n/a | &idh); |
|---|
| 11073 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11074 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11075 | n/a | ResObj_New, idh); |
|---|
| 11076 | n/a | return _res; |
|---|
| 11077 | n/a | } |
|---|
| 11078 | n/a | |
|---|
| 11079 | n/a | static PyObject *Qt_QTGetPixelSize(PyObject *_self, PyObject *_args) |
|---|
| 11080 | n/a | { |
|---|
| 11081 | n/a | PyObject *_res = NULL; |
|---|
| 11082 | n/a | short _rv; |
|---|
| 11083 | n/a | OSType PixelFormat; |
|---|
| 11084 | n/a | #ifndef QTGetPixelSize |
|---|
| 11085 | n/a | PyMac_PRECHECK(QTGetPixelSize); |
|---|
| 11086 | n/a | #endif |
|---|
| 11087 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11088 | n/a | PyMac_GetOSType, &PixelFormat)) |
|---|
| 11089 | n/a | return NULL; |
|---|
| 11090 | n/a | _rv = QTGetPixelSize(PixelFormat); |
|---|
| 11091 | n/a | _res = Py_BuildValue("h", |
|---|
| 11092 | n/a | _rv); |
|---|
| 11093 | n/a | return _res; |
|---|
| 11094 | n/a | } |
|---|
| 11095 | n/a | |
|---|
| 11096 | n/a | static PyObject *Qt_QTGetPixelFormatDepthForImageDescription(PyObject *_self, PyObject *_args) |
|---|
| 11097 | n/a | { |
|---|
| 11098 | n/a | PyObject *_res = NULL; |
|---|
| 11099 | n/a | short _rv; |
|---|
| 11100 | n/a | OSType PixelFormat; |
|---|
| 11101 | n/a | #ifndef QTGetPixelFormatDepthForImageDescription |
|---|
| 11102 | n/a | PyMac_PRECHECK(QTGetPixelFormatDepthForImageDescription); |
|---|
| 11103 | n/a | #endif |
|---|
| 11104 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11105 | n/a | PyMac_GetOSType, &PixelFormat)) |
|---|
| 11106 | n/a | return NULL; |
|---|
| 11107 | n/a | _rv = QTGetPixelFormatDepthForImageDescription(PixelFormat); |
|---|
| 11108 | n/a | _res = Py_BuildValue("h", |
|---|
| 11109 | n/a | _rv); |
|---|
| 11110 | n/a | return _res; |
|---|
| 11111 | n/a | } |
|---|
| 11112 | n/a | |
|---|
| 11113 | n/a | static PyObject *Qt_QTGetPixMapHandleRowBytes(PyObject *_self, PyObject *_args) |
|---|
| 11114 | n/a | { |
|---|
| 11115 | n/a | PyObject *_res = NULL; |
|---|
| 11116 | n/a | long _rv; |
|---|
| 11117 | n/a | PixMapHandle pm; |
|---|
| 11118 | n/a | #ifndef QTGetPixMapHandleRowBytes |
|---|
| 11119 | n/a | PyMac_PRECHECK(QTGetPixMapHandleRowBytes); |
|---|
| 11120 | n/a | #endif |
|---|
| 11121 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11122 | n/a | ResObj_Convert, &pm)) |
|---|
| 11123 | n/a | return NULL; |
|---|
| 11124 | n/a | _rv = QTGetPixMapHandleRowBytes(pm); |
|---|
| 11125 | n/a | _res = Py_BuildValue("l", |
|---|
| 11126 | n/a | _rv); |
|---|
| 11127 | n/a | return _res; |
|---|
| 11128 | n/a | } |
|---|
| 11129 | n/a | |
|---|
| 11130 | n/a | static PyObject *Qt_QTSetPixMapHandleRowBytes(PyObject *_self, PyObject *_args) |
|---|
| 11131 | n/a | { |
|---|
| 11132 | n/a | PyObject *_res = NULL; |
|---|
| 11133 | n/a | OSErr _err; |
|---|
| 11134 | n/a | PixMapHandle pm; |
|---|
| 11135 | n/a | long rowBytes; |
|---|
| 11136 | n/a | #ifndef QTSetPixMapHandleRowBytes |
|---|
| 11137 | n/a | PyMac_PRECHECK(QTSetPixMapHandleRowBytes); |
|---|
| 11138 | n/a | #endif |
|---|
| 11139 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 11140 | n/a | ResObj_Convert, &pm, |
|---|
| 11141 | n/a | &rowBytes)) |
|---|
| 11142 | n/a | return NULL; |
|---|
| 11143 | n/a | _err = QTSetPixMapHandleRowBytes(pm, |
|---|
| 11144 | n/a | rowBytes); |
|---|
| 11145 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11146 | n/a | Py_INCREF(Py_None); |
|---|
| 11147 | n/a | _res = Py_None; |
|---|
| 11148 | n/a | return _res; |
|---|
| 11149 | n/a | } |
|---|
| 11150 | n/a | |
|---|
| 11151 | n/a | static PyObject *Qt_QTGetPixMapHandleGammaLevel(PyObject *_self, PyObject *_args) |
|---|
| 11152 | n/a | { |
|---|
| 11153 | n/a | PyObject *_res = NULL; |
|---|
| 11154 | n/a | Fixed _rv; |
|---|
| 11155 | n/a | PixMapHandle pm; |
|---|
| 11156 | n/a | #ifndef QTGetPixMapHandleGammaLevel |
|---|
| 11157 | n/a | PyMac_PRECHECK(QTGetPixMapHandleGammaLevel); |
|---|
| 11158 | n/a | #endif |
|---|
| 11159 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11160 | n/a | ResObj_Convert, &pm)) |
|---|
| 11161 | n/a | return NULL; |
|---|
| 11162 | n/a | _rv = QTGetPixMapHandleGammaLevel(pm); |
|---|
| 11163 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11164 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11165 | n/a | return _res; |
|---|
| 11166 | n/a | } |
|---|
| 11167 | n/a | |
|---|
| 11168 | n/a | static PyObject *Qt_QTSetPixMapHandleGammaLevel(PyObject *_self, PyObject *_args) |
|---|
| 11169 | n/a | { |
|---|
| 11170 | n/a | PyObject *_res = NULL; |
|---|
| 11171 | n/a | OSErr _err; |
|---|
| 11172 | n/a | PixMapHandle pm; |
|---|
| 11173 | n/a | Fixed gammaLevel; |
|---|
| 11174 | n/a | #ifndef QTSetPixMapHandleGammaLevel |
|---|
| 11175 | n/a | PyMac_PRECHECK(QTSetPixMapHandleGammaLevel); |
|---|
| 11176 | n/a | #endif |
|---|
| 11177 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11178 | n/a | ResObj_Convert, &pm, |
|---|
| 11179 | n/a | PyMac_GetFixed, &gammaLevel)) |
|---|
| 11180 | n/a | return NULL; |
|---|
| 11181 | n/a | _err = QTSetPixMapHandleGammaLevel(pm, |
|---|
| 11182 | n/a | gammaLevel); |
|---|
| 11183 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11184 | n/a | Py_INCREF(Py_None); |
|---|
| 11185 | n/a | _res = Py_None; |
|---|
| 11186 | n/a | return _res; |
|---|
| 11187 | n/a | } |
|---|
| 11188 | n/a | |
|---|
| 11189 | n/a | static PyObject *Qt_QTGetPixMapHandleRequestedGammaLevel(PyObject *_self, PyObject *_args) |
|---|
| 11190 | n/a | { |
|---|
| 11191 | n/a | PyObject *_res = NULL; |
|---|
| 11192 | n/a | Fixed _rv; |
|---|
| 11193 | n/a | PixMapHandle pm; |
|---|
| 11194 | n/a | #ifndef QTGetPixMapHandleRequestedGammaLevel |
|---|
| 11195 | n/a | PyMac_PRECHECK(QTGetPixMapHandleRequestedGammaLevel); |
|---|
| 11196 | n/a | #endif |
|---|
| 11197 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11198 | n/a | ResObj_Convert, &pm)) |
|---|
| 11199 | n/a | return NULL; |
|---|
| 11200 | n/a | _rv = QTGetPixMapHandleRequestedGammaLevel(pm); |
|---|
| 11201 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11202 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11203 | n/a | return _res; |
|---|
| 11204 | n/a | } |
|---|
| 11205 | n/a | |
|---|
| 11206 | n/a | static PyObject *Qt_QTSetPixMapHandleRequestedGammaLevel(PyObject *_self, PyObject *_args) |
|---|
| 11207 | n/a | { |
|---|
| 11208 | n/a | PyObject *_res = NULL; |
|---|
| 11209 | n/a | OSErr _err; |
|---|
| 11210 | n/a | PixMapHandle pm; |
|---|
| 11211 | n/a | Fixed requestedGammaLevel; |
|---|
| 11212 | n/a | #ifndef QTSetPixMapHandleRequestedGammaLevel |
|---|
| 11213 | n/a | PyMac_PRECHECK(QTSetPixMapHandleRequestedGammaLevel); |
|---|
| 11214 | n/a | #endif |
|---|
| 11215 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11216 | n/a | ResObj_Convert, &pm, |
|---|
| 11217 | n/a | PyMac_GetFixed, &requestedGammaLevel)) |
|---|
| 11218 | n/a | return NULL; |
|---|
| 11219 | n/a | _err = QTSetPixMapHandleRequestedGammaLevel(pm, |
|---|
| 11220 | n/a | requestedGammaLevel); |
|---|
| 11221 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 11222 | n/a | Py_INCREF(Py_None); |
|---|
| 11223 | n/a | _res = Py_None; |
|---|
| 11224 | n/a | return _res; |
|---|
| 11225 | n/a | } |
|---|
| 11226 | n/a | |
|---|
| 11227 | n/a | static PyObject *Qt_CompAdd(PyObject *_self, PyObject *_args) |
|---|
| 11228 | n/a | { |
|---|
| 11229 | n/a | PyObject *_res = NULL; |
|---|
| 11230 | n/a | wide src; |
|---|
| 11231 | n/a | wide dst; |
|---|
| 11232 | n/a | #ifndef CompAdd |
|---|
| 11233 | n/a | PyMac_PRECHECK(CompAdd); |
|---|
| 11234 | n/a | #endif |
|---|
| 11235 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 11236 | n/a | return NULL; |
|---|
| 11237 | n/a | CompAdd(&src, |
|---|
| 11238 | n/a | &dst); |
|---|
| 11239 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 11240 | n/a | PyMac_Buildwide, src, |
|---|
| 11241 | n/a | PyMac_Buildwide, dst); |
|---|
| 11242 | n/a | return _res; |
|---|
| 11243 | n/a | } |
|---|
| 11244 | n/a | |
|---|
| 11245 | n/a | static PyObject *Qt_CompSub(PyObject *_self, PyObject *_args) |
|---|
| 11246 | n/a | { |
|---|
| 11247 | n/a | PyObject *_res = NULL; |
|---|
| 11248 | n/a | wide src; |
|---|
| 11249 | n/a | wide dst; |
|---|
| 11250 | n/a | #ifndef CompSub |
|---|
| 11251 | n/a | PyMac_PRECHECK(CompSub); |
|---|
| 11252 | n/a | #endif |
|---|
| 11253 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 11254 | n/a | return NULL; |
|---|
| 11255 | n/a | CompSub(&src, |
|---|
| 11256 | n/a | &dst); |
|---|
| 11257 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 11258 | n/a | PyMac_Buildwide, src, |
|---|
| 11259 | n/a | PyMac_Buildwide, dst); |
|---|
| 11260 | n/a | return _res; |
|---|
| 11261 | n/a | } |
|---|
| 11262 | n/a | |
|---|
| 11263 | n/a | static PyObject *Qt_CompNeg(PyObject *_self, PyObject *_args) |
|---|
| 11264 | n/a | { |
|---|
| 11265 | n/a | PyObject *_res = NULL; |
|---|
| 11266 | n/a | wide dst; |
|---|
| 11267 | n/a | #ifndef CompNeg |
|---|
| 11268 | n/a | PyMac_PRECHECK(CompNeg); |
|---|
| 11269 | n/a | #endif |
|---|
| 11270 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 11271 | n/a | return NULL; |
|---|
| 11272 | n/a | CompNeg(&dst); |
|---|
| 11273 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11274 | n/a | PyMac_Buildwide, dst); |
|---|
| 11275 | n/a | return _res; |
|---|
| 11276 | n/a | } |
|---|
| 11277 | n/a | |
|---|
| 11278 | n/a | static PyObject *Qt_CompShift(PyObject *_self, PyObject *_args) |
|---|
| 11279 | n/a | { |
|---|
| 11280 | n/a | PyObject *_res = NULL; |
|---|
| 11281 | n/a | wide src; |
|---|
| 11282 | n/a | short shift; |
|---|
| 11283 | n/a | #ifndef CompShift |
|---|
| 11284 | n/a | PyMac_PRECHECK(CompShift); |
|---|
| 11285 | n/a | #endif |
|---|
| 11286 | n/a | if (!PyArg_ParseTuple(_args, "h", |
|---|
| 11287 | n/a | &shift)) |
|---|
| 11288 | n/a | return NULL; |
|---|
| 11289 | n/a | CompShift(&src, |
|---|
| 11290 | n/a | shift); |
|---|
| 11291 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11292 | n/a | PyMac_Buildwide, src); |
|---|
| 11293 | n/a | return _res; |
|---|
| 11294 | n/a | } |
|---|
| 11295 | n/a | |
|---|
| 11296 | n/a | static PyObject *Qt_CompMul(PyObject *_self, PyObject *_args) |
|---|
| 11297 | n/a | { |
|---|
| 11298 | n/a | PyObject *_res = NULL; |
|---|
| 11299 | n/a | long src1; |
|---|
| 11300 | n/a | long src2; |
|---|
| 11301 | n/a | wide dst; |
|---|
| 11302 | n/a | #ifndef CompMul |
|---|
| 11303 | n/a | PyMac_PRECHECK(CompMul); |
|---|
| 11304 | n/a | #endif |
|---|
| 11305 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 11306 | n/a | &src1, |
|---|
| 11307 | n/a | &src2)) |
|---|
| 11308 | n/a | return NULL; |
|---|
| 11309 | n/a | CompMul(src1, |
|---|
| 11310 | n/a | src2, |
|---|
| 11311 | n/a | &dst); |
|---|
| 11312 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11313 | n/a | PyMac_Buildwide, dst); |
|---|
| 11314 | n/a | return _res; |
|---|
| 11315 | n/a | } |
|---|
| 11316 | n/a | |
|---|
| 11317 | n/a | static PyObject *Qt_CompDiv(PyObject *_self, PyObject *_args) |
|---|
| 11318 | n/a | { |
|---|
| 11319 | n/a | PyObject *_res = NULL; |
|---|
| 11320 | n/a | long _rv; |
|---|
| 11321 | n/a | wide numerator; |
|---|
| 11322 | n/a | long denominator; |
|---|
| 11323 | n/a | long remainder; |
|---|
| 11324 | n/a | #ifndef CompDiv |
|---|
| 11325 | n/a | PyMac_PRECHECK(CompDiv); |
|---|
| 11326 | n/a | #endif |
|---|
| 11327 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 11328 | n/a | &denominator)) |
|---|
| 11329 | n/a | return NULL; |
|---|
| 11330 | n/a | _rv = CompDiv(&numerator, |
|---|
| 11331 | n/a | denominator, |
|---|
| 11332 | n/a | &remainder); |
|---|
| 11333 | n/a | _res = Py_BuildValue("lO&l", |
|---|
| 11334 | n/a | _rv, |
|---|
| 11335 | n/a | PyMac_Buildwide, numerator, |
|---|
| 11336 | n/a | remainder); |
|---|
| 11337 | n/a | return _res; |
|---|
| 11338 | n/a | } |
|---|
| 11339 | n/a | |
|---|
| 11340 | n/a | static PyObject *Qt_CompFixMul(PyObject *_self, PyObject *_args) |
|---|
| 11341 | n/a | { |
|---|
| 11342 | n/a | PyObject *_res = NULL; |
|---|
| 11343 | n/a | wide compSrc; |
|---|
| 11344 | n/a | Fixed fixSrc; |
|---|
| 11345 | n/a | wide compDst; |
|---|
| 11346 | n/a | #ifndef CompFixMul |
|---|
| 11347 | n/a | PyMac_PRECHECK(CompFixMul); |
|---|
| 11348 | n/a | #endif |
|---|
| 11349 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11350 | n/a | PyMac_GetFixed, &fixSrc)) |
|---|
| 11351 | n/a | return NULL; |
|---|
| 11352 | n/a | CompFixMul(&compSrc, |
|---|
| 11353 | n/a | fixSrc, |
|---|
| 11354 | n/a | &compDst); |
|---|
| 11355 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 11356 | n/a | PyMac_Buildwide, compSrc, |
|---|
| 11357 | n/a | PyMac_Buildwide, compDst); |
|---|
| 11358 | n/a | return _res; |
|---|
| 11359 | n/a | } |
|---|
| 11360 | n/a | |
|---|
| 11361 | n/a | static PyObject *Qt_CompMulDiv(PyObject *_self, PyObject *_args) |
|---|
| 11362 | n/a | { |
|---|
| 11363 | n/a | PyObject *_res = NULL; |
|---|
| 11364 | n/a | wide co; |
|---|
| 11365 | n/a | long mul; |
|---|
| 11366 | n/a | long divisor; |
|---|
| 11367 | n/a | #ifndef CompMulDiv |
|---|
| 11368 | n/a | PyMac_PRECHECK(CompMulDiv); |
|---|
| 11369 | n/a | #endif |
|---|
| 11370 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 11371 | n/a | &mul, |
|---|
| 11372 | n/a | &divisor)) |
|---|
| 11373 | n/a | return NULL; |
|---|
| 11374 | n/a | CompMulDiv(&co, |
|---|
| 11375 | n/a | mul, |
|---|
| 11376 | n/a | divisor); |
|---|
| 11377 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11378 | n/a | PyMac_Buildwide, co); |
|---|
| 11379 | n/a | return _res; |
|---|
| 11380 | n/a | } |
|---|
| 11381 | n/a | |
|---|
| 11382 | n/a | static PyObject *Qt_CompMulDivTrunc(PyObject *_self, PyObject *_args) |
|---|
| 11383 | n/a | { |
|---|
| 11384 | n/a | PyObject *_res = NULL; |
|---|
| 11385 | n/a | wide co; |
|---|
| 11386 | n/a | long mul; |
|---|
| 11387 | n/a | long divisor; |
|---|
| 11388 | n/a | long remainder; |
|---|
| 11389 | n/a | #ifndef CompMulDivTrunc |
|---|
| 11390 | n/a | PyMac_PRECHECK(CompMulDivTrunc); |
|---|
| 11391 | n/a | #endif |
|---|
| 11392 | n/a | if (!PyArg_ParseTuple(_args, "ll", |
|---|
| 11393 | n/a | &mul, |
|---|
| 11394 | n/a | &divisor)) |
|---|
| 11395 | n/a | return NULL; |
|---|
| 11396 | n/a | CompMulDivTrunc(&co, |
|---|
| 11397 | n/a | mul, |
|---|
| 11398 | n/a | divisor, |
|---|
| 11399 | n/a | &remainder); |
|---|
| 11400 | n/a | _res = Py_BuildValue("O&l", |
|---|
| 11401 | n/a | PyMac_Buildwide, co, |
|---|
| 11402 | n/a | remainder); |
|---|
| 11403 | n/a | return _res; |
|---|
| 11404 | n/a | } |
|---|
| 11405 | n/a | |
|---|
| 11406 | n/a | static PyObject *Qt_CompCompare(PyObject *_self, PyObject *_args) |
|---|
| 11407 | n/a | { |
|---|
| 11408 | n/a | PyObject *_res = NULL; |
|---|
| 11409 | n/a | long _rv; |
|---|
| 11410 | n/a | wide a; |
|---|
| 11411 | n/a | wide minusb; |
|---|
| 11412 | n/a | #ifndef CompCompare |
|---|
| 11413 | n/a | PyMac_PRECHECK(CompCompare); |
|---|
| 11414 | n/a | #endif |
|---|
| 11415 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11416 | n/a | PyMac_Getwide, &a, |
|---|
| 11417 | n/a | PyMac_Getwide, &minusb)) |
|---|
| 11418 | n/a | return NULL; |
|---|
| 11419 | n/a | _rv = CompCompare(&a, |
|---|
| 11420 | n/a | &minusb); |
|---|
| 11421 | n/a | _res = Py_BuildValue("l", |
|---|
| 11422 | n/a | _rv); |
|---|
| 11423 | n/a | return _res; |
|---|
| 11424 | n/a | } |
|---|
| 11425 | n/a | |
|---|
| 11426 | n/a | static PyObject *Qt_CompSquareRoot(PyObject *_self, PyObject *_args) |
|---|
| 11427 | n/a | { |
|---|
| 11428 | n/a | PyObject *_res = NULL; |
|---|
| 11429 | n/a | unsigned long _rv; |
|---|
| 11430 | n/a | wide src; |
|---|
| 11431 | n/a | #ifndef CompSquareRoot |
|---|
| 11432 | n/a | PyMac_PRECHECK(CompSquareRoot); |
|---|
| 11433 | n/a | #endif |
|---|
| 11434 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11435 | n/a | PyMac_Getwide, &src)) |
|---|
| 11436 | n/a | return NULL; |
|---|
| 11437 | n/a | _rv = CompSquareRoot(&src); |
|---|
| 11438 | n/a | _res = Py_BuildValue("l", |
|---|
| 11439 | n/a | _rv); |
|---|
| 11440 | n/a | return _res; |
|---|
| 11441 | n/a | } |
|---|
| 11442 | n/a | |
|---|
| 11443 | n/a | static PyObject *Qt_FixMulDiv(PyObject *_self, PyObject *_args) |
|---|
| 11444 | n/a | { |
|---|
| 11445 | n/a | PyObject *_res = NULL; |
|---|
| 11446 | n/a | Fixed _rv; |
|---|
| 11447 | n/a | Fixed src; |
|---|
| 11448 | n/a | Fixed mul; |
|---|
| 11449 | n/a | Fixed divisor; |
|---|
| 11450 | n/a | #ifndef FixMulDiv |
|---|
| 11451 | n/a | PyMac_PRECHECK(FixMulDiv); |
|---|
| 11452 | n/a | #endif |
|---|
| 11453 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 11454 | n/a | PyMac_GetFixed, &src, |
|---|
| 11455 | n/a | PyMac_GetFixed, &mul, |
|---|
| 11456 | n/a | PyMac_GetFixed, &divisor)) |
|---|
| 11457 | n/a | return NULL; |
|---|
| 11458 | n/a | _rv = FixMulDiv(src, |
|---|
| 11459 | n/a | mul, |
|---|
| 11460 | n/a | divisor); |
|---|
| 11461 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11462 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11463 | n/a | return _res; |
|---|
| 11464 | n/a | } |
|---|
| 11465 | n/a | |
|---|
| 11466 | n/a | static PyObject *Qt_UnsignedFixMulDiv(PyObject *_self, PyObject *_args) |
|---|
| 11467 | n/a | { |
|---|
| 11468 | n/a | PyObject *_res = NULL; |
|---|
| 11469 | n/a | Fixed _rv; |
|---|
| 11470 | n/a | Fixed src; |
|---|
| 11471 | n/a | Fixed mul; |
|---|
| 11472 | n/a | Fixed divisor; |
|---|
| 11473 | n/a | #ifndef UnsignedFixMulDiv |
|---|
| 11474 | n/a | PyMac_PRECHECK(UnsignedFixMulDiv); |
|---|
| 11475 | n/a | #endif |
|---|
| 11476 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 11477 | n/a | PyMac_GetFixed, &src, |
|---|
| 11478 | n/a | PyMac_GetFixed, &mul, |
|---|
| 11479 | n/a | PyMac_GetFixed, &divisor)) |
|---|
| 11480 | n/a | return NULL; |
|---|
| 11481 | n/a | _rv = UnsignedFixMulDiv(src, |
|---|
| 11482 | n/a | mul, |
|---|
| 11483 | n/a | divisor); |
|---|
| 11484 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11485 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11486 | n/a | return _res; |
|---|
| 11487 | n/a | } |
|---|
| 11488 | n/a | |
|---|
| 11489 | n/a | static PyObject *Qt_FixExp2(PyObject *_self, PyObject *_args) |
|---|
| 11490 | n/a | { |
|---|
| 11491 | n/a | PyObject *_res = NULL; |
|---|
| 11492 | n/a | Fixed _rv; |
|---|
| 11493 | n/a | Fixed src; |
|---|
| 11494 | n/a | #ifndef FixExp2 |
|---|
| 11495 | n/a | PyMac_PRECHECK(FixExp2); |
|---|
| 11496 | n/a | #endif |
|---|
| 11497 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11498 | n/a | PyMac_GetFixed, &src)) |
|---|
| 11499 | n/a | return NULL; |
|---|
| 11500 | n/a | _rv = FixExp2(src); |
|---|
| 11501 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11502 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11503 | n/a | return _res; |
|---|
| 11504 | n/a | } |
|---|
| 11505 | n/a | |
|---|
| 11506 | n/a | static PyObject *Qt_FixLog2(PyObject *_self, PyObject *_args) |
|---|
| 11507 | n/a | { |
|---|
| 11508 | n/a | PyObject *_res = NULL; |
|---|
| 11509 | n/a | Fixed _rv; |
|---|
| 11510 | n/a | Fixed src; |
|---|
| 11511 | n/a | #ifndef FixLog2 |
|---|
| 11512 | n/a | PyMac_PRECHECK(FixLog2); |
|---|
| 11513 | n/a | #endif |
|---|
| 11514 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11515 | n/a | PyMac_GetFixed, &src)) |
|---|
| 11516 | n/a | return NULL; |
|---|
| 11517 | n/a | _rv = FixLog2(src); |
|---|
| 11518 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11519 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11520 | n/a | return _res; |
|---|
| 11521 | n/a | } |
|---|
| 11522 | n/a | |
|---|
| 11523 | n/a | static PyObject *Qt_FixPow(PyObject *_self, PyObject *_args) |
|---|
| 11524 | n/a | { |
|---|
| 11525 | n/a | PyObject *_res = NULL; |
|---|
| 11526 | n/a | Fixed _rv; |
|---|
| 11527 | n/a | Fixed base; |
|---|
| 11528 | n/a | Fixed exp; |
|---|
| 11529 | n/a | #ifndef FixPow |
|---|
| 11530 | n/a | PyMac_PRECHECK(FixPow); |
|---|
| 11531 | n/a | #endif |
|---|
| 11532 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11533 | n/a | PyMac_GetFixed, &base, |
|---|
| 11534 | n/a | PyMac_GetFixed, &exp)) |
|---|
| 11535 | n/a | return NULL; |
|---|
| 11536 | n/a | _rv = FixPow(base, |
|---|
| 11537 | n/a | exp); |
|---|
| 11538 | n/a | _res = Py_BuildValue("O&", |
|---|
| 11539 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 11540 | n/a | return _res; |
|---|
| 11541 | n/a | } |
|---|
| 11542 | n/a | |
|---|
| 11543 | n/a | static PyObject *Qt_GraphicsImportSetDataReference(PyObject *_self, PyObject *_args) |
|---|
| 11544 | n/a | { |
|---|
| 11545 | n/a | PyObject *_res = NULL; |
|---|
| 11546 | n/a | ComponentResult _rv; |
|---|
| 11547 | n/a | GraphicsImportComponent ci; |
|---|
| 11548 | n/a | Handle dataRef; |
|---|
| 11549 | n/a | OSType dataReType; |
|---|
| 11550 | n/a | #ifndef GraphicsImportSetDataReference |
|---|
| 11551 | n/a | PyMac_PRECHECK(GraphicsImportSetDataReference); |
|---|
| 11552 | n/a | #endif |
|---|
| 11553 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 11554 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11555 | n/a | ResObj_Convert, &dataRef, |
|---|
| 11556 | n/a | PyMac_GetOSType, &dataReType)) |
|---|
| 11557 | n/a | return NULL; |
|---|
| 11558 | n/a | _rv = GraphicsImportSetDataReference(ci, |
|---|
| 11559 | n/a | dataRef, |
|---|
| 11560 | n/a | dataReType); |
|---|
| 11561 | n/a | _res = Py_BuildValue("l", |
|---|
| 11562 | n/a | _rv); |
|---|
| 11563 | n/a | return _res; |
|---|
| 11564 | n/a | } |
|---|
| 11565 | n/a | |
|---|
| 11566 | n/a | static PyObject *Qt_GraphicsImportGetDataReference(PyObject *_self, PyObject *_args) |
|---|
| 11567 | n/a | { |
|---|
| 11568 | n/a | PyObject *_res = NULL; |
|---|
| 11569 | n/a | ComponentResult _rv; |
|---|
| 11570 | n/a | GraphicsImportComponent ci; |
|---|
| 11571 | n/a | Handle dataRef; |
|---|
| 11572 | n/a | OSType dataReType; |
|---|
| 11573 | n/a | #ifndef GraphicsImportGetDataReference |
|---|
| 11574 | n/a | PyMac_PRECHECK(GraphicsImportGetDataReference); |
|---|
| 11575 | n/a | #endif |
|---|
| 11576 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11577 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11578 | n/a | return NULL; |
|---|
| 11579 | n/a | _rv = GraphicsImportGetDataReference(ci, |
|---|
| 11580 | n/a | &dataRef, |
|---|
| 11581 | n/a | &dataReType); |
|---|
| 11582 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 11583 | n/a | _rv, |
|---|
| 11584 | n/a | ResObj_New, dataRef, |
|---|
| 11585 | n/a | PyMac_BuildOSType, dataReType); |
|---|
| 11586 | n/a | return _res; |
|---|
| 11587 | n/a | } |
|---|
| 11588 | n/a | |
|---|
| 11589 | n/a | static PyObject *Qt_GraphicsImportSetDataFile(PyObject *_self, PyObject *_args) |
|---|
| 11590 | n/a | { |
|---|
| 11591 | n/a | PyObject *_res = NULL; |
|---|
| 11592 | n/a | ComponentResult _rv; |
|---|
| 11593 | n/a | GraphicsImportComponent ci; |
|---|
| 11594 | n/a | FSSpec theFile; |
|---|
| 11595 | n/a | #ifndef GraphicsImportSetDataFile |
|---|
| 11596 | n/a | PyMac_PRECHECK(GraphicsImportSetDataFile); |
|---|
| 11597 | n/a | #endif |
|---|
| 11598 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11599 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11600 | n/a | PyMac_GetFSSpec, &theFile)) |
|---|
| 11601 | n/a | return NULL; |
|---|
| 11602 | n/a | _rv = GraphicsImportSetDataFile(ci, |
|---|
| 11603 | n/a | &theFile); |
|---|
| 11604 | n/a | _res = Py_BuildValue("l", |
|---|
| 11605 | n/a | _rv); |
|---|
| 11606 | n/a | return _res; |
|---|
| 11607 | n/a | } |
|---|
| 11608 | n/a | |
|---|
| 11609 | n/a | static PyObject *Qt_GraphicsImportGetDataFile(PyObject *_self, PyObject *_args) |
|---|
| 11610 | n/a | { |
|---|
| 11611 | n/a | PyObject *_res = NULL; |
|---|
| 11612 | n/a | ComponentResult _rv; |
|---|
| 11613 | n/a | GraphicsImportComponent ci; |
|---|
| 11614 | n/a | FSSpec theFile; |
|---|
| 11615 | n/a | #ifndef GraphicsImportGetDataFile |
|---|
| 11616 | n/a | PyMac_PRECHECK(GraphicsImportGetDataFile); |
|---|
| 11617 | n/a | #endif |
|---|
| 11618 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11619 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11620 | n/a | PyMac_GetFSSpec, &theFile)) |
|---|
| 11621 | n/a | return NULL; |
|---|
| 11622 | n/a | _rv = GraphicsImportGetDataFile(ci, |
|---|
| 11623 | n/a | &theFile); |
|---|
| 11624 | n/a | _res = Py_BuildValue("l", |
|---|
| 11625 | n/a | _rv); |
|---|
| 11626 | n/a | return _res; |
|---|
| 11627 | n/a | } |
|---|
| 11628 | n/a | |
|---|
| 11629 | n/a | static PyObject *Qt_GraphicsImportSetDataHandle(PyObject *_self, PyObject *_args) |
|---|
| 11630 | n/a | { |
|---|
| 11631 | n/a | PyObject *_res = NULL; |
|---|
| 11632 | n/a | ComponentResult _rv; |
|---|
| 11633 | n/a | GraphicsImportComponent ci; |
|---|
| 11634 | n/a | Handle h; |
|---|
| 11635 | n/a | #ifndef GraphicsImportSetDataHandle |
|---|
| 11636 | n/a | PyMac_PRECHECK(GraphicsImportSetDataHandle); |
|---|
| 11637 | n/a | #endif |
|---|
| 11638 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11639 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11640 | n/a | ResObj_Convert, &h)) |
|---|
| 11641 | n/a | return NULL; |
|---|
| 11642 | n/a | _rv = GraphicsImportSetDataHandle(ci, |
|---|
| 11643 | n/a | h); |
|---|
| 11644 | n/a | _res = Py_BuildValue("l", |
|---|
| 11645 | n/a | _rv); |
|---|
| 11646 | n/a | return _res; |
|---|
| 11647 | n/a | } |
|---|
| 11648 | n/a | |
|---|
| 11649 | n/a | static PyObject *Qt_GraphicsImportGetDataHandle(PyObject *_self, PyObject *_args) |
|---|
| 11650 | n/a | { |
|---|
| 11651 | n/a | PyObject *_res = NULL; |
|---|
| 11652 | n/a | ComponentResult _rv; |
|---|
| 11653 | n/a | GraphicsImportComponent ci; |
|---|
| 11654 | n/a | Handle h; |
|---|
| 11655 | n/a | #ifndef GraphicsImportGetDataHandle |
|---|
| 11656 | n/a | PyMac_PRECHECK(GraphicsImportGetDataHandle); |
|---|
| 11657 | n/a | #endif |
|---|
| 11658 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11659 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11660 | n/a | return NULL; |
|---|
| 11661 | n/a | _rv = GraphicsImportGetDataHandle(ci, |
|---|
| 11662 | n/a | &h); |
|---|
| 11663 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 11664 | n/a | _rv, |
|---|
| 11665 | n/a | ResObj_New, h); |
|---|
| 11666 | n/a | return _res; |
|---|
| 11667 | n/a | } |
|---|
| 11668 | n/a | |
|---|
| 11669 | n/a | static PyObject *Qt_GraphicsImportGetImageDescription(PyObject *_self, PyObject *_args) |
|---|
| 11670 | n/a | { |
|---|
| 11671 | n/a | PyObject *_res = NULL; |
|---|
| 11672 | n/a | ComponentResult _rv; |
|---|
| 11673 | n/a | GraphicsImportComponent ci; |
|---|
| 11674 | n/a | ImageDescriptionHandle desc; |
|---|
| 11675 | n/a | #ifndef GraphicsImportGetImageDescription |
|---|
| 11676 | n/a | PyMac_PRECHECK(GraphicsImportGetImageDescription); |
|---|
| 11677 | n/a | #endif |
|---|
| 11678 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11679 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11680 | n/a | return NULL; |
|---|
| 11681 | n/a | _rv = GraphicsImportGetImageDescription(ci, |
|---|
| 11682 | n/a | &desc); |
|---|
| 11683 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 11684 | n/a | _rv, |
|---|
| 11685 | n/a | ResObj_New, desc); |
|---|
| 11686 | n/a | return _res; |
|---|
| 11687 | n/a | } |
|---|
| 11688 | n/a | |
|---|
| 11689 | n/a | static PyObject *Qt_GraphicsImportGetDataOffsetAndSize(PyObject *_self, PyObject *_args) |
|---|
| 11690 | n/a | { |
|---|
| 11691 | n/a | PyObject *_res = NULL; |
|---|
| 11692 | n/a | ComponentResult _rv; |
|---|
| 11693 | n/a | GraphicsImportComponent ci; |
|---|
| 11694 | n/a | unsigned long offset; |
|---|
| 11695 | n/a | unsigned long size; |
|---|
| 11696 | n/a | #ifndef GraphicsImportGetDataOffsetAndSize |
|---|
| 11697 | n/a | PyMac_PRECHECK(GraphicsImportGetDataOffsetAndSize); |
|---|
| 11698 | n/a | #endif |
|---|
| 11699 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11700 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11701 | n/a | return NULL; |
|---|
| 11702 | n/a | _rv = GraphicsImportGetDataOffsetAndSize(ci, |
|---|
| 11703 | n/a | &offset, |
|---|
| 11704 | n/a | &size); |
|---|
| 11705 | n/a | _res = Py_BuildValue("lll", |
|---|
| 11706 | n/a | _rv, |
|---|
| 11707 | n/a | offset, |
|---|
| 11708 | n/a | size); |
|---|
| 11709 | n/a | return _res; |
|---|
| 11710 | n/a | } |
|---|
| 11711 | n/a | |
|---|
| 11712 | n/a | static PyObject *Qt_GraphicsImportReadData(PyObject *_self, PyObject *_args) |
|---|
| 11713 | n/a | { |
|---|
| 11714 | n/a | PyObject *_res = NULL; |
|---|
| 11715 | n/a | ComponentResult _rv; |
|---|
| 11716 | n/a | GraphicsImportComponent ci; |
|---|
| 11717 | n/a | void * dataPtr; |
|---|
| 11718 | n/a | unsigned long dataOffset; |
|---|
| 11719 | n/a | unsigned long dataSize; |
|---|
| 11720 | n/a | #ifndef GraphicsImportReadData |
|---|
| 11721 | n/a | PyMac_PRECHECK(GraphicsImportReadData); |
|---|
| 11722 | n/a | #endif |
|---|
| 11723 | n/a | if (!PyArg_ParseTuple(_args, "O&sll", |
|---|
| 11724 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11725 | n/a | &dataPtr, |
|---|
| 11726 | n/a | &dataOffset, |
|---|
| 11727 | n/a | &dataSize)) |
|---|
| 11728 | n/a | return NULL; |
|---|
| 11729 | n/a | _rv = GraphicsImportReadData(ci, |
|---|
| 11730 | n/a | dataPtr, |
|---|
| 11731 | n/a | dataOffset, |
|---|
| 11732 | n/a | dataSize); |
|---|
| 11733 | n/a | _res = Py_BuildValue("l", |
|---|
| 11734 | n/a | _rv); |
|---|
| 11735 | n/a | return _res; |
|---|
| 11736 | n/a | } |
|---|
| 11737 | n/a | |
|---|
| 11738 | n/a | static PyObject *Qt_GraphicsImportSetClip(PyObject *_self, PyObject *_args) |
|---|
| 11739 | n/a | { |
|---|
| 11740 | n/a | PyObject *_res = NULL; |
|---|
| 11741 | n/a | ComponentResult _rv; |
|---|
| 11742 | n/a | GraphicsImportComponent ci; |
|---|
| 11743 | n/a | RgnHandle clipRgn; |
|---|
| 11744 | n/a | #ifndef GraphicsImportSetClip |
|---|
| 11745 | n/a | PyMac_PRECHECK(GraphicsImportSetClip); |
|---|
| 11746 | n/a | #endif |
|---|
| 11747 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11748 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11749 | n/a | ResObj_Convert, &clipRgn)) |
|---|
| 11750 | n/a | return NULL; |
|---|
| 11751 | n/a | _rv = GraphicsImportSetClip(ci, |
|---|
| 11752 | n/a | clipRgn); |
|---|
| 11753 | n/a | _res = Py_BuildValue("l", |
|---|
| 11754 | n/a | _rv); |
|---|
| 11755 | n/a | return _res; |
|---|
| 11756 | n/a | } |
|---|
| 11757 | n/a | |
|---|
| 11758 | n/a | static PyObject *Qt_GraphicsImportGetClip(PyObject *_self, PyObject *_args) |
|---|
| 11759 | n/a | { |
|---|
| 11760 | n/a | PyObject *_res = NULL; |
|---|
| 11761 | n/a | ComponentResult _rv; |
|---|
| 11762 | n/a | GraphicsImportComponent ci; |
|---|
| 11763 | n/a | RgnHandle clipRgn; |
|---|
| 11764 | n/a | #ifndef GraphicsImportGetClip |
|---|
| 11765 | n/a | PyMac_PRECHECK(GraphicsImportGetClip); |
|---|
| 11766 | n/a | #endif |
|---|
| 11767 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11768 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11769 | n/a | return NULL; |
|---|
| 11770 | n/a | _rv = GraphicsImportGetClip(ci, |
|---|
| 11771 | n/a | &clipRgn); |
|---|
| 11772 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 11773 | n/a | _rv, |
|---|
| 11774 | n/a | ResObj_New, clipRgn); |
|---|
| 11775 | n/a | return _res; |
|---|
| 11776 | n/a | } |
|---|
| 11777 | n/a | |
|---|
| 11778 | n/a | static PyObject *Qt_GraphicsImportSetSourceRect(PyObject *_self, PyObject *_args) |
|---|
| 11779 | n/a | { |
|---|
| 11780 | n/a | PyObject *_res = NULL; |
|---|
| 11781 | n/a | ComponentResult _rv; |
|---|
| 11782 | n/a | GraphicsImportComponent ci; |
|---|
| 11783 | n/a | Rect sourceRect; |
|---|
| 11784 | n/a | #ifndef GraphicsImportSetSourceRect |
|---|
| 11785 | n/a | PyMac_PRECHECK(GraphicsImportSetSourceRect); |
|---|
| 11786 | n/a | #endif |
|---|
| 11787 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11788 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11789 | n/a | PyMac_GetRect, &sourceRect)) |
|---|
| 11790 | n/a | return NULL; |
|---|
| 11791 | n/a | _rv = GraphicsImportSetSourceRect(ci, |
|---|
| 11792 | n/a | &sourceRect); |
|---|
| 11793 | n/a | _res = Py_BuildValue("l", |
|---|
| 11794 | n/a | _rv); |
|---|
| 11795 | n/a | return _res; |
|---|
| 11796 | n/a | } |
|---|
| 11797 | n/a | |
|---|
| 11798 | n/a | static PyObject *Qt_GraphicsImportGetSourceRect(PyObject *_self, PyObject *_args) |
|---|
| 11799 | n/a | { |
|---|
| 11800 | n/a | PyObject *_res = NULL; |
|---|
| 11801 | n/a | ComponentResult _rv; |
|---|
| 11802 | n/a | GraphicsImportComponent ci; |
|---|
| 11803 | n/a | Rect sourceRect; |
|---|
| 11804 | n/a | #ifndef GraphicsImportGetSourceRect |
|---|
| 11805 | n/a | PyMac_PRECHECK(GraphicsImportGetSourceRect); |
|---|
| 11806 | n/a | #endif |
|---|
| 11807 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11808 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11809 | n/a | return NULL; |
|---|
| 11810 | n/a | _rv = GraphicsImportGetSourceRect(ci, |
|---|
| 11811 | n/a | &sourceRect); |
|---|
| 11812 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 11813 | n/a | _rv, |
|---|
| 11814 | n/a | PyMac_BuildRect, &sourceRect); |
|---|
| 11815 | n/a | return _res; |
|---|
| 11816 | n/a | } |
|---|
| 11817 | n/a | |
|---|
| 11818 | n/a | static PyObject *Qt_GraphicsImportGetNaturalBounds(PyObject *_self, PyObject *_args) |
|---|
| 11819 | n/a | { |
|---|
| 11820 | n/a | PyObject *_res = NULL; |
|---|
| 11821 | n/a | ComponentResult _rv; |
|---|
| 11822 | n/a | GraphicsImportComponent ci; |
|---|
| 11823 | n/a | Rect naturalBounds; |
|---|
| 11824 | n/a | #ifndef GraphicsImportGetNaturalBounds |
|---|
| 11825 | n/a | PyMac_PRECHECK(GraphicsImportGetNaturalBounds); |
|---|
| 11826 | n/a | #endif |
|---|
| 11827 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11828 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11829 | n/a | return NULL; |
|---|
| 11830 | n/a | _rv = GraphicsImportGetNaturalBounds(ci, |
|---|
| 11831 | n/a | &naturalBounds); |
|---|
| 11832 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 11833 | n/a | _rv, |
|---|
| 11834 | n/a | PyMac_BuildRect, &naturalBounds); |
|---|
| 11835 | n/a | return _res; |
|---|
| 11836 | n/a | } |
|---|
| 11837 | n/a | |
|---|
| 11838 | n/a | static PyObject *Qt_GraphicsImportDraw(PyObject *_self, PyObject *_args) |
|---|
| 11839 | n/a | { |
|---|
| 11840 | n/a | PyObject *_res = NULL; |
|---|
| 11841 | n/a | ComponentResult _rv; |
|---|
| 11842 | n/a | GraphicsImportComponent ci; |
|---|
| 11843 | n/a | #ifndef GraphicsImportDraw |
|---|
| 11844 | n/a | PyMac_PRECHECK(GraphicsImportDraw); |
|---|
| 11845 | n/a | #endif |
|---|
| 11846 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11847 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11848 | n/a | return NULL; |
|---|
| 11849 | n/a | _rv = GraphicsImportDraw(ci); |
|---|
| 11850 | n/a | _res = Py_BuildValue("l", |
|---|
| 11851 | n/a | _rv); |
|---|
| 11852 | n/a | return _res; |
|---|
| 11853 | n/a | } |
|---|
| 11854 | n/a | |
|---|
| 11855 | n/a | static PyObject *Qt_GraphicsImportSetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 11856 | n/a | { |
|---|
| 11857 | n/a | PyObject *_res = NULL; |
|---|
| 11858 | n/a | ComponentResult _rv; |
|---|
| 11859 | n/a | GraphicsImportComponent ci; |
|---|
| 11860 | n/a | CGrafPtr port; |
|---|
| 11861 | n/a | GDHandle gd; |
|---|
| 11862 | n/a | #ifndef GraphicsImportSetGWorld |
|---|
| 11863 | n/a | PyMac_PRECHECK(GraphicsImportSetGWorld); |
|---|
| 11864 | n/a | #endif |
|---|
| 11865 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 11866 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11867 | n/a | GrafObj_Convert, &port, |
|---|
| 11868 | n/a | OptResObj_Convert, &gd)) |
|---|
| 11869 | n/a | return NULL; |
|---|
| 11870 | n/a | _rv = GraphicsImportSetGWorld(ci, |
|---|
| 11871 | n/a | port, |
|---|
| 11872 | n/a | gd); |
|---|
| 11873 | n/a | _res = Py_BuildValue("l", |
|---|
| 11874 | n/a | _rv); |
|---|
| 11875 | n/a | return _res; |
|---|
| 11876 | n/a | } |
|---|
| 11877 | n/a | |
|---|
| 11878 | n/a | static PyObject *Qt_GraphicsImportGetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 11879 | n/a | { |
|---|
| 11880 | n/a | PyObject *_res = NULL; |
|---|
| 11881 | n/a | ComponentResult _rv; |
|---|
| 11882 | n/a | GraphicsImportComponent ci; |
|---|
| 11883 | n/a | CGrafPtr port; |
|---|
| 11884 | n/a | GDHandle gd; |
|---|
| 11885 | n/a | #ifndef GraphicsImportGetGWorld |
|---|
| 11886 | n/a | PyMac_PRECHECK(GraphicsImportGetGWorld); |
|---|
| 11887 | n/a | #endif |
|---|
| 11888 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11889 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11890 | n/a | return NULL; |
|---|
| 11891 | n/a | _rv = GraphicsImportGetGWorld(ci, |
|---|
| 11892 | n/a | &port, |
|---|
| 11893 | n/a | &gd); |
|---|
| 11894 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 11895 | n/a | _rv, |
|---|
| 11896 | n/a | GrafObj_New, port, |
|---|
| 11897 | n/a | OptResObj_New, gd); |
|---|
| 11898 | n/a | return _res; |
|---|
| 11899 | n/a | } |
|---|
| 11900 | n/a | |
|---|
| 11901 | n/a | static PyObject *Qt_GraphicsImportSetBoundsRect(PyObject *_self, PyObject *_args) |
|---|
| 11902 | n/a | { |
|---|
| 11903 | n/a | PyObject *_res = NULL; |
|---|
| 11904 | n/a | ComponentResult _rv; |
|---|
| 11905 | n/a | GraphicsImportComponent ci; |
|---|
| 11906 | n/a | Rect bounds; |
|---|
| 11907 | n/a | #ifndef GraphicsImportSetBoundsRect |
|---|
| 11908 | n/a | PyMac_PRECHECK(GraphicsImportSetBoundsRect); |
|---|
| 11909 | n/a | #endif |
|---|
| 11910 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 11911 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11912 | n/a | PyMac_GetRect, &bounds)) |
|---|
| 11913 | n/a | return NULL; |
|---|
| 11914 | n/a | _rv = GraphicsImportSetBoundsRect(ci, |
|---|
| 11915 | n/a | &bounds); |
|---|
| 11916 | n/a | _res = Py_BuildValue("l", |
|---|
| 11917 | n/a | _rv); |
|---|
| 11918 | n/a | return _res; |
|---|
| 11919 | n/a | } |
|---|
| 11920 | n/a | |
|---|
| 11921 | n/a | static PyObject *Qt_GraphicsImportGetBoundsRect(PyObject *_self, PyObject *_args) |
|---|
| 11922 | n/a | { |
|---|
| 11923 | n/a | PyObject *_res = NULL; |
|---|
| 11924 | n/a | ComponentResult _rv; |
|---|
| 11925 | n/a | GraphicsImportComponent ci; |
|---|
| 11926 | n/a | Rect bounds; |
|---|
| 11927 | n/a | #ifndef GraphicsImportGetBoundsRect |
|---|
| 11928 | n/a | PyMac_PRECHECK(GraphicsImportGetBoundsRect); |
|---|
| 11929 | n/a | #endif |
|---|
| 11930 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11931 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11932 | n/a | return NULL; |
|---|
| 11933 | n/a | _rv = GraphicsImportGetBoundsRect(ci, |
|---|
| 11934 | n/a | &bounds); |
|---|
| 11935 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 11936 | n/a | _rv, |
|---|
| 11937 | n/a | PyMac_BuildRect, &bounds); |
|---|
| 11938 | n/a | return _res; |
|---|
| 11939 | n/a | } |
|---|
| 11940 | n/a | |
|---|
| 11941 | n/a | static PyObject *Qt_GraphicsImportSaveAsPicture(PyObject *_self, PyObject *_args) |
|---|
| 11942 | n/a | { |
|---|
| 11943 | n/a | PyObject *_res = NULL; |
|---|
| 11944 | n/a | ComponentResult _rv; |
|---|
| 11945 | n/a | GraphicsImportComponent ci; |
|---|
| 11946 | n/a | FSSpec fss; |
|---|
| 11947 | n/a | ScriptCode scriptTag; |
|---|
| 11948 | n/a | #ifndef GraphicsImportSaveAsPicture |
|---|
| 11949 | n/a | PyMac_PRECHECK(GraphicsImportSaveAsPicture); |
|---|
| 11950 | n/a | #endif |
|---|
| 11951 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 11952 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11953 | n/a | PyMac_GetFSSpec, &fss, |
|---|
| 11954 | n/a | &scriptTag)) |
|---|
| 11955 | n/a | return NULL; |
|---|
| 11956 | n/a | _rv = GraphicsImportSaveAsPicture(ci, |
|---|
| 11957 | n/a | &fss, |
|---|
| 11958 | n/a | scriptTag); |
|---|
| 11959 | n/a | _res = Py_BuildValue("l", |
|---|
| 11960 | n/a | _rv); |
|---|
| 11961 | n/a | return _res; |
|---|
| 11962 | n/a | } |
|---|
| 11963 | n/a | |
|---|
| 11964 | n/a | static PyObject *Qt_GraphicsImportSetGraphicsMode(PyObject *_self, PyObject *_args) |
|---|
| 11965 | n/a | { |
|---|
| 11966 | n/a | PyObject *_res = NULL; |
|---|
| 11967 | n/a | ComponentResult _rv; |
|---|
| 11968 | n/a | GraphicsImportComponent ci; |
|---|
| 11969 | n/a | long graphicsMode; |
|---|
| 11970 | n/a | RGBColor opColor; |
|---|
| 11971 | n/a | #ifndef GraphicsImportSetGraphicsMode |
|---|
| 11972 | n/a | PyMac_PRECHECK(GraphicsImportSetGraphicsMode); |
|---|
| 11973 | n/a | #endif |
|---|
| 11974 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 11975 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 11976 | n/a | &graphicsMode, |
|---|
| 11977 | n/a | QdRGB_Convert, &opColor)) |
|---|
| 11978 | n/a | return NULL; |
|---|
| 11979 | n/a | _rv = GraphicsImportSetGraphicsMode(ci, |
|---|
| 11980 | n/a | graphicsMode, |
|---|
| 11981 | n/a | &opColor); |
|---|
| 11982 | n/a | _res = Py_BuildValue("l", |
|---|
| 11983 | n/a | _rv); |
|---|
| 11984 | n/a | return _res; |
|---|
| 11985 | n/a | } |
|---|
| 11986 | n/a | |
|---|
| 11987 | n/a | static PyObject *Qt_GraphicsImportGetGraphicsMode(PyObject *_self, PyObject *_args) |
|---|
| 11988 | n/a | { |
|---|
| 11989 | n/a | PyObject *_res = NULL; |
|---|
| 11990 | n/a | ComponentResult _rv; |
|---|
| 11991 | n/a | GraphicsImportComponent ci; |
|---|
| 11992 | n/a | long graphicsMode; |
|---|
| 11993 | n/a | RGBColor opColor; |
|---|
| 11994 | n/a | #ifndef GraphicsImportGetGraphicsMode |
|---|
| 11995 | n/a | PyMac_PRECHECK(GraphicsImportGetGraphicsMode); |
|---|
| 11996 | n/a | #endif |
|---|
| 11997 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 11998 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 11999 | n/a | return NULL; |
|---|
| 12000 | n/a | _rv = GraphicsImportGetGraphicsMode(ci, |
|---|
| 12001 | n/a | &graphicsMode, |
|---|
| 12002 | n/a | &opColor); |
|---|
| 12003 | n/a | _res = Py_BuildValue("llO&", |
|---|
| 12004 | n/a | _rv, |
|---|
| 12005 | n/a | graphicsMode, |
|---|
| 12006 | n/a | QdRGB_New, &opColor); |
|---|
| 12007 | n/a | return _res; |
|---|
| 12008 | n/a | } |
|---|
| 12009 | n/a | |
|---|
| 12010 | n/a | static PyObject *Qt_GraphicsImportSetQuality(PyObject *_self, PyObject *_args) |
|---|
| 12011 | n/a | { |
|---|
| 12012 | n/a | PyObject *_res = NULL; |
|---|
| 12013 | n/a | ComponentResult _rv; |
|---|
| 12014 | n/a | GraphicsImportComponent ci; |
|---|
| 12015 | n/a | CodecQ quality; |
|---|
| 12016 | n/a | #ifndef GraphicsImportSetQuality |
|---|
| 12017 | n/a | PyMac_PRECHECK(GraphicsImportSetQuality); |
|---|
| 12018 | n/a | #endif |
|---|
| 12019 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 12020 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12021 | n/a | &quality)) |
|---|
| 12022 | n/a | return NULL; |
|---|
| 12023 | n/a | _rv = GraphicsImportSetQuality(ci, |
|---|
| 12024 | n/a | quality); |
|---|
| 12025 | n/a | _res = Py_BuildValue("l", |
|---|
| 12026 | n/a | _rv); |
|---|
| 12027 | n/a | return _res; |
|---|
| 12028 | n/a | } |
|---|
| 12029 | n/a | |
|---|
| 12030 | n/a | static PyObject *Qt_GraphicsImportGetQuality(PyObject *_self, PyObject *_args) |
|---|
| 12031 | n/a | { |
|---|
| 12032 | n/a | PyObject *_res = NULL; |
|---|
| 12033 | n/a | ComponentResult _rv; |
|---|
| 12034 | n/a | GraphicsImportComponent ci; |
|---|
| 12035 | n/a | CodecQ quality; |
|---|
| 12036 | n/a | #ifndef GraphicsImportGetQuality |
|---|
| 12037 | n/a | PyMac_PRECHECK(GraphicsImportGetQuality); |
|---|
| 12038 | n/a | #endif |
|---|
| 12039 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12040 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12041 | n/a | return NULL; |
|---|
| 12042 | n/a | _rv = GraphicsImportGetQuality(ci, |
|---|
| 12043 | n/a | &quality); |
|---|
| 12044 | n/a | _res = Py_BuildValue("ll", |
|---|
| 12045 | n/a | _rv, |
|---|
| 12046 | n/a | quality); |
|---|
| 12047 | n/a | return _res; |
|---|
| 12048 | n/a | } |
|---|
| 12049 | n/a | |
|---|
| 12050 | n/a | static PyObject *Qt_GraphicsImportSaveAsQuickTimeImageFile(PyObject *_self, PyObject *_args) |
|---|
| 12051 | n/a | { |
|---|
| 12052 | n/a | PyObject *_res = NULL; |
|---|
| 12053 | n/a | ComponentResult _rv; |
|---|
| 12054 | n/a | GraphicsImportComponent ci; |
|---|
| 12055 | n/a | FSSpec fss; |
|---|
| 12056 | n/a | ScriptCode scriptTag; |
|---|
| 12057 | n/a | #ifndef GraphicsImportSaveAsQuickTimeImageFile |
|---|
| 12058 | n/a | PyMac_PRECHECK(GraphicsImportSaveAsQuickTimeImageFile); |
|---|
| 12059 | n/a | #endif |
|---|
| 12060 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 12061 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12062 | n/a | PyMac_GetFSSpec, &fss, |
|---|
| 12063 | n/a | &scriptTag)) |
|---|
| 12064 | n/a | return NULL; |
|---|
| 12065 | n/a | _rv = GraphicsImportSaveAsQuickTimeImageFile(ci, |
|---|
| 12066 | n/a | &fss, |
|---|
| 12067 | n/a | scriptTag); |
|---|
| 12068 | n/a | _res = Py_BuildValue("l", |
|---|
| 12069 | n/a | _rv); |
|---|
| 12070 | n/a | return _res; |
|---|
| 12071 | n/a | } |
|---|
| 12072 | n/a | |
|---|
| 12073 | n/a | static PyObject *Qt_GraphicsImportSetDataReferenceOffsetAndLimit(PyObject *_self, PyObject *_args) |
|---|
| 12074 | n/a | { |
|---|
| 12075 | n/a | PyObject *_res = NULL; |
|---|
| 12076 | n/a | ComponentResult _rv; |
|---|
| 12077 | n/a | GraphicsImportComponent ci; |
|---|
| 12078 | n/a | unsigned long offset; |
|---|
| 12079 | n/a | unsigned long limit; |
|---|
| 12080 | n/a | #ifndef GraphicsImportSetDataReferenceOffsetAndLimit |
|---|
| 12081 | n/a | PyMac_PRECHECK(GraphicsImportSetDataReferenceOffsetAndLimit); |
|---|
| 12082 | n/a | #endif |
|---|
| 12083 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 12084 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12085 | n/a | &offset, |
|---|
| 12086 | n/a | &limit)) |
|---|
| 12087 | n/a | return NULL; |
|---|
| 12088 | n/a | _rv = GraphicsImportSetDataReferenceOffsetAndLimit(ci, |
|---|
| 12089 | n/a | offset, |
|---|
| 12090 | n/a | limit); |
|---|
| 12091 | n/a | _res = Py_BuildValue("l", |
|---|
| 12092 | n/a | _rv); |
|---|
| 12093 | n/a | return _res; |
|---|
| 12094 | n/a | } |
|---|
| 12095 | n/a | |
|---|
| 12096 | n/a | static PyObject *Qt_GraphicsImportGetDataReferenceOffsetAndLimit(PyObject *_self, PyObject *_args) |
|---|
| 12097 | n/a | { |
|---|
| 12098 | n/a | PyObject *_res = NULL; |
|---|
| 12099 | n/a | ComponentResult _rv; |
|---|
| 12100 | n/a | GraphicsImportComponent ci; |
|---|
| 12101 | n/a | unsigned long offset; |
|---|
| 12102 | n/a | unsigned long limit; |
|---|
| 12103 | n/a | #ifndef GraphicsImportGetDataReferenceOffsetAndLimit |
|---|
| 12104 | n/a | PyMac_PRECHECK(GraphicsImportGetDataReferenceOffsetAndLimit); |
|---|
| 12105 | n/a | #endif |
|---|
| 12106 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12107 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12108 | n/a | return NULL; |
|---|
| 12109 | n/a | _rv = GraphicsImportGetDataReferenceOffsetAndLimit(ci, |
|---|
| 12110 | n/a | &offset, |
|---|
| 12111 | n/a | &limit); |
|---|
| 12112 | n/a | _res = Py_BuildValue("lll", |
|---|
| 12113 | n/a | _rv, |
|---|
| 12114 | n/a | offset, |
|---|
| 12115 | n/a | limit); |
|---|
| 12116 | n/a | return _res; |
|---|
| 12117 | n/a | } |
|---|
| 12118 | n/a | |
|---|
| 12119 | n/a | static PyObject *Qt_GraphicsImportGetAliasedDataReference(PyObject *_self, PyObject *_args) |
|---|
| 12120 | n/a | { |
|---|
| 12121 | n/a | PyObject *_res = NULL; |
|---|
| 12122 | n/a | ComponentResult _rv; |
|---|
| 12123 | n/a | GraphicsImportComponent ci; |
|---|
| 12124 | n/a | Handle dataRef; |
|---|
| 12125 | n/a | OSType dataRefType; |
|---|
| 12126 | n/a | #ifndef GraphicsImportGetAliasedDataReference |
|---|
| 12127 | n/a | PyMac_PRECHECK(GraphicsImportGetAliasedDataReference); |
|---|
| 12128 | n/a | #endif |
|---|
| 12129 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12130 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12131 | n/a | return NULL; |
|---|
| 12132 | n/a | _rv = GraphicsImportGetAliasedDataReference(ci, |
|---|
| 12133 | n/a | &dataRef, |
|---|
| 12134 | n/a | &dataRefType); |
|---|
| 12135 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 12136 | n/a | _rv, |
|---|
| 12137 | n/a | ResObj_New, dataRef, |
|---|
| 12138 | n/a | PyMac_BuildOSType, dataRefType); |
|---|
| 12139 | n/a | return _res; |
|---|
| 12140 | n/a | } |
|---|
| 12141 | n/a | |
|---|
| 12142 | n/a | static PyObject *Qt_GraphicsImportValidate(PyObject *_self, PyObject *_args) |
|---|
| 12143 | n/a | { |
|---|
| 12144 | n/a | PyObject *_res = NULL; |
|---|
| 12145 | n/a | ComponentResult _rv; |
|---|
| 12146 | n/a | GraphicsImportComponent ci; |
|---|
| 12147 | n/a | Boolean valid; |
|---|
| 12148 | n/a | #ifndef GraphicsImportValidate |
|---|
| 12149 | n/a | PyMac_PRECHECK(GraphicsImportValidate); |
|---|
| 12150 | n/a | #endif |
|---|
| 12151 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12152 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12153 | n/a | return NULL; |
|---|
| 12154 | n/a | _rv = GraphicsImportValidate(ci, |
|---|
| 12155 | n/a | &valid); |
|---|
| 12156 | n/a | _res = Py_BuildValue("lb", |
|---|
| 12157 | n/a | _rv, |
|---|
| 12158 | n/a | valid); |
|---|
| 12159 | n/a | return _res; |
|---|
| 12160 | n/a | } |
|---|
| 12161 | n/a | |
|---|
| 12162 | n/a | static PyObject *Qt_GraphicsImportGetMetaData(PyObject *_self, PyObject *_args) |
|---|
| 12163 | n/a | { |
|---|
| 12164 | n/a | PyObject *_res = NULL; |
|---|
| 12165 | n/a | ComponentResult _rv; |
|---|
| 12166 | n/a | GraphicsImportComponent ci; |
|---|
| 12167 | n/a | void * userData; |
|---|
| 12168 | n/a | #ifndef GraphicsImportGetMetaData |
|---|
| 12169 | n/a | PyMac_PRECHECK(GraphicsImportGetMetaData); |
|---|
| 12170 | n/a | #endif |
|---|
| 12171 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12172 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12173 | n/a | &userData)) |
|---|
| 12174 | n/a | return NULL; |
|---|
| 12175 | n/a | _rv = GraphicsImportGetMetaData(ci, |
|---|
| 12176 | n/a | userData); |
|---|
| 12177 | n/a | _res = Py_BuildValue("l", |
|---|
| 12178 | n/a | _rv); |
|---|
| 12179 | n/a | return _res; |
|---|
| 12180 | n/a | } |
|---|
| 12181 | n/a | |
|---|
| 12182 | n/a | static PyObject *Qt_GraphicsImportGetMIMETypeList(PyObject *_self, PyObject *_args) |
|---|
| 12183 | n/a | { |
|---|
| 12184 | n/a | PyObject *_res = NULL; |
|---|
| 12185 | n/a | ComponentResult _rv; |
|---|
| 12186 | n/a | GraphicsImportComponent ci; |
|---|
| 12187 | n/a | void * qtAtomContainerPtr; |
|---|
| 12188 | n/a | #ifndef GraphicsImportGetMIMETypeList |
|---|
| 12189 | n/a | PyMac_PRECHECK(GraphicsImportGetMIMETypeList); |
|---|
| 12190 | n/a | #endif |
|---|
| 12191 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12192 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12193 | n/a | &qtAtomContainerPtr)) |
|---|
| 12194 | n/a | return NULL; |
|---|
| 12195 | n/a | _rv = GraphicsImportGetMIMETypeList(ci, |
|---|
| 12196 | n/a | qtAtomContainerPtr); |
|---|
| 12197 | n/a | _res = Py_BuildValue("l", |
|---|
| 12198 | n/a | _rv); |
|---|
| 12199 | n/a | return _res; |
|---|
| 12200 | n/a | } |
|---|
| 12201 | n/a | |
|---|
| 12202 | n/a | static PyObject *Qt_GraphicsImportDoesDrawAllPixels(PyObject *_self, PyObject *_args) |
|---|
| 12203 | n/a | { |
|---|
| 12204 | n/a | PyObject *_res = NULL; |
|---|
| 12205 | n/a | ComponentResult _rv; |
|---|
| 12206 | n/a | GraphicsImportComponent ci; |
|---|
| 12207 | n/a | short drawsAllPixels; |
|---|
| 12208 | n/a | #ifndef GraphicsImportDoesDrawAllPixels |
|---|
| 12209 | n/a | PyMac_PRECHECK(GraphicsImportDoesDrawAllPixels); |
|---|
| 12210 | n/a | #endif |
|---|
| 12211 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12212 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12213 | n/a | return NULL; |
|---|
| 12214 | n/a | _rv = GraphicsImportDoesDrawAllPixels(ci, |
|---|
| 12215 | n/a | &drawsAllPixels); |
|---|
| 12216 | n/a | _res = Py_BuildValue("lh", |
|---|
| 12217 | n/a | _rv, |
|---|
| 12218 | n/a | drawsAllPixels); |
|---|
| 12219 | n/a | return _res; |
|---|
| 12220 | n/a | } |
|---|
| 12221 | n/a | |
|---|
| 12222 | n/a | static PyObject *Qt_GraphicsImportGetAsPicture(PyObject *_self, PyObject *_args) |
|---|
| 12223 | n/a | { |
|---|
| 12224 | n/a | PyObject *_res = NULL; |
|---|
| 12225 | n/a | ComponentResult _rv; |
|---|
| 12226 | n/a | GraphicsImportComponent ci; |
|---|
| 12227 | n/a | PicHandle picture; |
|---|
| 12228 | n/a | #ifndef GraphicsImportGetAsPicture |
|---|
| 12229 | n/a | PyMac_PRECHECK(GraphicsImportGetAsPicture); |
|---|
| 12230 | n/a | #endif |
|---|
| 12231 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12232 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12233 | n/a | return NULL; |
|---|
| 12234 | n/a | _rv = GraphicsImportGetAsPicture(ci, |
|---|
| 12235 | n/a | &picture); |
|---|
| 12236 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12237 | n/a | _rv, |
|---|
| 12238 | n/a | ResObj_New, picture); |
|---|
| 12239 | n/a | return _res; |
|---|
| 12240 | n/a | } |
|---|
| 12241 | n/a | |
|---|
| 12242 | n/a | static PyObject *Qt_GraphicsImportExportImageFile(PyObject *_self, PyObject *_args) |
|---|
| 12243 | n/a | { |
|---|
| 12244 | n/a | PyObject *_res = NULL; |
|---|
| 12245 | n/a | ComponentResult _rv; |
|---|
| 12246 | n/a | GraphicsImportComponent ci; |
|---|
| 12247 | n/a | OSType fileType; |
|---|
| 12248 | n/a | OSType fileCreator; |
|---|
| 12249 | n/a | FSSpec fss; |
|---|
| 12250 | n/a | ScriptCode scriptTag; |
|---|
| 12251 | n/a | #ifndef GraphicsImportExportImageFile |
|---|
| 12252 | n/a | PyMac_PRECHECK(GraphicsImportExportImageFile); |
|---|
| 12253 | n/a | #endif |
|---|
| 12254 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&h", |
|---|
| 12255 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12256 | n/a | PyMac_GetOSType, &fileType, |
|---|
| 12257 | n/a | PyMac_GetOSType, &fileCreator, |
|---|
| 12258 | n/a | PyMac_GetFSSpec, &fss, |
|---|
| 12259 | n/a | &scriptTag)) |
|---|
| 12260 | n/a | return NULL; |
|---|
| 12261 | n/a | _rv = GraphicsImportExportImageFile(ci, |
|---|
| 12262 | n/a | fileType, |
|---|
| 12263 | n/a | fileCreator, |
|---|
| 12264 | n/a | &fss, |
|---|
| 12265 | n/a | scriptTag); |
|---|
| 12266 | n/a | _res = Py_BuildValue("l", |
|---|
| 12267 | n/a | _rv); |
|---|
| 12268 | n/a | return _res; |
|---|
| 12269 | n/a | } |
|---|
| 12270 | n/a | |
|---|
| 12271 | n/a | static PyObject *Qt_GraphicsImportGetExportImageTypeList(PyObject *_self, PyObject *_args) |
|---|
| 12272 | n/a | { |
|---|
| 12273 | n/a | PyObject *_res = NULL; |
|---|
| 12274 | n/a | ComponentResult _rv; |
|---|
| 12275 | n/a | GraphicsImportComponent ci; |
|---|
| 12276 | n/a | void * qtAtomContainerPtr; |
|---|
| 12277 | n/a | #ifndef GraphicsImportGetExportImageTypeList |
|---|
| 12278 | n/a | PyMac_PRECHECK(GraphicsImportGetExportImageTypeList); |
|---|
| 12279 | n/a | #endif |
|---|
| 12280 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12281 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12282 | n/a | &qtAtomContainerPtr)) |
|---|
| 12283 | n/a | return NULL; |
|---|
| 12284 | n/a | _rv = GraphicsImportGetExportImageTypeList(ci, |
|---|
| 12285 | n/a | qtAtomContainerPtr); |
|---|
| 12286 | n/a | _res = Py_BuildValue("l", |
|---|
| 12287 | n/a | _rv); |
|---|
| 12288 | n/a | return _res; |
|---|
| 12289 | n/a | } |
|---|
| 12290 | n/a | |
|---|
| 12291 | n/a | static PyObject *Qt_GraphicsImportGetExportSettingsAsAtomContainer(PyObject *_self, PyObject *_args) |
|---|
| 12292 | n/a | { |
|---|
| 12293 | n/a | PyObject *_res = NULL; |
|---|
| 12294 | n/a | ComponentResult _rv; |
|---|
| 12295 | n/a | GraphicsImportComponent ci; |
|---|
| 12296 | n/a | void * qtAtomContainerPtr; |
|---|
| 12297 | n/a | #ifndef GraphicsImportGetExportSettingsAsAtomContainer |
|---|
| 12298 | n/a | PyMac_PRECHECK(GraphicsImportGetExportSettingsAsAtomContainer); |
|---|
| 12299 | n/a | #endif |
|---|
| 12300 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12301 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12302 | n/a | &qtAtomContainerPtr)) |
|---|
| 12303 | n/a | return NULL; |
|---|
| 12304 | n/a | _rv = GraphicsImportGetExportSettingsAsAtomContainer(ci, |
|---|
| 12305 | n/a | qtAtomContainerPtr); |
|---|
| 12306 | n/a | _res = Py_BuildValue("l", |
|---|
| 12307 | n/a | _rv); |
|---|
| 12308 | n/a | return _res; |
|---|
| 12309 | n/a | } |
|---|
| 12310 | n/a | |
|---|
| 12311 | n/a | static PyObject *Qt_GraphicsImportSetExportSettingsFromAtomContainer(PyObject *_self, PyObject *_args) |
|---|
| 12312 | n/a | { |
|---|
| 12313 | n/a | PyObject *_res = NULL; |
|---|
| 12314 | n/a | ComponentResult _rv; |
|---|
| 12315 | n/a | GraphicsImportComponent ci; |
|---|
| 12316 | n/a | void * qtAtomContainer; |
|---|
| 12317 | n/a | #ifndef GraphicsImportSetExportSettingsFromAtomContainer |
|---|
| 12318 | n/a | PyMac_PRECHECK(GraphicsImportSetExportSettingsFromAtomContainer); |
|---|
| 12319 | n/a | #endif |
|---|
| 12320 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12321 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12322 | n/a | &qtAtomContainer)) |
|---|
| 12323 | n/a | return NULL; |
|---|
| 12324 | n/a | _rv = GraphicsImportSetExportSettingsFromAtomContainer(ci, |
|---|
| 12325 | n/a | qtAtomContainer); |
|---|
| 12326 | n/a | _res = Py_BuildValue("l", |
|---|
| 12327 | n/a | _rv); |
|---|
| 12328 | n/a | return _res; |
|---|
| 12329 | n/a | } |
|---|
| 12330 | n/a | |
|---|
| 12331 | n/a | static PyObject *Qt_GraphicsImportGetImageCount(PyObject *_self, PyObject *_args) |
|---|
| 12332 | n/a | { |
|---|
| 12333 | n/a | PyObject *_res = NULL; |
|---|
| 12334 | n/a | ComponentResult _rv; |
|---|
| 12335 | n/a | GraphicsImportComponent ci; |
|---|
| 12336 | n/a | unsigned long imageCount; |
|---|
| 12337 | n/a | #ifndef GraphicsImportGetImageCount |
|---|
| 12338 | n/a | PyMac_PRECHECK(GraphicsImportGetImageCount); |
|---|
| 12339 | n/a | #endif |
|---|
| 12340 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12341 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12342 | n/a | return NULL; |
|---|
| 12343 | n/a | _rv = GraphicsImportGetImageCount(ci, |
|---|
| 12344 | n/a | &imageCount); |
|---|
| 12345 | n/a | _res = Py_BuildValue("ll", |
|---|
| 12346 | n/a | _rv, |
|---|
| 12347 | n/a | imageCount); |
|---|
| 12348 | n/a | return _res; |
|---|
| 12349 | n/a | } |
|---|
| 12350 | n/a | |
|---|
| 12351 | n/a | static PyObject *Qt_GraphicsImportSetImageIndex(PyObject *_self, PyObject *_args) |
|---|
| 12352 | n/a | { |
|---|
| 12353 | n/a | PyObject *_res = NULL; |
|---|
| 12354 | n/a | ComponentResult _rv; |
|---|
| 12355 | n/a | GraphicsImportComponent ci; |
|---|
| 12356 | n/a | unsigned long imageIndex; |
|---|
| 12357 | n/a | #ifndef GraphicsImportSetImageIndex |
|---|
| 12358 | n/a | PyMac_PRECHECK(GraphicsImportSetImageIndex); |
|---|
| 12359 | n/a | #endif |
|---|
| 12360 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 12361 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12362 | n/a | &imageIndex)) |
|---|
| 12363 | n/a | return NULL; |
|---|
| 12364 | n/a | _rv = GraphicsImportSetImageIndex(ci, |
|---|
| 12365 | n/a | imageIndex); |
|---|
| 12366 | n/a | _res = Py_BuildValue("l", |
|---|
| 12367 | n/a | _rv); |
|---|
| 12368 | n/a | return _res; |
|---|
| 12369 | n/a | } |
|---|
| 12370 | n/a | |
|---|
| 12371 | n/a | static PyObject *Qt_GraphicsImportGetImageIndex(PyObject *_self, PyObject *_args) |
|---|
| 12372 | n/a | { |
|---|
| 12373 | n/a | PyObject *_res = NULL; |
|---|
| 12374 | n/a | ComponentResult _rv; |
|---|
| 12375 | n/a | GraphicsImportComponent ci; |
|---|
| 12376 | n/a | unsigned long imageIndex; |
|---|
| 12377 | n/a | #ifndef GraphicsImportGetImageIndex |
|---|
| 12378 | n/a | PyMac_PRECHECK(GraphicsImportGetImageIndex); |
|---|
| 12379 | n/a | #endif |
|---|
| 12380 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12381 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12382 | n/a | return NULL; |
|---|
| 12383 | n/a | _rv = GraphicsImportGetImageIndex(ci, |
|---|
| 12384 | n/a | &imageIndex); |
|---|
| 12385 | n/a | _res = Py_BuildValue("ll", |
|---|
| 12386 | n/a | _rv, |
|---|
| 12387 | n/a | imageIndex); |
|---|
| 12388 | n/a | return _res; |
|---|
| 12389 | n/a | } |
|---|
| 12390 | n/a | |
|---|
| 12391 | n/a | static PyObject *Qt_GraphicsImportGetDataOffsetAndSize64(PyObject *_self, PyObject *_args) |
|---|
| 12392 | n/a | { |
|---|
| 12393 | n/a | PyObject *_res = NULL; |
|---|
| 12394 | n/a | ComponentResult _rv; |
|---|
| 12395 | n/a | GraphicsImportComponent ci; |
|---|
| 12396 | n/a | wide offset; |
|---|
| 12397 | n/a | wide size; |
|---|
| 12398 | n/a | #ifndef GraphicsImportGetDataOffsetAndSize64 |
|---|
| 12399 | n/a | PyMac_PRECHECK(GraphicsImportGetDataOffsetAndSize64); |
|---|
| 12400 | n/a | #endif |
|---|
| 12401 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12402 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12403 | n/a | return NULL; |
|---|
| 12404 | n/a | _rv = GraphicsImportGetDataOffsetAndSize64(ci, |
|---|
| 12405 | n/a | &offset, |
|---|
| 12406 | n/a | &size); |
|---|
| 12407 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 12408 | n/a | _rv, |
|---|
| 12409 | n/a | PyMac_Buildwide, offset, |
|---|
| 12410 | n/a | PyMac_Buildwide, size); |
|---|
| 12411 | n/a | return _res; |
|---|
| 12412 | n/a | } |
|---|
| 12413 | n/a | |
|---|
| 12414 | n/a | static PyObject *Qt_GraphicsImportReadData64(PyObject *_self, PyObject *_args) |
|---|
| 12415 | n/a | { |
|---|
| 12416 | n/a | PyObject *_res = NULL; |
|---|
| 12417 | n/a | ComponentResult _rv; |
|---|
| 12418 | n/a | GraphicsImportComponent ci; |
|---|
| 12419 | n/a | void * dataPtr; |
|---|
| 12420 | n/a | wide dataOffset; |
|---|
| 12421 | n/a | unsigned long dataSize; |
|---|
| 12422 | n/a | #ifndef GraphicsImportReadData64 |
|---|
| 12423 | n/a | PyMac_PRECHECK(GraphicsImportReadData64); |
|---|
| 12424 | n/a | #endif |
|---|
| 12425 | n/a | if (!PyArg_ParseTuple(_args, "O&sO&l", |
|---|
| 12426 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12427 | n/a | &dataPtr, |
|---|
| 12428 | n/a | PyMac_Getwide, &dataOffset, |
|---|
| 12429 | n/a | &dataSize)) |
|---|
| 12430 | n/a | return NULL; |
|---|
| 12431 | n/a | _rv = GraphicsImportReadData64(ci, |
|---|
| 12432 | n/a | dataPtr, |
|---|
| 12433 | n/a | &dataOffset, |
|---|
| 12434 | n/a | dataSize); |
|---|
| 12435 | n/a | _res = Py_BuildValue("l", |
|---|
| 12436 | n/a | _rv); |
|---|
| 12437 | n/a | return _res; |
|---|
| 12438 | n/a | } |
|---|
| 12439 | n/a | |
|---|
| 12440 | n/a | static PyObject *Qt_GraphicsImportSetDataReferenceOffsetAndLimit64(PyObject *_self, PyObject *_args) |
|---|
| 12441 | n/a | { |
|---|
| 12442 | n/a | PyObject *_res = NULL; |
|---|
| 12443 | n/a | ComponentResult _rv; |
|---|
| 12444 | n/a | GraphicsImportComponent ci; |
|---|
| 12445 | n/a | wide offset; |
|---|
| 12446 | n/a | wide limit; |
|---|
| 12447 | n/a | #ifndef GraphicsImportSetDataReferenceOffsetAndLimit64 |
|---|
| 12448 | n/a | PyMac_PRECHECK(GraphicsImportSetDataReferenceOffsetAndLimit64); |
|---|
| 12449 | n/a | #endif |
|---|
| 12450 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 12451 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12452 | n/a | PyMac_Getwide, &offset, |
|---|
| 12453 | n/a | PyMac_Getwide, &limit)) |
|---|
| 12454 | n/a | return NULL; |
|---|
| 12455 | n/a | _rv = GraphicsImportSetDataReferenceOffsetAndLimit64(ci, |
|---|
| 12456 | n/a | &offset, |
|---|
| 12457 | n/a | &limit); |
|---|
| 12458 | n/a | _res = Py_BuildValue("l", |
|---|
| 12459 | n/a | _rv); |
|---|
| 12460 | n/a | return _res; |
|---|
| 12461 | n/a | } |
|---|
| 12462 | n/a | |
|---|
| 12463 | n/a | static PyObject *Qt_GraphicsImportGetDataReferenceOffsetAndLimit64(PyObject *_self, PyObject *_args) |
|---|
| 12464 | n/a | { |
|---|
| 12465 | n/a | PyObject *_res = NULL; |
|---|
| 12466 | n/a | ComponentResult _rv; |
|---|
| 12467 | n/a | GraphicsImportComponent ci; |
|---|
| 12468 | n/a | wide offset; |
|---|
| 12469 | n/a | wide limit; |
|---|
| 12470 | n/a | #ifndef GraphicsImportGetDataReferenceOffsetAndLimit64 |
|---|
| 12471 | n/a | PyMac_PRECHECK(GraphicsImportGetDataReferenceOffsetAndLimit64); |
|---|
| 12472 | n/a | #endif |
|---|
| 12473 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12474 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12475 | n/a | return NULL; |
|---|
| 12476 | n/a | _rv = GraphicsImportGetDataReferenceOffsetAndLimit64(ci, |
|---|
| 12477 | n/a | &offset, |
|---|
| 12478 | n/a | &limit); |
|---|
| 12479 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 12480 | n/a | _rv, |
|---|
| 12481 | n/a | PyMac_Buildwide, offset, |
|---|
| 12482 | n/a | PyMac_Buildwide, limit); |
|---|
| 12483 | n/a | return _res; |
|---|
| 12484 | n/a | } |
|---|
| 12485 | n/a | |
|---|
| 12486 | n/a | static PyObject *Qt_GraphicsImportGetDefaultClip(PyObject *_self, PyObject *_args) |
|---|
| 12487 | n/a | { |
|---|
| 12488 | n/a | PyObject *_res = NULL; |
|---|
| 12489 | n/a | ComponentResult _rv; |
|---|
| 12490 | n/a | GraphicsImportComponent ci; |
|---|
| 12491 | n/a | RgnHandle defaultRgn; |
|---|
| 12492 | n/a | #ifndef GraphicsImportGetDefaultClip |
|---|
| 12493 | n/a | PyMac_PRECHECK(GraphicsImportGetDefaultClip); |
|---|
| 12494 | n/a | #endif |
|---|
| 12495 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12496 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12497 | n/a | return NULL; |
|---|
| 12498 | n/a | _rv = GraphicsImportGetDefaultClip(ci, |
|---|
| 12499 | n/a | &defaultRgn); |
|---|
| 12500 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12501 | n/a | _rv, |
|---|
| 12502 | n/a | ResObj_New, defaultRgn); |
|---|
| 12503 | n/a | return _res; |
|---|
| 12504 | n/a | } |
|---|
| 12505 | n/a | |
|---|
| 12506 | n/a | static PyObject *Qt_GraphicsImportGetDefaultGraphicsMode(PyObject *_self, PyObject *_args) |
|---|
| 12507 | n/a | { |
|---|
| 12508 | n/a | PyObject *_res = NULL; |
|---|
| 12509 | n/a | ComponentResult _rv; |
|---|
| 12510 | n/a | GraphicsImportComponent ci; |
|---|
| 12511 | n/a | long defaultGraphicsMode; |
|---|
| 12512 | n/a | RGBColor defaultOpColor; |
|---|
| 12513 | n/a | #ifndef GraphicsImportGetDefaultGraphicsMode |
|---|
| 12514 | n/a | PyMac_PRECHECK(GraphicsImportGetDefaultGraphicsMode); |
|---|
| 12515 | n/a | #endif |
|---|
| 12516 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12517 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12518 | n/a | return NULL; |
|---|
| 12519 | n/a | _rv = GraphicsImportGetDefaultGraphicsMode(ci, |
|---|
| 12520 | n/a | &defaultGraphicsMode, |
|---|
| 12521 | n/a | &defaultOpColor); |
|---|
| 12522 | n/a | _res = Py_BuildValue("llO&", |
|---|
| 12523 | n/a | _rv, |
|---|
| 12524 | n/a | defaultGraphicsMode, |
|---|
| 12525 | n/a | QdRGB_New, &defaultOpColor); |
|---|
| 12526 | n/a | return _res; |
|---|
| 12527 | n/a | } |
|---|
| 12528 | n/a | |
|---|
| 12529 | n/a | static PyObject *Qt_GraphicsImportGetDefaultSourceRect(PyObject *_self, PyObject *_args) |
|---|
| 12530 | n/a | { |
|---|
| 12531 | n/a | PyObject *_res = NULL; |
|---|
| 12532 | n/a | ComponentResult _rv; |
|---|
| 12533 | n/a | GraphicsImportComponent ci; |
|---|
| 12534 | n/a | Rect defaultSourceRect; |
|---|
| 12535 | n/a | #ifndef GraphicsImportGetDefaultSourceRect |
|---|
| 12536 | n/a | PyMac_PRECHECK(GraphicsImportGetDefaultSourceRect); |
|---|
| 12537 | n/a | #endif |
|---|
| 12538 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12539 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12540 | n/a | return NULL; |
|---|
| 12541 | n/a | _rv = GraphicsImportGetDefaultSourceRect(ci, |
|---|
| 12542 | n/a | &defaultSourceRect); |
|---|
| 12543 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12544 | n/a | _rv, |
|---|
| 12545 | n/a | PyMac_BuildRect, &defaultSourceRect); |
|---|
| 12546 | n/a | return _res; |
|---|
| 12547 | n/a | } |
|---|
| 12548 | n/a | |
|---|
| 12549 | n/a | static PyObject *Qt_GraphicsImportGetColorSyncProfile(PyObject *_self, PyObject *_args) |
|---|
| 12550 | n/a | { |
|---|
| 12551 | n/a | PyObject *_res = NULL; |
|---|
| 12552 | n/a | ComponentResult _rv; |
|---|
| 12553 | n/a | GraphicsImportComponent ci; |
|---|
| 12554 | n/a | Handle profile; |
|---|
| 12555 | n/a | #ifndef GraphicsImportGetColorSyncProfile |
|---|
| 12556 | n/a | PyMac_PRECHECK(GraphicsImportGetColorSyncProfile); |
|---|
| 12557 | n/a | #endif |
|---|
| 12558 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12559 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12560 | n/a | return NULL; |
|---|
| 12561 | n/a | _rv = GraphicsImportGetColorSyncProfile(ci, |
|---|
| 12562 | n/a | &profile); |
|---|
| 12563 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12564 | n/a | _rv, |
|---|
| 12565 | n/a | ResObj_New, profile); |
|---|
| 12566 | n/a | return _res; |
|---|
| 12567 | n/a | } |
|---|
| 12568 | n/a | |
|---|
| 12569 | n/a | static PyObject *Qt_GraphicsImportSetDestRect(PyObject *_self, PyObject *_args) |
|---|
| 12570 | n/a | { |
|---|
| 12571 | n/a | PyObject *_res = NULL; |
|---|
| 12572 | n/a | ComponentResult _rv; |
|---|
| 12573 | n/a | GraphicsImportComponent ci; |
|---|
| 12574 | n/a | Rect destRect; |
|---|
| 12575 | n/a | #ifndef GraphicsImportSetDestRect |
|---|
| 12576 | n/a | PyMac_PRECHECK(GraphicsImportSetDestRect); |
|---|
| 12577 | n/a | #endif |
|---|
| 12578 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 12579 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12580 | n/a | PyMac_GetRect, &destRect)) |
|---|
| 12581 | n/a | return NULL; |
|---|
| 12582 | n/a | _rv = GraphicsImportSetDestRect(ci, |
|---|
| 12583 | n/a | &destRect); |
|---|
| 12584 | n/a | _res = Py_BuildValue("l", |
|---|
| 12585 | n/a | _rv); |
|---|
| 12586 | n/a | return _res; |
|---|
| 12587 | n/a | } |
|---|
| 12588 | n/a | |
|---|
| 12589 | n/a | static PyObject *Qt_GraphicsImportGetDestRect(PyObject *_self, PyObject *_args) |
|---|
| 12590 | n/a | { |
|---|
| 12591 | n/a | PyObject *_res = NULL; |
|---|
| 12592 | n/a | ComponentResult _rv; |
|---|
| 12593 | n/a | GraphicsImportComponent ci; |
|---|
| 12594 | n/a | Rect destRect; |
|---|
| 12595 | n/a | #ifndef GraphicsImportGetDestRect |
|---|
| 12596 | n/a | PyMac_PRECHECK(GraphicsImportGetDestRect); |
|---|
| 12597 | n/a | #endif |
|---|
| 12598 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12599 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12600 | n/a | return NULL; |
|---|
| 12601 | n/a | _rv = GraphicsImportGetDestRect(ci, |
|---|
| 12602 | n/a | &destRect); |
|---|
| 12603 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12604 | n/a | _rv, |
|---|
| 12605 | n/a | PyMac_BuildRect, &destRect); |
|---|
| 12606 | n/a | return _res; |
|---|
| 12607 | n/a | } |
|---|
| 12608 | n/a | |
|---|
| 12609 | n/a | static PyObject *Qt_GraphicsImportSetFlags(PyObject *_self, PyObject *_args) |
|---|
| 12610 | n/a | { |
|---|
| 12611 | n/a | PyObject *_res = NULL; |
|---|
| 12612 | n/a | ComponentResult _rv; |
|---|
| 12613 | n/a | GraphicsImportComponent ci; |
|---|
| 12614 | n/a | long flags; |
|---|
| 12615 | n/a | #ifndef GraphicsImportSetFlags |
|---|
| 12616 | n/a | PyMac_PRECHECK(GraphicsImportSetFlags); |
|---|
| 12617 | n/a | #endif |
|---|
| 12618 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 12619 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12620 | n/a | &flags)) |
|---|
| 12621 | n/a | return NULL; |
|---|
| 12622 | n/a | _rv = GraphicsImportSetFlags(ci, |
|---|
| 12623 | n/a | flags); |
|---|
| 12624 | n/a | _res = Py_BuildValue("l", |
|---|
| 12625 | n/a | _rv); |
|---|
| 12626 | n/a | return _res; |
|---|
| 12627 | n/a | } |
|---|
| 12628 | n/a | |
|---|
| 12629 | n/a | static PyObject *Qt_GraphicsImportGetFlags(PyObject *_self, PyObject *_args) |
|---|
| 12630 | n/a | { |
|---|
| 12631 | n/a | PyObject *_res = NULL; |
|---|
| 12632 | n/a | ComponentResult _rv; |
|---|
| 12633 | n/a | GraphicsImportComponent ci; |
|---|
| 12634 | n/a | long flags; |
|---|
| 12635 | n/a | #ifndef GraphicsImportGetFlags |
|---|
| 12636 | n/a | PyMac_PRECHECK(GraphicsImportGetFlags); |
|---|
| 12637 | n/a | #endif |
|---|
| 12638 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12639 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12640 | n/a | return NULL; |
|---|
| 12641 | n/a | _rv = GraphicsImportGetFlags(ci, |
|---|
| 12642 | n/a | &flags); |
|---|
| 12643 | n/a | _res = Py_BuildValue("ll", |
|---|
| 12644 | n/a | _rv, |
|---|
| 12645 | n/a | flags); |
|---|
| 12646 | n/a | return _res; |
|---|
| 12647 | n/a | } |
|---|
| 12648 | n/a | |
|---|
| 12649 | n/a | static PyObject *Qt_GraphicsImportGetBaseDataOffsetAndSize64(PyObject *_self, PyObject *_args) |
|---|
| 12650 | n/a | { |
|---|
| 12651 | n/a | PyObject *_res = NULL; |
|---|
| 12652 | n/a | ComponentResult _rv; |
|---|
| 12653 | n/a | GraphicsImportComponent ci; |
|---|
| 12654 | n/a | wide offset; |
|---|
| 12655 | n/a | wide size; |
|---|
| 12656 | n/a | #ifndef GraphicsImportGetBaseDataOffsetAndSize64 |
|---|
| 12657 | n/a | PyMac_PRECHECK(GraphicsImportGetBaseDataOffsetAndSize64); |
|---|
| 12658 | n/a | #endif |
|---|
| 12659 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12660 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12661 | n/a | return NULL; |
|---|
| 12662 | n/a | _rv = GraphicsImportGetBaseDataOffsetAndSize64(ci, |
|---|
| 12663 | n/a | &offset, |
|---|
| 12664 | n/a | &size); |
|---|
| 12665 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 12666 | n/a | _rv, |
|---|
| 12667 | n/a | PyMac_Buildwide, offset, |
|---|
| 12668 | n/a | PyMac_Buildwide, size); |
|---|
| 12669 | n/a | return _res; |
|---|
| 12670 | n/a | } |
|---|
| 12671 | n/a | |
|---|
| 12672 | n/a | static PyObject *Qt_GraphicsImportSetImageIndexToThumbnail(PyObject *_self, PyObject *_args) |
|---|
| 12673 | n/a | { |
|---|
| 12674 | n/a | PyObject *_res = NULL; |
|---|
| 12675 | n/a | ComponentResult _rv; |
|---|
| 12676 | n/a | GraphicsImportComponent ci; |
|---|
| 12677 | n/a | #ifndef GraphicsImportSetImageIndexToThumbnail |
|---|
| 12678 | n/a | PyMac_PRECHECK(GraphicsImportSetImageIndexToThumbnail); |
|---|
| 12679 | n/a | #endif |
|---|
| 12680 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12681 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12682 | n/a | return NULL; |
|---|
| 12683 | n/a | _rv = GraphicsImportSetImageIndexToThumbnail(ci); |
|---|
| 12684 | n/a | _res = Py_BuildValue("l", |
|---|
| 12685 | n/a | _rv); |
|---|
| 12686 | n/a | return _res; |
|---|
| 12687 | n/a | } |
|---|
| 12688 | n/a | |
|---|
| 12689 | n/a | static PyObject *Qt_GraphicsExportDoExport(PyObject *_self, PyObject *_args) |
|---|
| 12690 | n/a | { |
|---|
| 12691 | n/a | PyObject *_res = NULL; |
|---|
| 12692 | n/a | ComponentResult _rv; |
|---|
| 12693 | n/a | GraphicsExportComponent ci; |
|---|
| 12694 | n/a | unsigned long actualSizeWritten; |
|---|
| 12695 | n/a | #ifndef GraphicsExportDoExport |
|---|
| 12696 | n/a | PyMac_PRECHECK(GraphicsExportDoExport); |
|---|
| 12697 | n/a | #endif |
|---|
| 12698 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12699 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12700 | n/a | return NULL; |
|---|
| 12701 | n/a | _rv = GraphicsExportDoExport(ci, |
|---|
| 12702 | n/a | &actualSizeWritten); |
|---|
| 12703 | n/a | _res = Py_BuildValue("ll", |
|---|
| 12704 | n/a | _rv, |
|---|
| 12705 | n/a | actualSizeWritten); |
|---|
| 12706 | n/a | return _res; |
|---|
| 12707 | n/a | } |
|---|
| 12708 | n/a | |
|---|
| 12709 | n/a | static PyObject *Qt_GraphicsExportCanTranscode(PyObject *_self, PyObject *_args) |
|---|
| 12710 | n/a | { |
|---|
| 12711 | n/a | PyObject *_res = NULL; |
|---|
| 12712 | n/a | ComponentResult _rv; |
|---|
| 12713 | n/a | GraphicsExportComponent ci; |
|---|
| 12714 | n/a | Boolean canTranscode; |
|---|
| 12715 | n/a | #ifndef GraphicsExportCanTranscode |
|---|
| 12716 | n/a | PyMac_PRECHECK(GraphicsExportCanTranscode); |
|---|
| 12717 | n/a | #endif |
|---|
| 12718 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12719 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12720 | n/a | return NULL; |
|---|
| 12721 | n/a | _rv = GraphicsExportCanTranscode(ci, |
|---|
| 12722 | n/a | &canTranscode); |
|---|
| 12723 | n/a | _res = Py_BuildValue("lb", |
|---|
| 12724 | n/a | _rv, |
|---|
| 12725 | n/a | canTranscode); |
|---|
| 12726 | n/a | return _res; |
|---|
| 12727 | n/a | } |
|---|
| 12728 | n/a | |
|---|
| 12729 | n/a | static PyObject *Qt_GraphicsExportDoTranscode(PyObject *_self, PyObject *_args) |
|---|
| 12730 | n/a | { |
|---|
| 12731 | n/a | PyObject *_res = NULL; |
|---|
| 12732 | n/a | ComponentResult _rv; |
|---|
| 12733 | n/a | GraphicsExportComponent ci; |
|---|
| 12734 | n/a | #ifndef GraphicsExportDoTranscode |
|---|
| 12735 | n/a | PyMac_PRECHECK(GraphicsExportDoTranscode); |
|---|
| 12736 | n/a | #endif |
|---|
| 12737 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12738 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12739 | n/a | return NULL; |
|---|
| 12740 | n/a | _rv = GraphicsExportDoTranscode(ci); |
|---|
| 12741 | n/a | _res = Py_BuildValue("l", |
|---|
| 12742 | n/a | _rv); |
|---|
| 12743 | n/a | return _res; |
|---|
| 12744 | n/a | } |
|---|
| 12745 | n/a | |
|---|
| 12746 | n/a | static PyObject *Qt_GraphicsExportCanUseCompressor(PyObject *_self, PyObject *_args) |
|---|
| 12747 | n/a | { |
|---|
| 12748 | n/a | PyObject *_res = NULL; |
|---|
| 12749 | n/a | ComponentResult _rv; |
|---|
| 12750 | n/a | GraphicsExportComponent ci; |
|---|
| 12751 | n/a | Boolean canUseCompressor; |
|---|
| 12752 | n/a | void * codecSettingsAtomContainerPtr; |
|---|
| 12753 | n/a | #ifndef GraphicsExportCanUseCompressor |
|---|
| 12754 | n/a | PyMac_PRECHECK(GraphicsExportCanUseCompressor); |
|---|
| 12755 | n/a | #endif |
|---|
| 12756 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12757 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12758 | n/a | &codecSettingsAtomContainerPtr)) |
|---|
| 12759 | n/a | return NULL; |
|---|
| 12760 | n/a | _rv = GraphicsExportCanUseCompressor(ci, |
|---|
| 12761 | n/a | &canUseCompressor, |
|---|
| 12762 | n/a | codecSettingsAtomContainerPtr); |
|---|
| 12763 | n/a | _res = Py_BuildValue("lb", |
|---|
| 12764 | n/a | _rv, |
|---|
| 12765 | n/a | canUseCompressor); |
|---|
| 12766 | n/a | return _res; |
|---|
| 12767 | n/a | } |
|---|
| 12768 | n/a | |
|---|
| 12769 | n/a | static PyObject *Qt_GraphicsExportDoUseCompressor(PyObject *_self, PyObject *_args) |
|---|
| 12770 | n/a | { |
|---|
| 12771 | n/a | PyObject *_res = NULL; |
|---|
| 12772 | n/a | ComponentResult _rv; |
|---|
| 12773 | n/a | GraphicsExportComponent ci; |
|---|
| 12774 | n/a | void * codecSettingsAtomContainer; |
|---|
| 12775 | n/a | ImageDescriptionHandle outDesc; |
|---|
| 12776 | n/a | #ifndef GraphicsExportDoUseCompressor |
|---|
| 12777 | n/a | PyMac_PRECHECK(GraphicsExportDoUseCompressor); |
|---|
| 12778 | n/a | #endif |
|---|
| 12779 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12780 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12781 | n/a | &codecSettingsAtomContainer)) |
|---|
| 12782 | n/a | return NULL; |
|---|
| 12783 | n/a | _rv = GraphicsExportDoUseCompressor(ci, |
|---|
| 12784 | n/a | codecSettingsAtomContainer, |
|---|
| 12785 | n/a | &outDesc); |
|---|
| 12786 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12787 | n/a | _rv, |
|---|
| 12788 | n/a | ResObj_New, outDesc); |
|---|
| 12789 | n/a | return _res; |
|---|
| 12790 | n/a | } |
|---|
| 12791 | n/a | |
|---|
| 12792 | n/a | static PyObject *Qt_GraphicsExportDoStandaloneExport(PyObject *_self, PyObject *_args) |
|---|
| 12793 | n/a | { |
|---|
| 12794 | n/a | PyObject *_res = NULL; |
|---|
| 12795 | n/a | ComponentResult _rv; |
|---|
| 12796 | n/a | GraphicsExportComponent ci; |
|---|
| 12797 | n/a | #ifndef GraphicsExportDoStandaloneExport |
|---|
| 12798 | n/a | PyMac_PRECHECK(GraphicsExportDoStandaloneExport); |
|---|
| 12799 | n/a | #endif |
|---|
| 12800 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12801 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12802 | n/a | return NULL; |
|---|
| 12803 | n/a | _rv = GraphicsExportDoStandaloneExport(ci); |
|---|
| 12804 | n/a | _res = Py_BuildValue("l", |
|---|
| 12805 | n/a | _rv); |
|---|
| 12806 | n/a | return _res; |
|---|
| 12807 | n/a | } |
|---|
| 12808 | n/a | |
|---|
| 12809 | n/a | static PyObject *Qt_GraphicsExportGetDefaultFileTypeAndCreator(PyObject *_self, PyObject *_args) |
|---|
| 12810 | n/a | { |
|---|
| 12811 | n/a | PyObject *_res = NULL; |
|---|
| 12812 | n/a | ComponentResult _rv; |
|---|
| 12813 | n/a | GraphicsExportComponent ci; |
|---|
| 12814 | n/a | OSType fileType; |
|---|
| 12815 | n/a | OSType fileCreator; |
|---|
| 12816 | n/a | #ifndef GraphicsExportGetDefaultFileTypeAndCreator |
|---|
| 12817 | n/a | PyMac_PRECHECK(GraphicsExportGetDefaultFileTypeAndCreator); |
|---|
| 12818 | n/a | #endif |
|---|
| 12819 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12820 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12821 | n/a | return NULL; |
|---|
| 12822 | n/a | _rv = GraphicsExportGetDefaultFileTypeAndCreator(ci, |
|---|
| 12823 | n/a | &fileType, |
|---|
| 12824 | n/a | &fileCreator); |
|---|
| 12825 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 12826 | n/a | _rv, |
|---|
| 12827 | n/a | PyMac_BuildOSType, fileType, |
|---|
| 12828 | n/a | PyMac_BuildOSType, fileCreator); |
|---|
| 12829 | n/a | return _res; |
|---|
| 12830 | n/a | } |
|---|
| 12831 | n/a | |
|---|
| 12832 | n/a | static PyObject *Qt_GraphicsExportGetDefaultFileNameExtension(PyObject *_self, PyObject *_args) |
|---|
| 12833 | n/a | { |
|---|
| 12834 | n/a | PyObject *_res = NULL; |
|---|
| 12835 | n/a | ComponentResult _rv; |
|---|
| 12836 | n/a | GraphicsExportComponent ci; |
|---|
| 12837 | n/a | OSType fileNameExtension; |
|---|
| 12838 | n/a | #ifndef GraphicsExportGetDefaultFileNameExtension |
|---|
| 12839 | n/a | PyMac_PRECHECK(GraphicsExportGetDefaultFileNameExtension); |
|---|
| 12840 | n/a | #endif |
|---|
| 12841 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12842 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12843 | n/a | return NULL; |
|---|
| 12844 | n/a | _rv = GraphicsExportGetDefaultFileNameExtension(ci, |
|---|
| 12845 | n/a | &fileNameExtension); |
|---|
| 12846 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12847 | n/a | _rv, |
|---|
| 12848 | n/a | PyMac_BuildOSType, fileNameExtension); |
|---|
| 12849 | n/a | return _res; |
|---|
| 12850 | n/a | } |
|---|
| 12851 | n/a | |
|---|
| 12852 | n/a | static PyObject *Qt_GraphicsExportGetMIMETypeList(PyObject *_self, PyObject *_args) |
|---|
| 12853 | n/a | { |
|---|
| 12854 | n/a | PyObject *_res = NULL; |
|---|
| 12855 | n/a | ComponentResult _rv; |
|---|
| 12856 | n/a | GraphicsExportComponent ci; |
|---|
| 12857 | n/a | void * qtAtomContainerPtr; |
|---|
| 12858 | n/a | #ifndef GraphicsExportGetMIMETypeList |
|---|
| 12859 | n/a | PyMac_PRECHECK(GraphicsExportGetMIMETypeList); |
|---|
| 12860 | n/a | #endif |
|---|
| 12861 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12862 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12863 | n/a | &qtAtomContainerPtr)) |
|---|
| 12864 | n/a | return NULL; |
|---|
| 12865 | n/a | _rv = GraphicsExportGetMIMETypeList(ci, |
|---|
| 12866 | n/a | qtAtomContainerPtr); |
|---|
| 12867 | n/a | _res = Py_BuildValue("l", |
|---|
| 12868 | n/a | _rv); |
|---|
| 12869 | n/a | return _res; |
|---|
| 12870 | n/a | } |
|---|
| 12871 | n/a | |
|---|
| 12872 | n/a | static PyObject *Qt_GraphicsExportSetSettingsFromAtomContainer(PyObject *_self, PyObject *_args) |
|---|
| 12873 | n/a | { |
|---|
| 12874 | n/a | PyObject *_res = NULL; |
|---|
| 12875 | n/a | ComponentResult _rv; |
|---|
| 12876 | n/a | GraphicsExportComponent ci; |
|---|
| 12877 | n/a | void * qtAtomContainer; |
|---|
| 12878 | n/a | #ifndef GraphicsExportSetSettingsFromAtomContainer |
|---|
| 12879 | n/a | PyMac_PRECHECK(GraphicsExportSetSettingsFromAtomContainer); |
|---|
| 12880 | n/a | #endif |
|---|
| 12881 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12882 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12883 | n/a | &qtAtomContainer)) |
|---|
| 12884 | n/a | return NULL; |
|---|
| 12885 | n/a | _rv = GraphicsExportSetSettingsFromAtomContainer(ci, |
|---|
| 12886 | n/a | qtAtomContainer); |
|---|
| 12887 | n/a | _res = Py_BuildValue("l", |
|---|
| 12888 | n/a | _rv); |
|---|
| 12889 | n/a | return _res; |
|---|
| 12890 | n/a | } |
|---|
| 12891 | n/a | |
|---|
| 12892 | n/a | static PyObject *Qt_GraphicsExportGetSettingsAsAtomContainer(PyObject *_self, PyObject *_args) |
|---|
| 12893 | n/a | { |
|---|
| 12894 | n/a | PyObject *_res = NULL; |
|---|
| 12895 | n/a | ComponentResult _rv; |
|---|
| 12896 | n/a | GraphicsExportComponent ci; |
|---|
| 12897 | n/a | void * qtAtomContainerPtr; |
|---|
| 12898 | n/a | #ifndef GraphicsExportGetSettingsAsAtomContainer |
|---|
| 12899 | n/a | PyMac_PRECHECK(GraphicsExportGetSettingsAsAtomContainer); |
|---|
| 12900 | n/a | #endif |
|---|
| 12901 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 12902 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12903 | n/a | &qtAtomContainerPtr)) |
|---|
| 12904 | n/a | return NULL; |
|---|
| 12905 | n/a | _rv = GraphicsExportGetSettingsAsAtomContainer(ci, |
|---|
| 12906 | n/a | qtAtomContainerPtr); |
|---|
| 12907 | n/a | _res = Py_BuildValue("l", |
|---|
| 12908 | n/a | _rv); |
|---|
| 12909 | n/a | return _res; |
|---|
| 12910 | n/a | } |
|---|
| 12911 | n/a | |
|---|
| 12912 | n/a | static PyObject *Qt_GraphicsExportGetSettingsAsText(PyObject *_self, PyObject *_args) |
|---|
| 12913 | n/a | { |
|---|
| 12914 | n/a | PyObject *_res = NULL; |
|---|
| 12915 | n/a | ComponentResult _rv; |
|---|
| 12916 | n/a | GraphicsExportComponent ci; |
|---|
| 12917 | n/a | Handle theText; |
|---|
| 12918 | n/a | #ifndef GraphicsExportGetSettingsAsText |
|---|
| 12919 | n/a | PyMac_PRECHECK(GraphicsExportGetSettingsAsText); |
|---|
| 12920 | n/a | #endif |
|---|
| 12921 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12922 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12923 | n/a | return NULL; |
|---|
| 12924 | n/a | _rv = GraphicsExportGetSettingsAsText(ci, |
|---|
| 12925 | n/a | &theText); |
|---|
| 12926 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 12927 | n/a | _rv, |
|---|
| 12928 | n/a | ResObj_New, theText); |
|---|
| 12929 | n/a | return _res; |
|---|
| 12930 | n/a | } |
|---|
| 12931 | n/a | |
|---|
| 12932 | n/a | static PyObject *Qt_GraphicsExportSetDontRecompress(PyObject *_self, PyObject *_args) |
|---|
| 12933 | n/a | { |
|---|
| 12934 | n/a | PyObject *_res = NULL; |
|---|
| 12935 | n/a | ComponentResult _rv; |
|---|
| 12936 | n/a | GraphicsExportComponent ci; |
|---|
| 12937 | n/a | Boolean dontRecompress; |
|---|
| 12938 | n/a | #ifndef GraphicsExportSetDontRecompress |
|---|
| 12939 | n/a | PyMac_PRECHECK(GraphicsExportSetDontRecompress); |
|---|
| 12940 | n/a | #endif |
|---|
| 12941 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 12942 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12943 | n/a | &dontRecompress)) |
|---|
| 12944 | n/a | return NULL; |
|---|
| 12945 | n/a | _rv = GraphicsExportSetDontRecompress(ci, |
|---|
| 12946 | n/a | dontRecompress); |
|---|
| 12947 | n/a | _res = Py_BuildValue("l", |
|---|
| 12948 | n/a | _rv); |
|---|
| 12949 | n/a | return _res; |
|---|
| 12950 | n/a | } |
|---|
| 12951 | n/a | |
|---|
| 12952 | n/a | static PyObject *Qt_GraphicsExportGetDontRecompress(PyObject *_self, PyObject *_args) |
|---|
| 12953 | n/a | { |
|---|
| 12954 | n/a | PyObject *_res = NULL; |
|---|
| 12955 | n/a | ComponentResult _rv; |
|---|
| 12956 | n/a | GraphicsExportComponent ci; |
|---|
| 12957 | n/a | Boolean dontRecompress; |
|---|
| 12958 | n/a | #ifndef GraphicsExportGetDontRecompress |
|---|
| 12959 | n/a | PyMac_PRECHECK(GraphicsExportGetDontRecompress); |
|---|
| 12960 | n/a | #endif |
|---|
| 12961 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 12962 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 12963 | n/a | return NULL; |
|---|
| 12964 | n/a | _rv = GraphicsExportGetDontRecompress(ci, |
|---|
| 12965 | n/a | &dontRecompress); |
|---|
| 12966 | n/a | _res = Py_BuildValue("lb", |
|---|
| 12967 | n/a | _rv, |
|---|
| 12968 | n/a | dontRecompress); |
|---|
| 12969 | n/a | return _res; |
|---|
| 12970 | n/a | } |
|---|
| 12971 | n/a | |
|---|
| 12972 | n/a | static PyObject *Qt_GraphicsExportSetInterlaceStyle(PyObject *_self, PyObject *_args) |
|---|
| 12973 | n/a | { |
|---|
| 12974 | n/a | PyObject *_res = NULL; |
|---|
| 12975 | n/a | ComponentResult _rv; |
|---|
| 12976 | n/a | GraphicsExportComponent ci; |
|---|
| 12977 | n/a | unsigned long interlaceStyle; |
|---|
| 12978 | n/a | #ifndef GraphicsExportSetInterlaceStyle |
|---|
| 12979 | n/a | PyMac_PRECHECK(GraphicsExportSetInterlaceStyle); |
|---|
| 12980 | n/a | #endif |
|---|
| 12981 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 12982 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 12983 | n/a | &interlaceStyle)) |
|---|
| 12984 | n/a | return NULL; |
|---|
| 12985 | n/a | _rv = GraphicsExportSetInterlaceStyle(ci, |
|---|
| 12986 | n/a | interlaceStyle); |
|---|
| 12987 | n/a | _res = Py_BuildValue("l", |
|---|
| 12988 | n/a | _rv); |
|---|
| 12989 | n/a | return _res; |
|---|
| 12990 | n/a | } |
|---|
| 12991 | n/a | |
|---|
| 12992 | n/a | static PyObject *Qt_GraphicsExportGetInterlaceStyle(PyObject *_self, PyObject *_args) |
|---|
| 12993 | n/a | { |
|---|
| 12994 | n/a | PyObject *_res = NULL; |
|---|
| 12995 | n/a | ComponentResult _rv; |
|---|
| 12996 | n/a | GraphicsExportComponent ci; |
|---|
| 12997 | n/a | unsigned long interlaceStyle; |
|---|
| 12998 | n/a | #ifndef GraphicsExportGetInterlaceStyle |
|---|
| 12999 | n/a | PyMac_PRECHECK(GraphicsExportGetInterlaceStyle); |
|---|
| 13000 | n/a | #endif |
|---|
| 13001 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13002 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13003 | n/a | return NULL; |
|---|
| 13004 | n/a | _rv = GraphicsExportGetInterlaceStyle(ci, |
|---|
| 13005 | n/a | &interlaceStyle); |
|---|
| 13006 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13007 | n/a | _rv, |
|---|
| 13008 | n/a | interlaceStyle); |
|---|
| 13009 | n/a | return _res; |
|---|
| 13010 | n/a | } |
|---|
| 13011 | n/a | |
|---|
| 13012 | n/a | static PyObject *Qt_GraphicsExportSetMetaData(PyObject *_self, PyObject *_args) |
|---|
| 13013 | n/a | { |
|---|
| 13014 | n/a | PyObject *_res = NULL; |
|---|
| 13015 | n/a | ComponentResult _rv; |
|---|
| 13016 | n/a | GraphicsExportComponent ci; |
|---|
| 13017 | n/a | void * userData; |
|---|
| 13018 | n/a | #ifndef GraphicsExportSetMetaData |
|---|
| 13019 | n/a | PyMac_PRECHECK(GraphicsExportSetMetaData); |
|---|
| 13020 | n/a | #endif |
|---|
| 13021 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 13022 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13023 | n/a | &userData)) |
|---|
| 13024 | n/a | return NULL; |
|---|
| 13025 | n/a | _rv = GraphicsExportSetMetaData(ci, |
|---|
| 13026 | n/a | userData); |
|---|
| 13027 | n/a | _res = Py_BuildValue("l", |
|---|
| 13028 | n/a | _rv); |
|---|
| 13029 | n/a | return _res; |
|---|
| 13030 | n/a | } |
|---|
| 13031 | n/a | |
|---|
| 13032 | n/a | static PyObject *Qt_GraphicsExportGetMetaData(PyObject *_self, PyObject *_args) |
|---|
| 13033 | n/a | { |
|---|
| 13034 | n/a | PyObject *_res = NULL; |
|---|
| 13035 | n/a | ComponentResult _rv; |
|---|
| 13036 | n/a | GraphicsExportComponent ci; |
|---|
| 13037 | n/a | void * userData; |
|---|
| 13038 | n/a | #ifndef GraphicsExportGetMetaData |
|---|
| 13039 | n/a | PyMac_PRECHECK(GraphicsExportGetMetaData); |
|---|
| 13040 | n/a | #endif |
|---|
| 13041 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 13042 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13043 | n/a | &userData)) |
|---|
| 13044 | n/a | return NULL; |
|---|
| 13045 | n/a | _rv = GraphicsExportGetMetaData(ci, |
|---|
| 13046 | n/a | userData); |
|---|
| 13047 | n/a | _res = Py_BuildValue("l", |
|---|
| 13048 | n/a | _rv); |
|---|
| 13049 | n/a | return _res; |
|---|
| 13050 | n/a | } |
|---|
| 13051 | n/a | |
|---|
| 13052 | n/a | static PyObject *Qt_GraphicsExportSetTargetDataSize(PyObject *_self, PyObject *_args) |
|---|
| 13053 | n/a | { |
|---|
| 13054 | n/a | PyObject *_res = NULL; |
|---|
| 13055 | n/a | ComponentResult _rv; |
|---|
| 13056 | n/a | GraphicsExportComponent ci; |
|---|
| 13057 | n/a | unsigned long targetDataSize; |
|---|
| 13058 | n/a | #ifndef GraphicsExportSetTargetDataSize |
|---|
| 13059 | n/a | PyMac_PRECHECK(GraphicsExportSetTargetDataSize); |
|---|
| 13060 | n/a | #endif |
|---|
| 13061 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 13062 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13063 | n/a | &targetDataSize)) |
|---|
| 13064 | n/a | return NULL; |
|---|
| 13065 | n/a | _rv = GraphicsExportSetTargetDataSize(ci, |
|---|
| 13066 | n/a | targetDataSize); |
|---|
| 13067 | n/a | _res = Py_BuildValue("l", |
|---|
| 13068 | n/a | _rv); |
|---|
| 13069 | n/a | return _res; |
|---|
| 13070 | n/a | } |
|---|
| 13071 | n/a | |
|---|
| 13072 | n/a | static PyObject *Qt_GraphicsExportGetTargetDataSize(PyObject *_self, PyObject *_args) |
|---|
| 13073 | n/a | { |
|---|
| 13074 | n/a | PyObject *_res = NULL; |
|---|
| 13075 | n/a | ComponentResult _rv; |
|---|
| 13076 | n/a | GraphicsExportComponent ci; |
|---|
| 13077 | n/a | unsigned long targetDataSize; |
|---|
| 13078 | n/a | #ifndef GraphicsExportGetTargetDataSize |
|---|
| 13079 | n/a | PyMac_PRECHECK(GraphicsExportGetTargetDataSize); |
|---|
| 13080 | n/a | #endif |
|---|
| 13081 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13082 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13083 | n/a | return NULL; |
|---|
| 13084 | n/a | _rv = GraphicsExportGetTargetDataSize(ci, |
|---|
| 13085 | n/a | &targetDataSize); |
|---|
| 13086 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13087 | n/a | _rv, |
|---|
| 13088 | n/a | targetDataSize); |
|---|
| 13089 | n/a | return _res; |
|---|
| 13090 | n/a | } |
|---|
| 13091 | n/a | |
|---|
| 13092 | n/a | static PyObject *Qt_GraphicsExportSetCompressionMethod(PyObject *_self, PyObject *_args) |
|---|
| 13093 | n/a | { |
|---|
| 13094 | n/a | PyObject *_res = NULL; |
|---|
| 13095 | n/a | ComponentResult _rv; |
|---|
| 13096 | n/a | GraphicsExportComponent ci; |
|---|
| 13097 | n/a | long compressionMethod; |
|---|
| 13098 | n/a | #ifndef GraphicsExportSetCompressionMethod |
|---|
| 13099 | n/a | PyMac_PRECHECK(GraphicsExportSetCompressionMethod); |
|---|
| 13100 | n/a | #endif |
|---|
| 13101 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 13102 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13103 | n/a | &compressionMethod)) |
|---|
| 13104 | n/a | return NULL; |
|---|
| 13105 | n/a | _rv = GraphicsExportSetCompressionMethod(ci, |
|---|
| 13106 | n/a | compressionMethod); |
|---|
| 13107 | n/a | _res = Py_BuildValue("l", |
|---|
| 13108 | n/a | _rv); |
|---|
| 13109 | n/a | return _res; |
|---|
| 13110 | n/a | } |
|---|
| 13111 | n/a | |
|---|
| 13112 | n/a | static PyObject *Qt_GraphicsExportGetCompressionMethod(PyObject *_self, PyObject *_args) |
|---|
| 13113 | n/a | { |
|---|
| 13114 | n/a | PyObject *_res = NULL; |
|---|
| 13115 | n/a | ComponentResult _rv; |
|---|
| 13116 | n/a | GraphicsExportComponent ci; |
|---|
| 13117 | n/a | long compressionMethod; |
|---|
| 13118 | n/a | #ifndef GraphicsExportGetCompressionMethod |
|---|
| 13119 | n/a | PyMac_PRECHECK(GraphicsExportGetCompressionMethod); |
|---|
| 13120 | n/a | #endif |
|---|
| 13121 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13122 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13123 | n/a | return NULL; |
|---|
| 13124 | n/a | _rv = GraphicsExportGetCompressionMethod(ci, |
|---|
| 13125 | n/a | &compressionMethod); |
|---|
| 13126 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13127 | n/a | _rv, |
|---|
| 13128 | n/a | compressionMethod); |
|---|
| 13129 | n/a | return _res; |
|---|
| 13130 | n/a | } |
|---|
| 13131 | n/a | |
|---|
| 13132 | n/a | static PyObject *Qt_GraphicsExportSetCompressionQuality(PyObject *_self, PyObject *_args) |
|---|
| 13133 | n/a | { |
|---|
| 13134 | n/a | PyObject *_res = NULL; |
|---|
| 13135 | n/a | ComponentResult _rv; |
|---|
| 13136 | n/a | GraphicsExportComponent ci; |
|---|
| 13137 | n/a | CodecQ spatialQuality; |
|---|
| 13138 | n/a | #ifndef GraphicsExportSetCompressionQuality |
|---|
| 13139 | n/a | PyMac_PRECHECK(GraphicsExportSetCompressionQuality); |
|---|
| 13140 | n/a | #endif |
|---|
| 13141 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 13142 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13143 | n/a | &spatialQuality)) |
|---|
| 13144 | n/a | return NULL; |
|---|
| 13145 | n/a | _rv = GraphicsExportSetCompressionQuality(ci, |
|---|
| 13146 | n/a | spatialQuality); |
|---|
| 13147 | n/a | _res = Py_BuildValue("l", |
|---|
| 13148 | n/a | _rv); |
|---|
| 13149 | n/a | return _res; |
|---|
| 13150 | n/a | } |
|---|
| 13151 | n/a | |
|---|
| 13152 | n/a | static PyObject *Qt_GraphicsExportGetCompressionQuality(PyObject *_self, PyObject *_args) |
|---|
| 13153 | n/a | { |
|---|
| 13154 | n/a | PyObject *_res = NULL; |
|---|
| 13155 | n/a | ComponentResult _rv; |
|---|
| 13156 | n/a | GraphicsExportComponent ci; |
|---|
| 13157 | n/a | CodecQ spatialQuality; |
|---|
| 13158 | n/a | #ifndef GraphicsExportGetCompressionQuality |
|---|
| 13159 | n/a | PyMac_PRECHECK(GraphicsExportGetCompressionQuality); |
|---|
| 13160 | n/a | #endif |
|---|
| 13161 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13162 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13163 | n/a | return NULL; |
|---|
| 13164 | n/a | _rv = GraphicsExportGetCompressionQuality(ci, |
|---|
| 13165 | n/a | &spatialQuality); |
|---|
| 13166 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13167 | n/a | _rv, |
|---|
| 13168 | n/a | spatialQuality); |
|---|
| 13169 | n/a | return _res; |
|---|
| 13170 | n/a | } |
|---|
| 13171 | n/a | |
|---|
| 13172 | n/a | static PyObject *Qt_GraphicsExportSetResolution(PyObject *_self, PyObject *_args) |
|---|
| 13173 | n/a | { |
|---|
| 13174 | n/a | PyObject *_res = NULL; |
|---|
| 13175 | n/a | ComponentResult _rv; |
|---|
| 13176 | n/a | GraphicsExportComponent ci; |
|---|
| 13177 | n/a | Fixed horizontalResolution; |
|---|
| 13178 | n/a | Fixed verticalResolution; |
|---|
| 13179 | n/a | #ifndef GraphicsExportSetResolution |
|---|
| 13180 | n/a | PyMac_PRECHECK(GraphicsExportSetResolution); |
|---|
| 13181 | n/a | #endif |
|---|
| 13182 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 13183 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13184 | n/a | PyMac_GetFixed, &horizontalResolution, |
|---|
| 13185 | n/a | PyMac_GetFixed, &verticalResolution)) |
|---|
| 13186 | n/a | return NULL; |
|---|
| 13187 | n/a | _rv = GraphicsExportSetResolution(ci, |
|---|
| 13188 | n/a | horizontalResolution, |
|---|
| 13189 | n/a | verticalResolution); |
|---|
| 13190 | n/a | _res = Py_BuildValue("l", |
|---|
| 13191 | n/a | _rv); |
|---|
| 13192 | n/a | return _res; |
|---|
| 13193 | n/a | } |
|---|
| 13194 | n/a | |
|---|
| 13195 | n/a | static PyObject *Qt_GraphicsExportGetResolution(PyObject *_self, PyObject *_args) |
|---|
| 13196 | n/a | { |
|---|
| 13197 | n/a | PyObject *_res = NULL; |
|---|
| 13198 | n/a | ComponentResult _rv; |
|---|
| 13199 | n/a | GraphicsExportComponent ci; |
|---|
| 13200 | n/a | Fixed horizontalResolution; |
|---|
| 13201 | n/a | Fixed verticalResolution; |
|---|
| 13202 | n/a | #ifndef GraphicsExportGetResolution |
|---|
| 13203 | n/a | PyMac_PRECHECK(GraphicsExportGetResolution); |
|---|
| 13204 | n/a | #endif |
|---|
| 13205 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13206 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13207 | n/a | return NULL; |
|---|
| 13208 | n/a | _rv = GraphicsExportGetResolution(ci, |
|---|
| 13209 | n/a | &horizontalResolution, |
|---|
| 13210 | n/a | &verticalResolution); |
|---|
| 13211 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 13212 | n/a | _rv, |
|---|
| 13213 | n/a | PyMac_BuildFixed, horizontalResolution, |
|---|
| 13214 | n/a | PyMac_BuildFixed, verticalResolution); |
|---|
| 13215 | n/a | return _res; |
|---|
| 13216 | n/a | } |
|---|
| 13217 | n/a | |
|---|
| 13218 | n/a | static PyObject *Qt_GraphicsExportSetDepth(PyObject *_self, PyObject *_args) |
|---|
| 13219 | n/a | { |
|---|
| 13220 | n/a | PyObject *_res = NULL; |
|---|
| 13221 | n/a | ComponentResult _rv; |
|---|
| 13222 | n/a | GraphicsExportComponent ci; |
|---|
| 13223 | n/a | long depth; |
|---|
| 13224 | n/a | #ifndef GraphicsExportSetDepth |
|---|
| 13225 | n/a | PyMac_PRECHECK(GraphicsExportSetDepth); |
|---|
| 13226 | n/a | #endif |
|---|
| 13227 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 13228 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13229 | n/a | &depth)) |
|---|
| 13230 | n/a | return NULL; |
|---|
| 13231 | n/a | _rv = GraphicsExportSetDepth(ci, |
|---|
| 13232 | n/a | depth); |
|---|
| 13233 | n/a | _res = Py_BuildValue("l", |
|---|
| 13234 | n/a | _rv); |
|---|
| 13235 | n/a | return _res; |
|---|
| 13236 | n/a | } |
|---|
| 13237 | n/a | |
|---|
| 13238 | n/a | static PyObject *Qt_GraphicsExportGetDepth(PyObject *_self, PyObject *_args) |
|---|
| 13239 | n/a | { |
|---|
| 13240 | n/a | PyObject *_res = NULL; |
|---|
| 13241 | n/a | ComponentResult _rv; |
|---|
| 13242 | n/a | GraphicsExportComponent ci; |
|---|
| 13243 | n/a | long depth; |
|---|
| 13244 | n/a | #ifndef GraphicsExportGetDepth |
|---|
| 13245 | n/a | PyMac_PRECHECK(GraphicsExportGetDepth); |
|---|
| 13246 | n/a | #endif |
|---|
| 13247 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13248 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13249 | n/a | return NULL; |
|---|
| 13250 | n/a | _rv = GraphicsExportGetDepth(ci, |
|---|
| 13251 | n/a | &depth); |
|---|
| 13252 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13253 | n/a | _rv, |
|---|
| 13254 | n/a | depth); |
|---|
| 13255 | n/a | return _res; |
|---|
| 13256 | n/a | } |
|---|
| 13257 | n/a | |
|---|
| 13258 | n/a | static PyObject *Qt_GraphicsExportSetColorSyncProfile(PyObject *_self, PyObject *_args) |
|---|
| 13259 | n/a | { |
|---|
| 13260 | n/a | PyObject *_res = NULL; |
|---|
| 13261 | n/a | ComponentResult _rv; |
|---|
| 13262 | n/a | GraphicsExportComponent ci; |
|---|
| 13263 | n/a | Handle colorSyncProfile; |
|---|
| 13264 | n/a | #ifndef GraphicsExportSetColorSyncProfile |
|---|
| 13265 | n/a | PyMac_PRECHECK(GraphicsExportSetColorSyncProfile); |
|---|
| 13266 | n/a | #endif |
|---|
| 13267 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13268 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13269 | n/a | ResObj_Convert, &colorSyncProfile)) |
|---|
| 13270 | n/a | return NULL; |
|---|
| 13271 | n/a | _rv = GraphicsExportSetColorSyncProfile(ci, |
|---|
| 13272 | n/a | colorSyncProfile); |
|---|
| 13273 | n/a | _res = Py_BuildValue("l", |
|---|
| 13274 | n/a | _rv); |
|---|
| 13275 | n/a | return _res; |
|---|
| 13276 | n/a | } |
|---|
| 13277 | n/a | |
|---|
| 13278 | n/a | static PyObject *Qt_GraphicsExportGetColorSyncProfile(PyObject *_self, PyObject *_args) |
|---|
| 13279 | n/a | { |
|---|
| 13280 | n/a | PyObject *_res = NULL; |
|---|
| 13281 | n/a | ComponentResult _rv; |
|---|
| 13282 | n/a | GraphicsExportComponent ci; |
|---|
| 13283 | n/a | Handle colorSyncProfile; |
|---|
| 13284 | n/a | #ifndef GraphicsExportGetColorSyncProfile |
|---|
| 13285 | n/a | PyMac_PRECHECK(GraphicsExportGetColorSyncProfile); |
|---|
| 13286 | n/a | #endif |
|---|
| 13287 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13288 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13289 | n/a | return NULL; |
|---|
| 13290 | n/a | _rv = GraphicsExportGetColorSyncProfile(ci, |
|---|
| 13291 | n/a | &colorSyncProfile); |
|---|
| 13292 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13293 | n/a | _rv, |
|---|
| 13294 | n/a | ResObj_New, colorSyncProfile); |
|---|
| 13295 | n/a | return _res; |
|---|
| 13296 | n/a | } |
|---|
| 13297 | n/a | |
|---|
| 13298 | n/a | static PyObject *Qt_GraphicsExportSetInputDataReference(PyObject *_self, PyObject *_args) |
|---|
| 13299 | n/a | { |
|---|
| 13300 | n/a | PyObject *_res = NULL; |
|---|
| 13301 | n/a | ComponentResult _rv; |
|---|
| 13302 | n/a | GraphicsExportComponent ci; |
|---|
| 13303 | n/a | Handle dataRef; |
|---|
| 13304 | n/a | OSType dataRefType; |
|---|
| 13305 | n/a | ImageDescriptionHandle desc; |
|---|
| 13306 | n/a | #ifndef GraphicsExportSetInputDataReference |
|---|
| 13307 | n/a | PyMac_PRECHECK(GraphicsExportSetInputDataReference); |
|---|
| 13308 | n/a | #endif |
|---|
| 13309 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 13310 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13311 | n/a | ResObj_Convert, &dataRef, |
|---|
| 13312 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 13313 | n/a | ResObj_Convert, &desc)) |
|---|
| 13314 | n/a | return NULL; |
|---|
| 13315 | n/a | _rv = GraphicsExportSetInputDataReference(ci, |
|---|
| 13316 | n/a | dataRef, |
|---|
| 13317 | n/a | dataRefType, |
|---|
| 13318 | n/a | desc); |
|---|
| 13319 | n/a | _res = Py_BuildValue("l", |
|---|
| 13320 | n/a | _rv); |
|---|
| 13321 | n/a | return _res; |
|---|
| 13322 | n/a | } |
|---|
| 13323 | n/a | |
|---|
| 13324 | n/a | static PyObject *Qt_GraphicsExportGetInputDataReference(PyObject *_self, PyObject *_args) |
|---|
| 13325 | n/a | { |
|---|
| 13326 | n/a | PyObject *_res = NULL; |
|---|
| 13327 | n/a | ComponentResult _rv; |
|---|
| 13328 | n/a | GraphicsExportComponent ci; |
|---|
| 13329 | n/a | Handle dataRef; |
|---|
| 13330 | n/a | OSType dataRefType; |
|---|
| 13331 | n/a | #ifndef GraphicsExportGetInputDataReference |
|---|
| 13332 | n/a | PyMac_PRECHECK(GraphicsExportGetInputDataReference); |
|---|
| 13333 | n/a | #endif |
|---|
| 13334 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13335 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13336 | n/a | return NULL; |
|---|
| 13337 | n/a | _rv = GraphicsExportGetInputDataReference(ci, |
|---|
| 13338 | n/a | &dataRef, |
|---|
| 13339 | n/a | &dataRefType); |
|---|
| 13340 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 13341 | n/a | _rv, |
|---|
| 13342 | n/a | ResObj_New, dataRef, |
|---|
| 13343 | n/a | PyMac_BuildOSType, dataRefType); |
|---|
| 13344 | n/a | return _res; |
|---|
| 13345 | n/a | } |
|---|
| 13346 | n/a | |
|---|
| 13347 | n/a | static PyObject *Qt_GraphicsExportSetInputFile(PyObject *_self, PyObject *_args) |
|---|
| 13348 | n/a | { |
|---|
| 13349 | n/a | PyObject *_res = NULL; |
|---|
| 13350 | n/a | ComponentResult _rv; |
|---|
| 13351 | n/a | GraphicsExportComponent ci; |
|---|
| 13352 | n/a | FSSpec theFile; |
|---|
| 13353 | n/a | ImageDescriptionHandle desc; |
|---|
| 13354 | n/a | #ifndef GraphicsExportSetInputFile |
|---|
| 13355 | n/a | PyMac_PRECHECK(GraphicsExportSetInputFile); |
|---|
| 13356 | n/a | #endif |
|---|
| 13357 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 13358 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13359 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 13360 | n/a | ResObj_Convert, &desc)) |
|---|
| 13361 | n/a | return NULL; |
|---|
| 13362 | n/a | _rv = GraphicsExportSetInputFile(ci, |
|---|
| 13363 | n/a | &theFile, |
|---|
| 13364 | n/a | desc); |
|---|
| 13365 | n/a | _res = Py_BuildValue("l", |
|---|
| 13366 | n/a | _rv); |
|---|
| 13367 | n/a | return _res; |
|---|
| 13368 | n/a | } |
|---|
| 13369 | n/a | |
|---|
| 13370 | n/a | static PyObject *Qt_GraphicsExportGetInputFile(PyObject *_self, PyObject *_args) |
|---|
| 13371 | n/a | { |
|---|
| 13372 | n/a | PyObject *_res = NULL; |
|---|
| 13373 | n/a | ComponentResult _rv; |
|---|
| 13374 | n/a | GraphicsExportComponent ci; |
|---|
| 13375 | n/a | FSSpec theFile; |
|---|
| 13376 | n/a | #ifndef GraphicsExportGetInputFile |
|---|
| 13377 | n/a | PyMac_PRECHECK(GraphicsExportGetInputFile); |
|---|
| 13378 | n/a | #endif |
|---|
| 13379 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13380 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13381 | n/a | PyMac_GetFSSpec, &theFile)) |
|---|
| 13382 | n/a | return NULL; |
|---|
| 13383 | n/a | _rv = GraphicsExportGetInputFile(ci, |
|---|
| 13384 | n/a | &theFile); |
|---|
| 13385 | n/a | _res = Py_BuildValue("l", |
|---|
| 13386 | n/a | _rv); |
|---|
| 13387 | n/a | return _res; |
|---|
| 13388 | n/a | } |
|---|
| 13389 | n/a | |
|---|
| 13390 | n/a | static PyObject *Qt_GraphicsExportSetInputHandle(PyObject *_self, PyObject *_args) |
|---|
| 13391 | n/a | { |
|---|
| 13392 | n/a | PyObject *_res = NULL; |
|---|
| 13393 | n/a | ComponentResult _rv; |
|---|
| 13394 | n/a | GraphicsExportComponent ci; |
|---|
| 13395 | n/a | Handle h; |
|---|
| 13396 | n/a | ImageDescriptionHandle desc; |
|---|
| 13397 | n/a | #ifndef GraphicsExportSetInputHandle |
|---|
| 13398 | n/a | PyMac_PRECHECK(GraphicsExportSetInputHandle); |
|---|
| 13399 | n/a | #endif |
|---|
| 13400 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 13401 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13402 | n/a | ResObj_Convert, &h, |
|---|
| 13403 | n/a | ResObj_Convert, &desc)) |
|---|
| 13404 | n/a | return NULL; |
|---|
| 13405 | n/a | _rv = GraphicsExportSetInputHandle(ci, |
|---|
| 13406 | n/a | h, |
|---|
| 13407 | n/a | desc); |
|---|
| 13408 | n/a | _res = Py_BuildValue("l", |
|---|
| 13409 | n/a | _rv); |
|---|
| 13410 | n/a | return _res; |
|---|
| 13411 | n/a | } |
|---|
| 13412 | n/a | |
|---|
| 13413 | n/a | static PyObject *Qt_GraphicsExportGetInputHandle(PyObject *_self, PyObject *_args) |
|---|
| 13414 | n/a | { |
|---|
| 13415 | n/a | PyObject *_res = NULL; |
|---|
| 13416 | n/a | ComponentResult _rv; |
|---|
| 13417 | n/a | GraphicsExportComponent ci; |
|---|
| 13418 | n/a | Handle h; |
|---|
| 13419 | n/a | #ifndef GraphicsExportGetInputHandle |
|---|
| 13420 | n/a | PyMac_PRECHECK(GraphicsExportGetInputHandle); |
|---|
| 13421 | n/a | #endif |
|---|
| 13422 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13423 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13424 | n/a | return NULL; |
|---|
| 13425 | n/a | _rv = GraphicsExportGetInputHandle(ci, |
|---|
| 13426 | n/a | &h); |
|---|
| 13427 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13428 | n/a | _rv, |
|---|
| 13429 | n/a | ResObj_New, h); |
|---|
| 13430 | n/a | return _res; |
|---|
| 13431 | n/a | } |
|---|
| 13432 | n/a | |
|---|
| 13433 | n/a | static PyObject *Qt_GraphicsExportSetInputPtr(PyObject *_self, PyObject *_args) |
|---|
| 13434 | n/a | { |
|---|
| 13435 | n/a | PyObject *_res = NULL; |
|---|
| 13436 | n/a | ComponentResult _rv; |
|---|
| 13437 | n/a | GraphicsExportComponent ci; |
|---|
| 13438 | n/a | Ptr p; |
|---|
| 13439 | n/a | unsigned long size; |
|---|
| 13440 | n/a | ImageDescriptionHandle desc; |
|---|
| 13441 | n/a | #ifndef GraphicsExportSetInputPtr |
|---|
| 13442 | n/a | PyMac_PRECHECK(GraphicsExportSetInputPtr); |
|---|
| 13443 | n/a | #endif |
|---|
| 13444 | n/a | if (!PyArg_ParseTuple(_args, "O&slO&", |
|---|
| 13445 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13446 | n/a | &p, |
|---|
| 13447 | n/a | &size, |
|---|
| 13448 | n/a | ResObj_Convert, &desc)) |
|---|
| 13449 | n/a | return NULL; |
|---|
| 13450 | n/a | _rv = GraphicsExportSetInputPtr(ci, |
|---|
| 13451 | n/a | p, |
|---|
| 13452 | n/a | size, |
|---|
| 13453 | n/a | desc); |
|---|
| 13454 | n/a | _res = Py_BuildValue("l", |
|---|
| 13455 | n/a | _rv); |
|---|
| 13456 | n/a | return _res; |
|---|
| 13457 | n/a | } |
|---|
| 13458 | n/a | |
|---|
| 13459 | n/a | static PyObject *Qt_GraphicsExportSetInputGraphicsImporter(PyObject *_self, PyObject *_args) |
|---|
| 13460 | n/a | { |
|---|
| 13461 | n/a | PyObject *_res = NULL; |
|---|
| 13462 | n/a | ComponentResult _rv; |
|---|
| 13463 | n/a | GraphicsExportComponent ci; |
|---|
| 13464 | n/a | GraphicsImportComponent grip; |
|---|
| 13465 | n/a | #ifndef GraphicsExportSetInputGraphicsImporter |
|---|
| 13466 | n/a | PyMac_PRECHECK(GraphicsExportSetInputGraphicsImporter); |
|---|
| 13467 | n/a | #endif |
|---|
| 13468 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13469 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13470 | n/a | CmpInstObj_Convert, &grip)) |
|---|
| 13471 | n/a | return NULL; |
|---|
| 13472 | n/a | _rv = GraphicsExportSetInputGraphicsImporter(ci, |
|---|
| 13473 | n/a | grip); |
|---|
| 13474 | n/a | _res = Py_BuildValue("l", |
|---|
| 13475 | n/a | _rv); |
|---|
| 13476 | n/a | return _res; |
|---|
| 13477 | n/a | } |
|---|
| 13478 | n/a | |
|---|
| 13479 | n/a | static PyObject *Qt_GraphicsExportGetInputGraphicsImporter(PyObject *_self, PyObject *_args) |
|---|
| 13480 | n/a | { |
|---|
| 13481 | n/a | PyObject *_res = NULL; |
|---|
| 13482 | n/a | ComponentResult _rv; |
|---|
| 13483 | n/a | GraphicsExportComponent ci; |
|---|
| 13484 | n/a | GraphicsImportComponent grip; |
|---|
| 13485 | n/a | #ifndef GraphicsExportGetInputGraphicsImporter |
|---|
| 13486 | n/a | PyMac_PRECHECK(GraphicsExportGetInputGraphicsImporter); |
|---|
| 13487 | n/a | #endif |
|---|
| 13488 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13489 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13490 | n/a | return NULL; |
|---|
| 13491 | n/a | _rv = GraphicsExportGetInputGraphicsImporter(ci, |
|---|
| 13492 | n/a | &grip); |
|---|
| 13493 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13494 | n/a | _rv, |
|---|
| 13495 | n/a | CmpInstObj_New, grip); |
|---|
| 13496 | n/a | return _res; |
|---|
| 13497 | n/a | } |
|---|
| 13498 | n/a | |
|---|
| 13499 | n/a | static PyObject *Qt_GraphicsExportSetInputPicture(PyObject *_self, PyObject *_args) |
|---|
| 13500 | n/a | { |
|---|
| 13501 | n/a | PyObject *_res = NULL; |
|---|
| 13502 | n/a | ComponentResult _rv; |
|---|
| 13503 | n/a | GraphicsExportComponent ci; |
|---|
| 13504 | n/a | PicHandle picture; |
|---|
| 13505 | n/a | #ifndef GraphicsExportSetInputPicture |
|---|
| 13506 | n/a | PyMac_PRECHECK(GraphicsExportSetInputPicture); |
|---|
| 13507 | n/a | #endif |
|---|
| 13508 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13509 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13510 | n/a | ResObj_Convert, &picture)) |
|---|
| 13511 | n/a | return NULL; |
|---|
| 13512 | n/a | _rv = GraphicsExportSetInputPicture(ci, |
|---|
| 13513 | n/a | picture); |
|---|
| 13514 | n/a | _res = Py_BuildValue("l", |
|---|
| 13515 | n/a | _rv); |
|---|
| 13516 | n/a | return _res; |
|---|
| 13517 | n/a | } |
|---|
| 13518 | n/a | |
|---|
| 13519 | n/a | static PyObject *Qt_GraphicsExportGetInputPicture(PyObject *_self, PyObject *_args) |
|---|
| 13520 | n/a | { |
|---|
| 13521 | n/a | PyObject *_res = NULL; |
|---|
| 13522 | n/a | ComponentResult _rv; |
|---|
| 13523 | n/a | GraphicsExportComponent ci; |
|---|
| 13524 | n/a | PicHandle picture; |
|---|
| 13525 | n/a | #ifndef GraphicsExportGetInputPicture |
|---|
| 13526 | n/a | PyMac_PRECHECK(GraphicsExportGetInputPicture); |
|---|
| 13527 | n/a | #endif |
|---|
| 13528 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13529 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13530 | n/a | return NULL; |
|---|
| 13531 | n/a | _rv = GraphicsExportGetInputPicture(ci, |
|---|
| 13532 | n/a | &picture); |
|---|
| 13533 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13534 | n/a | _rv, |
|---|
| 13535 | n/a | ResObj_New, picture); |
|---|
| 13536 | n/a | return _res; |
|---|
| 13537 | n/a | } |
|---|
| 13538 | n/a | |
|---|
| 13539 | n/a | static PyObject *Qt_GraphicsExportSetInputGWorld(PyObject *_self, PyObject *_args) |
|---|
| 13540 | n/a | { |
|---|
| 13541 | n/a | PyObject *_res = NULL; |
|---|
| 13542 | n/a | ComponentResult _rv; |
|---|
| 13543 | n/a | GraphicsExportComponent ci; |
|---|
| 13544 | n/a | GWorldPtr gworld; |
|---|
| 13545 | n/a | #ifndef GraphicsExportSetInputGWorld |
|---|
| 13546 | n/a | PyMac_PRECHECK(GraphicsExportSetInputGWorld); |
|---|
| 13547 | n/a | #endif |
|---|
| 13548 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13549 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13550 | n/a | GWorldObj_Convert, &gworld)) |
|---|
| 13551 | n/a | return NULL; |
|---|
| 13552 | n/a | _rv = GraphicsExportSetInputGWorld(ci, |
|---|
| 13553 | n/a | gworld); |
|---|
| 13554 | n/a | _res = Py_BuildValue("l", |
|---|
| 13555 | n/a | _rv); |
|---|
| 13556 | n/a | return _res; |
|---|
| 13557 | n/a | } |
|---|
| 13558 | n/a | |
|---|
| 13559 | n/a | static PyObject *Qt_GraphicsExportGetInputGWorld(PyObject *_self, PyObject *_args) |
|---|
| 13560 | n/a | { |
|---|
| 13561 | n/a | PyObject *_res = NULL; |
|---|
| 13562 | n/a | ComponentResult _rv; |
|---|
| 13563 | n/a | GraphicsExportComponent ci; |
|---|
| 13564 | n/a | GWorldPtr gworld; |
|---|
| 13565 | n/a | #ifndef GraphicsExportGetInputGWorld |
|---|
| 13566 | n/a | PyMac_PRECHECK(GraphicsExportGetInputGWorld); |
|---|
| 13567 | n/a | #endif |
|---|
| 13568 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13569 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13570 | n/a | return NULL; |
|---|
| 13571 | n/a | _rv = GraphicsExportGetInputGWorld(ci, |
|---|
| 13572 | n/a | &gworld); |
|---|
| 13573 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13574 | n/a | _rv, |
|---|
| 13575 | n/a | GWorldObj_New, gworld); |
|---|
| 13576 | n/a | return _res; |
|---|
| 13577 | n/a | } |
|---|
| 13578 | n/a | |
|---|
| 13579 | n/a | static PyObject *Qt_GraphicsExportSetInputPixmap(PyObject *_self, PyObject *_args) |
|---|
| 13580 | n/a | { |
|---|
| 13581 | n/a | PyObject *_res = NULL; |
|---|
| 13582 | n/a | ComponentResult _rv; |
|---|
| 13583 | n/a | GraphicsExportComponent ci; |
|---|
| 13584 | n/a | PixMapHandle pixmap; |
|---|
| 13585 | n/a | #ifndef GraphicsExportSetInputPixmap |
|---|
| 13586 | n/a | PyMac_PRECHECK(GraphicsExportSetInputPixmap); |
|---|
| 13587 | n/a | #endif |
|---|
| 13588 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13589 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13590 | n/a | ResObj_Convert, &pixmap)) |
|---|
| 13591 | n/a | return NULL; |
|---|
| 13592 | n/a | _rv = GraphicsExportSetInputPixmap(ci, |
|---|
| 13593 | n/a | pixmap); |
|---|
| 13594 | n/a | _res = Py_BuildValue("l", |
|---|
| 13595 | n/a | _rv); |
|---|
| 13596 | n/a | return _res; |
|---|
| 13597 | n/a | } |
|---|
| 13598 | n/a | |
|---|
| 13599 | n/a | static PyObject *Qt_GraphicsExportGetInputPixmap(PyObject *_self, PyObject *_args) |
|---|
| 13600 | n/a | { |
|---|
| 13601 | n/a | PyObject *_res = NULL; |
|---|
| 13602 | n/a | ComponentResult _rv; |
|---|
| 13603 | n/a | GraphicsExportComponent ci; |
|---|
| 13604 | n/a | PixMapHandle pixmap; |
|---|
| 13605 | n/a | #ifndef GraphicsExportGetInputPixmap |
|---|
| 13606 | n/a | PyMac_PRECHECK(GraphicsExportGetInputPixmap); |
|---|
| 13607 | n/a | #endif |
|---|
| 13608 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13609 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13610 | n/a | return NULL; |
|---|
| 13611 | n/a | _rv = GraphicsExportGetInputPixmap(ci, |
|---|
| 13612 | n/a | &pixmap); |
|---|
| 13613 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13614 | n/a | _rv, |
|---|
| 13615 | n/a | ResObj_New, pixmap); |
|---|
| 13616 | n/a | return _res; |
|---|
| 13617 | n/a | } |
|---|
| 13618 | n/a | |
|---|
| 13619 | n/a | static PyObject *Qt_GraphicsExportSetInputOffsetAndLimit(PyObject *_self, PyObject *_args) |
|---|
| 13620 | n/a | { |
|---|
| 13621 | n/a | PyObject *_res = NULL; |
|---|
| 13622 | n/a | ComponentResult _rv; |
|---|
| 13623 | n/a | GraphicsExportComponent ci; |
|---|
| 13624 | n/a | unsigned long offset; |
|---|
| 13625 | n/a | unsigned long limit; |
|---|
| 13626 | n/a | #ifndef GraphicsExportSetInputOffsetAndLimit |
|---|
| 13627 | n/a | PyMac_PRECHECK(GraphicsExportSetInputOffsetAndLimit); |
|---|
| 13628 | n/a | #endif |
|---|
| 13629 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 13630 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13631 | n/a | &offset, |
|---|
| 13632 | n/a | &limit)) |
|---|
| 13633 | n/a | return NULL; |
|---|
| 13634 | n/a | _rv = GraphicsExportSetInputOffsetAndLimit(ci, |
|---|
| 13635 | n/a | offset, |
|---|
| 13636 | n/a | limit); |
|---|
| 13637 | n/a | _res = Py_BuildValue("l", |
|---|
| 13638 | n/a | _rv); |
|---|
| 13639 | n/a | return _res; |
|---|
| 13640 | n/a | } |
|---|
| 13641 | n/a | |
|---|
| 13642 | n/a | static PyObject *Qt_GraphicsExportGetInputOffsetAndLimit(PyObject *_self, PyObject *_args) |
|---|
| 13643 | n/a | { |
|---|
| 13644 | n/a | PyObject *_res = NULL; |
|---|
| 13645 | n/a | ComponentResult _rv; |
|---|
| 13646 | n/a | GraphicsExportComponent ci; |
|---|
| 13647 | n/a | unsigned long offset; |
|---|
| 13648 | n/a | unsigned long limit; |
|---|
| 13649 | n/a | #ifndef GraphicsExportGetInputOffsetAndLimit |
|---|
| 13650 | n/a | PyMac_PRECHECK(GraphicsExportGetInputOffsetAndLimit); |
|---|
| 13651 | n/a | #endif |
|---|
| 13652 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13653 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13654 | n/a | return NULL; |
|---|
| 13655 | n/a | _rv = GraphicsExportGetInputOffsetAndLimit(ci, |
|---|
| 13656 | n/a | &offset, |
|---|
| 13657 | n/a | &limit); |
|---|
| 13658 | n/a | _res = Py_BuildValue("lll", |
|---|
| 13659 | n/a | _rv, |
|---|
| 13660 | n/a | offset, |
|---|
| 13661 | n/a | limit); |
|---|
| 13662 | n/a | return _res; |
|---|
| 13663 | n/a | } |
|---|
| 13664 | n/a | |
|---|
| 13665 | n/a | static PyObject *Qt_GraphicsExportMayExporterReadInputData(PyObject *_self, PyObject *_args) |
|---|
| 13666 | n/a | { |
|---|
| 13667 | n/a | PyObject *_res = NULL; |
|---|
| 13668 | n/a | ComponentResult _rv; |
|---|
| 13669 | n/a | GraphicsExportComponent ci; |
|---|
| 13670 | n/a | Boolean mayReadInputData; |
|---|
| 13671 | n/a | #ifndef GraphicsExportMayExporterReadInputData |
|---|
| 13672 | n/a | PyMac_PRECHECK(GraphicsExportMayExporterReadInputData); |
|---|
| 13673 | n/a | #endif |
|---|
| 13674 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13675 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13676 | n/a | return NULL; |
|---|
| 13677 | n/a | _rv = GraphicsExportMayExporterReadInputData(ci, |
|---|
| 13678 | n/a | &mayReadInputData); |
|---|
| 13679 | n/a | _res = Py_BuildValue("lb", |
|---|
| 13680 | n/a | _rv, |
|---|
| 13681 | n/a | mayReadInputData); |
|---|
| 13682 | n/a | return _res; |
|---|
| 13683 | n/a | } |
|---|
| 13684 | n/a | |
|---|
| 13685 | n/a | static PyObject *Qt_GraphicsExportGetInputDataSize(PyObject *_self, PyObject *_args) |
|---|
| 13686 | n/a | { |
|---|
| 13687 | n/a | PyObject *_res = NULL; |
|---|
| 13688 | n/a | ComponentResult _rv; |
|---|
| 13689 | n/a | GraphicsExportComponent ci; |
|---|
| 13690 | n/a | unsigned long size; |
|---|
| 13691 | n/a | #ifndef GraphicsExportGetInputDataSize |
|---|
| 13692 | n/a | PyMac_PRECHECK(GraphicsExportGetInputDataSize); |
|---|
| 13693 | n/a | #endif |
|---|
| 13694 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13695 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13696 | n/a | return NULL; |
|---|
| 13697 | n/a | _rv = GraphicsExportGetInputDataSize(ci, |
|---|
| 13698 | n/a | &size); |
|---|
| 13699 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13700 | n/a | _rv, |
|---|
| 13701 | n/a | size); |
|---|
| 13702 | n/a | return _res; |
|---|
| 13703 | n/a | } |
|---|
| 13704 | n/a | |
|---|
| 13705 | n/a | static PyObject *Qt_GraphicsExportReadInputData(PyObject *_self, PyObject *_args) |
|---|
| 13706 | n/a | { |
|---|
| 13707 | n/a | PyObject *_res = NULL; |
|---|
| 13708 | n/a | ComponentResult _rv; |
|---|
| 13709 | n/a | GraphicsExportComponent ci; |
|---|
| 13710 | n/a | void * dataPtr; |
|---|
| 13711 | n/a | unsigned long dataOffset; |
|---|
| 13712 | n/a | unsigned long dataSize; |
|---|
| 13713 | n/a | #ifndef GraphicsExportReadInputData |
|---|
| 13714 | n/a | PyMac_PRECHECK(GraphicsExportReadInputData); |
|---|
| 13715 | n/a | #endif |
|---|
| 13716 | n/a | if (!PyArg_ParseTuple(_args, "O&sll", |
|---|
| 13717 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13718 | n/a | &dataPtr, |
|---|
| 13719 | n/a | &dataOffset, |
|---|
| 13720 | n/a | &dataSize)) |
|---|
| 13721 | n/a | return NULL; |
|---|
| 13722 | n/a | _rv = GraphicsExportReadInputData(ci, |
|---|
| 13723 | n/a | dataPtr, |
|---|
| 13724 | n/a | dataOffset, |
|---|
| 13725 | n/a | dataSize); |
|---|
| 13726 | n/a | _res = Py_BuildValue("l", |
|---|
| 13727 | n/a | _rv); |
|---|
| 13728 | n/a | return _res; |
|---|
| 13729 | n/a | } |
|---|
| 13730 | n/a | |
|---|
| 13731 | n/a | static PyObject *Qt_GraphicsExportGetInputImageDescription(PyObject *_self, PyObject *_args) |
|---|
| 13732 | n/a | { |
|---|
| 13733 | n/a | PyObject *_res = NULL; |
|---|
| 13734 | n/a | ComponentResult _rv; |
|---|
| 13735 | n/a | GraphicsExportComponent ci; |
|---|
| 13736 | n/a | ImageDescriptionHandle desc; |
|---|
| 13737 | n/a | #ifndef GraphicsExportGetInputImageDescription |
|---|
| 13738 | n/a | PyMac_PRECHECK(GraphicsExportGetInputImageDescription); |
|---|
| 13739 | n/a | #endif |
|---|
| 13740 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13741 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13742 | n/a | return NULL; |
|---|
| 13743 | n/a | _rv = GraphicsExportGetInputImageDescription(ci, |
|---|
| 13744 | n/a | &desc); |
|---|
| 13745 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13746 | n/a | _rv, |
|---|
| 13747 | n/a | ResObj_New, desc); |
|---|
| 13748 | n/a | return _res; |
|---|
| 13749 | n/a | } |
|---|
| 13750 | n/a | |
|---|
| 13751 | n/a | static PyObject *Qt_GraphicsExportGetInputImageDimensions(PyObject *_self, PyObject *_args) |
|---|
| 13752 | n/a | { |
|---|
| 13753 | n/a | PyObject *_res = NULL; |
|---|
| 13754 | n/a | ComponentResult _rv; |
|---|
| 13755 | n/a | GraphicsExportComponent ci; |
|---|
| 13756 | n/a | Rect dimensions; |
|---|
| 13757 | n/a | #ifndef GraphicsExportGetInputImageDimensions |
|---|
| 13758 | n/a | PyMac_PRECHECK(GraphicsExportGetInputImageDimensions); |
|---|
| 13759 | n/a | #endif |
|---|
| 13760 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13761 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13762 | n/a | return NULL; |
|---|
| 13763 | n/a | _rv = GraphicsExportGetInputImageDimensions(ci, |
|---|
| 13764 | n/a | &dimensions); |
|---|
| 13765 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13766 | n/a | _rv, |
|---|
| 13767 | n/a | PyMac_BuildRect, &dimensions); |
|---|
| 13768 | n/a | return _res; |
|---|
| 13769 | n/a | } |
|---|
| 13770 | n/a | |
|---|
| 13771 | n/a | static PyObject *Qt_GraphicsExportGetInputImageDepth(PyObject *_self, PyObject *_args) |
|---|
| 13772 | n/a | { |
|---|
| 13773 | n/a | PyObject *_res = NULL; |
|---|
| 13774 | n/a | ComponentResult _rv; |
|---|
| 13775 | n/a | GraphicsExportComponent ci; |
|---|
| 13776 | n/a | long inputDepth; |
|---|
| 13777 | n/a | #ifndef GraphicsExportGetInputImageDepth |
|---|
| 13778 | n/a | PyMac_PRECHECK(GraphicsExportGetInputImageDepth); |
|---|
| 13779 | n/a | #endif |
|---|
| 13780 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13781 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13782 | n/a | return NULL; |
|---|
| 13783 | n/a | _rv = GraphicsExportGetInputImageDepth(ci, |
|---|
| 13784 | n/a | &inputDepth); |
|---|
| 13785 | n/a | _res = Py_BuildValue("ll", |
|---|
| 13786 | n/a | _rv, |
|---|
| 13787 | n/a | inputDepth); |
|---|
| 13788 | n/a | return _res; |
|---|
| 13789 | n/a | } |
|---|
| 13790 | n/a | |
|---|
| 13791 | n/a | static PyObject *Qt_GraphicsExportDrawInputImage(PyObject *_self, PyObject *_args) |
|---|
| 13792 | n/a | { |
|---|
| 13793 | n/a | PyObject *_res = NULL; |
|---|
| 13794 | n/a | ComponentResult _rv; |
|---|
| 13795 | n/a | GraphicsExportComponent ci; |
|---|
| 13796 | n/a | CGrafPtr gw; |
|---|
| 13797 | n/a | GDHandle gd; |
|---|
| 13798 | n/a | Rect srcRect; |
|---|
| 13799 | n/a | Rect dstRect; |
|---|
| 13800 | n/a | #ifndef GraphicsExportDrawInputImage |
|---|
| 13801 | n/a | PyMac_PRECHECK(GraphicsExportDrawInputImage); |
|---|
| 13802 | n/a | #endif |
|---|
| 13803 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&O&", |
|---|
| 13804 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13805 | n/a | GrafObj_Convert, &gw, |
|---|
| 13806 | n/a | OptResObj_Convert, &gd, |
|---|
| 13807 | n/a | PyMac_GetRect, &srcRect, |
|---|
| 13808 | n/a | PyMac_GetRect, &dstRect)) |
|---|
| 13809 | n/a | return NULL; |
|---|
| 13810 | n/a | _rv = GraphicsExportDrawInputImage(ci, |
|---|
| 13811 | n/a | gw, |
|---|
| 13812 | n/a | gd, |
|---|
| 13813 | n/a | &srcRect, |
|---|
| 13814 | n/a | &dstRect); |
|---|
| 13815 | n/a | _res = Py_BuildValue("l", |
|---|
| 13816 | n/a | _rv); |
|---|
| 13817 | n/a | return _res; |
|---|
| 13818 | n/a | } |
|---|
| 13819 | n/a | |
|---|
| 13820 | n/a | static PyObject *Qt_GraphicsExportSetOutputDataReference(PyObject *_self, PyObject *_args) |
|---|
| 13821 | n/a | { |
|---|
| 13822 | n/a | PyObject *_res = NULL; |
|---|
| 13823 | n/a | ComponentResult _rv; |
|---|
| 13824 | n/a | GraphicsExportComponent ci; |
|---|
| 13825 | n/a | Handle dataRef; |
|---|
| 13826 | n/a | OSType dataRefType; |
|---|
| 13827 | n/a | #ifndef GraphicsExportSetOutputDataReference |
|---|
| 13828 | n/a | PyMac_PRECHECK(GraphicsExportSetOutputDataReference); |
|---|
| 13829 | n/a | #endif |
|---|
| 13830 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 13831 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13832 | n/a | ResObj_Convert, &dataRef, |
|---|
| 13833 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 13834 | n/a | return NULL; |
|---|
| 13835 | n/a | _rv = GraphicsExportSetOutputDataReference(ci, |
|---|
| 13836 | n/a | dataRef, |
|---|
| 13837 | n/a | dataRefType); |
|---|
| 13838 | n/a | _res = Py_BuildValue("l", |
|---|
| 13839 | n/a | _rv); |
|---|
| 13840 | n/a | return _res; |
|---|
| 13841 | n/a | } |
|---|
| 13842 | n/a | |
|---|
| 13843 | n/a | static PyObject *Qt_GraphicsExportGetOutputDataReference(PyObject *_self, PyObject *_args) |
|---|
| 13844 | n/a | { |
|---|
| 13845 | n/a | PyObject *_res = NULL; |
|---|
| 13846 | n/a | ComponentResult _rv; |
|---|
| 13847 | n/a | GraphicsExportComponent ci; |
|---|
| 13848 | n/a | Handle dataRef; |
|---|
| 13849 | n/a | OSType dataRefType; |
|---|
| 13850 | n/a | #ifndef GraphicsExportGetOutputDataReference |
|---|
| 13851 | n/a | PyMac_PRECHECK(GraphicsExportGetOutputDataReference); |
|---|
| 13852 | n/a | #endif |
|---|
| 13853 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13854 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13855 | n/a | return NULL; |
|---|
| 13856 | n/a | _rv = GraphicsExportGetOutputDataReference(ci, |
|---|
| 13857 | n/a | &dataRef, |
|---|
| 13858 | n/a | &dataRefType); |
|---|
| 13859 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 13860 | n/a | _rv, |
|---|
| 13861 | n/a | ResObj_New, dataRef, |
|---|
| 13862 | n/a | PyMac_BuildOSType, dataRefType); |
|---|
| 13863 | n/a | return _res; |
|---|
| 13864 | n/a | } |
|---|
| 13865 | n/a | |
|---|
| 13866 | n/a | static PyObject *Qt_GraphicsExportSetOutputFile(PyObject *_self, PyObject *_args) |
|---|
| 13867 | n/a | { |
|---|
| 13868 | n/a | PyObject *_res = NULL; |
|---|
| 13869 | n/a | ComponentResult _rv; |
|---|
| 13870 | n/a | GraphicsExportComponent ci; |
|---|
| 13871 | n/a | FSSpec theFile; |
|---|
| 13872 | n/a | #ifndef GraphicsExportSetOutputFile |
|---|
| 13873 | n/a | PyMac_PRECHECK(GraphicsExportSetOutputFile); |
|---|
| 13874 | n/a | #endif |
|---|
| 13875 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13876 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13877 | n/a | PyMac_GetFSSpec, &theFile)) |
|---|
| 13878 | n/a | return NULL; |
|---|
| 13879 | n/a | _rv = GraphicsExportSetOutputFile(ci, |
|---|
| 13880 | n/a | &theFile); |
|---|
| 13881 | n/a | _res = Py_BuildValue("l", |
|---|
| 13882 | n/a | _rv); |
|---|
| 13883 | n/a | return _res; |
|---|
| 13884 | n/a | } |
|---|
| 13885 | n/a | |
|---|
| 13886 | n/a | static PyObject *Qt_GraphicsExportGetOutputFile(PyObject *_self, PyObject *_args) |
|---|
| 13887 | n/a | { |
|---|
| 13888 | n/a | PyObject *_res = NULL; |
|---|
| 13889 | n/a | ComponentResult _rv; |
|---|
| 13890 | n/a | GraphicsExportComponent ci; |
|---|
| 13891 | n/a | FSSpec theFile; |
|---|
| 13892 | n/a | #ifndef GraphicsExportGetOutputFile |
|---|
| 13893 | n/a | PyMac_PRECHECK(GraphicsExportGetOutputFile); |
|---|
| 13894 | n/a | #endif |
|---|
| 13895 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13896 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13897 | n/a | PyMac_GetFSSpec, &theFile)) |
|---|
| 13898 | n/a | return NULL; |
|---|
| 13899 | n/a | _rv = GraphicsExportGetOutputFile(ci, |
|---|
| 13900 | n/a | &theFile); |
|---|
| 13901 | n/a | _res = Py_BuildValue("l", |
|---|
| 13902 | n/a | _rv); |
|---|
| 13903 | n/a | return _res; |
|---|
| 13904 | n/a | } |
|---|
| 13905 | n/a | |
|---|
| 13906 | n/a | static PyObject *Qt_GraphicsExportSetOutputHandle(PyObject *_self, PyObject *_args) |
|---|
| 13907 | n/a | { |
|---|
| 13908 | n/a | PyObject *_res = NULL; |
|---|
| 13909 | n/a | ComponentResult _rv; |
|---|
| 13910 | n/a | GraphicsExportComponent ci; |
|---|
| 13911 | n/a | Handle h; |
|---|
| 13912 | n/a | #ifndef GraphicsExportSetOutputHandle |
|---|
| 13913 | n/a | PyMac_PRECHECK(GraphicsExportSetOutputHandle); |
|---|
| 13914 | n/a | #endif |
|---|
| 13915 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 13916 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13917 | n/a | ResObj_Convert, &h)) |
|---|
| 13918 | n/a | return NULL; |
|---|
| 13919 | n/a | _rv = GraphicsExportSetOutputHandle(ci, |
|---|
| 13920 | n/a | h); |
|---|
| 13921 | n/a | _res = Py_BuildValue("l", |
|---|
| 13922 | n/a | _rv); |
|---|
| 13923 | n/a | return _res; |
|---|
| 13924 | n/a | } |
|---|
| 13925 | n/a | |
|---|
| 13926 | n/a | static PyObject *Qt_GraphicsExportGetOutputHandle(PyObject *_self, PyObject *_args) |
|---|
| 13927 | n/a | { |
|---|
| 13928 | n/a | PyObject *_res = NULL; |
|---|
| 13929 | n/a | ComponentResult _rv; |
|---|
| 13930 | n/a | GraphicsExportComponent ci; |
|---|
| 13931 | n/a | Handle h; |
|---|
| 13932 | n/a | #ifndef GraphicsExportGetOutputHandle |
|---|
| 13933 | n/a | PyMac_PRECHECK(GraphicsExportGetOutputHandle); |
|---|
| 13934 | n/a | #endif |
|---|
| 13935 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13936 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13937 | n/a | return NULL; |
|---|
| 13938 | n/a | _rv = GraphicsExportGetOutputHandle(ci, |
|---|
| 13939 | n/a | &h); |
|---|
| 13940 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 13941 | n/a | _rv, |
|---|
| 13942 | n/a | ResObj_New, h); |
|---|
| 13943 | n/a | return _res; |
|---|
| 13944 | n/a | } |
|---|
| 13945 | n/a | |
|---|
| 13946 | n/a | static PyObject *Qt_GraphicsExportSetOutputOffsetAndMaxSize(PyObject *_self, PyObject *_args) |
|---|
| 13947 | n/a | { |
|---|
| 13948 | n/a | PyObject *_res = NULL; |
|---|
| 13949 | n/a | ComponentResult _rv; |
|---|
| 13950 | n/a | GraphicsExportComponent ci; |
|---|
| 13951 | n/a | unsigned long offset; |
|---|
| 13952 | n/a | unsigned long maxSize; |
|---|
| 13953 | n/a | Boolean truncateFile; |
|---|
| 13954 | n/a | #ifndef GraphicsExportSetOutputOffsetAndMaxSize |
|---|
| 13955 | n/a | PyMac_PRECHECK(GraphicsExportSetOutputOffsetAndMaxSize); |
|---|
| 13956 | n/a | #endif |
|---|
| 13957 | n/a | if (!PyArg_ParseTuple(_args, "O&llb", |
|---|
| 13958 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 13959 | n/a | &offset, |
|---|
| 13960 | n/a | &maxSize, |
|---|
| 13961 | n/a | &truncateFile)) |
|---|
| 13962 | n/a | return NULL; |
|---|
| 13963 | n/a | _rv = GraphicsExportSetOutputOffsetAndMaxSize(ci, |
|---|
| 13964 | n/a | offset, |
|---|
| 13965 | n/a | maxSize, |
|---|
| 13966 | n/a | truncateFile); |
|---|
| 13967 | n/a | _res = Py_BuildValue("l", |
|---|
| 13968 | n/a | _rv); |
|---|
| 13969 | n/a | return _res; |
|---|
| 13970 | n/a | } |
|---|
| 13971 | n/a | |
|---|
| 13972 | n/a | static PyObject *Qt_GraphicsExportGetOutputOffsetAndMaxSize(PyObject *_self, PyObject *_args) |
|---|
| 13973 | n/a | { |
|---|
| 13974 | n/a | PyObject *_res = NULL; |
|---|
| 13975 | n/a | ComponentResult _rv; |
|---|
| 13976 | n/a | GraphicsExportComponent ci; |
|---|
| 13977 | n/a | unsigned long offset; |
|---|
| 13978 | n/a | unsigned long maxSize; |
|---|
| 13979 | n/a | Boolean truncateFile; |
|---|
| 13980 | n/a | #ifndef GraphicsExportGetOutputOffsetAndMaxSize |
|---|
| 13981 | n/a | PyMac_PRECHECK(GraphicsExportGetOutputOffsetAndMaxSize); |
|---|
| 13982 | n/a | #endif |
|---|
| 13983 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 13984 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 13985 | n/a | return NULL; |
|---|
| 13986 | n/a | _rv = GraphicsExportGetOutputOffsetAndMaxSize(ci, |
|---|
| 13987 | n/a | &offset, |
|---|
| 13988 | n/a | &maxSize, |
|---|
| 13989 | n/a | &truncateFile); |
|---|
| 13990 | n/a | _res = Py_BuildValue("lllb", |
|---|
| 13991 | n/a | _rv, |
|---|
| 13992 | n/a | offset, |
|---|
| 13993 | n/a | maxSize, |
|---|
| 13994 | n/a | truncateFile); |
|---|
| 13995 | n/a | return _res; |
|---|
| 13996 | n/a | } |
|---|
| 13997 | n/a | |
|---|
| 13998 | n/a | static PyObject *Qt_GraphicsExportSetOutputFileTypeAndCreator(PyObject *_self, PyObject *_args) |
|---|
| 13999 | n/a | { |
|---|
| 14000 | n/a | PyObject *_res = NULL; |
|---|
| 14001 | n/a | ComponentResult _rv; |
|---|
| 14002 | n/a | GraphicsExportComponent ci; |
|---|
| 14003 | n/a | OSType fileType; |
|---|
| 14004 | n/a | OSType fileCreator; |
|---|
| 14005 | n/a | #ifndef GraphicsExportSetOutputFileTypeAndCreator |
|---|
| 14006 | n/a | PyMac_PRECHECK(GraphicsExportSetOutputFileTypeAndCreator); |
|---|
| 14007 | n/a | #endif |
|---|
| 14008 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 14009 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14010 | n/a | PyMac_GetOSType, &fileType, |
|---|
| 14011 | n/a | PyMac_GetOSType, &fileCreator)) |
|---|
| 14012 | n/a | return NULL; |
|---|
| 14013 | n/a | _rv = GraphicsExportSetOutputFileTypeAndCreator(ci, |
|---|
| 14014 | n/a | fileType, |
|---|
| 14015 | n/a | fileCreator); |
|---|
| 14016 | n/a | _res = Py_BuildValue("l", |
|---|
| 14017 | n/a | _rv); |
|---|
| 14018 | n/a | return _res; |
|---|
| 14019 | n/a | } |
|---|
| 14020 | n/a | |
|---|
| 14021 | n/a | static PyObject *Qt_GraphicsExportGetOutputFileTypeAndCreator(PyObject *_self, PyObject *_args) |
|---|
| 14022 | n/a | { |
|---|
| 14023 | n/a | PyObject *_res = NULL; |
|---|
| 14024 | n/a | ComponentResult _rv; |
|---|
| 14025 | n/a | GraphicsExportComponent ci; |
|---|
| 14026 | n/a | OSType fileType; |
|---|
| 14027 | n/a | OSType fileCreator; |
|---|
| 14028 | n/a | #ifndef GraphicsExportGetOutputFileTypeAndCreator |
|---|
| 14029 | n/a | PyMac_PRECHECK(GraphicsExportGetOutputFileTypeAndCreator); |
|---|
| 14030 | n/a | #endif |
|---|
| 14031 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14032 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14033 | n/a | return NULL; |
|---|
| 14034 | n/a | _rv = GraphicsExportGetOutputFileTypeAndCreator(ci, |
|---|
| 14035 | n/a | &fileType, |
|---|
| 14036 | n/a | &fileCreator); |
|---|
| 14037 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 14038 | n/a | _rv, |
|---|
| 14039 | n/a | PyMac_BuildOSType, fileType, |
|---|
| 14040 | n/a | PyMac_BuildOSType, fileCreator); |
|---|
| 14041 | n/a | return _res; |
|---|
| 14042 | n/a | } |
|---|
| 14043 | n/a | |
|---|
| 14044 | n/a | static PyObject *Qt_GraphicsExportSetOutputMark(PyObject *_self, PyObject *_args) |
|---|
| 14045 | n/a | { |
|---|
| 14046 | n/a | PyObject *_res = NULL; |
|---|
| 14047 | n/a | ComponentResult _rv; |
|---|
| 14048 | n/a | GraphicsExportComponent ci; |
|---|
| 14049 | n/a | unsigned long mark; |
|---|
| 14050 | n/a | #ifndef GraphicsExportSetOutputMark |
|---|
| 14051 | n/a | PyMac_PRECHECK(GraphicsExportSetOutputMark); |
|---|
| 14052 | n/a | #endif |
|---|
| 14053 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 14054 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14055 | n/a | &mark)) |
|---|
| 14056 | n/a | return NULL; |
|---|
| 14057 | n/a | _rv = GraphicsExportSetOutputMark(ci, |
|---|
| 14058 | n/a | mark); |
|---|
| 14059 | n/a | _res = Py_BuildValue("l", |
|---|
| 14060 | n/a | _rv); |
|---|
| 14061 | n/a | return _res; |
|---|
| 14062 | n/a | } |
|---|
| 14063 | n/a | |
|---|
| 14064 | n/a | static PyObject *Qt_GraphicsExportGetOutputMark(PyObject *_self, PyObject *_args) |
|---|
| 14065 | n/a | { |
|---|
| 14066 | n/a | PyObject *_res = NULL; |
|---|
| 14067 | n/a | ComponentResult _rv; |
|---|
| 14068 | n/a | GraphicsExportComponent ci; |
|---|
| 14069 | n/a | unsigned long mark; |
|---|
| 14070 | n/a | #ifndef GraphicsExportGetOutputMark |
|---|
| 14071 | n/a | PyMac_PRECHECK(GraphicsExportGetOutputMark); |
|---|
| 14072 | n/a | #endif |
|---|
| 14073 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14074 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14075 | n/a | return NULL; |
|---|
| 14076 | n/a | _rv = GraphicsExportGetOutputMark(ci, |
|---|
| 14077 | n/a | &mark); |
|---|
| 14078 | n/a | _res = Py_BuildValue("ll", |
|---|
| 14079 | n/a | _rv, |
|---|
| 14080 | n/a | mark); |
|---|
| 14081 | n/a | return _res; |
|---|
| 14082 | n/a | } |
|---|
| 14083 | n/a | |
|---|
| 14084 | n/a | static PyObject *Qt_GraphicsExportReadOutputData(PyObject *_self, PyObject *_args) |
|---|
| 14085 | n/a | { |
|---|
| 14086 | n/a | PyObject *_res = NULL; |
|---|
| 14087 | n/a | ComponentResult _rv; |
|---|
| 14088 | n/a | GraphicsExportComponent ci; |
|---|
| 14089 | n/a | void * dataPtr; |
|---|
| 14090 | n/a | unsigned long dataOffset; |
|---|
| 14091 | n/a | unsigned long dataSize; |
|---|
| 14092 | n/a | #ifndef GraphicsExportReadOutputData |
|---|
| 14093 | n/a | PyMac_PRECHECK(GraphicsExportReadOutputData); |
|---|
| 14094 | n/a | #endif |
|---|
| 14095 | n/a | if (!PyArg_ParseTuple(_args, "O&sll", |
|---|
| 14096 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14097 | n/a | &dataPtr, |
|---|
| 14098 | n/a | &dataOffset, |
|---|
| 14099 | n/a | &dataSize)) |
|---|
| 14100 | n/a | return NULL; |
|---|
| 14101 | n/a | _rv = GraphicsExportReadOutputData(ci, |
|---|
| 14102 | n/a | dataPtr, |
|---|
| 14103 | n/a | dataOffset, |
|---|
| 14104 | n/a | dataSize); |
|---|
| 14105 | n/a | _res = Py_BuildValue("l", |
|---|
| 14106 | n/a | _rv); |
|---|
| 14107 | n/a | return _res; |
|---|
| 14108 | n/a | } |
|---|
| 14109 | n/a | |
|---|
| 14110 | n/a | static PyObject *Qt_GraphicsExportSetThumbnailEnabled(PyObject *_self, PyObject *_args) |
|---|
| 14111 | n/a | { |
|---|
| 14112 | n/a | PyObject *_res = NULL; |
|---|
| 14113 | n/a | ComponentResult _rv; |
|---|
| 14114 | n/a | GraphicsExportComponent ci; |
|---|
| 14115 | n/a | Boolean enableThumbnail; |
|---|
| 14116 | n/a | long maxThumbnailWidth; |
|---|
| 14117 | n/a | long maxThumbnailHeight; |
|---|
| 14118 | n/a | #ifndef GraphicsExportSetThumbnailEnabled |
|---|
| 14119 | n/a | PyMac_PRECHECK(GraphicsExportSetThumbnailEnabled); |
|---|
| 14120 | n/a | #endif |
|---|
| 14121 | n/a | if (!PyArg_ParseTuple(_args, "O&bll", |
|---|
| 14122 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14123 | n/a | &enableThumbnail, |
|---|
| 14124 | n/a | &maxThumbnailWidth, |
|---|
| 14125 | n/a | &maxThumbnailHeight)) |
|---|
| 14126 | n/a | return NULL; |
|---|
| 14127 | n/a | _rv = GraphicsExportSetThumbnailEnabled(ci, |
|---|
| 14128 | n/a | enableThumbnail, |
|---|
| 14129 | n/a | maxThumbnailWidth, |
|---|
| 14130 | n/a | maxThumbnailHeight); |
|---|
| 14131 | n/a | _res = Py_BuildValue("l", |
|---|
| 14132 | n/a | _rv); |
|---|
| 14133 | n/a | return _res; |
|---|
| 14134 | n/a | } |
|---|
| 14135 | n/a | |
|---|
| 14136 | n/a | static PyObject *Qt_GraphicsExportGetThumbnailEnabled(PyObject *_self, PyObject *_args) |
|---|
| 14137 | n/a | { |
|---|
| 14138 | n/a | PyObject *_res = NULL; |
|---|
| 14139 | n/a | ComponentResult _rv; |
|---|
| 14140 | n/a | GraphicsExportComponent ci; |
|---|
| 14141 | n/a | Boolean thumbnailEnabled; |
|---|
| 14142 | n/a | long maxThumbnailWidth; |
|---|
| 14143 | n/a | long maxThumbnailHeight; |
|---|
| 14144 | n/a | #ifndef GraphicsExportGetThumbnailEnabled |
|---|
| 14145 | n/a | PyMac_PRECHECK(GraphicsExportGetThumbnailEnabled); |
|---|
| 14146 | n/a | #endif |
|---|
| 14147 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14148 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14149 | n/a | return NULL; |
|---|
| 14150 | n/a | _rv = GraphicsExportGetThumbnailEnabled(ci, |
|---|
| 14151 | n/a | &thumbnailEnabled, |
|---|
| 14152 | n/a | &maxThumbnailWidth, |
|---|
| 14153 | n/a | &maxThumbnailHeight); |
|---|
| 14154 | n/a | _res = Py_BuildValue("lbll", |
|---|
| 14155 | n/a | _rv, |
|---|
| 14156 | n/a | thumbnailEnabled, |
|---|
| 14157 | n/a | maxThumbnailWidth, |
|---|
| 14158 | n/a | maxThumbnailHeight); |
|---|
| 14159 | n/a | return _res; |
|---|
| 14160 | n/a | } |
|---|
| 14161 | n/a | |
|---|
| 14162 | n/a | static PyObject *Qt_GraphicsExportSetExifEnabled(PyObject *_self, PyObject *_args) |
|---|
| 14163 | n/a | { |
|---|
| 14164 | n/a | PyObject *_res = NULL; |
|---|
| 14165 | n/a | ComponentResult _rv; |
|---|
| 14166 | n/a | GraphicsExportComponent ci; |
|---|
| 14167 | n/a | Boolean enableExif; |
|---|
| 14168 | n/a | #ifndef GraphicsExportSetExifEnabled |
|---|
| 14169 | n/a | PyMac_PRECHECK(GraphicsExportSetExifEnabled); |
|---|
| 14170 | n/a | #endif |
|---|
| 14171 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 14172 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14173 | n/a | &enableExif)) |
|---|
| 14174 | n/a | return NULL; |
|---|
| 14175 | n/a | _rv = GraphicsExportSetExifEnabled(ci, |
|---|
| 14176 | n/a | enableExif); |
|---|
| 14177 | n/a | _res = Py_BuildValue("l", |
|---|
| 14178 | n/a | _rv); |
|---|
| 14179 | n/a | return _res; |
|---|
| 14180 | n/a | } |
|---|
| 14181 | n/a | |
|---|
| 14182 | n/a | static PyObject *Qt_GraphicsExportGetExifEnabled(PyObject *_self, PyObject *_args) |
|---|
| 14183 | n/a | { |
|---|
| 14184 | n/a | PyObject *_res = NULL; |
|---|
| 14185 | n/a | ComponentResult _rv; |
|---|
| 14186 | n/a | GraphicsExportComponent ci; |
|---|
| 14187 | n/a | Boolean exifEnabled; |
|---|
| 14188 | n/a | #ifndef GraphicsExportGetExifEnabled |
|---|
| 14189 | n/a | PyMac_PRECHECK(GraphicsExportGetExifEnabled); |
|---|
| 14190 | n/a | #endif |
|---|
| 14191 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14192 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14193 | n/a | return NULL; |
|---|
| 14194 | n/a | _rv = GraphicsExportGetExifEnabled(ci, |
|---|
| 14195 | n/a | &exifEnabled); |
|---|
| 14196 | n/a | _res = Py_BuildValue("lb", |
|---|
| 14197 | n/a | _rv, |
|---|
| 14198 | n/a | exifEnabled); |
|---|
| 14199 | n/a | return _res; |
|---|
| 14200 | n/a | } |
|---|
| 14201 | n/a | |
|---|
| 14202 | n/a | static PyObject *Qt_ImageTranscoderBeginSequence(PyObject *_self, PyObject *_args) |
|---|
| 14203 | n/a | { |
|---|
| 14204 | n/a | PyObject *_res = NULL; |
|---|
| 14205 | n/a | ComponentResult _rv; |
|---|
| 14206 | n/a | ImageTranscoderComponent itc; |
|---|
| 14207 | n/a | ImageDescriptionHandle srcDesc; |
|---|
| 14208 | n/a | ImageDescriptionHandle dstDesc; |
|---|
| 14209 | n/a | void * data; |
|---|
| 14210 | n/a | long dataSize; |
|---|
| 14211 | n/a | #ifndef ImageTranscoderBeginSequence |
|---|
| 14212 | n/a | PyMac_PRECHECK(ImageTranscoderBeginSequence); |
|---|
| 14213 | n/a | #endif |
|---|
| 14214 | n/a | if (!PyArg_ParseTuple(_args, "O&O&sl", |
|---|
| 14215 | n/a | CmpInstObj_Convert, &itc, |
|---|
| 14216 | n/a | ResObj_Convert, &srcDesc, |
|---|
| 14217 | n/a | &data, |
|---|
| 14218 | n/a | &dataSize)) |
|---|
| 14219 | n/a | return NULL; |
|---|
| 14220 | n/a | _rv = ImageTranscoderBeginSequence(itc, |
|---|
| 14221 | n/a | srcDesc, |
|---|
| 14222 | n/a | &dstDesc, |
|---|
| 14223 | n/a | data, |
|---|
| 14224 | n/a | dataSize); |
|---|
| 14225 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14226 | n/a | _rv, |
|---|
| 14227 | n/a | ResObj_New, dstDesc); |
|---|
| 14228 | n/a | return _res; |
|---|
| 14229 | n/a | } |
|---|
| 14230 | n/a | |
|---|
| 14231 | n/a | static PyObject *Qt_ImageTranscoderDisposeData(PyObject *_self, PyObject *_args) |
|---|
| 14232 | n/a | { |
|---|
| 14233 | n/a | PyObject *_res = NULL; |
|---|
| 14234 | n/a | ComponentResult _rv; |
|---|
| 14235 | n/a | ImageTranscoderComponent itc; |
|---|
| 14236 | n/a | void * dstData; |
|---|
| 14237 | n/a | #ifndef ImageTranscoderDisposeData |
|---|
| 14238 | n/a | PyMac_PRECHECK(ImageTranscoderDisposeData); |
|---|
| 14239 | n/a | #endif |
|---|
| 14240 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 14241 | n/a | CmpInstObj_Convert, &itc, |
|---|
| 14242 | n/a | &dstData)) |
|---|
| 14243 | n/a | return NULL; |
|---|
| 14244 | n/a | _rv = ImageTranscoderDisposeData(itc, |
|---|
| 14245 | n/a | dstData); |
|---|
| 14246 | n/a | _res = Py_BuildValue("l", |
|---|
| 14247 | n/a | _rv); |
|---|
| 14248 | n/a | return _res; |
|---|
| 14249 | n/a | } |
|---|
| 14250 | n/a | |
|---|
| 14251 | n/a | static PyObject *Qt_ImageTranscoderEndSequence(PyObject *_self, PyObject *_args) |
|---|
| 14252 | n/a | { |
|---|
| 14253 | n/a | PyObject *_res = NULL; |
|---|
| 14254 | n/a | ComponentResult _rv; |
|---|
| 14255 | n/a | ImageTranscoderComponent itc; |
|---|
| 14256 | n/a | #ifndef ImageTranscoderEndSequence |
|---|
| 14257 | n/a | PyMac_PRECHECK(ImageTranscoderEndSequence); |
|---|
| 14258 | n/a | #endif |
|---|
| 14259 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14260 | n/a | CmpInstObj_Convert, &itc)) |
|---|
| 14261 | n/a | return NULL; |
|---|
| 14262 | n/a | _rv = ImageTranscoderEndSequence(itc); |
|---|
| 14263 | n/a | _res = Py_BuildValue("l", |
|---|
| 14264 | n/a | _rv); |
|---|
| 14265 | n/a | return _res; |
|---|
| 14266 | n/a | } |
|---|
| 14267 | n/a | |
|---|
| 14268 | n/a | static PyObject *Qt_ClockGetTime(PyObject *_self, PyObject *_args) |
|---|
| 14269 | n/a | { |
|---|
| 14270 | n/a | PyObject *_res = NULL; |
|---|
| 14271 | n/a | ComponentResult _rv; |
|---|
| 14272 | n/a | ComponentInstance aClock; |
|---|
| 14273 | n/a | TimeRecord out; |
|---|
| 14274 | n/a | #ifndef ClockGetTime |
|---|
| 14275 | n/a | PyMac_PRECHECK(ClockGetTime); |
|---|
| 14276 | n/a | #endif |
|---|
| 14277 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14278 | n/a | CmpInstObj_Convert, &aClock)) |
|---|
| 14279 | n/a | return NULL; |
|---|
| 14280 | n/a | _rv = ClockGetTime(aClock, |
|---|
| 14281 | n/a | &out); |
|---|
| 14282 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14283 | n/a | _rv, |
|---|
| 14284 | n/a | QtTimeRecord_New, &out); |
|---|
| 14285 | n/a | return _res; |
|---|
| 14286 | n/a | } |
|---|
| 14287 | n/a | |
|---|
| 14288 | n/a | static PyObject *Qt_ClockSetTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 14289 | n/a | { |
|---|
| 14290 | n/a | PyObject *_res = NULL; |
|---|
| 14291 | n/a | ComponentResult _rv; |
|---|
| 14292 | n/a | ComponentInstance aClock; |
|---|
| 14293 | n/a | TimeBase tb; |
|---|
| 14294 | n/a | #ifndef ClockSetTimeBase |
|---|
| 14295 | n/a | PyMac_PRECHECK(ClockSetTimeBase); |
|---|
| 14296 | n/a | #endif |
|---|
| 14297 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 14298 | n/a | CmpInstObj_Convert, &aClock, |
|---|
| 14299 | n/a | TimeBaseObj_Convert, &tb)) |
|---|
| 14300 | n/a | return NULL; |
|---|
| 14301 | n/a | _rv = ClockSetTimeBase(aClock, |
|---|
| 14302 | n/a | tb); |
|---|
| 14303 | n/a | _res = Py_BuildValue("l", |
|---|
| 14304 | n/a | _rv); |
|---|
| 14305 | n/a | return _res; |
|---|
| 14306 | n/a | } |
|---|
| 14307 | n/a | |
|---|
| 14308 | n/a | static PyObject *Qt_ClockGetRate(PyObject *_self, PyObject *_args) |
|---|
| 14309 | n/a | { |
|---|
| 14310 | n/a | PyObject *_res = NULL; |
|---|
| 14311 | n/a | ComponentResult _rv; |
|---|
| 14312 | n/a | ComponentInstance aClock; |
|---|
| 14313 | n/a | Fixed rate; |
|---|
| 14314 | n/a | #ifndef ClockGetRate |
|---|
| 14315 | n/a | PyMac_PRECHECK(ClockGetRate); |
|---|
| 14316 | n/a | #endif |
|---|
| 14317 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14318 | n/a | CmpInstObj_Convert, &aClock)) |
|---|
| 14319 | n/a | return NULL; |
|---|
| 14320 | n/a | _rv = ClockGetRate(aClock, |
|---|
| 14321 | n/a | &rate); |
|---|
| 14322 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14323 | n/a | _rv, |
|---|
| 14324 | n/a | PyMac_BuildFixed, rate); |
|---|
| 14325 | n/a | return _res; |
|---|
| 14326 | n/a | } |
|---|
| 14327 | n/a | |
|---|
| 14328 | n/a | static PyObject *Qt_SCPositionRect(PyObject *_self, PyObject *_args) |
|---|
| 14329 | n/a | { |
|---|
| 14330 | n/a | PyObject *_res = NULL; |
|---|
| 14331 | n/a | ComponentResult _rv; |
|---|
| 14332 | n/a | ComponentInstance ci; |
|---|
| 14333 | n/a | Rect rp; |
|---|
| 14334 | n/a | Point where; |
|---|
| 14335 | n/a | #ifndef SCPositionRect |
|---|
| 14336 | n/a | PyMac_PRECHECK(SCPositionRect); |
|---|
| 14337 | n/a | #endif |
|---|
| 14338 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14339 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14340 | n/a | return NULL; |
|---|
| 14341 | n/a | _rv = SCPositionRect(ci, |
|---|
| 14342 | n/a | &rp, |
|---|
| 14343 | n/a | &where); |
|---|
| 14344 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 14345 | n/a | _rv, |
|---|
| 14346 | n/a | PyMac_BuildRect, &rp, |
|---|
| 14347 | n/a | PyMac_BuildPoint, where); |
|---|
| 14348 | n/a | return _res; |
|---|
| 14349 | n/a | } |
|---|
| 14350 | n/a | |
|---|
| 14351 | n/a | static PyObject *Qt_SCPositionDialog(PyObject *_self, PyObject *_args) |
|---|
| 14352 | n/a | { |
|---|
| 14353 | n/a | PyObject *_res = NULL; |
|---|
| 14354 | n/a | ComponentResult _rv; |
|---|
| 14355 | n/a | ComponentInstance ci; |
|---|
| 14356 | n/a | short id; |
|---|
| 14357 | n/a | Point where; |
|---|
| 14358 | n/a | #ifndef SCPositionDialog |
|---|
| 14359 | n/a | PyMac_PRECHECK(SCPositionDialog); |
|---|
| 14360 | n/a | #endif |
|---|
| 14361 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 14362 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14363 | n/a | &id)) |
|---|
| 14364 | n/a | return NULL; |
|---|
| 14365 | n/a | _rv = SCPositionDialog(ci, |
|---|
| 14366 | n/a | id, |
|---|
| 14367 | n/a | &where); |
|---|
| 14368 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14369 | n/a | _rv, |
|---|
| 14370 | n/a | PyMac_BuildPoint, where); |
|---|
| 14371 | n/a | return _res; |
|---|
| 14372 | n/a | } |
|---|
| 14373 | n/a | |
|---|
| 14374 | n/a | static PyObject *Qt_SCSetTestImagePictHandle(PyObject *_self, PyObject *_args) |
|---|
| 14375 | n/a | { |
|---|
| 14376 | n/a | PyObject *_res = NULL; |
|---|
| 14377 | n/a | ComponentResult _rv; |
|---|
| 14378 | n/a | ComponentInstance ci; |
|---|
| 14379 | n/a | PicHandle testPict; |
|---|
| 14380 | n/a | Rect testRect; |
|---|
| 14381 | n/a | short testFlags; |
|---|
| 14382 | n/a | #ifndef SCSetTestImagePictHandle |
|---|
| 14383 | n/a | PyMac_PRECHECK(SCSetTestImagePictHandle); |
|---|
| 14384 | n/a | #endif |
|---|
| 14385 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 14386 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14387 | n/a | ResObj_Convert, &testPict, |
|---|
| 14388 | n/a | &testFlags)) |
|---|
| 14389 | n/a | return NULL; |
|---|
| 14390 | n/a | _rv = SCSetTestImagePictHandle(ci, |
|---|
| 14391 | n/a | testPict, |
|---|
| 14392 | n/a | &testRect, |
|---|
| 14393 | n/a | testFlags); |
|---|
| 14394 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14395 | n/a | _rv, |
|---|
| 14396 | n/a | PyMac_BuildRect, &testRect); |
|---|
| 14397 | n/a | return _res; |
|---|
| 14398 | n/a | } |
|---|
| 14399 | n/a | |
|---|
| 14400 | n/a | static PyObject *Qt_SCSetTestImagePictFile(PyObject *_self, PyObject *_args) |
|---|
| 14401 | n/a | { |
|---|
| 14402 | n/a | PyObject *_res = NULL; |
|---|
| 14403 | n/a | ComponentResult _rv; |
|---|
| 14404 | n/a | ComponentInstance ci; |
|---|
| 14405 | n/a | short testFileRef; |
|---|
| 14406 | n/a | Rect testRect; |
|---|
| 14407 | n/a | short testFlags; |
|---|
| 14408 | n/a | #ifndef SCSetTestImagePictFile |
|---|
| 14409 | n/a | PyMac_PRECHECK(SCSetTestImagePictFile); |
|---|
| 14410 | n/a | #endif |
|---|
| 14411 | n/a | if (!PyArg_ParseTuple(_args, "O&hh", |
|---|
| 14412 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14413 | n/a | &testFileRef, |
|---|
| 14414 | n/a | &testFlags)) |
|---|
| 14415 | n/a | return NULL; |
|---|
| 14416 | n/a | _rv = SCSetTestImagePictFile(ci, |
|---|
| 14417 | n/a | testFileRef, |
|---|
| 14418 | n/a | &testRect, |
|---|
| 14419 | n/a | testFlags); |
|---|
| 14420 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14421 | n/a | _rv, |
|---|
| 14422 | n/a | PyMac_BuildRect, &testRect); |
|---|
| 14423 | n/a | return _res; |
|---|
| 14424 | n/a | } |
|---|
| 14425 | n/a | |
|---|
| 14426 | n/a | static PyObject *Qt_SCSetTestImagePixMap(PyObject *_self, PyObject *_args) |
|---|
| 14427 | n/a | { |
|---|
| 14428 | n/a | PyObject *_res = NULL; |
|---|
| 14429 | n/a | ComponentResult _rv; |
|---|
| 14430 | n/a | ComponentInstance ci; |
|---|
| 14431 | n/a | PixMapHandle testPixMap; |
|---|
| 14432 | n/a | Rect testRect; |
|---|
| 14433 | n/a | short testFlags; |
|---|
| 14434 | n/a | #ifndef SCSetTestImagePixMap |
|---|
| 14435 | n/a | PyMac_PRECHECK(SCSetTestImagePixMap); |
|---|
| 14436 | n/a | #endif |
|---|
| 14437 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 14438 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14439 | n/a | ResObj_Convert, &testPixMap, |
|---|
| 14440 | n/a | &testFlags)) |
|---|
| 14441 | n/a | return NULL; |
|---|
| 14442 | n/a | _rv = SCSetTestImagePixMap(ci, |
|---|
| 14443 | n/a | testPixMap, |
|---|
| 14444 | n/a | &testRect, |
|---|
| 14445 | n/a | testFlags); |
|---|
| 14446 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14447 | n/a | _rv, |
|---|
| 14448 | n/a | PyMac_BuildRect, &testRect); |
|---|
| 14449 | n/a | return _res; |
|---|
| 14450 | n/a | } |
|---|
| 14451 | n/a | |
|---|
| 14452 | n/a | static PyObject *Qt_SCGetBestDeviceRect(PyObject *_self, PyObject *_args) |
|---|
| 14453 | n/a | { |
|---|
| 14454 | n/a | PyObject *_res = NULL; |
|---|
| 14455 | n/a | ComponentResult _rv; |
|---|
| 14456 | n/a | ComponentInstance ci; |
|---|
| 14457 | n/a | Rect r; |
|---|
| 14458 | n/a | #ifndef SCGetBestDeviceRect |
|---|
| 14459 | n/a | PyMac_PRECHECK(SCGetBestDeviceRect); |
|---|
| 14460 | n/a | #endif |
|---|
| 14461 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14462 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14463 | n/a | return NULL; |
|---|
| 14464 | n/a | _rv = SCGetBestDeviceRect(ci, |
|---|
| 14465 | n/a | &r); |
|---|
| 14466 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14467 | n/a | _rv, |
|---|
| 14468 | n/a | PyMac_BuildRect, &r); |
|---|
| 14469 | n/a | return _res; |
|---|
| 14470 | n/a | } |
|---|
| 14471 | n/a | |
|---|
| 14472 | n/a | static PyObject *Qt_SCRequestImageSettings(PyObject *_self, PyObject *_args) |
|---|
| 14473 | n/a | { |
|---|
| 14474 | n/a | PyObject *_res = NULL; |
|---|
| 14475 | n/a | ComponentResult _rv; |
|---|
| 14476 | n/a | ComponentInstance ci; |
|---|
| 14477 | n/a | #ifndef SCRequestImageSettings |
|---|
| 14478 | n/a | PyMac_PRECHECK(SCRequestImageSettings); |
|---|
| 14479 | n/a | #endif |
|---|
| 14480 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14481 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14482 | n/a | return NULL; |
|---|
| 14483 | n/a | _rv = SCRequestImageSettings(ci); |
|---|
| 14484 | n/a | _res = Py_BuildValue("l", |
|---|
| 14485 | n/a | _rv); |
|---|
| 14486 | n/a | return _res; |
|---|
| 14487 | n/a | } |
|---|
| 14488 | n/a | |
|---|
| 14489 | n/a | static PyObject *Qt_SCCompressImage(PyObject *_self, PyObject *_args) |
|---|
| 14490 | n/a | { |
|---|
| 14491 | n/a | PyObject *_res = NULL; |
|---|
| 14492 | n/a | ComponentResult _rv; |
|---|
| 14493 | n/a | ComponentInstance ci; |
|---|
| 14494 | n/a | PixMapHandle src; |
|---|
| 14495 | n/a | Rect srcRect; |
|---|
| 14496 | n/a | ImageDescriptionHandle desc; |
|---|
| 14497 | n/a | Handle data; |
|---|
| 14498 | n/a | #ifndef SCCompressImage |
|---|
| 14499 | n/a | PyMac_PRECHECK(SCCompressImage); |
|---|
| 14500 | n/a | #endif |
|---|
| 14501 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 14502 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14503 | n/a | ResObj_Convert, &src, |
|---|
| 14504 | n/a | PyMac_GetRect, &srcRect)) |
|---|
| 14505 | n/a | return NULL; |
|---|
| 14506 | n/a | _rv = SCCompressImage(ci, |
|---|
| 14507 | n/a | src, |
|---|
| 14508 | n/a | &srcRect, |
|---|
| 14509 | n/a | &desc, |
|---|
| 14510 | n/a | &data); |
|---|
| 14511 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 14512 | n/a | _rv, |
|---|
| 14513 | n/a | ResObj_New, desc, |
|---|
| 14514 | n/a | ResObj_New, data); |
|---|
| 14515 | n/a | return _res; |
|---|
| 14516 | n/a | } |
|---|
| 14517 | n/a | |
|---|
| 14518 | n/a | static PyObject *Qt_SCCompressPicture(PyObject *_self, PyObject *_args) |
|---|
| 14519 | n/a | { |
|---|
| 14520 | n/a | PyObject *_res = NULL; |
|---|
| 14521 | n/a | ComponentResult _rv; |
|---|
| 14522 | n/a | ComponentInstance ci; |
|---|
| 14523 | n/a | PicHandle srcPicture; |
|---|
| 14524 | n/a | PicHandle dstPicture; |
|---|
| 14525 | n/a | #ifndef SCCompressPicture |
|---|
| 14526 | n/a | PyMac_PRECHECK(SCCompressPicture); |
|---|
| 14527 | n/a | #endif |
|---|
| 14528 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 14529 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14530 | n/a | ResObj_Convert, &srcPicture, |
|---|
| 14531 | n/a | ResObj_Convert, &dstPicture)) |
|---|
| 14532 | n/a | return NULL; |
|---|
| 14533 | n/a | _rv = SCCompressPicture(ci, |
|---|
| 14534 | n/a | srcPicture, |
|---|
| 14535 | n/a | dstPicture); |
|---|
| 14536 | n/a | _res = Py_BuildValue("l", |
|---|
| 14537 | n/a | _rv); |
|---|
| 14538 | n/a | return _res; |
|---|
| 14539 | n/a | } |
|---|
| 14540 | n/a | |
|---|
| 14541 | n/a | static PyObject *Qt_SCCompressPictureFile(PyObject *_self, PyObject *_args) |
|---|
| 14542 | n/a | { |
|---|
| 14543 | n/a | PyObject *_res = NULL; |
|---|
| 14544 | n/a | ComponentResult _rv; |
|---|
| 14545 | n/a | ComponentInstance ci; |
|---|
| 14546 | n/a | short srcRefNum; |
|---|
| 14547 | n/a | short dstRefNum; |
|---|
| 14548 | n/a | #ifndef SCCompressPictureFile |
|---|
| 14549 | n/a | PyMac_PRECHECK(SCCompressPictureFile); |
|---|
| 14550 | n/a | #endif |
|---|
| 14551 | n/a | if (!PyArg_ParseTuple(_args, "O&hh", |
|---|
| 14552 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14553 | n/a | &srcRefNum, |
|---|
| 14554 | n/a | &dstRefNum)) |
|---|
| 14555 | n/a | return NULL; |
|---|
| 14556 | n/a | _rv = SCCompressPictureFile(ci, |
|---|
| 14557 | n/a | srcRefNum, |
|---|
| 14558 | n/a | dstRefNum); |
|---|
| 14559 | n/a | _res = Py_BuildValue("l", |
|---|
| 14560 | n/a | _rv); |
|---|
| 14561 | n/a | return _res; |
|---|
| 14562 | n/a | } |
|---|
| 14563 | n/a | |
|---|
| 14564 | n/a | static PyObject *Qt_SCRequestSequenceSettings(PyObject *_self, PyObject *_args) |
|---|
| 14565 | n/a | { |
|---|
| 14566 | n/a | PyObject *_res = NULL; |
|---|
| 14567 | n/a | ComponentResult _rv; |
|---|
| 14568 | n/a | ComponentInstance ci; |
|---|
| 14569 | n/a | #ifndef SCRequestSequenceSettings |
|---|
| 14570 | n/a | PyMac_PRECHECK(SCRequestSequenceSettings); |
|---|
| 14571 | n/a | #endif |
|---|
| 14572 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14573 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14574 | n/a | return NULL; |
|---|
| 14575 | n/a | _rv = SCRequestSequenceSettings(ci); |
|---|
| 14576 | n/a | _res = Py_BuildValue("l", |
|---|
| 14577 | n/a | _rv); |
|---|
| 14578 | n/a | return _res; |
|---|
| 14579 | n/a | } |
|---|
| 14580 | n/a | |
|---|
| 14581 | n/a | static PyObject *Qt_SCCompressSequenceBegin(PyObject *_self, PyObject *_args) |
|---|
| 14582 | n/a | { |
|---|
| 14583 | n/a | PyObject *_res = NULL; |
|---|
| 14584 | n/a | ComponentResult _rv; |
|---|
| 14585 | n/a | ComponentInstance ci; |
|---|
| 14586 | n/a | PixMapHandle src; |
|---|
| 14587 | n/a | Rect srcRect; |
|---|
| 14588 | n/a | ImageDescriptionHandle desc; |
|---|
| 14589 | n/a | #ifndef SCCompressSequenceBegin |
|---|
| 14590 | n/a | PyMac_PRECHECK(SCCompressSequenceBegin); |
|---|
| 14591 | n/a | #endif |
|---|
| 14592 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 14593 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14594 | n/a | ResObj_Convert, &src, |
|---|
| 14595 | n/a | PyMac_GetRect, &srcRect)) |
|---|
| 14596 | n/a | return NULL; |
|---|
| 14597 | n/a | _rv = SCCompressSequenceBegin(ci, |
|---|
| 14598 | n/a | src, |
|---|
| 14599 | n/a | &srcRect, |
|---|
| 14600 | n/a | &desc); |
|---|
| 14601 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14602 | n/a | _rv, |
|---|
| 14603 | n/a | ResObj_New, desc); |
|---|
| 14604 | n/a | return _res; |
|---|
| 14605 | n/a | } |
|---|
| 14606 | n/a | |
|---|
| 14607 | n/a | static PyObject *Qt_SCCompressSequenceFrame(PyObject *_self, PyObject *_args) |
|---|
| 14608 | n/a | { |
|---|
| 14609 | n/a | PyObject *_res = NULL; |
|---|
| 14610 | n/a | ComponentResult _rv; |
|---|
| 14611 | n/a | ComponentInstance ci; |
|---|
| 14612 | n/a | PixMapHandle src; |
|---|
| 14613 | n/a | Rect srcRect; |
|---|
| 14614 | n/a | Handle data; |
|---|
| 14615 | n/a | long dataSize; |
|---|
| 14616 | n/a | short notSyncFlag; |
|---|
| 14617 | n/a | #ifndef SCCompressSequenceFrame |
|---|
| 14618 | n/a | PyMac_PRECHECK(SCCompressSequenceFrame); |
|---|
| 14619 | n/a | #endif |
|---|
| 14620 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 14621 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14622 | n/a | ResObj_Convert, &src, |
|---|
| 14623 | n/a | PyMac_GetRect, &srcRect)) |
|---|
| 14624 | n/a | return NULL; |
|---|
| 14625 | n/a | _rv = SCCompressSequenceFrame(ci, |
|---|
| 14626 | n/a | src, |
|---|
| 14627 | n/a | &srcRect, |
|---|
| 14628 | n/a | &data, |
|---|
| 14629 | n/a | &dataSize, |
|---|
| 14630 | n/a | ¬SyncFlag); |
|---|
| 14631 | n/a | _res = Py_BuildValue("lO&lh", |
|---|
| 14632 | n/a | _rv, |
|---|
| 14633 | n/a | ResObj_New, data, |
|---|
| 14634 | n/a | dataSize, |
|---|
| 14635 | n/a | notSyncFlag); |
|---|
| 14636 | n/a | return _res; |
|---|
| 14637 | n/a | } |
|---|
| 14638 | n/a | |
|---|
| 14639 | n/a | static PyObject *Qt_SCCompressSequenceEnd(PyObject *_self, PyObject *_args) |
|---|
| 14640 | n/a | { |
|---|
| 14641 | n/a | PyObject *_res = NULL; |
|---|
| 14642 | n/a | ComponentResult _rv; |
|---|
| 14643 | n/a | ComponentInstance ci; |
|---|
| 14644 | n/a | #ifndef SCCompressSequenceEnd |
|---|
| 14645 | n/a | PyMac_PRECHECK(SCCompressSequenceEnd); |
|---|
| 14646 | n/a | #endif |
|---|
| 14647 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14648 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14649 | n/a | return NULL; |
|---|
| 14650 | n/a | _rv = SCCompressSequenceEnd(ci); |
|---|
| 14651 | n/a | _res = Py_BuildValue("l", |
|---|
| 14652 | n/a | _rv); |
|---|
| 14653 | n/a | return _res; |
|---|
| 14654 | n/a | } |
|---|
| 14655 | n/a | |
|---|
| 14656 | n/a | static PyObject *Qt_SCDefaultPictHandleSettings(PyObject *_self, PyObject *_args) |
|---|
| 14657 | n/a | { |
|---|
| 14658 | n/a | PyObject *_res = NULL; |
|---|
| 14659 | n/a | ComponentResult _rv; |
|---|
| 14660 | n/a | ComponentInstance ci; |
|---|
| 14661 | n/a | PicHandle srcPicture; |
|---|
| 14662 | n/a | short motion; |
|---|
| 14663 | n/a | #ifndef SCDefaultPictHandleSettings |
|---|
| 14664 | n/a | PyMac_PRECHECK(SCDefaultPictHandleSettings); |
|---|
| 14665 | n/a | #endif |
|---|
| 14666 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 14667 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14668 | n/a | ResObj_Convert, &srcPicture, |
|---|
| 14669 | n/a | &motion)) |
|---|
| 14670 | n/a | return NULL; |
|---|
| 14671 | n/a | _rv = SCDefaultPictHandleSettings(ci, |
|---|
| 14672 | n/a | srcPicture, |
|---|
| 14673 | n/a | motion); |
|---|
| 14674 | n/a | _res = Py_BuildValue("l", |
|---|
| 14675 | n/a | _rv); |
|---|
| 14676 | n/a | return _res; |
|---|
| 14677 | n/a | } |
|---|
| 14678 | n/a | |
|---|
| 14679 | n/a | static PyObject *Qt_SCDefaultPictFileSettings(PyObject *_self, PyObject *_args) |
|---|
| 14680 | n/a | { |
|---|
| 14681 | n/a | PyObject *_res = NULL; |
|---|
| 14682 | n/a | ComponentResult _rv; |
|---|
| 14683 | n/a | ComponentInstance ci; |
|---|
| 14684 | n/a | short srcRef; |
|---|
| 14685 | n/a | short motion; |
|---|
| 14686 | n/a | #ifndef SCDefaultPictFileSettings |
|---|
| 14687 | n/a | PyMac_PRECHECK(SCDefaultPictFileSettings); |
|---|
| 14688 | n/a | #endif |
|---|
| 14689 | n/a | if (!PyArg_ParseTuple(_args, "O&hh", |
|---|
| 14690 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14691 | n/a | &srcRef, |
|---|
| 14692 | n/a | &motion)) |
|---|
| 14693 | n/a | return NULL; |
|---|
| 14694 | n/a | _rv = SCDefaultPictFileSettings(ci, |
|---|
| 14695 | n/a | srcRef, |
|---|
| 14696 | n/a | motion); |
|---|
| 14697 | n/a | _res = Py_BuildValue("l", |
|---|
| 14698 | n/a | _rv); |
|---|
| 14699 | n/a | return _res; |
|---|
| 14700 | n/a | } |
|---|
| 14701 | n/a | |
|---|
| 14702 | n/a | static PyObject *Qt_SCDefaultPixMapSettings(PyObject *_self, PyObject *_args) |
|---|
| 14703 | n/a | { |
|---|
| 14704 | n/a | PyObject *_res = NULL; |
|---|
| 14705 | n/a | ComponentResult _rv; |
|---|
| 14706 | n/a | ComponentInstance ci; |
|---|
| 14707 | n/a | PixMapHandle src; |
|---|
| 14708 | n/a | short motion; |
|---|
| 14709 | n/a | #ifndef SCDefaultPixMapSettings |
|---|
| 14710 | n/a | PyMac_PRECHECK(SCDefaultPixMapSettings); |
|---|
| 14711 | n/a | #endif |
|---|
| 14712 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 14713 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14714 | n/a | ResObj_Convert, &src, |
|---|
| 14715 | n/a | &motion)) |
|---|
| 14716 | n/a | return NULL; |
|---|
| 14717 | n/a | _rv = SCDefaultPixMapSettings(ci, |
|---|
| 14718 | n/a | src, |
|---|
| 14719 | n/a | motion); |
|---|
| 14720 | n/a | _res = Py_BuildValue("l", |
|---|
| 14721 | n/a | _rv); |
|---|
| 14722 | n/a | return _res; |
|---|
| 14723 | n/a | } |
|---|
| 14724 | n/a | |
|---|
| 14725 | n/a | static PyObject *Qt_SCGetInfo(PyObject *_self, PyObject *_args) |
|---|
| 14726 | n/a | { |
|---|
| 14727 | n/a | PyObject *_res = NULL; |
|---|
| 14728 | n/a | ComponentResult _rv; |
|---|
| 14729 | n/a | ComponentInstance ci; |
|---|
| 14730 | n/a | OSType infoType; |
|---|
| 14731 | n/a | void * info; |
|---|
| 14732 | n/a | #ifndef SCGetInfo |
|---|
| 14733 | n/a | PyMac_PRECHECK(SCGetInfo); |
|---|
| 14734 | n/a | #endif |
|---|
| 14735 | n/a | if (!PyArg_ParseTuple(_args, "O&O&s", |
|---|
| 14736 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14737 | n/a | PyMac_GetOSType, &infoType, |
|---|
| 14738 | n/a | &info)) |
|---|
| 14739 | n/a | return NULL; |
|---|
| 14740 | n/a | _rv = SCGetInfo(ci, |
|---|
| 14741 | n/a | infoType, |
|---|
| 14742 | n/a | info); |
|---|
| 14743 | n/a | _res = Py_BuildValue("l", |
|---|
| 14744 | n/a | _rv); |
|---|
| 14745 | n/a | return _res; |
|---|
| 14746 | n/a | } |
|---|
| 14747 | n/a | |
|---|
| 14748 | n/a | static PyObject *Qt_SCSetInfo(PyObject *_self, PyObject *_args) |
|---|
| 14749 | n/a | { |
|---|
| 14750 | n/a | PyObject *_res = NULL; |
|---|
| 14751 | n/a | ComponentResult _rv; |
|---|
| 14752 | n/a | ComponentInstance ci; |
|---|
| 14753 | n/a | OSType infoType; |
|---|
| 14754 | n/a | void * info; |
|---|
| 14755 | n/a | #ifndef SCSetInfo |
|---|
| 14756 | n/a | PyMac_PRECHECK(SCSetInfo); |
|---|
| 14757 | n/a | #endif |
|---|
| 14758 | n/a | if (!PyArg_ParseTuple(_args, "O&O&s", |
|---|
| 14759 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14760 | n/a | PyMac_GetOSType, &infoType, |
|---|
| 14761 | n/a | &info)) |
|---|
| 14762 | n/a | return NULL; |
|---|
| 14763 | n/a | _rv = SCSetInfo(ci, |
|---|
| 14764 | n/a | infoType, |
|---|
| 14765 | n/a | info); |
|---|
| 14766 | n/a | _res = Py_BuildValue("l", |
|---|
| 14767 | n/a | _rv); |
|---|
| 14768 | n/a | return _res; |
|---|
| 14769 | n/a | } |
|---|
| 14770 | n/a | |
|---|
| 14771 | n/a | static PyObject *Qt_SCSetCompressFlags(PyObject *_self, PyObject *_args) |
|---|
| 14772 | n/a | { |
|---|
| 14773 | n/a | PyObject *_res = NULL; |
|---|
| 14774 | n/a | ComponentResult _rv; |
|---|
| 14775 | n/a | ComponentInstance ci; |
|---|
| 14776 | n/a | long flags; |
|---|
| 14777 | n/a | #ifndef SCSetCompressFlags |
|---|
| 14778 | n/a | PyMac_PRECHECK(SCSetCompressFlags); |
|---|
| 14779 | n/a | #endif |
|---|
| 14780 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 14781 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14782 | n/a | &flags)) |
|---|
| 14783 | n/a | return NULL; |
|---|
| 14784 | n/a | _rv = SCSetCompressFlags(ci, |
|---|
| 14785 | n/a | flags); |
|---|
| 14786 | n/a | _res = Py_BuildValue("l", |
|---|
| 14787 | n/a | _rv); |
|---|
| 14788 | n/a | return _res; |
|---|
| 14789 | n/a | } |
|---|
| 14790 | n/a | |
|---|
| 14791 | n/a | static PyObject *Qt_SCGetCompressFlags(PyObject *_self, PyObject *_args) |
|---|
| 14792 | n/a | { |
|---|
| 14793 | n/a | PyObject *_res = NULL; |
|---|
| 14794 | n/a | ComponentResult _rv; |
|---|
| 14795 | n/a | ComponentInstance ci; |
|---|
| 14796 | n/a | long flags; |
|---|
| 14797 | n/a | #ifndef SCGetCompressFlags |
|---|
| 14798 | n/a | PyMac_PRECHECK(SCGetCompressFlags); |
|---|
| 14799 | n/a | #endif |
|---|
| 14800 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14801 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14802 | n/a | return NULL; |
|---|
| 14803 | n/a | _rv = SCGetCompressFlags(ci, |
|---|
| 14804 | n/a | &flags); |
|---|
| 14805 | n/a | _res = Py_BuildValue("ll", |
|---|
| 14806 | n/a | _rv, |
|---|
| 14807 | n/a | flags); |
|---|
| 14808 | n/a | return _res; |
|---|
| 14809 | n/a | } |
|---|
| 14810 | n/a | |
|---|
| 14811 | n/a | static PyObject *Qt_SCGetSettingsAsText(PyObject *_self, PyObject *_args) |
|---|
| 14812 | n/a | { |
|---|
| 14813 | n/a | PyObject *_res = NULL; |
|---|
| 14814 | n/a | ComponentResult _rv; |
|---|
| 14815 | n/a | ComponentInstance ci; |
|---|
| 14816 | n/a | Handle text; |
|---|
| 14817 | n/a | #ifndef SCGetSettingsAsText |
|---|
| 14818 | n/a | PyMac_PRECHECK(SCGetSettingsAsText); |
|---|
| 14819 | n/a | #endif |
|---|
| 14820 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14821 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14822 | n/a | return NULL; |
|---|
| 14823 | n/a | _rv = SCGetSettingsAsText(ci, |
|---|
| 14824 | n/a | &text); |
|---|
| 14825 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14826 | n/a | _rv, |
|---|
| 14827 | n/a | ResObj_New, text); |
|---|
| 14828 | n/a | return _res; |
|---|
| 14829 | n/a | } |
|---|
| 14830 | n/a | |
|---|
| 14831 | n/a | static PyObject *Qt_SCAsyncIdle(PyObject *_self, PyObject *_args) |
|---|
| 14832 | n/a | { |
|---|
| 14833 | n/a | PyObject *_res = NULL; |
|---|
| 14834 | n/a | ComponentResult _rv; |
|---|
| 14835 | n/a | ComponentInstance ci; |
|---|
| 14836 | n/a | #ifndef SCAsyncIdle |
|---|
| 14837 | n/a | PyMac_PRECHECK(SCAsyncIdle); |
|---|
| 14838 | n/a | #endif |
|---|
| 14839 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14840 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 14841 | n/a | return NULL; |
|---|
| 14842 | n/a | _rv = SCAsyncIdle(ci); |
|---|
| 14843 | n/a | _res = Py_BuildValue("l", |
|---|
| 14844 | n/a | _rv); |
|---|
| 14845 | n/a | return _res; |
|---|
| 14846 | n/a | } |
|---|
| 14847 | n/a | |
|---|
| 14848 | n/a | static PyObject *Qt_TweenerReset(PyObject *_self, PyObject *_args) |
|---|
| 14849 | n/a | { |
|---|
| 14850 | n/a | PyObject *_res = NULL; |
|---|
| 14851 | n/a | ComponentResult _rv; |
|---|
| 14852 | n/a | TweenerComponent tc; |
|---|
| 14853 | n/a | #ifndef TweenerReset |
|---|
| 14854 | n/a | PyMac_PRECHECK(TweenerReset); |
|---|
| 14855 | n/a | #endif |
|---|
| 14856 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14857 | n/a | CmpInstObj_Convert, &tc)) |
|---|
| 14858 | n/a | return NULL; |
|---|
| 14859 | n/a | _rv = TweenerReset(tc); |
|---|
| 14860 | n/a | _res = Py_BuildValue("l", |
|---|
| 14861 | n/a | _rv); |
|---|
| 14862 | n/a | return _res; |
|---|
| 14863 | n/a | } |
|---|
| 14864 | n/a | |
|---|
| 14865 | n/a | static PyObject *Qt_TCGetSourceRef(PyObject *_self, PyObject *_args) |
|---|
| 14866 | n/a | { |
|---|
| 14867 | n/a | PyObject *_res = NULL; |
|---|
| 14868 | n/a | HandlerError _rv; |
|---|
| 14869 | n/a | MediaHandler mh; |
|---|
| 14870 | n/a | TimeCodeDescriptionHandle tcdH; |
|---|
| 14871 | n/a | UserData srefH; |
|---|
| 14872 | n/a | #ifndef TCGetSourceRef |
|---|
| 14873 | n/a | PyMac_PRECHECK(TCGetSourceRef); |
|---|
| 14874 | n/a | #endif |
|---|
| 14875 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 14876 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 14877 | n/a | ResObj_Convert, &tcdH)) |
|---|
| 14878 | n/a | return NULL; |
|---|
| 14879 | n/a | _rv = TCGetSourceRef(mh, |
|---|
| 14880 | n/a | tcdH, |
|---|
| 14881 | n/a | &srefH); |
|---|
| 14882 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 14883 | n/a | _rv, |
|---|
| 14884 | n/a | UserDataObj_New, srefH); |
|---|
| 14885 | n/a | return _res; |
|---|
| 14886 | n/a | } |
|---|
| 14887 | n/a | |
|---|
| 14888 | n/a | static PyObject *Qt_TCSetSourceRef(PyObject *_self, PyObject *_args) |
|---|
| 14889 | n/a | { |
|---|
| 14890 | n/a | PyObject *_res = NULL; |
|---|
| 14891 | n/a | HandlerError _rv; |
|---|
| 14892 | n/a | MediaHandler mh; |
|---|
| 14893 | n/a | TimeCodeDescriptionHandle tcdH; |
|---|
| 14894 | n/a | UserData srefH; |
|---|
| 14895 | n/a | #ifndef TCSetSourceRef |
|---|
| 14896 | n/a | PyMac_PRECHECK(TCSetSourceRef); |
|---|
| 14897 | n/a | #endif |
|---|
| 14898 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 14899 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 14900 | n/a | ResObj_Convert, &tcdH, |
|---|
| 14901 | n/a | UserDataObj_Convert, &srefH)) |
|---|
| 14902 | n/a | return NULL; |
|---|
| 14903 | n/a | _rv = TCSetSourceRef(mh, |
|---|
| 14904 | n/a | tcdH, |
|---|
| 14905 | n/a | srefH); |
|---|
| 14906 | n/a | _res = Py_BuildValue("l", |
|---|
| 14907 | n/a | _rv); |
|---|
| 14908 | n/a | return _res; |
|---|
| 14909 | n/a | } |
|---|
| 14910 | n/a | |
|---|
| 14911 | n/a | static PyObject *Qt_TCSetTimeCodeFlags(PyObject *_self, PyObject *_args) |
|---|
| 14912 | n/a | { |
|---|
| 14913 | n/a | PyObject *_res = NULL; |
|---|
| 14914 | n/a | HandlerError _rv; |
|---|
| 14915 | n/a | MediaHandler mh; |
|---|
| 14916 | n/a | long flags; |
|---|
| 14917 | n/a | long flagsMask; |
|---|
| 14918 | n/a | #ifndef TCSetTimeCodeFlags |
|---|
| 14919 | n/a | PyMac_PRECHECK(TCSetTimeCodeFlags); |
|---|
| 14920 | n/a | #endif |
|---|
| 14921 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 14922 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 14923 | n/a | &flags, |
|---|
| 14924 | n/a | &flagsMask)) |
|---|
| 14925 | n/a | return NULL; |
|---|
| 14926 | n/a | _rv = TCSetTimeCodeFlags(mh, |
|---|
| 14927 | n/a | flags, |
|---|
| 14928 | n/a | flagsMask); |
|---|
| 14929 | n/a | _res = Py_BuildValue("l", |
|---|
| 14930 | n/a | _rv); |
|---|
| 14931 | n/a | return _res; |
|---|
| 14932 | n/a | } |
|---|
| 14933 | n/a | |
|---|
| 14934 | n/a | static PyObject *Qt_TCGetTimeCodeFlags(PyObject *_self, PyObject *_args) |
|---|
| 14935 | n/a | { |
|---|
| 14936 | n/a | PyObject *_res = NULL; |
|---|
| 14937 | n/a | HandlerError _rv; |
|---|
| 14938 | n/a | MediaHandler mh; |
|---|
| 14939 | n/a | long flags; |
|---|
| 14940 | n/a | #ifndef TCGetTimeCodeFlags |
|---|
| 14941 | n/a | PyMac_PRECHECK(TCGetTimeCodeFlags); |
|---|
| 14942 | n/a | #endif |
|---|
| 14943 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 14944 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 14945 | n/a | return NULL; |
|---|
| 14946 | n/a | _rv = TCGetTimeCodeFlags(mh, |
|---|
| 14947 | n/a | &flags); |
|---|
| 14948 | n/a | _res = Py_BuildValue("ll", |
|---|
| 14949 | n/a | _rv, |
|---|
| 14950 | n/a | flags); |
|---|
| 14951 | n/a | return _res; |
|---|
| 14952 | n/a | } |
|---|
| 14953 | n/a | |
|---|
| 14954 | n/a | static PyObject *Qt_MovieImportHandle(PyObject *_self, PyObject *_args) |
|---|
| 14955 | n/a | { |
|---|
| 14956 | n/a | PyObject *_res = NULL; |
|---|
| 14957 | n/a | ComponentResult _rv; |
|---|
| 14958 | n/a | MovieImportComponent ci; |
|---|
| 14959 | n/a | Handle dataH; |
|---|
| 14960 | n/a | Movie theMovie; |
|---|
| 14961 | n/a | Track targetTrack; |
|---|
| 14962 | n/a | Track usedTrack; |
|---|
| 14963 | n/a | TimeValue atTime; |
|---|
| 14964 | n/a | TimeValue addedDuration; |
|---|
| 14965 | n/a | long inFlags; |
|---|
| 14966 | n/a | long outFlags; |
|---|
| 14967 | n/a | #ifndef MovieImportHandle |
|---|
| 14968 | n/a | PyMac_PRECHECK(MovieImportHandle); |
|---|
| 14969 | n/a | #endif |
|---|
| 14970 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&ll", |
|---|
| 14971 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 14972 | n/a | ResObj_Convert, &dataH, |
|---|
| 14973 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 14974 | n/a | TrackObj_Convert, &targetTrack, |
|---|
| 14975 | n/a | &atTime, |
|---|
| 14976 | n/a | &inFlags)) |
|---|
| 14977 | n/a | return NULL; |
|---|
| 14978 | n/a | _rv = MovieImportHandle(ci, |
|---|
| 14979 | n/a | dataH, |
|---|
| 14980 | n/a | theMovie, |
|---|
| 14981 | n/a | targetTrack, |
|---|
| 14982 | n/a | &usedTrack, |
|---|
| 14983 | n/a | atTime, |
|---|
| 14984 | n/a | &addedDuration, |
|---|
| 14985 | n/a | inFlags, |
|---|
| 14986 | n/a | &outFlags); |
|---|
| 14987 | n/a | _res = Py_BuildValue("lO&ll", |
|---|
| 14988 | n/a | _rv, |
|---|
| 14989 | n/a | TrackObj_New, usedTrack, |
|---|
| 14990 | n/a | addedDuration, |
|---|
| 14991 | n/a | outFlags); |
|---|
| 14992 | n/a | return _res; |
|---|
| 14993 | n/a | } |
|---|
| 14994 | n/a | |
|---|
| 14995 | n/a | static PyObject *Qt_MovieImportFile(PyObject *_self, PyObject *_args) |
|---|
| 14996 | n/a | { |
|---|
| 14997 | n/a | PyObject *_res = NULL; |
|---|
| 14998 | n/a | ComponentResult _rv; |
|---|
| 14999 | n/a | MovieImportComponent ci; |
|---|
| 15000 | n/a | FSSpec theFile; |
|---|
| 15001 | n/a | Movie theMovie; |
|---|
| 15002 | n/a | Track targetTrack; |
|---|
| 15003 | n/a | Track usedTrack; |
|---|
| 15004 | n/a | TimeValue atTime; |
|---|
| 15005 | n/a | TimeValue addedDuration; |
|---|
| 15006 | n/a | long inFlags; |
|---|
| 15007 | n/a | long outFlags; |
|---|
| 15008 | n/a | #ifndef MovieImportFile |
|---|
| 15009 | n/a | PyMac_PRECHECK(MovieImportFile); |
|---|
| 15010 | n/a | #endif |
|---|
| 15011 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&ll", |
|---|
| 15012 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15013 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 15014 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15015 | n/a | TrackObj_Convert, &targetTrack, |
|---|
| 15016 | n/a | &atTime, |
|---|
| 15017 | n/a | &inFlags)) |
|---|
| 15018 | n/a | return NULL; |
|---|
| 15019 | n/a | _rv = MovieImportFile(ci, |
|---|
| 15020 | n/a | &theFile, |
|---|
| 15021 | n/a | theMovie, |
|---|
| 15022 | n/a | targetTrack, |
|---|
| 15023 | n/a | &usedTrack, |
|---|
| 15024 | n/a | atTime, |
|---|
| 15025 | n/a | &addedDuration, |
|---|
| 15026 | n/a | inFlags, |
|---|
| 15027 | n/a | &outFlags); |
|---|
| 15028 | n/a | _res = Py_BuildValue("lO&ll", |
|---|
| 15029 | n/a | _rv, |
|---|
| 15030 | n/a | TrackObj_New, usedTrack, |
|---|
| 15031 | n/a | addedDuration, |
|---|
| 15032 | n/a | outFlags); |
|---|
| 15033 | n/a | return _res; |
|---|
| 15034 | n/a | } |
|---|
| 15035 | n/a | |
|---|
| 15036 | n/a | static PyObject *Qt_MovieImportSetSampleDuration(PyObject *_self, PyObject *_args) |
|---|
| 15037 | n/a | { |
|---|
| 15038 | n/a | PyObject *_res = NULL; |
|---|
| 15039 | n/a | ComponentResult _rv; |
|---|
| 15040 | n/a | MovieImportComponent ci; |
|---|
| 15041 | n/a | TimeValue duration; |
|---|
| 15042 | n/a | TimeScale scale; |
|---|
| 15043 | n/a | #ifndef MovieImportSetSampleDuration |
|---|
| 15044 | n/a | PyMac_PRECHECK(MovieImportSetSampleDuration); |
|---|
| 15045 | n/a | #endif |
|---|
| 15046 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 15047 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15048 | n/a | &duration, |
|---|
| 15049 | n/a | &scale)) |
|---|
| 15050 | n/a | return NULL; |
|---|
| 15051 | n/a | _rv = MovieImportSetSampleDuration(ci, |
|---|
| 15052 | n/a | duration, |
|---|
| 15053 | n/a | scale); |
|---|
| 15054 | n/a | _res = Py_BuildValue("l", |
|---|
| 15055 | n/a | _rv); |
|---|
| 15056 | n/a | return _res; |
|---|
| 15057 | n/a | } |
|---|
| 15058 | n/a | |
|---|
| 15059 | n/a | static PyObject *Qt_MovieImportSetSampleDescription(PyObject *_self, PyObject *_args) |
|---|
| 15060 | n/a | { |
|---|
| 15061 | n/a | PyObject *_res = NULL; |
|---|
| 15062 | n/a | ComponentResult _rv; |
|---|
| 15063 | n/a | MovieImportComponent ci; |
|---|
| 15064 | n/a | SampleDescriptionHandle desc; |
|---|
| 15065 | n/a | OSType mediaType; |
|---|
| 15066 | n/a | #ifndef MovieImportSetSampleDescription |
|---|
| 15067 | n/a | PyMac_PRECHECK(MovieImportSetSampleDescription); |
|---|
| 15068 | n/a | #endif |
|---|
| 15069 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15070 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15071 | n/a | ResObj_Convert, &desc, |
|---|
| 15072 | n/a | PyMac_GetOSType, &mediaType)) |
|---|
| 15073 | n/a | return NULL; |
|---|
| 15074 | n/a | _rv = MovieImportSetSampleDescription(ci, |
|---|
| 15075 | n/a | desc, |
|---|
| 15076 | n/a | mediaType); |
|---|
| 15077 | n/a | _res = Py_BuildValue("l", |
|---|
| 15078 | n/a | _rv); |
|---|
| 15079 | n/a | return _res; |
|---|
| 15080 | n/a | } |
|---|
| 15081 | n/a | |
|---|
| 15082 | n/a | static PyObject *Qt_MovieImportSetMediaFile(PyObject *_self, PyObject *_args) |
|---|
| 15083 | n/a | { |
|---|
| 15084 | n/a | PyObject *_res = NULL; |
|---|
| 15085 | n/a | ComponentResult _rv; |
|---|
| 15086 | n/a | MovieImportComponent ci; |
|---|
| 15087 | n/a | AliasHandle alias; |
|---|
| 15088 | n/a | #ifndef MovieImportSetMediaFile |
|---|
| 15089 | n/a | PyMac_PRECHECK(MovieImportSetMediaFile); |
|---|
| 15090 | n/a | #endif |
|---|
| 15091 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 15092 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15093 | n/a | ResObj_Convert, &alias)) |
|---|
| 15094 | n/a | return NULL; |
|---|
| 15095 | n/a | _rv = MovieImportSetMediaFile(ci, |
|---|
| 15096 | n/a | alias); |
|---|
| 15097 | n/a | _res = Py_BuildValue("l", |
|---|
| 15098 | n/a | _rv); |
|---|
| 15099 | n/a | return _res; |
|---|
| 15100 | n/a | } |
|---|
| 15101 | n/a | |
|---|
| 15102 | n/a | static PyObject *Qt_MovieImportSetDimensions(PyObject *_self, PyObject *_args) |
|---|
| 15103 | n/a | { |
|---|
| 15104 | n/a | PyObject *_res = NULL; |
|---|
| 15105 | n/a | ComponentResult _rv; |
|---|
| 15106 | n/a | MovieImportComponent ci; |
|---|
| 15107 | n/a | Fixed width; |
|---|
| 15108 | n/a | Fixed height; |
|---|
| 15109 | n/a | #ifndef MovieImportSetDimensions |
|---|
| 15110 | n/a | PyMac_PRECHECK(MovieImportSetDimensions); |
|---|
| 15111 | n/a | #endif |
|---|
| 15112 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15113 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15114 | n/a | PyMac_GetFixed, &width, |
|---|
| 15115 | n/a | PyMac_GetFixed, &height)) |
|---|
| 15116 | n/a | return NULL; |
|---|
| 15117 | n/a | _rv = MovieImportSetDimensions(ci, |
|---|
| 15118 | n/a | width, |
|---|
| 15119 | n/a | height); |
|---|
| 15120 | n/a | _res = Py_BuildValue("l", |
|---|
| 15121 | n/a | _rv); |
|---|
| 15122 | n/a | return _res; |
|---|
| 15123 | n/a | } |
|---|
| 15124 | n/a | |
|---|
| 15125 | n/a | static PyObject *Qt_MovieImportSetChunkSize(PyObject *_self, PyObject *_args) |
|---|
| 15126 | n/a | { |
|---|
| 15127 | n/a | PyObject *_res = NULL; |
|---|
| 15128 | n/a | ComponentResult _rv; |
|---|
| 15129 | n/a | MovieImportComponent ci; |
|---|
| 15130 | n/a | long chunkSize; |
|---|
| 15131 | n/a | #ifndef MovieImportSetChunkSize |
|---|
| 15132 | n/a | PyMac_PRECHECK(MovieImportSetChunkSize); |
|---|
| 15133 | n/a | #endif |
|---|
| 15134 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 15135 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15136 | n/a | &chunkSize)) |
|---|
| 15137 | n/a | return NULL; |
|---|
| 15138 | n/a | _rv = MovieImportSetChunkSize(ci, |
|---|
| 15139 | n/a | chunkSize); |
|---|
| 15140 | n/a | _res = Py_BuildValue("l", |
|---|
| 15141 | n/a | _rv); |
|---|
| 15142 | n/a | return _res; |
|---|
| 15143 | n/a | } |
|---|
| 15144 | n/a | |
|---|
| 15145 | n/a | static PyObject *Qt_MovieImportSetAuxiliaryData(PyObject *_self, PyObject *_args) |
|---|
| 15146 | n/a | { |
|---|
| 15147 | n/a | PyObject *_res = NULL; |
|---|
| 15148 | n/a | ComponentResult _rv; |
|---|
| 15149 | n/a | MovieImportComponent ci; |
|---|
| 15150 | n/a | Handle data; |
|---|
| 15151 | n/a | OSType handleType; |
|---|
| 15152 | n/a | #ifndef MovieImportSetAuxiliaryData |
|---|
| 15153 | n/a | PyMac_PRECHECK(MovieImportSetAuxiliaryData); |
|---|
| 15154 | n/a | #endif |
|---|
| 15155 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15156 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15157 | n/a | ResObj_Convert, &data, |
|---|
| 15158 | n/a | PyMac_GetOSType, &handleType)) |
|---|
| 15159 | n/a | return NULL; |
|---|
| 15160 | n/a | _rv = MovieImportSetAuxiliaryData(ci, |
|---|
| 15161 | n/a | data, |
|---|
| 15162 | n/a | handleType); |
|---|
| 15163 | n/a | _res = Py_BuildValue("l", |
|---|
| 15164 | n/a | _rv); |
|---|
| 15165 | n/a | return _res; |
|---|
| 15166 | n/a | } |
|---|
| 15167 | n/a | |
|---|
| 15168 | n/a | static PyObject *Qt_MovieImportSetFromScrap(PyObject *_self, PyObject *_args) |
|---|
| 15169 | n/a | { |
|---|
| 15170 | n/a | PyObject *_res = NULL; |
|---|
| 15171 | n/a | ComponentResult _rv; |
|---|
| 15172 | n/a | MovieImportComponent ci; |
|---|
| 15173 | n/a | Boolean fromScrap; |
|---|
| 15174 | n/a | #ifndef MovieImportSetFromScrap |
|---|
| 15175 | n/a | PyMac_PRECHECK(MovieImportSetFromScrap); |
|---|
| 15176 | n/a | #endif |
|---|
| 15177 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 15178 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15179 | n/a | &fromScrap)) |
|---|
| 15180 | n/a | return NULL; |
|---|
| 15181 | n/a | _rv = MovieImportSetFromScrap(ci, |
|---|
| 15182 | n/a | fromScrap); |
|---|
| 15183 | n/a | _res = Py_BuildValue("l", |
|---|
| 15184 | n/a | _rv); |
|---|
| 15185 | n/a | return _res; |
|---|
| 15186 | n/a | } |
|---|
| 15187 | n/a | |
|---|
| 15188 | n/a | static PyObject *Qt_MovieImportDoUserDialog(PyObject *_self, PyObject *_args) |
|---|
| 15189 | n/a | { |
|---|
| 15190 | n/a | PyObject *_res = NULL; |
|---|
| 15191 | n/a | ComponentResult _rv; |
|---|
| 15192 | n/a | MovieImportComponent ci; |
|---|
| 15193 | n/a | FSSpec theFile; |
|---|
| 15194 | n/a | Handle theData; |
|---|
| 15195 | n/a | Boolean canceled; |
|---|
| 15196 | n/a | #ifndef MovieImportDoUserDialog |
|---|
| 15197 | n/a | PyMac_PRECHECK(MovieImportDoUserDialog); |
|---|
| 15198 | n/a | #endif |
|---|
| 15199 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15200 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15201 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 15202 | n/a | ResObj_Convert, &theData)) |
|---|
| 15203 | n/a | return NULL; |
|---|
| 15204 | n/a | _rv = MovieImportDoUserDialog(ci, |
|---|
| 15205 | n/a | &theFile, |
|---|
| 15206 | n/a | theData, |
|---|
| 15207 | n/a | &canceled); |
|---|
| 15208 | n/a | _res = Py_BuildValue("lb", |
|---|
| 15209 | n/a | _rv, |
|---|
| 15210 | n/a | canceled); |
|---|
| 15211 | n/a | return _res; |
|---|
| 15212 | n/a | } |
|---|
| 15213 | n/a | |
|---|
| 15214 | n/a | static PyObject *Qt_MovieImportSetDuration(PyObject *_self, PyObject *_args) |
|---|
| 15215 | n/a | { |
|---|
| 15216 | n/a | PyObject *_res = NULL; |
|---|
| 15217 | n/a | ComponentResult _rv; |
|---|
| 15218 | n/a | MovieImportComponent ci; |
|---|
| 15219 | n/a | TimeValue duration; |
|---|
| 15220 | n/a | #ifndef MovieImportSetDuration |
|---|
| 15221 | n/a | PyMac_PRECHECK(MovieImportSetDuration); |
|---|
| 15222 | n/a | #endif |
|---|
| 15223 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 15224 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15225 | n/a | &duration)) |
|---|
| 15226 | n/a | return NULL; |
|---|
| 15227 | n/a | _rv = MovieImportSetDuration(ci, |
|---|
| 15228 | n/a | duration); |
|---|
| 15229 | n/a | _res = Py_BuildValue("l", |
|---|
| 15230 | n/a | _rv); |
|---|
| 15231 | n/a | return _res; |
|---|
| 15232 | n/a | } |
|---|
| 15233 | n/a | |
|---|
| 15234 | n/a | static PyObject *Qt_MovieImportGetAuxiliaryDataType(PyObject *_self, PyObject *_args) |
|---|
| 15235 | n/a | { |
|---|
| 15236 | n/a | PyObject *_res = NULL; |
|---|
| 15237 | n/a | ComponentResult _rv; |
|---|
| 15238 | n/a | MovieImportComponent ci; |
|---|
| 15239 | n/a | OSType auxType; |
|---|
| 15240 | n/a | #ifndef MovieImportGetAuxiliaryDataType |
|---|
| 15241 | n/a | PyMac_PRECHECK(MovieImportGetAuxiliaryDataType); |
|---|
| 15242 | n/a | #endif |
|---|
| 15243 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15244 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15245 | n/a | return NULL; |
|---|
| 15246 | n/a | _rv = MovieImportGetAuxiliaryDataType(ci, |
|---|
| 15247 | n/a | &auxType); |
|---|
| 15248 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15249 | n/a | _rv, |
|---|
| 15250 | n/a | PyMac_BuildOSType, auxType); |
|---|
| 15251 | n/a | return _res; |
|---|
| 15252 | n/a | } |
|---|
| 15253 | n/a | |
|---|
| 15254 | n/a | static PyObject *Qt_MovieImportValidate(PyObject *_self, PyObject *_args) |
|---|
| 15255 | n/a | { |
|---|
| 15256 | n/a | PyObject *_res = NULL; |
|---|
| 15257 | n/a | ComponentResult _rv; |
|---|
| 15258 | n/a | MovieImportComponent ci; |
|---|
| 15259 | n/a | FSSpec theFile; |
|---|
| 15260 | n/a | Handle theData; |
|---|
| 15261 | n/a | Boolean valid; |
|---|
| 15262 | n/a | #ifndef MovieImportValidate |
|---|
| 15263 | n/a | PyMac_PRECHECK(MovieImportValidate); |
|---|
| 15264 | n/a | #endif |
|---|
| 15265 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15266 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15267 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 15268 | n/a | ResObj_Convert, &theData)) |
|---|
| 15269 | n/a | return NULL; |
|---|
| 15270 | n/a | _rv = MovieImportValidate(ci, |
|---|
| 15271 | n/a | &theFile, |
|---|
| 15272 | n/a | theData, |
|---|
| 15273 | n/a | &valid); |
|---|
| 15274 | n/a | _res = Py_BuildValue("lb", |
|---|
| 15275 | n/a | _rv, |
|---|
| 15276 | n/a | valid); |
|---|
| 15277 | n/a | return _res; |
|---|
| 15278 | n/a | } |
|---|
| 15279 | n/a | |
|---|
| 15280 | n/a | static PyObject *Qt_MovieImportGetFileType(PyObject *_self, PyObject *_args) |
|---|
| 15281 | n/a | { |
|---|
| 15282 | n/a | PyObject *_res = NULL; |
|---|
| 15283 | n/a | ComponentResult _rv; |
|---|
| 15284 | n/a | MovieImportComponent ci; |
|---|
| 15285 | n/a | OSType fileType; |
|---|
| 15286 | n/a | #ifndef MovieImportGetFileType |
|---|
| 15287 | n/a | PyMac_PRECHECK(MovieImportGetFileType); |
|---|
| 15288 | n/a | #endif |
|---|
| 15289 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15290 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15291 | n/a | return NULL; |
|---|
| 15292 | n/a | _rv = MovieImportGetFileType(ci, |
|---|
| 15293 | n/a | &fileType); |
|---|
| 15294 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15295 | n/a | _rv, |
|---|
| 15296 | n/a | PyMac_BuildOSType, fileType); |
|---|
| 15297 | n/a | return _res; |
|---|
| 15298 | n/a | } |
|---|
| 15299 | n/a | |
|---|
| 15300 | n/a | static PyObject *Qt_MovieImportDataRef(PyObject *_self, PyObject *_args) |
|---|
| 15301 | n/a | { |
|---|
| 15302 | n/a | PyObject *_res = NULL; |
|---|
| 15303 | n/a | ComponentResult _rv; |
|---|
| 15304 | n/a | MovieImportComponent ci; |
|---|
| 15305 | n/a | Handle dataRef; |
|---|
| 15306 | n/a | OSType dataRefType; |
|---|
| 15307 | n/a | Movie theMovie; |
|---|
| 15308 | n/a | Track targetTrack; |
|---|
| 15309 | n/a | Track usedTrack; |
|---|
| 15310 | n/a | TimeValue atTime; |
|---|
| 15311 | n/a | TimeValue addedDuration; |
|---|
| 15312 | n/a | long inFlags; |
|---|
| 15313 | n/a | long outFlags; |
|---|
| 15314 | n/a | #ifndef MovieImportDataRef |
|---|
| 15315 | n/a | PyMac_PRECHECK(MovieImportDataRef); |
|---|
| 15316 | n/a | #endif |
|---|
| 15317 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&O&ll", |
|---|
| 15318 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15319 | n/a | ResObj_Convert, &dataRef, |
|---|
| 15320 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 15321 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15322 | n/a | TrackObj_Convert, &targetTrack, |
|---|
| 15323 | n/a | &atTime, |
|---|
| 15324 | n/a | &inFlags)) |
|---|
| 15325 | n/a | return NULL; |
|---|
| 15326 | n/a | _rv = MovieImportDataRef(ci, |
|---|
| 15327 | n/a | dataRef, |
|---|
| 15328 | n/a | dataRefType, |
|---|
| 15329 | n/a | theMovie, |
|---|
| 15330 | n/a | targetTrack, |
|---|
| 15331 | n/a | &usedTrack, |
|---|
| 15332 | n/a | atTime, |
|---|
| 15333 | n/a | &addedDuration, |
|---|
| 15334 | n/a | inFlags, |
|---|
| 15335 | n/a | &outFlags); |
|---|
| 15336 | n/a | _res = Py_BuildValue("lO&ll", |
|---|
| 15337 | n/a | _rv, |
|---|
| 15338 | n/a | TrackObj_New, usedTrack, |
|---|
| 15339 | n/a | addedDuration, |
|---|
| 15340 | n/a | outFlags); |
|---|
| 15341 | n/a | return _res; |
|---|
| 15342 | n/a | } |
|---|
| 15343 | n/a | |
|---|
| 15344 | n/a | static PyObject *Qt_MovieImportGetSampleDescription(PyObject *_self, PyObject *_args) |
|---|
| 15345 | n/a | { |
|---|
| 15346 | n/a | PyObject *_res = NULL; |
|---|
| 15347 | n/a | ComponentResult _rv; |
|---|
| 15348 | n/a | MovieImportComponent ci; |
|---|
| 15349 | n/a | SampleDescriptionHandle desc; |
|---|
| 15350 | n/a | OSType mediaType; |
|---|
| 15351 | n/a | #ifndef MovieImportGetSampleDescription |
|---|
| 15352 | n/a | PyMac_PRECHECK(MovieImportGetSampleDescription); |
|---|
| 15353 | n/a | #endif |
|---|
| 15354 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15355 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15356 | n/a | return NULL; |
|---|
| 15357 | n/a | _rv = MovieImportGetSampleDescription(ci, |
|---|
| 15358 | n/a | &desc, |
|---|
| 15359 | n/a | &mediaType); |
|---|
| 15360 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 15361 | n/a | _rv, |
|---|
| 15362 | n/a | ResObj_New, desc, |
|---|
| 15363 | n/a | PyMac_BuildOSType, mediaType); |
|---|
| 15364 | n/a | return _res; |
|---|
| 15365 | n/a | } |
|---|
| 15366 | n/a | |
|---|
| 15367 | n/a | static PyObject *Qt_MovieImportSetOffsetAndLimit(PyObject *_self, PyObject *_args) |
|---|
| 15368 | n/a | { |
|---|
| 15369 | n/a | PyObject *_res = NULL; |
|---|
| 15370 | n/a | ComponentResult _rv; |
|---|
| 15371 | n/a | MovieImportComponent ci; |
|---|
| 15372 | n/a | unsigned long offset; |
|---|
| 15373 | n/a | unsigned long limit; |
|---|
| 15374 | n/a | #ifndef MovieImportSetOffsetAndLimit |
|---|
| 15375 | n/a | PyMac_PRECHECK(MovieImportSetOffsetAndLimit); |
|---|
| 15376 | n/a | #endif |
|---|
| 15377 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 15378 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15379 | n/a | &offset, |
|---|
| 15380 | n/a | &limit)) |
|---|
| 15381 | n/a | return NULL; |
|---|
| 15382 | n/a | _rv = MovieImportSetOffsetAndLimit(ci, |
|---|
| 15383 | n/a | offset, |
|---|
| 15384 | n/a | limit); |
|---|
| 15385 | n/a | _res = Py_BuildValue("l", |
|---|
| 15386 | n/a | _rv); |
|---|
| 15387 | n/a | return _res; |
|---|
| 15388 | n/a | } |
|---|
| 15389 | n/a | |
|---|
| 15390 | n/a | static PyObject *Qt_MovieImportSetOffsetAndLimit64(PyObject *_self, PyObject *_args) |
|---|
| 15391 | n/a | { |
|---|
| 15392 | n/a | PyObject *_res = NULL; |
|---|
| 15393 | n/a | ComponentResult _rv; |
|---|
| 15394 | n/a | MovieImportComponent ci; |
|---|
| 15395 | n/a | wide offset; |
|---|
| 15396 | n/a | wide limit; |
|---|
| 15397 | n/a | #ifndef MovieImportSetOffsetAndLimit64 |
|---|
| 15398 | n/a | PyMac_PRECHECK(MovieImportSetOffsetAndLimit64); |
|---|
| 15399 | n/a | #endif |
|---|
| 15400 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15401 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15402 | n/a | PyMac_Getwide, &offset, |
|---|
| 15403 | n/a | PyMac_Getwide, &limit)) |
|---|
| 15404 | n/a | return NULL; |
|---|
| 15405 | n/a | _rv = MovieImportSetOffsetAndLimit64(ci, |
|---|
| 15406 | n/a | &offset, |
|---|
| 15407 | n/a | &limit); |
|---|
| 15408 | n/a | _res = Py_BuildValue("l", |
|---|
| 15409 | n/a | _rv); |
|---|
| 15410 | n/a | return _res; |
|---|
| 15411 | n/a | } |
|---|
| 15412 | n/a | |
|---|
| 15413 | n/a | static PyObject *Qt_MovieImportIdle(PyObject *_self, PyObject *_args) |
|---|
| 15414 | n/a | { |
|---|
| 15415 | n/a | PyObject *_res = NULL; |
|---|
| 15416 | n/a | ComponentResult _rv; |
|---|
| 15417 | n/a | MovieImportComponent ci; |
|---|
| 15418 | n/a | long inFlags; |
|---|
| 15419 | n/a | long outFlags; |
|---|
| 15420 | n/a | #ifndef MovieImportIdle |
|---|
| 15421 | n/a | PyMac_PRECHECK(MovieImportIdle); |
|---|
| 15422 | n/a | #endif |
|---|
| 15423 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 15424 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15425 | n/a | &inFlags)) |
|---|
| 15426 | n/a | return NULL; |
|---|
| 15427 | n/a | _rv = MovieImportIdle(ci, |
|---|
| 15428 | n/a | inFlags, |
|---|
| 15429 | n/a | &outFlags); |
|---|
| 15430 | n/a | _res = Py_BuildValue("ll", |
|---|
| 15431 | n/a | _rv, |
|---|
| 15432 | n/a | outFlags); |
|---|
| 15433 | n/a | return _res; |
|---|
| 15434 | n/a | } |
|---|
| 15435 | n/a | |
|---|
| 15436 | n/a | static PyObject *Qt_MovieImportValidateDataRef(PyObject *_self, PyObject *_args) |
|---|
| 15437 | n/a | { |
|---|
| 15438 | n/a | PyObject *_res = NULL; |
|---|
| 15439 | n/a | ComponentResult _rv; |
|---|
| 15440 | n/a | MovieImportComponent ci; |
|---|
| 15441 | n/a | Handle dataRef; |
|---|
| 15442 | n/a | OSType dataRefType; |
|---|
| 15443 | n/a | UInt8 valid; |
|---|
| 15444 | n/a | #ifndef MovieImportValidateDataRef |
|---|
| 15445 | n/a | PyMac_PRECHECK(MovieImportValidateDataRef); |
|---|
| 15446 | n/a | #endif |
|---|
| 15447 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15448 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15449 | n/a | ResObj_Convert, &dataRef, |
|---|
| 15450 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 15451 | n/a | return NULL; |
|---|
| 15452 | n/a | _rv = MovieImportValidateDataRef(ci, |
|---|
| 15453 | n/a | dataRef, |
|---|
| 15454 | n/a | dataRefType, |
|---|
| 15455 | n/a | &valid); |
|---|
| 15456 | n/a | _res = Py_BuildValue("lb", |
|---|
| 15457 | n/a | _rv, |
|---|
| 15458 | n/a | valid); |
|---|
| 15459 | n/a | return _res; |
|---|
| 15460 | n/a | } |
|---|
| 15461 | n/a | |
|---|
| 15462 | n/a | static PyObject *Qt_MovieImportGetLoadState(PyObject *_self, PyObject *_args) |
|---|
| 15463 | n/a | { |
|---|
| 15464 | n/a | PyObject *_res = NULL; |
|---|
| 15465 | n/a | ComponentResult _rv; |
|---|
| 15466 | n/a | MovieImportComponent ci; |
|---|
| 15467 | n/a | long importerLoadState; |
|---|
| 15468 | n/a | #ifndef MovieImportGetLoadState |
|---|
| 15469 | n/a | PyMac_PRECHECK(MovieImportGetLoadState); |
|---|
| 15470 | n/a | #endif |
|---|
| 15471 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15472 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15473 | n/a | return NULL; |
|---|
| 15474 | n/a | _rv = MovieImportGetLoadState(ci, |
|---|
| 15475 | n/a | &importerLoadState); |
|---|
| 15476 | n/a | _res = Py_BuildValue("ll", |
|---|
| 15477 | n/a | _rv, |
|---|
| 15478 | n/a | importerLoadState); |
|---|
| 15479 | n/a | return _res; |
|---|
| 15480 | n/a | } |
|---|
| 15481 | n/a | |
|---|
| 15482 | n/a | static PyObject *Qt_MovieImportGetMaxLoadedTime(PyObject *_self, PyObject *_args) |
|---|
| 15483 | n/a | { |
|---|
| 15484 | n/a | PyObject *_res = NULL; |
|---|
| 15485 | n/a | ComponentResult _rv; |
|---|
| 15486 | n/a | MovieImportComponent ci; |
|---|
| 15487 | n/a | TimeValue time; |
|---|
| 15488 | n/a | #ifndef MovieImportGetMaxLoadedTime |
|---|
| 15489 | n/a | PyMac_PRECHECK(MovieImportGetMaxLoadedTime); |
|---|
| 15490 | n/a | #endif |
|---|
| 15491 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15492 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15493 | n/a | return NULL; |
|---|
| 15494 | n/a | _rv = MovieImportGetMaxLoadedTime(ci, |
|---|
| 15495 | n/a | &time); |
|---|
| 15496 | n/a | _res = Py_BuildValue("ll", |
|---|
| 15497 | n/a | _rv, |
|---|
| 15498 | n/a | time); |
|---|
| 15499 | n/a | return _res; |
|---|
| 15500 | n/a | } |
|---|
| 15501 | n/a | |
|---|
| 15502 | n/a | static PyObject *Qt_MovieImportEstimateCompletionTime(PyObject *_self, PyObject *_args) |
|---|
| 15503 | n/a | { |
|---|
| 15504 | n/a | PyObject *_res = NULL; |
|---|
| 15505 | n/a | ComponentResult _rv; |
|---|
| 15506 | n/a | MovieImportComponent ci; |
|---|
| 15507 | n/a | TimeRecord time; |
|---|
| 15508 | n/a | #ifndef MovieImportEstimateCompletionTime |
|---|
| 15509 | n/a | PyMac_PRECHECK(MovieImportEstimateCompletionTime); |
|---|
| 15510 | n/a | #endif |
|---|
| 15511 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15512 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15513 | n/a | return NULL; |
|---|
| 15514 | n/a | _rv = MovieImportEstimateCompletionTime(ci, |
|---|
| 15515 | n/a | &time); |
|---|
| 15516 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15517 | n/a | _rv, |
|---|
| 15518 | n/a | QtTimeRecord_New, &time); |
|---|
| 15519 | n/a | return _res; |
|---|
| 15520 | n/a | } |
|---|
| 15521 | n/a | |
|---|
| 15522 | n/a | static PyObject *Qt_MovieImportSetDontBlock(PyObject *_self, PyObject *_args) |
|---|
| 15523 | n/a | { |
|---|
| 15524 | n/a | PyObject *_res = NULL; |
|---|
| 15525 | n/a | ComponentResult _rv; |
|---|
| 15526 | n/a | MovieImportComponent ci; |
|---|
| 15527 | n/a | Boolean dontBlock; |
|---|
| 15528 | n/a | #ifndef MovieImportSetDontBlock |
|---|
| 15529 | n/a | PyMac_PRECHECK(MovieImportSetDontBlock); |
|---|
| 15530 | n/a | #endif |
|---|
| 15531 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 15532 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15533 | n/a | &dontBlock)) |
|---|
| 15534 | n/a | return NULL; |
|---|
| 15535 | n/a | _rv = MovieImportSetDontBlock(ci, |
|---|
| 15536 | n/a | dontBlock); |
|---|
| 15537 | n/a | _res = Py_BuildValue("l", |
|---|
| 15538 | n/a | _rv); |
|---|
| 15539 | n/a | return _res; |
|---|
| 15540 | n/a | } |
|---|
| 15541 | n/a | |
|---|
| 15542 | n/a | static PyObject *Qt_MovieImportGetDontBlock(PyObject *_self, PyObject *_args) |
|---|
| 15543 | n/a | { |
|---|
| 15544 | n/a | PyObject *_res = NULL; |
|---|
| 15545 | n/a | ComponentResult _rv; |
|---|
| 15546 | n/a | MovieImportComponent ci; |
|---|
| 15547 | n/a | Boolean willBlock; |
|---|
| 15548 | n/a | #ifndef MovieImportGetDontBlock |
|---|
| 15549 | n/a | PyMac_PRECHECK(MovieImportGetDontBlock); |
|---|
| 15550 | n/a | #endif |
|---|
| 15551 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15552 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15553 | n/a | return NULL; |
|---|
| 15554 | n/a | _rv = MovieImportGetDontBlock(ci, |
|---|
| 15555 | n/a | &willBlock); |
|---|
| 15556 | n/a | _res = Py_BuildValue("lb", |
|---|
| 15557 | n/a | _rv, |
|---|
| 15558 | n/a | willBlock); |
|---|
| 15559 | n/a | return _res; |
|---|
| 15560 | n/a | } |
|---|
| 15561 | n/a | |
|---|
| 15562 | n/a | static PyObject *Qt_MovieImportSetIdleManager(PyObject *_self, PyObject *_args) |
|---|
| 15563 | n/a | { |
|---|
| 15564 | n/a | PyObject *_res = NULL; |
|---|
| 15565 | n/a | ComponentResult _rv; |
|---|
| 15566 | n/a | MovieImportComponent ci; |
|---|
| 15567 | n/a | IdleManager im; |
|---|
| 15568 | n/a | #ifndef MovieImportSetIdleManager |
|---|
| 15569 | n/a | PyMac_PRECHECK(MovieImportSetIdleManager); |
|---|
| 15570 | n/a | #endif |
|---|
| 15571 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 15572 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15573 | n/a | IdleManagerObj_Convert, &im)) |
|---|
| 15574 | n/a | return NULL; |
|---|
| 15575 | n/a | _rv = MovieImportSetIdleManager(ci, |
|---|
| 15576 | n/a | im); |
|---|
| 15577 | n/a | _res = Py_BuildValue("l", |
|---|
| 15578 | n/a | _rv); |
|---|
| 15579 | n/a | return _res; |
|---|
| 15580 | n/a | } |
|---|
| 15581 | n/a | |
|---|
| 15582 | n/a | static PyObject *Qt_MovieImportSetNewMovieFlags(PyObject *_self, PyObject *_args) |
|---|
| 15583 | n/a | { |
|---|
| 15584 | n/a | PyObject *_res = NULL; |
|---|
| 15585 | n/a | ComponentResult _rv; |
|---|
| 15586 | n/a | MovieImportComponent ci; |
|---|
| 15587 | n/a | long newMovieFlags; |
|---|
| 15588 | n/a | #ifndef MovieImportSetNewMovieFlags |
|---|
| 15589 | n/a | PyMac_PRECHECK(MovieImportSetNewMovieFlags); |
|---|
| 15590 | n/a | #endif |
|---|
| 15591 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 15592 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15593 | n/a | &newMovieFlags)) |
|---|
| 15594 | n/a | return NULL; |
|---|
| 15595 | n/a | _rv = MovieImportSetNewMovieFlags(ci, |
|---|
| 15596 | n/a | newMovieFlags); |
|---|
| 15597 | n/a | _res = Py_BuildValue("l", |
|---|
| 15598 | n/a | _rv); |
|---|
| 15599 | n/a | return _res; |
|---|
| 15600 | n/a | } |
|---|
| 15601 | n/a | |
|---|
| 15602 | n/a | static PyObject *Qt_MovieImportGetDestinationMediaType(PyObject *_self, PyObject *_args) |
|---|
| 15603 | n/a | { |
|---|
| 15604 | n/a | PyObject *_res = NULL; |
|---|
| 15605 | n/a | ComponentResult _rv; |
|---|
| 15606 | n/a | MovieImportComponent ci; |
|---|
| 15607 | n/a | OSType mediaType; |
|---|
| 15608 | n/a | #ifndef MovieImportGetDestinationMediaType |
|---|
| 15609 | n/a | PyMac_PRECHECK(MovieImportGetDestinationMediaType); |
|---|
| 15610 | n/a | #endif |
|---|
| 15611 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15612 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15613 | n/a | return NULL; |
|---|
| 15614 | n/a | _rv = MovieImportGetDestinationMediaType(ci, |
|---|
| 15615 | n/a | &mediaType); |
|---|
| 15616 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15617 | n/a | _rv, |
|---|
| 15618 | n/a | PyMac_BuildOSType, mediaType); |
|---|
| 15619 | n/a | return _res; |
|---|
| 15620 | n/a | } |
|---|
| 15621 | n/a | |
|---|
| 15622 | n/a | static PyObject *Qt_MovieExportToHandle(PyObject *_self, PyObject *_args) |
|---|
| 15623 | n/a | { |
|---|
| 15624 | n/a | PyObject *_res = NULL; |
|---|
| 15625 | n/a | ComponentResult _rv; |
|---|
| 15626 | n/a | MovieExportComponent ci; |
|---|
| 15627 | n/a | Handle dataH; |
|---|
| 15628 | n/a | Movie theMovie; |
|---|
| 15629 | n/a | Track onlyThisTrack; |
|---|
| 15630 | n/a | TimeValue startTime; |
|---|
| 15631 | n/a | TimeValue duration; |
|---|
| 15632 | n/a | #ifndef MovieExportToHandle |
|---|
| 15633 | n/a | PyMac_PRECHECK(MovieExportToHandle); |
|---|
| 15634 | n/a | #endif |
|---|
| 15635 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&ll", |
|---|
| 15636 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15637 | n/a | ResObj_Convert, &dataH, |
|---|
| 15638 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15639 | n/a | TrackObj_Convert, &onlyThisTrack, |
|---|
| 15640 | n/a | &startTime, |
|---|
| 15641 | n/a | &duration)) |
|---|
| 15642 | n/a | return NULL; |
|---|
| 15643 | n/a | _rv = MovieExportToHandle(ci, |
|---|
| 15644 | n/a | dataH, |
|---|
| 15645 | n/a | theMovie, |
|---|
| 15646 | n/a | onlyThisTrack, |
|---|
| 15647 | n/a | startTime, |
|---|
| 15648 | n/a | duration); |
|---|
| 15649 | n/a | _res = Py_BuildValue("l", |
|---|
| 15650 | n/a | _rv); |
|---|
| 15651 | n/a | return _res; |
|---|
| 15652 | n/a | } |
|---|
| 15653 | n/a | |
|---|
| 15654 | n/a | static PyObject *Qt_MovieExportToFile(PyObject *_self, PyObject *_args) |
|---|
| 15655 | n/a | { |
|---|
| 15656 | n/a | PyObject *_res = NULL; |
|---|
| 15657 | n/a | ComponentResult _rv; |
|---|
| 15658 | n/a | MovieExportComponent ci; |
|---|
| 15659 | n/a | FSSpec theFile; |
|---|
| 15660 | n/a | Movie theMovie; |
|---|
| 15661 | n/a | Track onlyThisTrack; |
|---|
| 15662 | n/a | TimeValue startTime; |
|---|
| 15663 | n/a | TimeValue duration; |
|---|
| 15664 | n/a | #ifndef MovieExportToFile |
|---|
| 15665 | n/a | PyMac_PRECHECK(MovieExportToFile); |
|---|
| 15666 | n/a | #endif |
|---|
| 15667 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&ll", |
|---|
| 15668 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15669 | n/a | PyMac_GetFSSpec, &theFile, |
|---|
| 15670 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15671 | n/a | TrackObj_Convert, &onlyThisTrack, |
|---|
| 15672 | n/a | &startTime, |
|---|
| 15673 | n/a | &duration)) |
|---|
| 15674 | n/a | return NULL; |
|---|
| 15675 | n/a | _rv = MovieExportToFile(ci, |
|---|
| 15676 | n/a | &theFile, |
|---|
| 15677 | n/a | theMovie, |
|---|
| 15678 | n/a | onlyThisTrack, |
|---|
| 15679 | n/a | startTime, |
|---|
| 15680 | n/a | duration); |
|---|
| 15681 | n/a | _res = Py_BuildValue("l", |
|---|
| 15682 | n/a | _rv); |
|---|
| 15683 | n/a | return _res; |
|---|
| 15684 | n/a | } |
|---|
| 15685 | n/a | |
|---|
| 15686 | n/a | static PyObject *Qt_MovieExportGetAuxiliaryData(PyObject *_self, PyObject *_args) |
|---|
| 15687 | n/a | { |
|---|
| 15688 | n/a | PyObject *_res = NULL; |
|---|
| 15689 | n/a | ComponentResult _rv; |
|---|
| 15690 | n/a | MovieExportComponent ci; |
|---|
| 15691 | n/a | Handle dataH; |
|---|
| 15692 | n/a | OSType handleType; |
|---|
| 15693 | n/a | #ifndef MovieExportGetAuxiliaryData |
|---|
| 15694 | n/a | PyMac_PRECHECK(MovieExportGetAuxiliaryData); |
|---|
| 15695 | n/a | #endif |
|---|
| 15696 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 15697 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15698 | n/a | ResObj_Convert, &dataH)) |
|---|
| 15699 | n/a | return NULL; |
|---|
| 15700 | n/a | _rv = MovieExportGetAuxiliaryData(ci, |
|---|
| 15701 | n/a | dataH, |
|---|
| 15702 | n/a | &handleType); |
|---|
| 15703 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15704 | n/a | _rv, |
|---|
| 15705 | n/a | PyMac_BuildOSType, handleType); |
|---|
| 15706 | n/a | return _res; |
|---|
| 15707 | n/a | } |
|---|
| 15708 | n/a | |
|---|
| 15709 | n/a | static PyObject *Qt_MovieExportSetSampleDescription(PyObject *_self, PyObject *_args) |
|---|
| 15710 | n/a | { |
|---|
| 15711 | n/a | PyObject *_res = NULL; |
|---|
| 15712 | n/a | ComponentResult _rv; |
|---|
| 15713 | n/a | MovieExportComponent ci; |
|---|
| 15714 | n/a | SampleDescriptionHandle desc; |
|---|
| 15715 | n/a | OSType mediaType; |
|---|
| 15716 | n/a | #ifndef MovieExportSetSampleDescription |
|---|
| 15717 | n/a | PyMac_PRECHECK(MovieExportSetSampleDescription); |
|---|
| 15718 | n/a | #endif |
|---|
| 15719 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15720 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15721 | n/a | ResObj_Convert, &desc, |
|---|
| 15722 | n/a | PyMac_GetOSType, &mediaType)) |
|---|
| 15723 | n/a | return NULL; |
|---|
| 15724 | n/a | _rv = MovieExportSetSampleDescription(ci, |
|---|
| 15725 | n/a | desc, |
|---|
| 15726 | n/a | mediaType); |
|---|
| 15727 | n/a | _res = Py_BuildValue("l", |
|---|
| 15728 | n/a | _rv); |
|---|
| 15729 | n/a | return _res; |
|---|
| 15730 | n/a | } |
|---|
| 15731 | n/a | |
|---|
| 15732 | n/a | static PyObject *Qt_MovieExportDoUserDialog(PyObject *_self, PyObject *_args) |
|---|
| 15733 | n/a | { |
|---|
| 15734 | n/a | PyObject *_res = NULL; |
|---|
| 15735 | n/a | ComponentResult _rv; |
|---|
| 15736 | n/a | MovieExportComponent ci; |
|---|
| 15737 | n/a | Movie theMovie; |
|---|
| 15738 | n/a | Track onlyThisTrack; |
|---|
| 15739 | n/a | TimeValue startTime; |
|---|
| 15740 | n/a | TimeValue duration; |
|---|
| 15741 | n/a | Boolean canceled; |
|---|
| 15742 | n/a | #ifndef MovieExportDoUserDialog |
|---|
| 15743 | n/a | PyMac_PRECHECK(MovieExportDoUserDialog); |
|---|
| 15744 | n/a | #endif |
|---|
| 15745 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&ll", |
|---|
| 15746 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15747 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15748 | n/a | TrackObj_Convert, &onlyThisTrack, |
|---|
| 15749 | n/a | &startTime, |
|---|
| 15750 | n/a | &duration)) |
|---|
| 15751 | n/a | return NULL; |
|---|
| 15752 | n/a | _rv = MovieExportDoUserDialog(ci, |
|---|
| 15753 | n/a | theMovie, |
|---|
| 15754 | n/a | onlyThisTrack, |
|---|
| 15755 | n/a | startTime, |
|---|
| 15756 | n/a | duration, |
|---|
| 15757 | n/a | &canceled); |
|---|
| 15758 | n/a | _res = Py_BuildValue("lb", |
|---|
| 15759 | n/a | _rv, |
|---|
| 15760 | n/a | canceled); |
|---|
| 15761 | n/a | return _res; |
|---|
| 15762 | n/a | } |
|---|
| 15763 | n/a | |
|---|
| 15764 | n/a | static PyObject *Qt_MovieExportGetCreatorType(PyObject *_self, PyObject *_args) |
|---|
| 15765 | n/a | { |
|---|
| 15766 | n/a | PyObject *_res = NULL; |
|---|
| 15767 | n/a | ComponentResult _rv; |
|---|
| 15768 | n/a | MovieExportComponent ci; |
|---|
| 15769 | n/a | OSType creator; |
|---|
| 15770 | n/a | #ifndef MovieExportGetCreatorType |
|---|
| 15771 | n/a | PyMac_PRECHECK(MovieExportGetCreatorType); |
|---|
| 15772 | n/a | #endif |
|---|
| 15773 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15774 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15775 | n/a | return NULL; |
|---|
| 15776 | n/a | _rv = MovieExportGetCreatorType(ci, |
|---|
| 15777 | n/a | &creator); |
|---|
| 15778 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15779 | n/a | _rv, |
|---|
| 15780 | n/a | PyMac_BuildOSType, creator); |
|---|
| 15781 | n/a | return _res; |
|---|
| 15782 | n/a | } |
|---|
| 15783 | n/a | |
|---|
| 15784 | n/a | static PyObject *Qt_MovieExportToDataRef(PyObject *_self, PyObject *_args) |
|---|
| 15785 | n/a | { |
|---|
| 15786 | n/a | PyObject *_res = NULL; |
|---|
| 15787 | n/a | ComponentResult _rv; |
|---|
| 15788 | n/a | MovieExportComponent ci; |
|---|
| 15789 | n/a | Handle dataRef; |
|---|
| 15790 | n/a | OSType dataRefType; |
|---|
| 15791 | n/a | Movie theMovie; |
|---|
| 15792 | n/a | Track onlyThisTrack; |
|---|
| 15793 | n/a | TimeValue startTime; |
|---|
| 15794 | n/a | TimeValue duration; |
|---|
| 15795 | n/a | #ifndef MovieExportToDataRef |
|---|
| 15796 | n/a | PyMac_PRECHECK(MovieExportToDataRef); |
|---|
| 15797 | n/a | #endif |
|---|
| 15798 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&O&ll", |
|---|
| 15799 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15800 | n/a | ResObj_Convert, &dataRef, |
|---|
| 15801 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 15802 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15803 | n/a | TrackObj_Convert, &onlyThisTrack, |
|---|
| 15804 | n/a | &startTime, |
|---|
| 15805 | n/a | &duration)) |
|---|
| 15806 | n/a | return NULL; |
|---|
| 15807 | n/a | _rv = MovieExportToDataRef(ci, |
|---|
| 15808 | n/a | dataRef, |
|---|
| 15809 | n/a | dataRefType, |
|---|
| 15810 | n/a | theMovie, |
|---|
| 15811 | n/a | onlyThisTrack, |
|---|
| 15812 | n/a | startTime, |
|---|
| 15813 | n/a | duration); |
|---|
| 15814 | n/a | _res = Py_BuildValue("l", |
|---|
| 15815 | n/a | _rv); |
|---|
| 15816 | n/a | return _res; |
|---|
| 15817 | n/a | } |
|---|
| 15818 | n/a | |
|---|
| 15819 | n/a | static PyObject *Qt_MovieExportFromProceduresToDataRef(PyObject *_self, PyObject *_args) |
|---|
| 15820 | n/a | { |
|---|
| 15821 | n/a | PyObject *_res = NULL; |
|---|
| 15822 | n/a | ComponentResult _rv; |
|---|
| 15823 | n/a | MovieExportComponent ci; |
|---|
| 15824 | n/a | Handle dataRef; |
|---|
| 15825 | n/a | OSType dataRefType; |
|---|
| 15826 | n/a | #ifndef MovieExportFromProceduresToDataRef |
|---|
| 15827 | n/a | PyMac_PRECHECK(MovieExportFromProceduresToDataRef); |
|---|
| 15828 | n/a | #endif |
|---|
| 15829 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15830 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15831 | n/a | ResObj_Convert, &dataRef, |
|---|
| 15832 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 15833 | n/a | return NULL; |
|---|
| 15834 | n/a | _rv = MovieExportFromProceduresToDataRef(ci, |
|---|
| 15835 | n/a | dataRef, |
|---|
| 15836 | n/a | dataRefType); |
|---|
| 15837 | n/a | _res = Py_BuildValue("l", |
|---|
| 15838 | n/a | _rv); |
|---|
| 15839 | n/a | return _res; |
|---|
| 15840 | n/a | } |
|---|
| 15841 | n/a | |
|---|
| 15842 | n/a | static PyObject *Qt_MovieExportValidate(PyObject *_self, PyObject *_args) |
|---|
| 15843 | n/a | { |
|---|
| 15844 | n/a | PyObject *_res = NULL; |
|---|
| 15845 | n/a | ComponentResult _rv; |
|---|
| 15846 | n/a | MovieExportComponent ci; |
|---|
| 15847 | n/a | Movie theMovie; |
|---|
| 15848 | n/a | Track onlyThisTrack; |
|---|
| 15849 | n/a | Boolean valid; |
|---|
| 15850 | n/a | #ifndef MovieExportValidate |
|---|
| 15851 | n/a | PyMac_PRECHECK(MovieExportValidate); |
|---|
| 15852 | n/a | #endif |
|---|
| 15853 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 15854 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15855 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 15856 | n/a | TrackObj_Convert, &onlyThisTrack)) |
|---|
| 15857 | n/a | return NULL; |
|---|
| 15858 | n/a | _rv = MovieExportValidate(ci, |
|---|
| 15859 | n/a | theMovie, |
|---|
| 15860 | n/a | onlyThisTrack, |
|---|
| 15861 | n/a | &valid); |
|---|
| 15862 | n/a | _res = Py_BuildValue("lb", |
|---|
| 15863 | n/a | _rv, |
|---|
| 15864 | n/a | valid); |
|---|
| 15865 | n/a | return _res; |
|---|
| 15866 | n/a | } |
|---|
| 15867 | n/a | |
|---|
| 15868 | n/a | static PyObject *Qt_MovieExportGetFileNameExtension(PyObject *_self, PyObject *_args) |
|---|
| 15869 | n/a | { |
|---|
| 15870 | n/a | PyObject *_res = NULL; |
|---|
| 15871 | n/a | ComponentResult _rv; |
|---|
| 15872 | n/a | MovieExportComponent ci; |
|---|
| 15873 | n/a | OSType extension; |
|---|
| 15874 | n/a | #ifndef MovieExportGetFileNameExtension |
|---|
| 15875 | n/a | PyMac_PRECHECK(MovieExportGetFileNameExtension); |
|---|
| 15876 | n/a | #endif |
|---|
| 15877 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15878 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15879 | n/a | return NULL; |
|---|
| 15880 | n/a | _rv = MovieExportGetFileNameExtension(ci, |
|---|
| 15881 | n/a | &extension); |
|---|
| 15882 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15883 | n/a | _rv, |
|---|
| 15884 | n/a | PyMac_BuildOSType, extension); |
|---|
| 15885 | n/a | return _res; |
|---|
| 15886 | n/a | } |
|---|
| 15887 | n/a | |
|---|
| 15888 | n/a | static PyObject *Qt_MovieExportGetShortFileTypeString(PyObject *_self, PyObject *_args) |
|---|
| 15889 | n/a | { |
|---|
| 15890 | n/a | PyObject *_res = NULL; |
|---|
| 15891 | n/a | ComponentResult _rv; |
|---|
| 15892 | n/a | MovieExportComponent ci; |
|---|
| 15893 | n/a | Str255 typeString; |
|---|
| 15894 | n/a | #ifndef MovieExportGetShortFileTypeString |
|---|
| 15895 | n/a | PyMac_PRECHECK(MovieExportGetShortFileTypeString); |
|---|
| 15896 | n/a | #endif |
|---|
| 15897 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 15898 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15899 | n/a | PyMac_GetStr255, typeString)) |
|---|
| 15900 | n/a | return NULL; |
|---|
| 15901 | n/a | _rv = MovieExportGetShortFileTypeString(ci, |
|---|
| 15902 | n/a | typeString); |
|---|
| 15903 | n/a | _res = Py_BuildValue("l", |
|---|
| 15904 | n/a | _rv); |
|---|
| 15905 | n/a | return _res; |
|---|
| 15906 | n/a | } |
|---|
| 15907 | n/a | |
|---|
| 15908 | n/a | static PyObject *Qt_MovieExportGetSourceMediaType(PyObject *_self, PyObject *_args) |
|---|
| 15909 | n/a | { |
|---|
| 15910 | n/a | PyObject *_res = NULL; |
|---|
| 15911 | n/a | ComponentResult _rv; |
|---|
| 15912 | n/a | MovieExportComponent ci; |
|---|
| 15913 | n/a | OSType mediaType; |
|---|
| 15914 | n/a | #ifndef MovieExportGetSourceMediaType |
|---|
| 15915 | n/a | PyMac_PRECHECK(MovieExportGetSourceMediaType); |
|---|
| 15916 | n/a | #endif |
|---|
| 15917 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15918 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15919 | n/a | return NULL; |
|---|
| 15920 | n/a | _rv = MovieExportGetSourceMediaType(ci, |
|---|
| 15921 | n/a | &mediaType); |
|---|
| 15922 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 15923 | n/a | _rv, |
|---|
| 15924 | n/a | PyMac_BuildOSType, mediaType); |
|---|
| 15925 | n/a | return _res; |
|---|
| 15926 | n/a | } |
|---|
| 15927 | n/a | |
|---|
| 15928 | n/a | static PyObject *Qt_TextExportGetTimeFraction(PyObject *_self, PyObject *_args) |
|---|
| 15929 | n/a | { |
|---|
| 15930 | n/a | PyObject *_res = NULL; |
|---|
| 15931 | n/a | ComponentResult _rv; |
|---|
| 15932 | n/a | TextExportComponent ci; |
|---|
| 15933 | n/a | long movieTimeFraction; |
|---|
| 15934 | n/a | #ifndef TextExportGetTimeFraction |
|---|
| 15935 | n/a | PyMac_PRECHECK(TextExportGetTimeFraction); |
|---|
| 15936 | n/a | #endif |
|---|
| 15937 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15938 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15939 | n/a | return NULL; |
|---|
| 15940 | n/a | _rv = TextExportGetTimeFraction(ci, |
|---|
| 15941 | n/a | &movieTimeFraction); |
|---|
| 15942 | n/a | _res = Py_BuildValue("ll", |
|---|
| 15943 | n/a | _rv, |
|---|
| 15944 | n/a | movieTimeFraction); |
|---|
| 15945 | n/a | return _res; |
|---|
| 15946 | n/a | } |
|---|
| 15947 | n/a | |
|---|
| 15948 | n/a | static PyObject *Qt_TextExportSetTimeFraction(PyObject *_self, PyObject *_args) |
|---|
| 15949 | n/a | { |
|---|
| 15950 | n/a | PyObject *_res = NULL; |
|---|
| 15951 | n/a | ComponentResult _rv; |
|---|
| 15952 | n/a | TextExportComponent ci; |
|---|
| 15953 | n/a | long movieTimeFraction; |
|---|
| 15954 | n/a | #ifndef TextExportSetTimeFraction |
|---|
| 15955 | n/a | PyMac_PRECHECK(TextExportSetTimeFraction); |
|---|
| 15956 | n/a | #endif |
|---|
| 15957 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 15958 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15959 | n/a | &movieTimeFraction)) |
|---|
| 15960 | n/a | return NULL; |
|---|
| 15961 | n/a | _rv = TextExportSetTimeFraction(ci, |
|---|
| 15962 | n/a | movieTimeFraction); |
|---|
| 15963 | n/a | _res = Py_BuildValue("l", |
|---|
| 15964 | n/a | _rv); |
|---|
| 15965 | n/a | return _res; |
|---|
| 15966 | n/a | } |
|---|
| 15967 | n/a | |
|---|
| 15968 | n/a | static PyObject *Qt_TextExportGetSettings(PyObject *_self, PyObject *_args) |
|---|
| 15969 | n/a | { |
|---|
| 15970 | n/a | PyObject *_res = NULL; |
|---|
| 15971 | n/a | ComponentResult _rv; |
|---|
| 15972 | n/a | TextExportComponent ci; |
|---|
| 15973 | n/a | long setting; |
|---|
| 15974 | n/a | #ifndef TextExportGetSettings |
|---|
| 15975 | n/a | PyMac_PRECHECK(TextExportGetSettings); |
|---|
| 15976 | n/a | #endif |
|---|
| 15977 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 15978 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 15979 | n/a | return NULL; |
|---|
| 15980 | n/a | _rv = TextExportGetSettings(ci, |
|---|
| 15981 | n/a | &setting); |
|---|
| 15982 | n/a | _res = Py_BuildValue("ll", |
|---|
| 15983 | n/a | _rv, |
|---|
| 15984 | n/a | setting); |
|---|
| 15985 | n/a | return _res; |
|---|
| 15986 | n/a | } |
|---|
| 15987 | n/a | |
|---|
| 15988 | n/a | static PyObject *Qt_TextExportSetSettings(PyObject *_self, PyObject *_args) |
|---|
| 15989 | n/a | { |
|---|
| 15990 | n/a | PyObject *_res = NULL; |
|---|
| 15991 | n/a | ComponentResult _rv; |
|---|
| 15992 | n/a | TextExportComponent ci; |
|---|
| 15993 | n/a | long setting; |
|---|
| 15994 | n/a | #ifndef TextExportSetSettings |
|---|
| 15995 | n/a | PyMac_PRECHECK(TextExportSetSettings); |
|---|
| 15996 | n/a | #endif |
|---|
| 15997 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 15998 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 15999 | n/a | &setting)) |
|---|
| 16000 | n/a | return NULL; |
|---|
| 16001 | n/a | _rv = TextExportSetSettings(ci, |
|---|
| 16002 | n/a | setting); |
|---|
| 16003 | n/a | _res = Py_BuildValue("l", |
|---|
| 16004 | n/a | _rv); |
|---|
| 16005 | n/a | return _res; |
|---|
| 16006 | n/a | } |
|---|
| 16007 | n/a | |
|---|
| 16008 | n/a | static PyObject *Qt_MIDIImportGetSettings(PyObject *_self, PyObject *_args) |
|---|
| 16009 | n/a | { |
|---|
| 16010 | n/a | PyObject *_res = NULL; |
|---|
| 16011 | n/a | ComponentResult _rv; |
|---|
| 16012 | n/a | TextExportComponent ci; |
|---|
| 16013 | n/a | long setting; |
|---|
| 16014 | n/a | #ifndef MIDIImportGetSettings |
|---|
| 16015 | n/a | PyMac_PRECHECK(MIDIImportGetSettings); |
|---|
| 16016 | n/a | #endif |
|---|
| 16017 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16018 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 16019 | n/a | return NULL; |
|---|
| 16020 | n/a | _rv = MIDIImportGetSettings(ci, |
|---|
| 16021 | n/a | &setting); |
|---|
| 16022 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16023 | n/a | _rv, |
|---|
| 16024 | n/a | setting); |
|---|
| 16025 | n/a | return _res; |
|---|
| 16026 | n/a | } |
|---|
| 16027 | n/a | |
|---|
| 16028 | n/a | static PyObject *Qt_MIDIImportSetSettings(PyObject *_self, PyObject *_args) |
|---|
| 16029 | n/a | { |
|---|
| 16030 | n/a | PyObject *_res = NULL; |
|---|
| 16031 | n/a | ComponentResult _rv; |
|---|
| 16032 | n/a | TextExportComponent ci; |
|---|
| 16033 | n/a | long setting; |
|---|
| 16034 | n/a | #ifndef MIDIImportSetSettings |
|---|
| 16035 | n/a | PyMac_PRECHECK(MIDIImportSetSettings); |
|---|
| 16036 | n/a | #endif |
|---|
| 16037 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16038 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 16039 | n/a | &setting)) |
|---|
| 16040 | n/a | return NULL; |
|---|
| 16041 | n/a | _rv = MIDIImportSetSettings(ci, |
|---|
| 16042 | n/a | setting); |
|---|
| 16043 | n/a | _res = Py_BuildValue("l", |
|---|
| 16044 | n/a | _rv); |
|---|
| 16045 | n/a | return _res; |
|---|
| 16046 | n/a | } |
|---|
| 16047 | n/a | |
|---|
| 16048 | n/a | static PyObject *Qt_GraphicsImageImportSetSequenceEnabled(PyObject *_self, PyObject *_args) |
|---|
| 16049 | n/a | { |
|---|
| 16050 | n/a | PyObject *_res = NULL; |
|---|
| 16051 | n/a | ComponentResult _rv; |
|---|
| 16052 | n/a | GraphicImageMovieImportComponent ci; |
|---|
| 16053 | n/a | Boolean enable; |
|---|
| 16054 | n/a | #ifndef GraphicsImageImportSetSequenceEnabled |
|---|
| 16055 | n/a | PyMac_PRECHECK(GraphicsImageImportSetSequenceEnabled); |
|---|
| 16056 | n/a | #endif |
|---|
| 16057 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 16058 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 16059 | n/a | &enable)) |
|---|
| 16060 | n/a | return NULL; |
|---|
| 16061 | n/a | _rv = GraphicsImageImportSetSequenceEnabled(ci, |
|---|
| 16062 | n/a | enable); |
|---|
| 16063 | n/a | _res = Py_BuildValue("l", |
|---|
| 16064 | n/a | _rv); |
|---|
| 16065 | n/a | return _res; |
|---|
| 16066 | n/a | } |
|---|
| 16067 | n/a | |
|---|
| 16068 | n/a | static PyObject *Qt_GraphicsImageImportGetSequenceEnabled(PyObject *_self, PyObject *_args) |
|---|
| 16069 | n/a | { |
|---|
| 16070 | n/a | PyObject *_res = NULL; |
|---|
| 16071 | n/a | ComponentResult _rv; |
|---|
| 16072 | n/a | GraphicImageMovieImportComponent ci; |
|---|
| 16073 | n/a | Boolean enable; |
|---|
| 16074 | n/a | #ifndef GraphicsImageImportGetSequenceEnabled |
|---|
| 16075 | n/a | PyMac_PRECHECK(GraphicsImageImportGetSequenceEnabled); |
|---|
| 16076 | n/a | #endif |
|---|
| 16077 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16078 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 16079 | n/a | return NULL; |
|---|
| 16080 | n/a | _rv = GraphicsImageImportGetSequenceEnabled(ci, |
|---|
| 16081 | n/a | &enable); |
|---|
| 16082 | n/a | _res = Py_BuildValue("lb", |
|---|
| 16083 | n/a | _rv, |
|---|
| 16084 | n/a | enable); |
|---|
| 16085 | n/a | return _res; |
|---|
| 16086 | n/a | } |
|---|
| 16087 | n/a | |
|---|
| 16088 | n/a | static PyObject *Qt_PreviewShowData(PyObject *_self, PyObject *_args) |
|---|
| 16089 | n/a | { |
|---|
| 16090 | n/a | PyObject *_res = NULL; |
|---|
| 16091 | n/a | ComponentResult _rv; |
|---|
| 16092 | n/a | pnotComponent p; |
|---|
| 16093 | n/a | OSType dataType; |
|---|
| 16094 | n/a | Handle data; |
|---|
| 16095 | n/a | Rect inHere; |
|---|
| 16096 | n/a | #ifndef PreviewShowData |
|---|
| 16097 | n/a | PyMac_PRECHECK(PreviewShowData); |
|---|
| 16098 | n/a | #endif |
|---|
| 16099 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 16100 | n/a | CmpInstObj_Convert, &p, |
|---|
| 16101 | n/a | PyMac_GetOSType, &dataType, |
|---|
| 16102 | n/a | ResObj_Convert, &data, |
|---|
| 16103 | n/a | PyMac_GetRect, &inHere)) |
|---|
| 16104 | n/a | return NULL; |
|---|
| 16105 | n/a | _rv = PreviewShowData(p, |
|---|
| 16106 | n/a | dataType, |
|---|
| 16107 | n/a | data, |
|---|
| 16108 | n/a | &inHere); |
|---|
| 16109 | n/a | _res = Py_BuildValue("l", |
|---|
| 16110 | n/a | _rv); |
|---|
| 16111 | n/a | return _res; |
|---|
| 16112 | n/a | } |
|---|
| 16113 | n/a | |
|---|
| 16114 | n/a | static PyObject *Qt_PreviewMakePreviewReference(PyObject *_self, PyObject *_args) |
|---|
| 16115 | n/a | { |
|---|
| 16116 | n/a | PyObject *_res = NULL; |
|---|
| 16117 | n/a | ComponentResult _rv; |
|---|
| 16118 | n/a | pnotComponent p; |
|---|
| 16119 | n/a | OSType previewType; |
|---|
| 16120 | n/a | short resID; |
|---|
| 16121 | n/a | FSSpec sourceFile; |
|---|
| 16122 | n/a | #ifndef PreviewMakePreviewReference |
|---|
| 16123 | n/a | PyMac_PRECHECK(PreviewMakePreviewReference); |
|---|
| 16124 | n/a | #endif |
|---|
| 16125 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 16126 | n/a | CmpInstObj_Convert, &p, |
|---|
| 16127 | n/a | PyMac_GetFSSpec, &sourceFile)) |
|---|
| 16128 | n/a | return NULL; |
|---|
| 16129 | n/a | _rv = PreviewMakePreviewReference(p, |
|---|
| 16130 | n/a | &previewType, |
|---|
| 16131 | n/a | &resID, |
|---|
| 16132 | n/a | &sourceFile); |
|---|
| 16133 | n/a | _res = Py_BuildValue("lO&h", |
|---|
| 16134 | n/a | _rv, |
|---|
| 16135 | n/a | PyMac_BuildOSType, previewType, |
|---|
| 16136 | n/a | resID); |
|---|
| 16137 | n/a | return _res; |
|---|
| 16138 | n/a | } |
|---|
| 16139 | n/a | |
|---|
| 16140 | n/a | static PyObject *Qt_PreviewEvent(PyObject *_self, PyObject *_args) |
|---|
| 16141 | n/a | { |
|---|
| 16142 | n/a | PyObject *_res = NULL; |
|---|
| 16143 | n/a | ComponentResult _rv; |
|---|
| 16144 | n/a | pnotComponent p; |
|---|
| 16145 | n/a | EventRecord e; |
|---|
| 16146 | n/a | Boolean handledEvent; |
|---|
| 16147 | n/a | #ifndef PreviewEvent |
|---|
| 16148 | n/a | PyMac_PRECHECK(PreviewEvent); |
|---|
| 16149 | n/a | #endif |
|---|
| 16150 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16151 | n/a | CmpInstObj_Convert, &p)) |
|---|
| 16152 | n/a | return NULL; |
|---|
| 16153 | n/a | _rv = PreviewEvent(p, |
|---|
| 16154 | n/a | &e, |
|---|
| 16155 | n/a | &handledEvent); |
|---|
| 16156 | n/a | _res = Py_BuildValue("lO&b", |
|---|
| 16157 | n/a | _rv, |
|---|
| 16158 | n/a | PyMac_BuildEventRecord, &e, |
|---|
| 16159 | n/a | handledEvent); |
|---|
| 16160 | n/a | return _res; |
|---|
| 16161 | n/a | } |
|---|
| 16162 | n/a | |
|---|
| 16163 | n/a | static PyObject *Qt_DataCodecDecompress(PyObject *_self, PyObject *_args) |
|---|
| 16164 | n/a | { |
|---|
| 16165 | n/a | PyObject *_res = NULL; |
|---|
| 16166 | n/a | ComponentResult _rv; |
|---|
| 16167 | n/a | DataCodecComponent dc; |
|---|
| 16168 | n/a | void * srcData; |
|---|
| 16169 | n/a | UInt32 srcSize; |
|---|
| 16170 | n/a | void * dstData; |
|---|
| 16171 | n/a | UInt32 dstBufferSize; |
|---|
| 16172 | n/a | #ifndef DataCodecDecompress |
|---|
| 16173 | n/a | PyMac_PRECHECK(DataCodecDecompress); |
|---|
| 16174 | n/a | #endif |
|---|
| 16175 | n/a | if (!PyArg_ParseTuple(_args, "O&slsl", |
|---|
| 16176 | n/a | CmpInstObj_Convert, &dc, |
|---|
| 16177 | n/a | &srcData, |
|---|
| 16178 | n/a | &srcSize, |
|---|
| 16179 | n/a | &dstData, |
|---|
| 16180 | n/a | &dstBufferSize)) |
|---|
| 16181 | n/a | return NULL; |
|---|
| 16182 | n/a | _rv = DataCodecDecompress(dc, |
|---|
| 16183 | n/a | srcData, |
|---|
| 16184 | n/a | srcSize, |
|---|
| 16185 | n/a | dstData, |
|---|
| 16186 | n/a | dstBufferSize); |
|---|
| 16187 | n/a | _res = Py_BuildValue("l", |
|---|
| 16188 | n/a | _rv); |
|---|
| 16189 | n/a | return _res; |
|---|
| 16190 | n/a | } |
|---|
| 16191 | n/a | |
|---|
| 16192 | n/a | static PyObject *Qt_DataCodecGetCompressBufferSize(PyObject *_self, PyObject *_args) |
|---|
| 16193 | n/a | { |
|---|
| 16194 | n/a | PyObject *_res = NULL; |
|---|
| 16195 | n/a | ComponentResult _rv; |
|---|
| 16196 | n/a | DataCodecComponent dc; |
|---|
| 16197 | n/a | UInt32 srcSize; |
|---|
| 16198 | n/a | UInt32 dstSize; |
|---|
| 16199 | n/a | #ifndef DataCodecGetCompressBufferSize |
|---|
| 16200 | n/a | PyMac_PRECHECK(DataCodecGetCompressBufferSize); |
|---|
| 16201 | n/a | #endif |
|---|
| 16202 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16203 | n/a | CmpInstObj_Convert, &dc, |
|---|
| 16204 | n/a | &srcSize)) |
|---|
| 16205 | n/a | return NULL; |
|---|
| 16206 | n/a | _rv = DataCodecGetCompressBufferSize(dc, |
|---|
| 16207 | n/a | srcSize, |
|---|
| 16208 | n/a | &dstSize); |
|---|
| 16209 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16210 | n/a | _rv, |
|---|
| 16211 | n/a | dstSize); |
|---|
| 16212 | n/a | return _res; |
|---|
| 16213 | n/a | } |
|---|
| 16214 | n/a | |
|---|
| 16215 | n/a | static PyObject *Qt_DataCodecCompress(PyObject *_self, PyObject *_args) |
|---|
| 16216 | n/a | { |
|---|
| 16217 | n/a | PyObject *_res = NULL; |
|---|
| 16218 | n/a | ComponentResult _rv; |
|---|
| 16219 | n/a | DataCodecComponent dc; |
|---|
| 16220 | n/a | void * srcData; |
|---|
| 16221 | n/a | UInt32 srcSize; |
|---|
| 16222 | n/a | void * dstData; |
|---|
| 16223 | n/a | UInt32 dstBufferSize; |
|---|
| 16224 | n/a | UInt32 actualDstSize; |
|---|
| 16225 | n/a | UInt32 decompressSlop; |
|---|
| 16226 | n/a | #ifndef DataCodecCompress |
|---|
| 16227 | n/a | PyMac_PRECHECK(DataCodecCompress); |
|---|
| 16228 | n/a | #endif |
|---|
| 16229 | n/a | if (!PyArg_ParseTuple(_args, "O&slsl", |
|---|
| 16230 | n/a | CmpInstObj_Convert, &dc, |
|---|
| 16231 | n/a | &srcData, |
|---|
| 16232 | n/a | &srcSize, |
|---|
| 16233 | n/a | &dstData, |
|---|
| 16234 | n/a | &dstBufferSize)) |
|---|
| 16235 | n/a | return NULL; |
|---|
| 16236 | n/a | _rv = DataCodecCompress(dc, |
|---|
| 16237 | n/a | srcData, |
|---|
| 16238 | n/a | srcSize, |
|---|
| 16239 | n/a | dstData, |
|---|
| 16240 | n/a | dstBufferSize, |
|---|
| 16241 | n/a | &actualDstSize, |
|---|
| 16242 | n/a | &decompressSlop); |
|---|
| 16243 | n/a | _res = Py_BuildValue("lll", |
|---|
| 16244 | n/a | _rv, |
|---|
| 16245 | n/a | actualDstSize, |
|---|
| 16246 | n/a | decompressSlop); |
|---|
| 16247 | n/a | return _res; |
|---|
| 16248 | n/a | } |
|---|
| 16249 | n/a | |
|---|
| 16250 | n/a | static PyObject *Qt_DataCodecBeginInterruptSafe(PyObject *_self, PyObject *_args) |
|---|
| 16251 | n/a | { |
|---|
| 16252 | n/a | PyObject *_res = NULL; |
|---|
| 16253 | n/a | ComponentResult _rv; |
|---|
| 16254 | n/a | DataCodecComponent dc; |
|---|
| 16255 | n/a | unsigned long maxSrcSize; |
|---|
| 16256 | n/a | #ifndef DataCodecBeginInterruptSafe |
|---|
| 16257 | n/a | PyMac_PRECHECK(DataCodecBeginInterruptSafe); |
|---|
| 16258 | n/a | #endif |
|---|
| 16259 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16260 | n/a | CmpInstObj_Convert, &dc, |
|---|
| 16261 | n/a | &maxSrcSize)) |
|---|
| 16262 | n/a | return NULL; |
|---|
| 16263 | n/a | _rv = DataCodecBeginInterruptSafe(dc, |
|---|
| 16264 | n/a | maxSrcSize); |
|---|
| 16265 | n/a | _res = Py_BuildValue("l", |
|---|
| 16266 | n/a | _rv); |
|---|
| 16267 | n/a | return _res; |
|---|
| 16268 | n/a | } |
|---|
| 16269 | n/a | |
|---|
| 16270 | n/a | static PyObject *Qt_DataCodecEndInterruptSafe(PyObject *_self, PyObject *_args) |
|---|
| 16271 | n/a | { |
|---|
| 16272 | n/a | PyObject *_res = NULL; |
|---|
| 16273 | n/a | ComponentResult _rv; |
|---|
| 16274 | n/a | DataCodecComponent dc; |
|---|
| 16275 | n/a | #ifndef DataCodecEndInterruptSafe |
|---|
| 16276 | n/a | PyMac_PRECHECK(DataCodecEndInterruptSafe); |
|---|
| 16277 | n/a | #endif |
|---|
| 16278 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16279 | n/a | CmpInstObj_Convert, &dc)) |
|---|
| 16280 | n/a | return NULL; |
|---|
| 16281 | n/a | _rv = DataCodecEndInterruptSafe(dc); |
|---|
| 16282 | n/a | _res = Py_BuildValue("l", |
|---|
| 16283 | n/a | _rv); |
|---|
| 16284 | n/a | return _res; |
|---|
| 16285 | n/a | } |
|---|
| 16286 | n/a | |
|---|
| 16287 | n/a | static PyObject *Qt_DataHGetData(PyObject *_self, PyObject *_args) |
|---|
| 16288 | n/a | { |
|---|
| 16289 | n/a | PyObject *_res = NULL; |
|---|
| 16290 | n/a | ComponentResult _rv; |
|---|
| 16291 | n/a | DataHandler dh; |
|---|
| 16292 | n/a | Handle h; |
|---|
| 16293 | n/a | long hOffset; |
|---|
| 16294 | n/a | long offset; |
|---|
| 16295 | n/a | long size; |
|---|
| 16296 | n/a | #ifndef DataHGetData |
|---|
| 16297 | n/a | PyMac_PRECHECK(DataHGetData); |
|---|
| 16298 | n/a | #endif |
|---|
| 16299 | n/a | if (!PyArg_ParseTuple(_args, "O&O&lll", |
|---|
| 16300 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16301 | n/a | ResObj_Convert, &h, |
|---|
| 16302 | n/a | &hOffset, |
|---|
| 16303 | n/a | &offset, |
|---|
| 16304 | n/a | &size)) |
|---|
| 16305 | n/a | return NULL; |
|---|
| 16306 | n/a | _rv = DataHGetData(dh, |
|---|
| 16307 | n/a | h, |
|---|
| 16308 | n/a | hOffset, |
|---|
| 16309 | n/a | offset, |
|---|
| 16310 | n/a | size); |
|---|
| 16311 | n/a | _res = Py_BuildValue("l", |
|---|
| 16312 | n/a | _rv); |
|---|
| 16313 | n/a | return _res; |
|---|
| 16314 | n/a | } |
|---|
| 16315 | n/a | |
|---|
| 16316 | n/a | static PyObject *Qt_DataHPutData(PyObject *_self, PyObject *_args) |
|---|
| 16317 | n/a | { |
|---|
| 16318 | n/a | PyObject *_res = NULL; |
|---|
| 16319 | n/a | ComponentResult _rv; |
|---|
| 16320 | n/a | DataHandler dh; |
|---|
| 16321 | n/a | Handle h; |
|---|
| 16322 | n/a | long hOffset; |
|---|
| 16323 | n/a | long offset; |
|---|
| 16324 | n/a | long size; |
|---|
| 16325 | n/a | #ifndef DataHPutData |
|---|
| 16326 | n/a | PyMac_PRECHECK(DataHPutData); |
|---|
| 16327 | n/a | #endif |
|---|
| 16328 | n/a | if (!PyArg_ParseTuple(_args, "O&O&ll", |
|---|
| 16329 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16330 | n/a | ResObj_Convert, &h, |
|---|
| 16331 | n/a | &hOffset, |
|---|
| 16332 | n/a | &size)) |
|---|
| 16333 | n/a | return NULL; |
|---|
| 16334 | n/a | _rv = DataHPutData(dh, |
|---|
| 16335 | n/a | h, |
|---|
| 16336 | n/a | hOffset, |
|---|
| 16337 | n/a | &offset, |
|---|
| 16338 | n/a | size); |
|---|
| 16339 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16340 | n/a | _rv, |
|---|
| 16341 | n/a | offset); |
|---|
| 16342 | n/a | return _res; |
|---|
| 16343 | n/a | } |
|---|
| 16344 | n/a | |
|---|
| 16345 | n/a | static PyObject *Qt_DataHFlushData(PyObject *_self, PyObject *_args) |
|---|
| 16346 | n/a | { |
|---|
| 16347 | n/a | PyObject *_res = NULL; |
|---|
| 16348 | n/a | ComponentResult _rv; |
|---|
| 16349 | n/a | DataHandler dh; |
|---|
| 16350 | n/a | #ifndef DataHFlushData |
|---|
| 16351 | n/a | PyMac_PRECHECK(DataHFlushData); |
|---|
| 16352 | n/a | #endif |
|---|
| 16353 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16354 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16355 | n/a | return NULL; |
|---|
| 16356 | n/a | _rv = DataHFlushData(dh); |
|---|
| 16357 | n/a | _res = Py_BuildValue("l", |
|---|
| 16358 | n/a | _rv); |
|---|
| 16359 | n/a | return _res; |
|---|
| 16360 | n/a | } |
|---|
| 16361 | n/a | |
|---|
| 16362 | n/a | static PyObject *Qt_DataHOpenForWrite(PyObject *_self, PyObject *_args) |
|---|
| 16363 | n/a | { |
|---|
| 16364 | n/a | PyObject *_res = NULL; |
|---|
| 16365 | n/a | ComponentResult _rv; |
|---|
| 16366 | n/a | DataHandler dh; |
|---|
| 16367 | n/a | #ifndef DataHOpenForWrite |
|---|
| 16368 | n/a | PyMac_PRECHECK(DataHOpenForWrite); |
|---|
| 16369 | n/a | #endif |
|---|
| 16370 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16371 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16372 | n/a | return NULL; |
|---|
| 16373 | n/a | _rv = DataHOpenForWrite(dh); |
|---|
| 16374 | n/a | _res = Py_BuildValue("l", |
|---|
| 16375 | n/a | _rv); |
|---|
| 16376 | n/a | return _res; |
|---|
| 16377 | n/a | } |
|---|
| 16378 | n/a | |
|---|
| 16379 | n/a | static PyObject *Qt_DataHCloseForWrite(PyObject *_self, PyObject *_args) |
|---|
| 16380 | n/a | { |
|---|
| 16381 | n/a | PyObject *_res = NULL; |
|---|
| 16382 | n/a | ComponentResult _rv; |
|---|
| 16383 | n/a | DataHandler dh; |
|---|
| 16384 | n/a | #ifndef DataHCloseForWrite |
|---|
| 16385 | n/a | PyMac_PRECHECK(DataHCloseForWrite); |
|---|
| 16386 | n/a | #endif |
|---|
| 16387 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16388 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16389 | n/a | return NULL; |
|---|
| 16390 | n/a | _rv = DataHCloseForWrite(dh); |
|---|
| 16391 | n/a | _res = Py_BuildValue("l", |
|---|
| 16392 | n/a | _rv); |
|---|
| 16393 | n/a | return _res; |
|---|
| 16394 | n/a | } |
|---|
| 16395 | n/a | |
|---|
| 16396 | n/a | static PyObject *Qt_DataHOpenForRead(PyObject *_self, PyObject *_args) |
|---|
| 16397 | n/a | { |
|---|
| 16398 | n/a | PyObject *_res = NULL; |
|---|
| 16399 | n/a | ComponentResult _rv; |
|---|
| 16400 | n/a | DataHandler dh; |
|---|
| 16401 | n/a | #ifndef DataHOpenForRead |
|---|
| 16402 | n/a | PyMac_PRECHECK(DataHOpenForRead); |
|---|
| 16403 | n/a | #endif |
|---|
| 16404 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16405 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16406 | n/a | return NULL; |
|---|
| 16407 | n/a | _rv = DataHOpenForRead(dh); |
|---|
| 16408 | n/a | _res = Py_BuildValue("l", |
|---|
| 16409 | n/a | _rv); |
|---|
| 16410 | n/a | return _res; |
|---|
| 16411 | n/a | } |
|---|
| 16412 | n/a | |
|---|
| 16413 | n/a | static PyObject *Qt_DataHCloseForRead(PyObject *_self, PyObject *_args) |
|---|
| 16414 | n/a | { |
|---|
| 16415 | n/a | PyObject *_res = NULL; |
|---|
| 16416 | n/a | ComponentResult _rv; |
|---|
| 16417 | n/a | DataHandler dh; |
|---|
| 16418 | n/a | #ifndef DataHCloseForRead |
|---|
| 16419 | n/a | PyMac_PRECHECK(DataHCloseForRead); |
|---|
| 16420 | n/a | #endif |
|---|
| 16421 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16422 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16423 | n/a | return NULL; |
|---|
| 16424 | n/a | _rv = DataHCloseForRead(dh); |
|---|
| 16425 | n/a | _res = Py_BuildValue("l", |
|---|
| 16426 | n/a | _rv); |
|---|
| 16427 | n/a | return _res; |
|---|
| 16428 | n/a | } |
|---|
| 16429 | n/a | |
|---|
| 16430 | n/a | static PyObject *Qt_DataHSetDataRef(PyObject *_self, PyObject *_args) |
|---|
| 16431 | n/a | { |
|---|
| 16432 | n/a | PyObject *_res = NULL; |
|---|
| 16433 | n/a | ComponentResult _rv; |
|---|
| 16434 | n/a | DataHandler dh; |
|---|
| 16435 | n/a | Handle dataRef; |
|---|
| 16436 | n/a | #ifndef DataHSetDataRef |
|---|
| 16437 | n/a | PyMac_PRECHECK(DataHSetDataRef); |
|---|
| 16438 | n/a | #endif |
|---|
| 16439 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 16440 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16441 | n/a | ResObj_Convert, &dataRef)) |
|---|
| 16442 | n/a | return NULL; |
|---|
| 16443 | n/a | _rv = DataHSetDataRef(dh, |
|---|
| 16444 | n/a | dataRef); |
|---|
| 16445 | n/a | _res = Py_BuildValue("l", |
|---|
| 16446 | n/a | _rv); |
|---|
| 16447 | n/a | return _res; |
|---|
| 16448 | n/a | } |
|---|
| 16449 | n/a | |
|---|
| 16450 | n/a | static PyObject *Qt_DataHGetDataRef(PyObject *_self, PyObject *_args) |
|---|
| 16451 | n/a | { |
|---|
| 16452 | n/a | PyObject *_res = NULL; |
|---|
| 16453 | n/a | ComponentResult _rv; |
|---|
| 16454 | n/a | DataHandler dh; |
|---|
| 16455 | n/a | Handle dataRef; |
|---|
| 16456 | n/a | #ifndef DataHGetDataRef |
|---|
| 16457 | n/a | PyMac_PRECHECK(DataHGetDataRef); |
|---|
| 16458 | n/a | #endif |
|---|
| 16459 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16460 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16461 | n/a | return NULL; |
|---|
| 16462 | n/a | _rv = DataHGetDataRef(dh, |
|---|
| 16463 | n/a | &dataRef); |
|---|
| 16464 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 16465 | n/a | _rv, |
|---|
| 16466 | n/a | ResObj_New, dataRef); |
|---|
| 16467 | n/a | return _res; |
|---|
| 16468 | n/a | } |
|---|
| 16469 | n/a | |
|---|
| 16470 | n/a | static PyObject *Qt_DataHCompareDataRef(PyObject *_self, PyObject *_args) |
|---|
| 16471 | n/a | { |
|---|
| 16472 | n/a | PyObject *_res = NULL; |
|---|
| 16473 | n/a | ComponentResult _rv; |
|---|
| 16474 | n/a | DataHandler dh; |
|---|
| 16475 | n/a | Handle dataRef; |
|---|
| 16476 | n/a | Boolean equal; |
|---|
| 16477 | n/a | #ifndef DataHCompareDataRef |
|---|
| 16478 | n/a | PyMac_PRECHECK(DataHCompareDataRef); |
|---|
| 16479 | n/a | #endif |
|---|
| 16480 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 16481 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16482 | n/a | ResObj_Convert, &dataRef)) |
|---|
| 16483 | n/a | return NULL; |
|---|
| 16484 | n/a | _rv = DataHCompareDataRef(dh, |
|---|
| 16485 | n/a | dataRef, |
|---|
| 16486 | n/a | &equal); |
|---|
| 16487 | n/a | _res = Py_BuildValue("lb", |
|---|
| 16488 | n/a | _rv, |
|---|
| 16489 | n/a | equal); |
|---|
| 16490 | n/a | return _res; |
|---|
| 16491 | n/a | } |
|---|
| 16492 | n/a | |
|---|
| 16493 | n/a | static PyObject *Qt_DataHTask(PyObject *_self, PyObject *_args) |
|---|
| 16494 | n/a | { |
|---|
| 16495 | n/a | PyObject *_res = NULL; |
|---|
| 16496 | n/a | ComponentResult _rv; |
|---|
| 16497 | n/a | DataHandler dh; |
|---|
| 16498 | n/a | #ifndef DataHTask |
|---|
| 16499 | n/a | PyMac_PRECHECK(DataHTask); |
|---|
| 16500 | n/a | #endif |
|---|
| 16501 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16502 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16503 | n/a | return NULL; |
|---|
| 16504 | n/a | _rv = DataHTask(dh); |
|---|
| 16505 | n/a | _res = Py_BuildValue("l", |
|---|
| 16506 | n/a | _rv); |
|---|
| 16507 | n/a | return _res; |
|---|
| 16508 | n/a | } |
|---|
| 16509 | n/a | |
|---|
| 16510 | n/a | static PyObject *Qt_DataHFinishData(PyObject *_self, PyObject *_args) |
|---|
| 16511 | n/a | { |
|---|
| 16512 | n/a | PyObject *_res = NULL; |
|---|
| 16513 | n/a | ComponentResult _rv; |
|---|
| 16514 | n/a | DataHandler dh; |
|---|
| 16515 | n/a | Ptr PlaceToPutDataPtr; |
|---|
| 16516 | n/a | Boolean Cancel; |
|---|
| 16517 | n/a | #ifndef DataHFinishData |
|---|
| 16518 | n/a | PyMac_PRECHECK(DataHFinishData); |
|---|
| 16519 | n/a | #endif |
|---|
| 16520 | n/a | if (!PyArg_ParseTuple(_args, "O&sb", |
|---|
| 16521 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16522 | n/a | &PlaceToPutDataPtr, |
|---|
| 16523 | n/a | &Cancel)) |
|---|
| 16524 | n/a | return NULL; |
|---|
| 16525 | n/a | _rv = DataHFinishData(dh, |
|---|
| 16526 | n/a | PlaceToPutDataPtr, |
|---|
| 16527 | n/a | Cancel); |
|---|
| 16528 | n/a | _res = Py_BuildValue("l", |
|---|
| 16529 | n/a | _rv); |
|---|
| 16530 | n/a | return _res; |
|---|
| 16531 | n/a | } |
|---|
| 16532 | n/a | |
|---|
| 16533 | n/a | static PyObject *Qt_DataHFlushCache(PyObject *_self, PyObject *_args) |
|---|
| 16534 | n/a | { |
|---|
| 16535 | n/a | PyObject *_res = NULL; |
|---|
| 16536 | n/a | ComponentResult _rv; |
|---|
| 16537 | n/a | DataHandler dh; |
|---|
| 16538 | n/a | #ifndef DataHFlushCache |
|---|
| 16539 | n/a | PyMac_PRECHECK(DataHFlushCache); |
|---|
| 16540 | n/a | #endif |
|---|
| 16541 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16542 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16543 | n/a | return NULL; |
|---|
| 16544 | n/a | _rv = DataHFlushCache(dh); |
|---|
| 16545 | n/a | _res = Py_BuildValue("l", |
|---|
| 16546 | n/a | _rv); |
|---|
| 16547 | n/a | return _res; |
|---|
| 16548 | n/a | } |
|---|
| 16549 | n/a | |
|---|
| 16550 | n/a | static PyObject *Qt_DataHResolveDataRef(PyObject *_self, PyObject *_args) |
|---|
| 16551 | n/a | { |
|---|
| 16552 | n/a | PyObject *_res = NULL; |
|---|
| 16553 | n/a | ComponentResult _rv; |
|---|
| 16554 | n/a | DataHandler dh; |
|---|
| 16555 | n/a | Handle theDataRef; |
|---|
| 16556 | n/a | Boolean wasChanged; |
|---|
| 16557 | n/a | Boolean userInterfaceAllowed; |
|---|
| 16558 | n/a | #ifndef DataHResolveDataRef |
|---|
| 16559 | n/a | PyMac_PRECHECK(DataHResolveDataRef); |
|---|
| 16560 | n/a | #endif |
|---|
| 16561 | n/a | if (!PyArg_ParseTuple(_args, "O&O&b", |
|---|
| 16562 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16563 | n/a | ResObj_Convert, &theDataRef, |
|---|
| 16564 | n/a | &userInterfaceAllowed)) |
|---|
| 16565 | n/a | return NULL; |
|---|
| 16566 | n/a | _rv = DataHResolveDataRef(dh, |
|---|
| 16567 | n/a | theDataRef, |
|---|
| 16568 | n/a | &wasChanged, |
|---|
| 16569 | n/a | userInterfaceAllowed); |
|---|
| 16570 | n/a | _res = Py_BuildValue("lb", |
|---|
| 16571 | n/a | _rv, |
|---|
| 16572 | n/a | wasChanged); |
|---|
| 16573 | n/a | return _res; |
|---|
| 16574 | n/a | } |
|---|
| 16575 | n/a | |
|---|
| 16576 | n/a | static PyObject *Qt_DataHGetFileSize(PyObject *_self, PyObject *_args) |
|---|
| 16577 | n/a | { |
|---|
| 16578 | n/a | PyObject *_res = NULL; |
|---|
| 16579 | n/a | ComponentResult _rv; |
|---|
| 16580 | n/a | DataHandler dh; |
|---|
| 16581 | n/a | long fileSize; |
|---|
| 16582 | n/a | #ifndef DataHGetFileSize |
|---|
| 16583 | n/a | PyMac_PRECHECK(DataHGetFileSize); |
|---|
| 16584 | n/a | #endif |
|---|
| 16585 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16586 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16587 | n/a | return NULL; |
|---|
| 16588 | n/a | _rv = DataHGetFileSize(dh, |
|---|
| 16589 | n/a | &fileSize); |
|---|
| 16590 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16591 | n/a | _rv, |
|---|
| 16592 | n/a | fileSize); |
|---|
| 16593 | n/a | return _res; |
|---|
| 16594 | n/a | } |
|---|
| 16595 | n/a | |
|---|
| 16596 | n/a | static PyObject *Qt_DataHCanUseDataRef(PyObject *_self, PyObject *_args) |
|---|
| 16597 | n/a | { |
|---|
| 16598 | n/a | PyObject *_res = NULL; |
|---|
| 16599 | n/a | ComponentResult _rv; |
|---|
| 16600 | n/a | DataHandler dh; |
|---|
| 16601 | n/a | Handle dataRef; |
|---|
| 16602 | n/a | long useFlags; |
|---|
| 16603 | n/a | #ifndef DataHCanUseDataRef |
|---|
| 16604 | n/a | PyMac_PRECHECK(DataHCanUseDataRef); |
|---|
| 16605 | n/a | #endif |
|---|
| 16606 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 16607 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16608 | n/a | ResObj_Convert, &dataRef)) |
|---|
| 16609 | n/a | return NULL; |
|---|
| 16610 | n/a | _rv = DataHCanUseDataRef(dh, |
|---|
| 16611 | n/a | dataRef, |
|---|
| 16612 | n/a | &useFlags); |
|---|
| 16613 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16614 | n/a | _rv, |
|---|
| 16615 | n/a | useFlags); |
|---|
| 16616 | n/a | return _res; |
|---|
| 16617 | n/a | } |
|---|
| 16618 | n/a | |
|---|
| 16619 | n/a | static PyObject *Qt_DataHPreextend(PyObject *_self, PyObject *_args) |
|---|
| 16620 | n/a | { |
|---|
| 16621 | n/a | PyObject *_res = NULL; |
|---|
| 16622 | n/a | ComponentResult _rv; |
|---|
| 16623 | n/a | DataHandler dh; |
|---|
| 16624 | n/a | unsigned long maxToAdd; |
|---|
| 16625 | n/a | unsigned long spaceAdded; |
|---|
| 16626 | n/a | #ifndef DataHPreextend |
|---|
| 16627 | n/a | PyMac_PRECHECK(DataHPreextend); |
|---|
| 16628 | n/a | #endif |
|---|
| 16629 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16630 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16631 | n/a | &maxToAdd)) |
|---|
| 16632 | n/a | return NULL; |
|---|
| 16633 | n/a | _rv = DataHPreextend(dh, |
|---|
| 16634 | n/a | maxToAdd, |
|---|
| 16635 | n/a | &spaceAdded); |
|---|
| 16636 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16637 | n/a | _rv, |
|---|
| 16638 | n/a | spaceAdded); |
|---|
| 16639 | n/a | return _res; |
|---|
| 16640 | n/a | } |
|---|
| 16641 | n/a | |
|---|
| 16642 | n/a | static PyObject *Qt_DataHSetFileSize(PyObject *_self, PyObject *_args) |
|---|
| 16643 | n/a | { |
|---|
| 16644 | n/a | PyObject *_res = NULL; |
|---|
| 16645 | n/a | ComponentResult _rv; |
|---|
| 16646 | n/a | DataHandler dh; |
|---|
| 16647 | n/a | long fileSize; |
|---|
| 16648 | n/a | #ifndef DataHSetFileSize |
|---|
| 16649 | n/a | PyMac_PRECHECK(DataHSetFileSize); |
|---|
| 16650 | n/a | #endif |
|---|
| 16651 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16652 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16653 | n/a | &fileSize)) |
|---|
| 16654 | n/a | return NULL; |
|---|
| 16655 | n/a | _rv = DataHSetFileSize(dh, |
|---|
| 16656 | n/a | fileSize); |
|---|
| 16657 | n/a | _res = Py_BuildValue("l", |
|---|
| 16658 | n/a | _rv); |
|---|
| 16659 | n/a | return _res; |
|---|
| 16660 | n/a | } |
|---|
| 16661 | n/a | |
|---|
| 16662 | n/a | static PyObject *Qt_DataHGetFreeSpace(PyObject *_self, PyObject *_args) |
|---|
| 16663 | n/a | { |
|---|
| 16664 | n/a | PyObject *_res = NULL; |
|---|
| 16665 | n/a | ComponentResult _rv; |
|---|
| 16666 | n/a | DataHandler dh; |
|---|
| 16667 | n/a | unsigned long freeSize; |
|---|
| 16668 | n/a | #ifndef DataHGetFreeSpace |
|---|
| 16669 | n/a | PyMac_PRECHECK(DataHGetFreeSpace); |
|---|
| 16670 | n/a | #endif |
|---|
| 16671 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16672 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16673 | n/a | return NULL; |
|---|
| 16674 | n/a | _rv = DataHGetFreeSpace(dh, |
|---|
| 16675 | n/a | &freeSize); |
|---|
| 16676 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16677 | n/a | _rv, |
|---|
| 16678 | n/a | freeSize); |
|---|
| 16679 | n/a | return _res; |
|---|
| 16680 | n/a | } |
|---|
| 16681 | n/a | |
|---|
| 16682 | n/a | static PyObject *Qt_DataHCreateFile(PyObject *_self, PyObject *_args) |
|---|
| 16683 | n/a | { |
|---|
| 16684 | n/a | PyObject *_res = NULL; |
|---|
| 16685 | n/a | ComponentResult _rv; |
|---|
| 16686 | n/a | DataHandler dh; |
|---|
| 16687 | n/a | OSType creator; |
|---|
| 16688 | n/a | Boolean deleteExisting; |
|---|
| 16689 | n/a | #ifndef DataHCreateFile |
|---|
| 16690 | n/a | PyMac_PRECHECK(DataHCreateFile); |
|---|
| 16691 | n/a | #endif |
|---|
| 16692 | n/a | if (!PyArg_ParseTuple(_args, "O&O&b", |
|---|
| 16693 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16694 | n/a | PyMac_GetOSType, &creator, |
|---|
| 16695 | n/a | &deleteExisting)) |
|---|
| 16696 | n/a | return NULL; |
|---|
| 16697 | n/a | _rv = DataHCreateFile(dh, |
|---|
| 16698 | n/a | creator, |
|---|
| 16699 | n/a | deleteExisting); |
|---|
| 16700 | n/a | _res = Py_BuildValue("l", |
|---|
| 16701 | n/a | _rv); |
|---|
| 16702 | n/a | return _res; |
|---|
| 16703 | n/a | } |
|---|
| 16704 | n/a | |
|---|
| 16705 | n/a | static PyObject *Qt_DataHGetPreferredBlockSize(PyObject *_self, PyObject *_args) |
|---|
| 16706 | n/a | { |
|---|
| 16707 | n/a | PyObject *_res = NULL; |
|---|
| 16708 | n/a | ComponentResult _rv; |
|---|
| 16709 | n/a | DataHandler dh; |
|---|
| 16710 | n/a | long blockSize; |
|---|
| 16711 | n/a | #ifndef DataHGetPreferredBlockSize |
|---|
| 16712 | n/a | PyMac_PRECHECK(DataHGetPreferredBlockSize); |
|---|
| 16713 | n/a | #endif |
|---|
| 16714 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16715 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16716 | n/a | return NULL; |
|---|
| 16717 | n/a | _rv = DataHGetPreferredBlockSize(dh, |
|---|
| 16718 | n/a | &blockSize); |
|---|
| 16719 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16720 | n/a | _rv, |
|---|
| 16721 | n/a | blockSize); |
|---|
| 16722 | n/a | return _res; |
|---|
| 16723 | n/a | } |
|---|
| 16724 | n/a | |
|---|
| 16725 | n/a | static PyObject *Qt_DataHGetDeviceIndex(PyObject *_self, PyObject *_args) |
|---|
| 16726 | n/a | { |
|---|
| 16727 | n/a | PyObject *_res = NULL; |
|---|
| 16728 | n/a | ComponentResult _rv; |
|---|
| 16729 | n/a | DataHandler dh; |
|---|
| 16730 | n/a | long deviceIndex; |
|---|
| 16731 | n/a | #ifndef DataHGetDeviceIndex |
|---|
| 16732 | n/a | PyMac_PRECHECK(DataHGetDeviceIndex); |
|---|
| 16733 | n/a | #endif |
|---|
| 16734 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16735 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16736 | n/a | return NULL; |
|---|
| 16737 | n/a | _rv = DataHGetDeviceIndex(dh, |
|---|
| 16738 | n/a | &deviceIndex); |
|---|
| 16739 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16740 | n/a | _rv, |
|---|
| 16741 | n/a | deviceIndex); |
|---|
| 16742 | n/a | return _res; |
|---|
| 16743 | n/a | } |
|---|
| 16744 | n/a | |
|---|
| 16745 | n/a | static PyObject *Qt_DataHIsStreamingDataHandler(PyObject *_self, PyObject *_args) |
|---|
| 16746 | n/a | { |
|---|
| 16747 | n/a | PyObject *_res = NULL; |
|---|
| 16748 | n/a | ComponentResult _rv; |
|---|
| 16749 | n/a | DataHandler dh; |
|---|
| 16750 | n/a | Boolean yes; |
|---|
| 16751 | n/a | #ifndef DataHIsStreamingDataHandler |
|---|
| 16752 | n/a | PyMac_PRECHECK(DataHIsStreamingDataHandler); |
|---|
| 16753 | n/a | #endif |
|---|
| 16754 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16755 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16756 | n/a | return NULL; |
|---|
| 16757 | n/a | _rv = DataHIsStreamingDataHandler(dh, |
|---|
| 16758 | n/a | &yes); |
|---|
| 16759 | n/a | _res = Py_BuildValue("lb", |
|---|
| 16760 | n/a | _rv, |
|---|
| 16761 | n/a | yes); |
|---|
| 16762 | n/a | return _res; |
|---|
| 16763 | n/a | } |
|---|
| 16764 | n/a | |
|---|
| 16765 | n/a | static PyObject *Qt_DataHGetDataInBuffer(PyObject *_self, PyObject *_args) |
|---|
| 16766 | n/a | { |
|---|
| 16767 | n/a | PyObject *_res = NULL; |
|---|
| 16768 | n/a | ComponentResult _rv; |
|---|
| 16769 | n/a | DataHandler dh; |
|---|
| 16770 | n/a | long startOffset; |
|---|
| 16771 | n/a | long size; |
|---|
| 16772 | n/a | #ifndef DataHGetDataInBuffer |
|---|
| 16773 | n/a | PyMac_PRECHECK(DataHGetDataInBuffer); |
|---|
| 16774 | n/a | #endif |
|---|
| 16775 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16776 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16777 | n/a | &startOffset)) |
|---|
| 16778 | n/a | return NULL; |
|---|
| 16779 | n/a | _rv = DataHGetDataInBuffer(dh, |
|---|
| 16780 | n/a | startOffset, |
|---|
| 16781 | n/a | &size); |
|---|
| 16782 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16783 | n/a | _rv, |
|---|
| 16784 | n/a | size); |
|---|
| 16785 | n/a | return _res; |
|---|
| 16786 | n/a | } |
|---|
| 16787 | n/a | |
|---|
| 16788 | n/a | static PyObject *Qt_DataHGetScheduleAheadTime(PyObject *_self, PyObject *_args) |
|---|
| 16789 | n/a | { |
|---|
| 16790 | n/a | PyObject *_res = NULL; |
|---|
| 16791 | n/a | ComponentResult _rv; |
|---|
| 16792 | n/a | DataHandler dh; |
|---|
| 16793 | n/a | long millisecs; |
|---|
| 16794 | n/a | #ifndef DataHGetScheduleAheadTime |
|---|
| 16795 | n/a | PyMac_PRECHECK(DataHGetScheduleAheadTime); |
|---|
| 16796 | n/a | #endif |
|---|
| 16797 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16798 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16799 | n/a | return NULL; |
|---|
| 16800 | n/a | _rv = DataHGetScheduleAheadTime(dh, |
|---|
| 16801 | n/a | &millisecs); |
|---|
| 16802 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16803 | n/a | _rv, |
|---|
| 16804 | n/a | millisecs); |
|---|
| 16805 | n/a | return _res; |
|---|
| 16806 | n/a | } |
|---|
| 16807 | n/a | |
|---|
| 16808 | n/a | static PyObject *Qt_DataHSetCacheSizeLimit(PyObject *_self, PyObject *_args) |
|---|
| 16809 | n/a | { |
|---|
| 16810 | n/a | PyObject *_res = NULL; |
|---|
| 16811 | n/a | ComponentResult _rv; |
|---|
| 16812 | n/a | DataHandler dh; |
|---|
| 16813 | n/a | Size cacheSizeLimit; |
|---|
| 16814 | n/a | #ifndef DataHSetCacheSizeLimit |
|---|
| 16815 | n/a | PyMac_PRECHECK(DataHSetCacheSizeLimit); |
|---|
| 16816 | n/a | #endif |
|---|
| 16817 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 16818 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16819 | n/a | &cacheSizeLimit)) |
|---|
| 16820 | n/a | return NULL; |
|---|
| 16821 | n/a | _rv = DataHSetCacheSizeLimit(dh, |
|---|
| 16822 | n/a | cacheSizeLimit); |
|---|
| 16823 | n/a | _res = Py_BuildValue("l", |
|---|
| 16824 | n/a | _rv); |
|---|
| 16825 | n/a | return _res; |
|---|
| 16826 | n/a | } |
|---|
| 16827 | n/a | |
|---|
| 16828 | n/a | static PyObject *Qt_DataHGetCacheSizeLimit(PyObject *_self, PyObject *_args) |
|---|
| 16829 | n/a | { |
|---|
| 16830 | n/a | PyObject *_res = NULL; |
|---|
| 16831 | n/a | ComponentResult _rv; |
|---|
| 16832 | n/a | DataHandler dh; |
|---|
| 16833 | n/a | Size cacheSizeLimit; |
|---|
| 16834 | n/a | #ifndef DataHGetCacheSizeLimit |
|---|
| 16835 | n/a | PyMac_PRECHECK(DataHGetCacheSizeLimit); |
|---|
| 16836 | n/a | #endif |
|---|
| 16837 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16838 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16839 | n/a | return NULL; |
|---|
| 16840 | n/a | _rv = DataHGetCacheSizeLimit(dh, |
|---|
| 16841 | n/a | &cacheSizeLimit); |
|---|
| 16842 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16843 | n/a | _rv, |
|---|
| 16844 | n/a | cacheSizeLimit); |
|---|
| 16845 | n/a | return _res; |
|---|
| 16846 | n/a | } |
|---|
| 16847 | n/a | |
|---|
| 16848 | n/a | static PyObject *Qt_DataHGetMovie(PyObject *_self, PyObject *_args) |
|---|
| 16849 | n/a | { |
|---|
| 16850 | n/a | PyObject *_res = NULL; |
|---|
| 16851 | n/a | ComponentResult _rv; |
|---|
| 16852 | n/a | DataHandler dh; |
|---|
| 16853 | n/a | Movie theMovie; |
|---|
| 16854 | n/a | short id; |
|---|
| 16855 | n/a | #ifndef DataHGetMovie |
|---|
| 16856 | n/a | PyMac_PRECHECK(DataHGetMovie); |
|---|
| 16857 | n/a | #endif |
|---|
| 16858 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16859 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16860 | n/a | return NULL; |
|---|
| 16861 | n/a | _rv = DataHGetMovie(dh, |
|---|
| 16862 | n/a | &theMovie, |
|---|
| 16863 | n/a | &id); |
|---|
| 16864 | n/a | _res = Py_BuildValue("lO&h", |
|---|
| 16865 | n/a | _rv, |
|---|
| 16866 | n/a | MovieObj_New, theMovie, |
|---|
| 16867 | n/a | id); |
|---|
| 16868 | n/a | return _res; |
|---|
| 16869 | n/a | } |
|---|
| 16870 | n/a | |
|---|
| 16871 | n/a | static PyObject *Qt_DataHAddMovie(PyObject *_self, PyObject *_args) |
|---|
| 16872 | n/a | { |
|---|
| 16873 | n/a | PyObject *_res = NULL; |
|---|
| 16874 | n/a | ComponentResult _rv; |
|---|
| 16875 | n/a | DataHandler dh; |
|---|
| 16876 | n/a | Movie theMovie; |
|---|
| 16877 | n/a | short id; |
|---|
| 16878 | n/a | #ifndef DataHAddMovie |
|---|
| 16879 | n/a | PyMac_PRECHECK(DataHAddMovie); |
|---|
| 16880 | n/a | #endif |
|---|
| 16881 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 16882 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16883 | n/a | MovieObj_Convert, &theMovie)) |
|---|
| 16884 | n/a | return NULL; |
|---|
| 16885 | n/a | _rv = DataHAddMovie(dh, |
|---|
| 16886 | n/a | theMovie, |
|---|
| 16887 | n/a | &id); |
|---|
| 16888 | n/a | _res = Py_BuildValue("lh", |
|---|
| 16889 | n/a | _rv, |
|---|
| 16890 | n/a | id); |
|---|
| 16891 | n/a | return _res; |
|---|
| 16892 | n/a | } |
|---|
| 16893 | n/a | |
|---|
| 16894 | n/a | static PyObject *Qt_DataHUpdateMovie(PyObject *_self, PyObject *_args) |
|---|
| 16895 | n/a | { |
|---|
| 16896 | n/a | PyObject *_res = NULL; |
|---|
| 16897 | n/a | ComponentResult _rv; |
|---|
| 16898 | n/a | DataHandler dh; |
|---|
| 16899 | n/a | Movie theMovie; |
|---|
| 16900 | n/a | short id; |
|---|
| 16901 | n/a | #ifndef DataHUpdateMovie |
|---|
| 16902 | n/a | PyMac_PRECHECK(DataHUpdateMovie); |
|---|
| 16903 | n/a | #endif |
|---|
| 16904 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 16905 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16906 | n/a | MovieObj_Convert, &theMovie, |
|---|
| 16907 | n/a | &id)) |
|---|
| 16908 | n/a | return NULL; |
|---|
| 16909 | n/a | _rv = DataHUpdateMovie(dh, |
|---|
| 16910 | n/a | theMovie, |
|---|
| 16911 | n/a | id); |
|---|
| 16912 | n/a | _res = Py_BuildValue("l", |
|---|
| 16913 | n/a | _rv); |
|---|
| 16914 | n/a | return _res; |
|---|
| 16915 | n/a | } |
|---|
| 16916 | n/a | |
|---|
| 16917 | n/a | static PyObject *Qt_DataHDoesBuffer(PyObject *_self, PyObject *_args) |
|---|
| 16918 | n/a | { |
|---|
| 16919 | n/a | PyObject *_res = NULL; |
|---|
| 16920 | n/a | ComponentResult _rv; |
|---|
| 16921 | n/a | DataHandler dh; |
|---|
| 16922 | n/a | Boolean buffersReads; |
|---|
| 16923 | n/a | Boolean buffersWrites; |
|---|
| 16924 | n/a | #ifndef DataHDoesBuffer |
|---|
| 16925 | n/a | PyMac_PRECHECK(DataHDoesBuffer); |
|---|
| 16926 | n/a | #endif |
|---|
| 16927 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16928 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16929 | n/a | return NULL; |
|---|
| 16930 | n/a | _rv = DataHDoesBuffer(dh, |
|---|
| 16931 | n/a | &buffersReads, |
|---|
| 16932 | n/a | &buffersWrites); |
|---|
| 16933 | n/a | _res = Py_BuildValue("lbb", |
|---|
| 16934 | n/a | _rv, |
|---|
| 16935 | n/a | buffersReads, |
|---|
| 16936 | n/a | buffersWrites); |
|---|
| 16937 | n/a | return _res; |
|---|
| 16938 | n/a | } |
|---|
| 16939 | n/a | |
|---|
| 16940 | n/a | static PyObject *Qt_DataHGetFileName(PyObject *_self, PyObject *_args) |
|---|
| 16941 | n/a | { |
|---|
| 16942 | n/a | PyObject *_res = NULL; |
|---|
| 16943 | n/a | ComponentResult _rv; |
|---|
| 16944 | n/a | DataHandler dh; |
|---|
| 16945 | n/a | Str255 str; |
|---|
| 16946 | n/a | #ifndef DataHGetFileName |
|---|
| 16947 | n/a | PyMac_PRECHECK(DataHGetFileName); |
|---|
| 16948 | n/a | #endif |
|---|
| 16949 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 16950 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 16951 | n/a | PyMac_GetStr255, str)) |
|---|
| 16952 | n/a | return NULL; |
|---|
| 16953 | n/a | _rv = DataHGetFileName(dh, |
|---|
| 16954 | n/a | str); |
|---|
| 16955 | n/a | _res = Py_BuildValue("l", |
|---|
| 16956 | n/a | _rv); |
|---|
| 16957 | n/a | return _res; |
|---|
| 16958 | n/a | } |
|---|
| 16959 | n/a | |
|---|
| 16960 | n/a | static PyObject *Qt_DataHGetAvailableFileSize(PyObject *_self, PyObject *_args) |
|---|
| 16961 | n/a | { |
|---|
| 16962 | n/a | PyObject *_res = NULL; |
|---|
| 16963 | n/a | ComponentResult _rv; |
|---|
| 16964 | n/a | DataHandler dh; |
|---|
| 16965 | n/a | long fileSize; |
|---|
| 16966 | n/a | #ifndef DataHGetAvailableFileSize |
|---|
| 16967 | n/a | PyMac_PRECHECK(DataHGetAvailableFileSize); |
|---|
| 16968 | n/a | #endif |
|---|
| 16969 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16970 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16971 | n/a | return NULL; |
|---|
| 16972 | n/a | _rv = DataHGetAvailableFileSize(dh, |
|---|
| 16973 | n/a | &fileSize); |
|---|
| 16974 | n/a | _res = Py_BuildValue("ll", |
|---|
| 16975 | n/a | _rv, |
|---|
| 16976 | n/a | fileSize); |
|---|
| 16977 | n/a | return _res; |
|---|
| 16978 | n/a | } |
|---|
| 16979 | n/a | |
|---|
| 16980 | n/a | static PyObject *Qt_DataHGetMacOSFileType(PyObject *_self, PyObject *_args) |
|---|
| 16981 | n/a | { |
|---|
| 16982 | n/a | PyObject *_res = NULL; |
|---|
| 16983 | n/a | ComponentResult _rv; |
|---|
| 16984 | n/a | DataHandler dh; |
|---|
| 16985 | n/a | OSType fileType; |
|---|
| 16986 | n/a | #ifndef DataHGetMacOSFileType |
|---|
| 16987 | n/a | PyMac_PRECHECK(DataHGetMacOSFileType); |
|---|
| 16988 | n/a | #endif |
|---|
| 16989 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 16990 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 16991 | n/a | return NULL; |
|---|
| 16992 | n/a | _rv = DataHGetMacOSFileType(dh, |
|---|
| 16993 | n/a | &fileType); |
|---|
| 16994 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 16995 | n/a | _rv, |
|---|
| 16996 | n/a | PyMac_BuildOSType, fileType); |
|---|
| 16997 | n/a | return _res; |
|---|
| 16998 | n/a | } |
|---|
| 16999 | n/a | |
|---|
| 17000 | n/a | static PyObject *Qt_DataHGetMIMEType(PyObject *_self, PyObject *_args) |
|---|
| 17001 | n/a | { |
|---|
| 17002 | n/a | PyObject *_res = NULL; |
|---|
| 17003 | n/a | ComponentResult _rv; |
|---|
| 17004 | n/a | DataHandler dh; |
|---|
| 17005 | n/a | Str255 mimeType; |
|---|
| 17006 | n/a | #ifndef DataHGetMIMEType |
|---|
| 17007 | n/a | PyMac_PRECHECK(DataHGetMIMEType); |
|---|
| 17008 | n/a | #endif |
|---|
| 17009 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17010 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17011 | n/a | PyMac_GetStr255, mimeType)) |
|---|
| 17012 | n/a | return NULL; |
|---|
| 17013 | n/a | _rv = DataHGetMIMEType(dh, |
|---|
| 17014 | n/a | mimeType); |
|---|
| 17015 | n/a | _res = Py_BuildValue("l", |
|---|
| 17016 | n/a | _rv); |
|---|
| 17017 | n/a | return _res; |
|---|
| 17018 | n/a | } |
|---|
| 17019 | n/a | |
|---|
| 17020 | n/a | static PyObject *Qt_DataHSetDataRefWithAnchor(PyObject *_self, PyObject *_args) |
|---|
| 17021 | n/a | { |
|---|
| 17022 | n/a | PyObject *_res = NULL; |
|---|
| 17023 | n/a | ComponentResult _rv; |
|---|
| 17024 | n/a | DataHandler dh; |
|---|
| 17025 | n/a | Handle anchorDataRef; |
|---|
| 17026 | n/a | OSType dataRefType; |
|---|
| 17027 | n/a | Handle dataRef; |
|---|
| 17028 | n/a | #ifndef DataHSetDataRefWithAnchor |
|---|
| 17029 | n/a | PyMac_PRECHECK(DataHSetDataRefWithAnchor); |
|---|
| 17030 | n/a | #endif |
|---|
| 17031 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 17032 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17033 | n/a | ResObj_Convert, &anchorDataRef, |
|---|
| 17034 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 17035 | n/a | ResObj_Convert, &dataRef)) |
|---|
| 17036 | n/a | return NULL; |
|---|
| 17037 | n/a | _rv = DataHSetDataRefWithAnchor(dh, |
|---|
| 17038 | n/a | anchorDataRef, |
|---|
| 17039 | n/a | dataRefType, |
|---|
| 17040 | n/a | dataRef); |
|---|
| 17041 | n/a | _res = Py_BuildValue("l", |
|---|
| 17042 | n/a | _rv); |
|---|
| 17043 | n/a | return _res; |
|---|
| 17044 | n/a | } |
|---|
| 17045 | n/a | |
|---|
| 17046 | n/a | static PyObject *Qt_DataHGetDataRefWithAnchor(PyObject *_self, PyObject *_args) |
|---|
| 17047 | n/a | { |
|---|
| 17048 | n/a | PyObject *_res = NULL; |
|---|
| 17049 | n/a | ComponentResult _rv; |
|---|
| 17050 | n/a | DataHandler dh; |
|---|
| 17051 | n/a | Handle anchorDataRef; |
|---|
| 17052 | n/a | OSType dataRefType; |
|---|
| 17053 | n/a | Handle dataRef; |
|---|
| 17054 | n/a | #ifndef DataHGetDataRefWithAnchor |
|---|
| 17055 | n/a | PyMac_PRECHECK(DataHGetDataRefWithAnchor); |
|---|
| 17056 | n/a | #endif |
|---|
| 17057 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 17058 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17059 | n/a | ResObj_Convert, &anchorDataRef, |
|---|
| 17060 | n/a | PyMac_GetOSType, &dataRefType)) |
|---|
| 17061 | n/a | return NULL; |
|---|
| 17062 | n/a | _rv = DataHGetDataRefWithAnchor(dh, |
|---|
| 17063 | n/a | anchorDataRef, |
|---|
| 17064 | n/a | dataRefType, |
|---|
| 17065 | n/a | &dataRef); |
|---|
| 17066 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17067 | n/a | _rv, |
|---|
| 17068 | n/a | ResObj_New, dataRef); |
|---|
| 17069 | n/a | return _res; |
|---|
| 17070 | n/a | } |
|---|
| 17071 | n/a | |
|---|
| 17072 | n/a | static PyObject *Qt_DataHSetMacOSFileType(PyObject *_self, PyObject *_args) |
|---|
| 17073 | n/a | { |
|---|
| 17074 | n/a | PyObject *_res = NULL; |
|---|
| 17075 | n/a | ComponentResult _rv; |
|---|
| 17076 | n/a | DataHandler dh; |
|---|
| 17077 | n/a | OSType fileType; |
|---|
| 17078 | n/a | #ifndef DataHSetMacOSFileType |
|---|
| 17079 | n/a | PyMac_PRECHECK(DataHSetMacOSFileType); |
|---|
| 17080 | n/a | #endif |
|---|
| 17081 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17082 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17083 | n/a | PyMac_GetOSType, &fileType)) |
|---|
| 17084 | n/a | return NULL; |
|---|
| 17085 | n/a | _rv = DataHSetMacOSFileType(dh, |
|---|
| 17086 | n/a | fileType); |
|---|
| 17087 | n/a | _res = Py_BuildValue("l", |
|---|
| 17088 | n/a | _rv); |
|---|
| 17089 | n/a | return _res; |
|---|
| 17090 | n/a | } |
|---|
| 17091 | n/a | |
|---|
| 17092 | n/a | static PyObject *Qt_DataHSetTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 17093 | n/a | { |
|---|
| 17094 | n/a | PyObject *_res = NULL; |
|---|
| 17095 | n/a | ComponentResult _rv; |
|---|
| 17096 | n/a | DataHandler dh; |
|---|
| 17097 | n/a | TimeBase tb; |
|---|
| 17098 | n/a | #ifndef DataHSetTimeBase |
|---|
| 17099 | n/a | PyMac_PRECHECK(DataHSetTimeBase); |
|---|
| 17100 | n/a | #endif |
|---|
| 17101 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17102 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17103 | n/a | TimeBaseObj_Convert, &tb)) |
|---|
| 17104 | n/a | return NULL; |
|---|
| 17105 | n/a | _rv = DataHSetTimeBase(dh, |
|---|
| 17106 | n/a | tb); |
|---|
| 17107 | n/a | _res = Py_BuildValue("l", |
|---|
| 17108 | n/a | _rv); |
|---|
| 17109 | n/a | return _res; |
|---|
| 17110 | n/a | } |
|---|
| 17111 | n/a | |
|---|
| 17112 | n/a | static PyObject *Qt_DataHGetInfoFlags(PyObject *_self, PyObject *_args) |
|---|
| 17113 | n/a | { |
|---|
| 17114 | n/a | PyObject *_res = NULL; |
|---|
| 17115 | n/a | ComponentResult _rv; |
|---|
| 17116 | n/a | DataHandler dh; |
|---|
| 17117 | n/a | UInt32 flags; |
|---|
| 17118 | n/a | #ifndef DataHGetInfoFlags |
|---|
| 17119 | n/a | PyMac_PRECHECK(DataHGetInfoFlags); |
|---|
| 17120 | n/a | #endif |
|---|
| 17121 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17122 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 17123 | n/a | return NULL; |
|---|
| 17124 | n/a | _rv = DataHGetInfoFlags(dh, |
|---|
| 17125 | n/a | &flags); |
|---|
| 17126 | n/a | _res = Py_BuildValue("ll", |
|---|
| 17127 | n/a | _rv, |
|---|
| 17128 | n/a | flags); |
|---|
| 17129 | n/a | return _res; |
|---|
| 17130 | n/a | } |
|---|
| 17131 | n/a | |
|---|
| 17132 | n/a | static PyObject *Qt_DataHGetFileSize64(PyObject *_self, PyObject *_args) |
|---|
| 17133 | n/a | { |
|---|
| 17134 | n/a | PyObject *_res = NULL; |
|---|
| 17135 | n/a | ComponentResult _rv; |
|---|
| 17136 | n/a | DataHandler dh; |
|---|
| 17137 | n/a | wide fileSize; |
|---|
| 17138 | n/a | #ifndef DataHGetFileSize64 |
|---|
| 17139 | n/a | PyMac_PRECHECK(DataHGetFileSize64); |
|---|
| 17140 | n/a | #endif |
|---|
| 17141 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17142 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 17143 | n/a | return NULL; |
|---|
| 17144 | n/a | _rv = DataHGetFileSize64(dh, |
|---|
| 17145 | n/a | &fileSize); |
|---|
| 17146 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17147 | n/a | _rv, |
|---|
| 17148 | n/a | PyMac_Buildwide, fileSize); |
|---|
| 17149 | n/a | return _res; |
|---|
| 17150 | n/a | } |
|---|
| 17151 | n/a | |
|---|
| 17152 | n/a | static PyObject *Qt_DataHPreextend64(PyObject *_self, PyObject *_args) |
|---|
| 17153 | n/a | { |
|---|
| 17154 | n/a | PyObject *_res = NULL; |
|---|
| 17155 | n/a | ComponentResult _rv; |
|---|
| 17156 | n/a | DataHandler dh; |
|---|
| 17157 | n/a | wide maxToAdd; |
|---|
| 17158 | n/a | wide spaceAdded; |
|---|
| 17159 | n/a | #ifndef DataHPreextend64 |
|---|
| 17160 | n/a | PyMac_PRECHECK(DataHPreextend64); |
|---|
| 17161 | n/a | #endif |
|---|
| 17162 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17163 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17164 | n/a | PyMac_Getwide, &maxToAdd)) |
|---|
| 17165 | n/a | return NULL; |
|---|
| 17166 | n/a | _rv = DataHPreextend64(dh, |
|---|
| 17167 | n/a | &maxToAdd, |
|---|
| 17168 | n/a | &spaceAdded); |
|---|
| 17169 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17170 | n/a | _rv, |
|---|
| 17171 | n/a | PyMac_Buildwide, spaceAdded); |
|---|
| 17172 | n/a | return _res; |
|---|
| 17173 | n/a | } |
|---|
| 17174 | n/a | |
|---|
| 17175 | n/a | static PyObject *Qt_DataHSetFileSize64(PyObject *_self, PyObject *_args) |
|---|
| 17176 | n/a | { |
|---|
| 17177 | n/a | PyObject *_res = NULL; |
|---|
| 17178 | n/a | ComponentResult _rv; |
|---|
| 17179 | n/a | DataHandler dh; |
|---|
| 17180 | n/a | wide fileSize; |
|---|
| 17181 | n/a | #ifndef DataHSetFileSize64 |
|---|
| 17182 | n/a | PyMac_PRECHECK(DataHSetFileSize64); |
|---|
| 17183 | n/a | #endif |
|---|
| 17184 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17185 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17186 | n/a | PyMac_Getwide, &fileSize)) |
|---|
| 17187 | n/a | return NULL; |
|---|
| 17188 | n/a | _rv = DataHSetFileSize64(dh, |
|---|
| 17189 | n/a | &fileSize); |
|---|
| 17190 | n/a | _res = Py_BuildValue("l", |
|---|
| 17191 | n/a | _rv); |
|---|
| 17192 | n/a | return _res; |
|---|
| 17193 | n/a | } |
|---|
| 17194 | n/a | |
|---|
| 17195 | n/a | static PyObject *Qt_DataHGetFreeSpace64(PyObject *_self, PyObject *_args) |
|---|
| 17196 | n/a | { |
|---|
| 17197 | n/a | PyObject *_res = NULL; |
|---|
| 17198 | n/a | ComponentResult _rv; |
|---|
| 17199 | n/a | DataHandler dh; |
|---|
| 17200 | n/a | wide freeSize; |
|---|
| 17201 | n/a | #ifndef DataHGetFreeSpace64 |
|---|
| 17202 | n/a | PyMac_PRECHECK(DataHGetFreeSpace64); |
|---|
| 17203 | n/a | #endif |
|---|
| 17204 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17205 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 17206 | n/a | return NULL; |
|---|
| 17207 | n/a | _rv = DataHGetFreeSpace64(dh, |
|---|
| 17208 | n/a | &freeSize); |
|---|
| 17209 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17210 | n/a | _rv, |
|---|
| 17211 | n/a | PyMac_Buildwide, freeSize); |
|---|
| 17212 | n/a | return _res; |
|---|
| 17213 | n/a | } |
|---|
| 17214 | n/a | |
|---|
| 17215 | n/a | static PyObject *Qt_DataHAppend64(PyObject *_self, PyObject *_args) |
|---|
| 17216 | n/a | { |
|---|
| 17217 | n/a | PyObject *_res = NULL; |
|---|
| 17218 | n/a | ComponentResult _rv; |
|---|
| 17219 | n/a | DataHandler dh; |
|---|
| 17220 | n/a | void * data; |
|---|
| 17221 | n/a | wide fileOffset; |
|---|
| 17222 | n/a | unsigned long size; |
|---|
| 17223 | n/a | #ifndef DataHAppend64 |
|---|
| 17224 | n/a | PyMac_PRECHECK(DataHAppend64); |
|---|
| 17225 | n/a | #endif |
|---|
| 17226 | n/a | if (!PyArg_ParseTuple(_args, "O&sl", |
|---|
| 17227 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17228 | n/a | &data, |
|---|
| 17229 | n/a | &size)) |
|---|
| 17230 | n/a | return NULL; |
|---|
| 17231 | n/a | _rv = DataHAppend64(dh, |
|---|
| 17232 | n/a | data, |
|---|
| 17233 | n/a | &fileOffset, |
|---|
| 17234 | n/a | size); |
|---|
| 17235 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17236 | n/a | _rv, |
|---|
| 17237 | n/a | PyMac_Buildwide, fileOffset); |
|---|
| 17238 | n/a | return _res; |
|---|
| 17239 | n/a | } |
|---|
| 17240 | n/a | |
|---|
| 17241 | n/a | static PyObject *Qt_DataHPollRead(PyObject *_self, PyObject *_args) |
|---|
| 17242 | n/a | { |
|---|
| 17243 | n/a | PyObject *_res = NULL; |
|---|
| 17244 | n/a | ComponentResult _rv; |
|---|
| 17245 | n/a | DataHandler dh; |
|---|
| 17246 | n/a | void * dataPtr; |
|---|
| 17247 | n/a | UInt32 dataSizeSoFar; |
|---|
| 17248 | n/a | #ifndef DataHPollRead |
|---|
| 17249 | n/a | PyMac_PRECHECK(DataHPollRead); |
|---|
| 17250 | n/a | #endif |
|---|
| 17251 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 17252 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17253 | n/a | &dataPtr)) |
|---|
| 17254 | n/a | return NULL; |
|---|
| 17255 | n/a | _rv = DataHPollRead(dh, |
|---|
| 17256 | n/a | dataPtr, |
|---|
| 17257 | n/a | &dataSizeSoFar); |
|---|
| 17258 | n/a | _res = Py_BuildValue("ll", |
|---|
| 17259 | n/a | _rv, |
|---|
| 17260 | n/a | dataSizeSoFar); |
|---|
| 17261 | n/a | return _res; |
|---|
| 17262 | n/a | } |
|---|
| 17263 | n/a | |
|---|
| 17264 | n/a | static PyObject *Qt_DataHGetDataAvailability(PyObject *_self, PyObject *_args) |
|---|
| 17265 | n/a | { |
|---|
| 17266 | n/a | PyObject *_res = NULL; |
|---|
| 17267 | n/a | ComponentResult _rv; |
|---|
| 17268 | n/a | DataHandler dh; |
|---|
| 17269 | n/a | long offset; |
|---|
| 17270 | n/a | long len; |
|---|
| 17271 | n/a | long missing_offset; |
|---|
| 17272 | n/a | long missing_len; |
|---|
| 17273 | n/a | #ifndef DataHGetDataAvailability |
|---|
| 17274 | n/a | PyMac_PRECHECK(DataHGetDataAvailability); |
|---|
| 17275 | n/a | #endif |
|---|
| 17276 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 17277 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17278 | n/a | &offset, |
|---|
| 17279 | n/a | &len)) |
|---|
| 17280 | n/a | return NULL; |
|---|
| 17281 | n/a | _rv = DataHGetDataAvailability(dh, |
|---|
| 17282 | n/a | offset, |
|---|
| 17283 | n/a | len, |
|---|
| 17284 | n/a | &missing_offset, |
|---|
| 17285 | n/a | &missing_len); |
|---|
| 17286 | n/a | _res = Py_BuildValue("lll", |
|---|
| 17287 | n/a | _rv, |
|---|
| 17288 | n/a | missing_offset, |
|---|
| 17289 | n/a | missing_len); |
|---|
| 17290 | n/a | return _res; |
|---|
| 17291 | n/a | } |
|---|
| 17292 | n/a | |
|---|
| 17293 | n/a | static PyObject *Qt_DataHGetDataRefAsType(PyObject *_self, PyObject *_args) |
|---|
| 17294 | n/a | { |
|---|
| 17295 | n/a | PyObject *_res = NULL; |
|---|
| 17296 | n/a | ComponentResult _rv; |
|---|
| 17297 | n/a | DataHandler dh; |
|---|
| 17298 | n/a | OSType requestedType; |
|---|
| 17299 | n/a | Handle dataRef; |
|---|
| 17300 | n/a | #ifndef DataHGetDataRefAsType |
|---|
| 17301 | n/a | PyMac_PRECHECK(DataHGetDataRefAsType); |
|---|
| 17302 | n/a | #endif |
|---|
| 17303 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17304 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17305 | n/a | PyMac_GetOSType, &requestedType)) |
|---|
| 17306 | n/a | return NULL; |
|---|
| 17307 | n/a | _rv = DataHGetDataRefAsType(dh, |
|---|
| 17308 | n/a | requestedType, |
|---|
| 17309 | n/a | &dataRef); |
|---|
| 17310 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17311 | n/a | _rv, |
|---|
| 17312 | n/a | ResObj_New, dataRef); |
|---|
| 17313 | n/a | return _res; |
|---|
| 17314 | n/a | } |
|---|
| 17315 | n/a | |
|---|
| 17316 | n/a | static PyObject *Qt_DataHSetDataRefExtension(PyObject *_self, PyObject *_args) |
|---|
| 17317 | n/a | { |
|---|
| 17318 | n/a | PyObject *_res = NULL; |
|---|
| 17319 | n/a | ComponentResult _rv; |
|---|
| 17320 | n/a | DataHandler dh; |
|---|
| 17321 | n/a | Handle extension; |
|---|
| 17322 | n/a | OSType idType; |
|---|
| 17323 | n/a | #ifndef DataHSetDataRefExtension |
|---|
| 17324 | n/a | PyMac_PRECHECK(DataHSetDataRefExtension); |
|---|
| 17325 | n/a | #endif |
|---|
| 17326 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 17327 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17328 | n/a | ResObj_Convert, &extension, |
|---|
| 17329 | n/a | PyMac_GetOSType, &idType)) |
|---|
| 17330 | n/a | return NULL; |
|---|
| 17331 | n/a | _rv = DataHSetDataRefExtension(dh, |
|---|
| 17332 | n/a | extension, |
|---|
| 17333 | n/a | idType); |
|---|
| 17334 | n/a | _res = Py_BuildValue("l", |
|---|
| 17335 | n/a | _rv); |
|---|
| 17336 | n/a | return _res; |
|---|
| 17337 | n/a | } |
|---|
| 17338 | n/a | |
|---|
| 17339 | n/a | static PyObject *Qt_DataHGetDataRefExtension(PyObject *_self, PyObject *_args) |
|---|
| 17340 | n/a | { |
|---|
| 17341 | n/a | PyObject *_res = NULL; |
|---|
| 17342 | n/a | ComponentResult _rv; |
|---|
| 17343 | n/a | DataHandler dh; |
|---|
| 17344 | n/a | Handle extension; |
|---|
| 17345 | n/a | OSType idType; |
|---|
| 17346 | n/a | #ifndef DataHGetDataRefExtension |
|---|
| 17347 | n/a | PyMac_PRECHECK(DataHGetDataRefExtension); |
|---|
| 17348 | n/a | #endif |
|---|
| 17349 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17350 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17351 | n/a | PyMac_GetOSType, &idType)) |
|---|
| 17352 | n/a | return NULL; |
|---|
| 17353 | n/a | _rv = DataHGetDataRefExtension(dh, |
|---|
| 17354 | n/a | &extension, |
|---|
| 17355 | n/a | idType); |
|---|
| 17356 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17357 | n/a | _rv, |
|---|
| 17358 | n/a | ResObj_New, extension); |
|---|
| 17359 | n/a | return _res; |
|---|
| 17360 | n/a | } |
|---|
| 17361 | n/a | |
|---|
| 17362 | n/a | static PyObject *Qt_DataHGetMovieWithFlags(PyObject *_self, PyObject *_args) |
|---|
| 17363 | n/a | { |
|---|
| 17364 | n/a | PyObject *_res = NULL; |
|---|
| 17365 | n/a | ComponentResult _rv; |
|---|
| 17366 | n/a | DataHandler dh; |
|---|
| 17367 | n/a | Movie theMovie; |
|---|
| 17368 | n/a | short id; |
|---|
| 17369 | n/a | short flags; |
|---|
| 17370 | n/a | #ifndef DataHGetMovieWithFlags |
|---|
| 17371 | n/a | PyMac_PRECHECK(DataHGetMovieWithFlags); |
|---|
| 17372 | n/a | #endif |
|---|
| 17373 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 17374 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17375 | n/a | &flags)) |
|---|
| 17376 | n/a | return NULL; |
|---|
| 17377 | n/a | _rv = DataHGetMovieWithFlags(dh, |
|---|
| 17378 | n/a | &theMovie, |
|---|
| 17379 | n/a | &id, |
|---|
| 17380 | n/a | flags); |
|---|
| 17381 | n/a | _res = Py_BuildValue("lO&h", |
|---|
| 17382 | n/a | _rv, |
|---|
| 17383 | n/a | MovieObj_New, theMovie, |
|---|
| 17384 | n/a | id); |
|---|
| 17385 | n/a | return _res; |
|---|
| 17386 | n/a | } |
|---|
| 17387 | n/a | |
|---|
| 17388 | n/a | static PyObject *Qt_DataHGetFileTypeOrdering(PyObject *_self, PyObject *_args) |
|---|
| 17389 | n/a | { |
|---|
| 17390 | n/a | PyObject *_res = NULL; |
|---|
| 17391 | n/a | ComponentResult _rv; |
|---|
| 17392 | n/a | DataHandler dh; |
|---|
| 17393 | n/a | DataHFileTypeOrderingHandle orderingListHandle; |
|---|
| 17394 | n/a | #ifndef DataHGetFileTypeOrdering |
|---|
| 17395 | n/a | PyMac_PRECHECK(DataHGetFileTypeOrdering); |
|---|
| 17396 | n/a | #endif |
|---|
| 17397 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17398 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 17399 | n/a | return NULL; |
|---|
| 17400 | n/a | _rv = DataHGetFileTypeOrdering(dh, |
|---|
| 17401 | n/a | &orderingListHandle); |
|---|
| 17402 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17403 | n/a | _rv, |
|---|
| 17404 | n/a | ResObj_New, orderingListHandle); |
|---|
| 17405 | n/a | return _res; |
|---|
| 17406 | n/a | } |
|---|
| 17407 | n/a | |
|---|
| 17408 | n/a | static PyObject *Qt_DataHCreateFileWithFlags(PyObject *_self, PyObject *_args) |
|---|
| 17409 | n/a | { |
|---|
| 17410 | n/a | PyObject *_res = NULL; |
|---|
| 17411 | n/a | ComponentResult _rv; |
|---|
| 17412 | n/a | DataHandler dh; |
|---|
| 17413 | n/a | OSType creator; |
|---|
| 17414 | n/a | Boolean deleteExisting; |
|---|
| 17415 | n/a | UInt32 flags; |
|---|
| 17416 | n/a | #ifndef DataHCreateFileWithFlags |
|---|
| 17417 | n/a | PyMac_PRECHECK(DataHCreateFileWithFlags); |
|---|
| 17418 | n/a | #endif |
|---|
| 17419 | n/a | if (!PyArg_ParseTuple(_args, "O&O&bl", |
|---|
| 17420 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17421 | n/a | PyMac_GetOSType, &creator, |
|---|
| 17422 | n/a | &deleteExisting, |
|---|
| 17423 | n/a | &flags)) |
|---|
| 17424 | n/a | return NULL; |
|---|
| 17425 | n/a | _rv = DataHCreateFileWithFlags(dh, |
|---|
| 17426 | n/a | creator, |
|---|
| 17427 | n/a | deleteExisting, |
|---|
| 17428 | n/a | flags); |
|---|
| 17429 | n/a | _res = Py_BuildValue("l", |
|---|
| 17430 | n/a | _rv); |
|---|
| 17431 | n/a | return _res; |
|---|
| 17432 | n/a | } |
|---|
| 17433 | n/a | |
|---|
| 17434 | n/a | static PyObject *Qt_DataHGetInfo(PyObject *_self, PyObject *_args) |
|---|
| 17435 | n/a | { |
|---|
| 17436 | n/a | PyObject *_res = NULL; |
|---|
| 17437 | n/a | ComponentResult _rv; |
|---|
| 17438 | n/a | DataHandler dh; |
|---|
| 17439 | n/a | OSType what; |
|---|
| 17440 | n/a | void * info; |
|---|
| 17441 | n/a | #ifndef DataHGetInfo |
|---|
| 17442 | n/a | PyMac_PRECHECK(DataHGetInfo); |
|---|
| 17443 | n/a | #endif |
|---|
| 17444 | n/a | if (!PyArg_ParseTuple(_args, "O&O&s", |
|---|
| 17445 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17446 | n/a | PyMac_GetOSType, &what, |
|---|
| 17447 | n/a | &info)) |
|---|
| 17448 | n/a | return NULL; |
|---|
| 17449 | n/a | _rv = DataHGetInfo(dh, |
|---|
| 17450 | n/a | what, |
|---|
| 17451 | n/a | info); |
|---|
| 17452 | n/a | _res = Py_BuildValue("l", |
|---|
| 17453 | n/a | _rv); |
|---|
| 17454 | n/a | return _res; |
|---|
| 17455 | n/a | } |
|---|
| 17456 | n/a | |
|---|
| 17457 | n/a | static PyObject *Qt_DataHSetIdleManager(PyObject *_self, PyObject *_args) |
|---|
| 17458 | n/a | { |
|---|
| 17459 | n/a | PyObject *_res = NULL; |
|---|
| 17460 | n/a | ComponentResult _rv; |
|---|
| 17461 | n/a | DataHandler dh; |
|---|
| 17462 | n/a | IdleManager im; |
|---|
| 17463 | n/a | #ifndef DataHSetIdleManager |
|---|
| 17464 | n/a | PyMac_PRECHECK(DataHSetIdleManager); |
|---|
| 17465 | n/a | #endif |
|---|
| 17466 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17467 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17468 | n/a | IdleManagerObj_Convert, &im)) |
|---|
| 17469 | n/a | return NULL; |
|---|
| 17470 | n/a | _rv = DataHSetIdleManager(dh, |
|---|
| 17471 | n/a | im); |
|---|
| 17472 | n/a | _res = Py_BuildValue("l", |
|---|
| 17473 | n/a | _rv); |
|---|
| 17474 | n/a | return _res; |
|---|
| 17475 | n/a | } |
|---|
| 17476 | n/a | |
|---|
| 17477 | n/a | static PyObject *Qt_DataHDeleteFile(PyObject *_self, PyObject *_args) |
|---|
| 17478 | n/a | { |
|---|
| 17479 | n/a | PyObject *_res = NULL; |
|---|
| 17480 | n/a | ComponentResult _rv; |
|---|
| 17481 | n/a | DataHandler dh; |
|---|
| 17482 | n/a | #ifndef DataHDeleteFile |
|---|
| 17483 | n/a | PyMac_PRECHECK(DataHDeleteFile); |
|---|
| 17484 | n/a | #endif |
|---|
| 17485 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17486 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 17487 | n/a | return NULL; |
|---|
| 17488 | n/a | _rv = DataHDeleteFile(dh); |
|---|
| 17489 | n/a | _res = Py_BuildValue("l", |
|---|
| 17490 | n/a | _rv); |
|---|
| 17491 | n/a | return _res; |
|---|
| 17492 | n/a | } |
|---|
| 17493 | n/a | |
|---|
| 17494 | n/a | static PyObject *Qt_DataHSetMovieUsageFlags(PyObject *_self, PyObject *_args) |
|---|
| 17495 | n/a | { |
|---|
| 17496 | n/a | PyObject *_res = NULL; |
|---|
| 17497 | n/a | ComponentResult _rv; |
|---|
| 17498 | n/a | DataHandler dh; |
|---|
| 17499 | n/a | long flags; |
|---|
| 17500 | n/a | #ifndef DataHSetMovieUsageFlags |
|---|
| 17501 | n/a | PyMac_PRECHECK(DataHSetMovieUsageFlags); |
|---|
| 17502 | n/a | #endif |
|---|
| 17503 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 17504 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17505 | n/a | &flags)) |
|---|
| 17506 | n/a | return NULL; |
|---|
| 17507 | n/a | _rv = DataHSetMovieUsageFlags(dh, |
|---|
| 17508 | n/a | flags); |
|---|
| 17509 | n/a | _res = Py_BuildValue("l", |
|---|
| 17510 | n/a | _rv); |
|---|
| 17511 | n/a | return _res; |
|---|
| 17512 | n/a | } |
|---|
| 17513 | n/a | |
|---|
| 17514 | n/a | static PyObject *Qt_DataHUseTemporaryDataRef(PyObject *_self, PyObject *_args) |
|---|
| 17515 | n/a | { |
|---|
| 17516 | n/a | PyObject *_res = NULL; |
|---|
| 17517 | n/a | ComponentResult _rv; |
|---|
| 17518 | n/a | DataHandler dh; |
|---|
| 17519 | n/a | long inFlags; |
|---|
| 17520 | n/a | #ifndef DataHUseTemporaryDataRef |
|---|
| 17521 | n/a | PyMac_PRECHECK(DataHUseTemporaryDataRef); |
|---|
| 17522 | n/a | #endif |
|---|
| 17523 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 17524 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17525 | n/a | &inFlags)) |
|---|
| 17526 | n/a | return NULL; |
|---|
| 17527 | n/a | _rv = DataHUseTemporaryDataRef(dh, |
|---|
| 17528 | n/a | inFlags); |
|---|
| 17529 | n/a | _res = Py_BuildValue("l", |
|---|
| 17530 | n/a | _rv); |
|---|
| 17531 | n/a | return _res; |
|---|
| 17532 | n/a | } |
|---|
| 17533 | n/a | |
|---|
| 17534 | n/a | static PyObject *Qt_DataHGetTemporaryDataRefCapabilities(PyObject *_self, PyObject *_args) |
|---|
| 17535 | n/a | { |
|---|
| 17536 | n/a | PyObject *_res = NULL; |
|---|
| 17537 | n/a | ComponentResult _rv; |
|---|
| 17538 | n/a | DataHandler dh; |
|---|
| 17539 | n/a | long outUnderstoodFlags; |
|---|
| 17540 | n/a | #ifndef DataHGetTemporaryDataRefCapabilities |
|---|
| 17541 | n/a | PyMac_PRECHECK(DataHGetTemporaryDataRefCapabilities); |
|---|
| 17542 | n/a | #endif |
|---|
| 17543 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17544 | n/a | CmpInstObj_Convert, &dh)) |
|---|
| 17545 | n/a | return NULL; |
|---|
| 17546 | n/a | _rv = DataHGetTemporaryDataRefCapabilities(dh, |
|---|
| 17547 | n/a | &outUnderstoodFlags); |
|---|
| 17548 | n/a | _res = Py_BuildValue("ll", |
|---|
| 17549 | n/a | _rv, |
|---|
| 17550 | n/a | outUnderstoodFlags); |
|---|
| 17551 | n/a | return _res; |
|---|
| 17552 | n/a | } |
|---|
| 17553 | n/a | |
|---|
| 17554 | n/a | static PyObject *Qt_DataHRenameFile(PyObject *_self, PyObject *_args) |
|---|
| 17555 | n/a | { |
|---|
| 17556 | n/a | PyObject *_res = NULL; |
|---|
| 17557 | n/a | ComponentResult _rv; |
|---|
| 17558 | n/a | DataHandler dh; |
|---|
| 17559 | n/a | Handle newDataRef; |
|---|
| 17560 | n/a | #ifndef DataHRenameFile |
|---|
| 17561 | n/a | PyMac_PRECHECK(DataHRenameFile); |
|---|
| 17562 | n/a | #endif |
|---|
| 17563 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17564 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17565 | n/a | ResObj_Convert, &newDataRef)) |
|---|
| 17566 | n/a | return NULL; |
|---|
| 17567 | n/a | _rv = DataHRenameFile(dh, |
|---|
| 17568 | n/a | newDataRef); |
|---|
| 17569 | n/a | _res = Py_BuildValue("l", |
|---|
| 17570 | n/a | _rv); |
|---|
| 17571 | n/a | return _res; |
|---|
| 17572 | n/a | } |
|---|
| 17573 | n/a | |
|---|
| 17574 | n/a | static PyObject *Qt_DataHPlaybackHints(PyObject *_self, PyObject *_args) |
|---|
| 17575 | n/a | { |
|---|
| 17576 | n/a | PyObject *_res = NULL; |
|---|
| 17577 | n/a | ComponentResult _rv; |
|---|
| 17578 | n/a | DataHandler dh; |
|---|
| 17579 | n/a | long flags; |
|---|
| 17580 | n/a | unsigned long minFileOffset; |
|---|
| 17581 | n/a | unsigned long maxFileOffset; |
|---|
| 17582 | n/a | long bytesPerSecond; |
|---|
| 17583 | n/a | #ifndef DataHPlaybackHints |
|---|
| 17584 | n/a | PyMac_PRECHECK(DataHPlaybackHints); |
|---|
| 17585 | n/a | #endif |
|---|
| 17586 | n/a | if (!PyArg_ParseTuple(_args, "O&llll", |
|---|
| 17587 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17588 | n/a | &flags, |
|---|
| 17589 | n/a | &minFileOffset, |
|---|
| 17590 | n/a | &maxFileOffset, |
|---|
| 17591 | n/a | &bytesPerSecond)) |
|---|
| 17592 | n/a | return NULL; |
|---|
| 17593 | n/a | _rv = DataHPlaybackHints(dh, |
|---|
| 17594 | n/a | flags, |
|---|
| 17595 | n/a | minFileOffset, |
|---|
| 17596 | n/a | maxFileOffset, |
|---|
| 17597 | n/a | bytesPerSecond); |
|---|
| 17598 | n/a | _res = Py_BuildValue("l", |
|---|
| 17599 | n/a | _rv); |
|---|
| 17600 | n/a | return _res; |
|---|
| 17601 | n/a | } |
|---|
| 17602 | n/a | |
|---|
| 17603 | n/a | static PyObject *Qt_DataHPlaybackHints64(PyObject *_self, PyObject *_args) |
|---|
| 17604 | n/a | { |
|---|
| 17605 | n/a | PyObject *_res = NULL; |
|---|
| 17606 | n/a | ComponentResult _rv; |
|---|
| 17607 | n/a | DataHandler dh; |
|---|
| 17608 | n/a | long flags; |
|---|
| 17609 | n/a | wide minFileOffset; |
|---|
| 17610 | n/a | wide maxFileOffset; |
|---|
| 17611 | n/a | long bytesPerSecond; |
|---|
| 17612 | n/a | #ifndef DataHPlaybackHints64 |
|---|
| 17613 | n/a | PyMac_PRECHECK(DataHPlaybackHints64); |
|---|
| 17614 | n/a | #endif |
|---|
| 17615 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&O&l", |
|---|
| 17616 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17617 | n/a | &flags, |
|---|
| 17618 | n/a | PyMac_Getwide, &minFileOffset, |
|---|
| 17619 | n/a | PyMac_Getwide, &maxFileOffset, |
|---|
| 17620 | n/a | &bytesPerSecond)) |
|---|
| 17621 | n/a | return NULL; |
|---|
| 17622 | n/a | _rv = DataHPlaybackHints64(dh, |
|---|
| 17623 | n/a | flags, |
|---|
| 17624 | n/a | &minFileOffset, |
|---|
| 17625 | n/a | &maxFileOffset, |
|---|
| 17626 | n/a | bytesPerSecond); |
|---|
| 17627 | n/a | _res = Py_BuildValue("l", |
|---|
| 17628 | n/a | _rv); |
|---|
| 17629 | n/a | return _res; |
|---|
| 17630 | n/a | } |
|---|
| 17631 | n/a | |
|---|
| 17632 | n/a | static PyObject *Qt_DataHGetDataRate(PyObject *_self, PyObject *_args) |
|---|
| 17633 | n/a | { |
|---|
| 17634 | n/a | PyObject *_res = NULL; |
|---|
| 17635 | n/a | ComponentResult _rv; |
|---|
| 17636 | n/a | DataHandler dh; |
|---|
| 17637 | n/a | long flags; |
|---|
| 17638 | n/a | long bytesPerSecond; |
|---|
| 17639 | n/a | #ifndef DataHGetDataRate |
|---|
| 17640 | n/a | PyMac_PRECHECK(DataHGetDataRate); |
|---|
| 17641 | n/a | #endif |
|---|
| 17642 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 17643 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17644 | n/a | &flags)) |
|---|
| 17645 | n/a | return NULL; |
|---|
| 17646 | n/a | _rv = DataHGetDataRate(dh, |
|---|
| 17647 | n/a | flags, |
|---|
| 17648 | n/a | &bytesPerSecond); |
|---|
| 17649 | n/a | _res = Py_BuildValue("ll", |
|---|
| 17650 | n/a | _rv, |
|---|
| 17651 | n/a | bytesPerSecond); |
|---|
| 17652 | n/a | return _res; |
|---|
| 17653 | n/a | } |
|---|
| 17654 | n/a | |
|---|
| 17655 | n/a | static PyObject *Qt_DataHSetTimeHints(PyObject *_self, PyObject *_args) |
|---|
| 17656 | n/a | { |
|---|
| 17657 | n/a | PyObject *_res = NULL; |
|---|
| 17658 | n/a | ComponentResult _rv; |
|---|
| 17659 | n/a | DataHandler dh; |
|---|
| 17660 | n/a | long flags; |
|---|
| 17661 | n/a | long bandwidthPriority; |
|---|
| 17662 | n/a | TimeScale scale; |
|---|
| 17663 | n/a | TimeValue minTime; |
|---|
| 17664 | n/a | TimeValue maxTime; |
|---|
| 17665 | n/a | #ifndef DataHSetTimeHints |
|---|
| 17666 | n/a | PyMac_PRECHECK(DataHSetTimeHints); |
|---|
| 17667 | n/a | #endif |
|---|
| 17668 | n/a | if (!PyArg_ParseTuple(_args, "O&lllll", |
|---|
| 17669 | n/a | CmpInstObj_Convert, &dh, |
|---|
| 17670 | n/a | &flags, |
|---|
| 17671 | n/a | &bandwidthPriority, |
|---|
| 17672 | n/a | &scale, |
|---|
| 17673 | n/a | &minTime, |
|---|
| 17674 | n/a | &maxTime)) |
|---|
| 17675 | n/a | return NULL; |
|---|
| 17676 | n/a | _rv = DataHSetTimeHints(dh, |
|---|
| 17677 | n/a | flags, |
|---|
| 17678 | n/a | bandwidthPriority, |
|---|
| 17679 | n/a | scale, |
|---|
| 17680 | n/a | minTime, |
|---|
| 17681 | n/a | maxTime); |
|---|
| 17682 | n/a | _res = Py_BuildValue("l", |
|---|
| 17683 | n/a | _rv); |
|---|
| 17684 | n/a | return _res; |
|---|
| 17685 | n/a | } |
|---|
| 17686 | n/a | |
|---|
| 17687 | n/a | static PyObject *Qt_VDGetMaxSrcRect(PyObject *_self, PyObject *_args) |
|---|
| 17688 | n/a | { |
|---|
| 17689 | n/a | PyObject *_res = NULL; |
|---|
| 17690 | n/a | ComponentResult _rv; |
|---|
| 17691 | n/a | VideoDigitizerComponent ci; |
|---|
| 17692 | n/a | short inputStd; |
|---|
| 17693 | n/a | Rect maxSrcRect; |
|---|
| 17694 | n/a | #ifndef VDGetMaxSrcRect |
|---|
| 17695 | n/a | PyMac_PRECHECK(VDGetMaxSrcRect); |
|---|
| 17696 | n/a | #endif |
|---|
| 17697 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 17698 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 17699 | n/a | &inputStd)) |
|---|
| 17700 | n/a | return NULL; |
|---|
| 17701 | n/a | _rv = VDGetMaxSrcRect(ci, |
|---|
| 17702 | n/a | inputStd, |
|---|
| 17703 | n/a | &maxSrcRect); |
|---|
| 17704 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17705 | n/a | _rv, |
|---|
| 17706 | n/a | PyMac_BuildRect, &maxSrcRect); |
|---|
| 17707 | n/a | return _res; |
|---|
| 17708 | n/a | } |
|---|
| 17709 | n/a | |
|---|
| 17710 | n/a | static PyObject *Qt_VDGetActiveSrcRect(PyObject *_self, PyObject *_args) |
|---|
| 17711 | n/a | { |
|---|
| 17712 | n/a | PyObject *_res = NULL; |
|---|
| 17713 | n/a | ComponentResult _rv; |
|---|
| 17714 | n/a | VideoDigitizerComponent ci; |
|---|
| 17715 | n/a | short inputStd; |
|---|
| 17716 | n/a | Rect activeSrcRect; |
|---|
| 17717 | n/a | #ifndef VDGetActiveSrcRect |
|---|
| 17718 | n/a | PyMac_PRECHECK(VDGetActiveSrcRect); |
|---|
| 17719 | n/a | #endif |
|---|
| 17720 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 17721 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 17722 | n/a | &inputStd)) |
|---|
| 17723 | n/a | return NULL; |
|---|
| 17724 | n/a | _rv = VDGetActiveSrcRect(ci, |
|---|
| 17725 | n/a | inputStd, |
|---|
| 17726 | n/a | &activeSrcRect); |
|---|
| 17727 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17728 | n/a | _rv, |
|---|
| 17729 | n/a | PyMac_BuildRect, &activeSrcRect); |
|---|
| 17730 | n/a | return _res; |
|---|
| 17731 | n/a | } |
|---|
| 17732 | n/a | |
|---|
| 17733 | n/a | static PyObject *Qt_VDSetDigitizerRect(PyObject *_self, PyObject *_args) |
|---|
| 17734 | n/a | { |
|---|
| 17735 | n/a | PyObject *_res = NULL; |
|---|
| 17736 | n/a | ComponentResult _rv; |
|---|
| 17737 | n/a | VideoDigitizerComponent ci; |
|---|
| 17738 | n/a | Rect digitizerRect; |
|---|
| 17739 | n/a | #ifndef VDSetDigitizerRect |
|---|
| 17740 | n/a | PyMac_PRECHECK(VDSetDigitizerRect); |
|---|
| 17741 | n/a | #endif |
|---|
| 17742 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17743 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17744 | n/a | return NULL; |
|---|
| 17745 | n/a | _rv = VDSetDigitizerRect(ci, |
|---|
| 17746 | n/a | &digitizerRect); |
|---|
| 17747 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17748 | n/a | _rv, |
|---|
| 17749 | n/a | PyMac_BuildRect, &digitizerRect); |
|---|
| 17750 | n/a | return _res; |
|---|
| 17751 | n/a | } |
|---|
| 17752 | n/a | |
|---|
| 17753 | n/a | static PyObject *Qt_VDGetDigitizerRect(PyObject *_self, PyObject *_args) |
|---|
| 17754 | n/a | { |
|---|
| 17755 | n/a | PyObject *_res = NULL; |
|---|
| 17756 | n/a | ComponentResult _rv; |
|---|
| 17757 | n/a | VideoDigitizerComponent ci; |
|---|
| 17758 | n/a | Rect digitizerRect; |
|---|
| 17759 | n/a | #ifndef VDGetDigitizerRect |
|---|
| 17760 | n/a | PyMac_PRECHECK(VDGetDigitizerRect); |
|---|
| 17761 | n/a | #endif |
|---|
| 17762 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17763 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17764 | n/a | return NULL; |
|---|
| 17765 | n/a | _rv = VDGetDigitizerRect(ci, |
|---|
| 17766 | n/a | &digitizerRect); |
|---|
| 17767 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17768 | n/a | _rv, |
|---|
| 17769 | n/a | PyMac_BuildRect, &digitizerRect); |
|---|
| 17770 | n/a | return _res; |
|---|
| 17771 | n/a | } |
|---|
| 17772 | n/a | |
|---|
| 17773 | n/a | static PyObject *Qt_VDGetVBlankRect(PyObject *_self, PyObject *_args) |
|---|
| 17774 | n/a | { |
|---|
| 17775 | n/a | PyObject *_res = NULL; |
|---|
| 17776 | n/a | ComponentResult _rv; |
|---|
| 17777 | n/a | VideoDigitizerComponent ci; |
|---|
| 17778 | n/a | short inputStd; |
|---|
| 17779 | n/a | Rect vBlankRect; |
|---|
| 17780 | n/a | #ifndef VDGetVBlankRect |
|---|
| 17781 | n/a | PyMac_PRECHECK(VDGetVBlankRect); |
|---|
| 17782 | n/a | #endif |
|---|
| 17783 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 17784 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 17785 | n/a | &inputStd)) |
|---|
| 17786 | n/a | return NULL; |
|---|
| 17787 | n/a | _rv = VDGetVBlankRect(ci, |
|---|
| 17788 | n/a | inputStd, |
|---|
| 17789 | n/a | &vBlankRect); |
|---|
| 17790 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 17791 | n/a | _rv, |
|---|
| 17792 | n/a | PyMac_BuildRect, &vBlankRect); |
|---|
| 17793 | n/a | return _res; |
|---|
| 17794 | n/a | } |
|---|
| 17795 | n/a | |
|---|
| 17796 | n/a | static PyObject *Qt_VDGetMaskPixMap(PyObject *_self, PyObject *_args) |
|---|
| 17797 | n/a | { |
|---|
| 17798 | n/a | PyObject *_res = NULL; |
|---|
| 17799 | n/a | ComponentResult _rv; |
|---|
| 17800 | n/a | VideoDigitizerComponent ci; |
|---|
| 17801 | n/a | PixMapHandle maskPixMap; |
|---|
| 17802 | n/a | #ifndef VDGetMaskPixMap |
|---|
| 17803 | n/a | PyMac_PRECHECK(VDGetMaskPixMap); |
|---|
| 17804 | n/a | #endif |
|---|
| 17805 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17806 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 17807 | n/a | ResObj_Convert, &maskPixMap)) |
|---|
| 17808 | n/a | return NULL; |
|---|
| 17809 | n/a | _rv = VDGetMaskPixMap(ci, |
|---|
| 17810 | n/a | maskPixMap); |
|---|
| 17811 | n/a | _res = Py_BuildValue("l", |
|---|
| 17812 | n/a | _rv); |
|---|
| 17813 | n/a | return _res; |
|---|
| 17814 | n/a | } |
|---|
| 17815 | n/a | |
|---|
| 17816 | n/a | static PyObject *Qt_VDUseThisCLUT(PyObject *_self, PyObject *_args) |
|---|
| 17817 | n/a | { |
|---|
| 17818 | n/a | PyObject *_res = NULL; |
|---|
| 17819 | n/a | ComponentResult _rv; |
|---|
| 17820 | n/a | VideoDigitizerComponent ci; |
|---|
| 17821 | n/a | CTabHandle colorTableHandle; |
|---|
| 17822 | n/a | #ifndef VDUseThisCLUT |
|---|
| 17823 | n/a | PyMac_PRECHECK(VDUseThisCLUT); |
|---|
| 17824 | n/a | #endif |
|---|
| 17825 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 17826 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 17827 | n/a | ResObj_Convert, &colorTableHandle)) |
|---|
| 17828 | n/a | return NULL; |
|---|
| 17829 | n/a | _rv = VDUseThisCLUT(ci, |
|---|
| 17830 | n/a | colorTableHandle); |
|---|
| 17831 | n/a | _res = Py_BuildValue("l", |
|---|
| 17832 | n/a | _rv); |
|---|
| 17833 | n/a | return _res; |
|---|
| 17834 | n/a | } |
|---|
| 17835 | n/a | |
|---|
| 17836 | n/a | static PyObject *Qt_VDSetInputGammaValue(PyObject *_self, PyObject *_args) |
|---|
| 17837 | n/a | { |
|---|
| 17838 | n/a | PyObject *_res = NULL; |
|---|
| 17839 | n/a | ComponentResult _rv; |
|---|
| 17840 | n/a | VideoDigitizerComponent ci; |
|---|
| 17841 | n/a | Fixed channel1; |
|---|
| 17842 | n/a | Fixed channel2; |
|---|
| 17843 | n/a | Fixed channel3; |
|---|
| 17844 | n/a | #ifndef VDSetInputGammaValue |
|---|
| 17845 | n/a | PyMac_PRECHECK(VDSetInputGammaValue); |
|---|
| 17846 | n/a | #endif |
|---|
| 17847 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 17848 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 17849 | n/a | PyMac_GetFixed, &channel1, |
|---|
| 17850 | n/a | PyMac_GetFixed, &channel2, |
|---|
| 17851 | n/a | PyMac_GetFixed, &channel3)) |
|---|
| 17852 | n/a | return NULL; |
|---|
| 17853 | n/a | _rv = VDSetInputGammaValue(ci, |
|---|
| 17854 | n/a | channel1, |
|---|
| 17855 | n/a | channel2, |
|---|
| 17856 | n/a | channel3); |
|---|
| 17857 | n/a | _res = Py_BuildValue("l", |
|---|
| 17858 | n/a | _rv); |
|---|
| 17859 | n/a | return _res; |
|---|
| 17860 | n/a | } |
|---|
| 17861 | n/a | |
|---|
| 17862 | n/a | static PyObject *Qt_VDGetInputGammaValue(PyObject *_self, PyObject *_args) |
|---|
| 17863 | n/a | { |
|---|
| 17864 | n/a | PyObject *_res = NULL; |
|---|
| 17865 | n/a | ComponentResult _rv; |
|---|
| 17866 | n/a | VideoDigitizerComponent ci; |
|---|
| 17867 | n/a | Fixed channel1; |
|---|
| 17868 | n/a | Fixed channel2; |
|---|
| 17869 | n/a | Fixed channel3; |
|---|
| 17870 | n/a | #ifndef VDGetInputGammaValue |
|---|
| 17871 | n/a | PyMac_PRECHECK(VDGetInputGammaValue); |
|---|
| 17872 | n/a | #endif |
|---|
| 17873 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17874 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17875 | n/a | return NULL; |
|---|
| 17876 | n/a | _rv = VDGetInputGammaValue(ci, |
|---|
| 17877 | n/a | &channel1, |
|---|
| 17878 | n/a | &channel2, |
|---|
| 17879 | n/a | &channel3); |
|---|
| 17880 | n/a | _res = Py_BuildValue("lO&O&O&", |
|---|
| 17881 | n/a | _rv, |
|---|
| 17882 | n/a | PyMac_BuildFixed, channel1, |
|---|
| 17883 | n/a | PyMac_BuildFixed, channel2, |
|---|
| 17884 | n/a | PyMac_BuildFixed, channel3); |
|---|
| 17885 | n/a | return _res; |
|---|
| 17886 | n/a | } |
|---|
| 17887 | n/a | |
|---|
| 17888 | n/a | static PyObject *Qt_VDSetBrightness(PyObject *_self, PyObject *_args) |
|---|
| 17889 | n/a | { |
|---|
| 17890 | n/a | PyObject *_res = NULL; |
|---|
| 17891 | n/a | ComponentResult _rv; |
|---|
| 17892 | n/a | VideoDigitizerComponent ci; |
|---|
| 17893 | n/a | unsigned short brightness; |
|---|
| 17894 | n/a | #ifndef VDSetBrightness |
|---|
| 17895 | n/a | PyMac_PRECHECK(VDSetBrightness); |
|---|
| 17896 | n/a | #endif |
|---|
| 17897 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17898 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17899 | n/a | return NULL; |
|---|
| 17900 | n/a | _rv = VDSetBrightness(ci, |
|---|
| 17901 | n/a | &brightness); |
|---|
| 17902 | n/a | _res = Py_BuildValue("lH", |
|---|
| 17903 | n/a | _rv, |
|---|
| 17904 | n/a | brightness); |
|---|
| 17905 | n/a | return _res; |
|---|
| 17906 | n/a | } |
|---|
| 17907 | n/a | |
|---|
| 17908 | n/a | static PyObject *Qt_VDGetBrightness(PyObject *_self, PyObject *_args) |
|---|
| 17909 | n/a | { |
|---|
| 17910 | n/a | PyObject *_res = NULL; |
|---|
| 17911 | n/a | ComponentResult _rv; |
|---|
| 17912 | n/a | VideoDigitizerComponent ci; |
|---|
| 17913 | n/a | unsigned short brightness; |
|---|
| 17914 | n/a | #ifndef VDGetBrightness |
|---|
| 17915 | n/a | PyMac_PRECHECK(VDGetBrightness); |
|---|
| 17916 | n/a | #endif |
|---|
| 17917 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17918 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17919 | n/a | return NULL; |
|---|
| 17920 | n/a | _rv = VDGetBrightness(ci, |
|---|
| 17921 | n/a | &brightness); |
|---|
| 17922 | n/a | _res = Py_BuildValue("lH", |
|---|
| 17923 | n/a | _rv, |
|---|
| 17924 | n/a | brightness); |
|---|
| 17925 | n/a | return _res; |
|---|
| 17926 | n/a | } |
|---|
| 17927 | n/a | |
|---|
| 17928 | n/a | static PyObject *Qt_VDSetContrast(PyObject *_self, PyObject *_args) |
|---|
| 17929 | n/a | { |
|---|
| 17930 | n/a | PyObject *_res = NULL; |
|---|
| 17931 | n/a | ComponentResult _rv; |
|---|
| 17932 | n/a | VideoDigitizerComponent ci; |
|---|
| 17933 | n/a | unsigned short contrast; |
|---|
| 17934 | n/a | #ifndef VDSetContrast |
|---|
| 17935 | n/a | PyMac_PRECHECK(VDSetContrast); |
|---|
| 17936 | n/a | #endif |
|---|
| 17937 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17938 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17939 | n/a | return NULL; |
|---|
| 17940 | n/a | _rv = VDSetContrast(ci, |
|---|
| 17941 | n/a | &contrast); |
|---|
| 17942 | n/a | _res = Py_BuildValue("lH", |
|---|
| 17943 | n/a | _rv, |
|---|
| 17944 | n/a | contrast); |
|---|
| 17945 | n/a | return _res; |
|---|
| 17946 | n/a | } |
|---|
| 17947 | n/a | |
|---|
| 17948 | n/a | static PyObject *Qt_VDSetHue(PyObject *_self, PyObject *_args) |
|---|
| 17949 | n/a | { |
|---|
| 17950 | n/a | PyObject *_res = NULL; |
|---|
| 17951 | n/a | ComponentResult _rv; |
|---|
| 17952 | n/a | VideoDigitizerComponent ci; |
|---|
| 17953 | n/a | unsigned short hue; |
|---|
| 17954 | n/a | #ifndef VDSetHue |
|---|
| 17955 | n/a | PyMac_PRECHECK(VDSetHue); |
|---|
| 17956 | n/a | #endif |
|---|
| 17957 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17958 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17959 | n/a | return NULL; |
|---|
| 17960 | n/a | _rv = VDSetHue(ci, |
|---|
| 17961 | n/a | &hue); |
|---|
| 17962 | n/a | _res = Py_BuildValue("lH", |
|---|
| 17963 | n/a | _rv, |
|---|
| 17964 | n/a | hue); |
|---|
| 17965 | n/a | return _res; |
|---|
| 17966 | n/a | } |
|---|
| 17967 | n/a | |
|---|
| 17968 | n/a | static PyObject *Qt_VDSetSharpness(PyObject *_self, PyObject *_args) |
|---|
| 17969 | n/a | { |
|---|
| 17970 | n/a | PyObject *_res = NULL; |
|---|
| 17971 | n/a | ComponentResult _rv; |
|---|
| 17972 | n/a | VideoDigitizerComponent ci; |
|---|
| 17973 | n/a | unsigned short sharpness; |
|---|
| 17974 | n/a | #ifndef VDSetSharpness |
|---|
| 17975 | n/a | PyMac_PRECHECK(VDSetSharpness); |
|---|
| 17976 | n/a | #endif |
|---|
| 17977 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17978 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17979 | n/a | return NULL; |
|---|
| 17980 | n/a | _rv = VDSetSharpness(ci, |
|---|
| 17981 | n/a | &sharpness); |
|---|
| 17982 | n/a | _res = Py_BuildValue("lH", |
|---|
| 17983 | n/a | _rv, |
|---|
| 17984 | n/a | sharpness); |
|---|
| 17985 | n/a | return _res; |
|---|
| 17986 | n/a | } |
|---|
| 17987 | n/a | |
|---|
| 17988 | n/a | static PyObject *Qt_VDSetSaturation(PyObject *_self, PyObject *_args) |
|---|
| 17989 | n/a | { |
|---|
| 17990 | n/a | PyObject *_res = NULL; |
|---|
| 17991 | n/a | ComponentResult _rv; |
|---|
| 17992 | n/a | VideoDigitizerComponent ci; |
|---|
| 17993 | n/a | unsigned short saturation; |
|---|
| 17994 | n/a | #ifndef VDSetSaturation |
|---|
| 17995 | n/a | PyMac_PRECHECK(VDSetSaturation); |
|---|
| 17996 | n/a | #endif |
|---|
| 17997 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 17998 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 17999 | n/a | return NULL; |
|---|
| 18000 | n/a | _rv = VDSetSaturation(ci, |
|---|
| 18001 | n/a | &saturation); |
|---|
| 18002 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18003 | n/a | _rv, |
|---|
| 18004 | n/a | saturation); |
|---|
| 18005 | n/a | return _res; |
|---|
| 18006 | n/a | } |
|---|
| 18007 | n/a | |
|---|
| 18008 | n/a | static PyObject *Qt_VDGetContrast(PyObject *_self, PyObject *_args) |
|---|
| 18009 | n/a | { |
|---|
| 18010 | n/a | PyObject *_res = NULL; |
|---|
| 18011 | n/a | ComponentResult _rv; |
|---|
| 18012 | n/a | VideoDigitizerComponent ci; |
|---|
| 18013 | n/a | unsigned short contrast; |
|---|
| 18014 | n/a | #ifndef VDGetContrast |
|---|
| 18015 | n/a | PyMac_PRECHECK(VDGetContrast); |
|---|
| 18016 | n/a | #endif |
|---|
| 18017 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18018 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18019 | n/a | return NULL; |
|---|
| 18020 | n/a | _rv = VDGetContrast(ci, |
|---|
| 18021 | n/a | &contrast); |
|---|
| 18022 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18023 | n/a | _rv, |
|---|
| 18024 | n/a | contrast); |
|---|
| 18025 | n/a | return _res; |
|---|
| 18026 | n/a | } |
|---|
| 18027 | n/a | |
|---|
| 18028 | n/a | static PyObject *Qt_VDGetHue(PyObject *_self, PyObject *_args) |
|---|
| 18029 | n/a | { |
|---|
| 18030 | n/a | PyObject *_res = NULL; |
|---|
| 18031 | n/a | ComponentResult _rv; |
|---|
| 18032 | n/a | VideoDigitizerComponent ci; |
|---|
| 18033 | n/a | unsigned short hue; |
|---|
| 18034 | n/a | #ifndef VDGetHue |
|---|
| 18035 | n/a | PyMac_PRECHECK(VDGetHue); |
|---|
| 18036 | n/a | #endif |
|---|
| 18037 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18038 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18039 | n/a | return NULL; |
|---|
| 18040 | n/a | _rv = VDGetHue(ci, |
|---|
| 18041 | n/a | &hue); |
|---|
| 18042 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18043 | n/a | _rv, |
|---|
| 18044 | n/a | hue); |
|---|
| 18045 | n/a | return _res; |
|---|
| 18046 | n/a | } |
|---|
| 18047 | n/a | |
|---|
| 18048 | n/a | static PyObject *Qt_VDGetSharpness(PyObject *_self, PyObject *_args) |
|---|
| 18049 | n/a | { |
|---|
| 18050 | n/a | PyObject *_res = NULL; |
|---|
| 18051 | n/a | ComponentResult _rv; |
|---|
| 18052 | n/a | VideoDigitizerComponent ci; |
|---|
| 18053 | n/a | unsigned short sharpness; |
|---|
| 18054 | n/a | #ifndef VDGetSharpness |
|---|
| 18055 | n/a | PyMac_PRECHECK(VDGetSharpness); |
|---|
| 18056 | n/a | #endif |
|---|
| 18057 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18058 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18059 | n/a | return NULL; |
|---|
| 18060 | n/a | _rv = VDGetSharpness(ci, |
|---|
| 18061 | n/a | &sharpness); |
|---|
| 18062 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18063 | n/a | _rv, |
|---|
| 18064 | n/a | sharpness); |
|---|
| 18065 | n/a | return _res; |
|---|
| 18066 | n/a | } |
|---|
| 18067 | n/a | |
|---|
| 18068 | n/a | static PyObject *Qt_VDGetSaturation(PyObject *_self, PyObject *_args) |
|---|
| 18069 | n/a | { |
|---|
| 18070 | n/a | PyObject *_res = NULL; |
|---|
| 18071 | n/a | ComponentResult _rv; |
|---|
| 18072 | n/a | VideoDigitizerComponent ci; |
|---|
| 18073 | n/a | unsigned short saturation; |
|---|
| 18074 | n/a | #ifndef VDGetSaturation |
|---|
| 18075 | n/a | PyMac_PRECHECK(VDGetSaturation); |
|---|
| 18076 | n/a | #endif |
|---|
| 18077 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18078 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18079 | n/a | return NULL; |
|---|
| 18080 | n/a | _rv = VDGetSaturation(ci, |
|---|
| 18081 | n/a | &saturation); |
|---|
| 18082 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18083 | n/a | _rv, |
|---|
| 18084 | n/a | saturation); |
|---|
| 18085 | n/a | return _res; |
|---|
| 18086 | n/a | } |
|---|
| 18087 | n/a | |
|---|
| 18088 | n/a | static PyObject *Qt_VDGrabOneFrame(PyObject *_self, PyObject *_args) |
|---|
| 18089 | n/a | { |
|---|
| 18090 | n/a | PyObject *_res = NULL; |
|---|
| 18091 | n/a | ComponentResult _rv; |
|---|
| 18092 | n/a | VideoDigitizerComponent ci; |
|---|
| 18093 | n/a | #ifndef VDGrabOneFrame |
|---|
| 18094 | n/a | PyMac_PRECHECK(VDGrabOneFrame); |
|---|
| 18095 | n/a | #endif |
|---|
| 18096 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18097 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18098 | n/a | return NULL; |
|---|
| 18099 | n/a | _rv = VDGrabOneFrame(ci); |
|---|
| 18100 | n/a | _res = Py_BuildValue("l", |
|---|
| 18101 | n/a | _rv); |
|---|
| 18102 | n/a | return _res; |
|---|
| 18103 | n/a | } |
|---|
| 18104 | n/a | |
|---|
| 18105 | n/a | static PyObject *Qt_VDGetMaxAuxBuffer(PyObject *_self, PyObject *_args) |
|---|
| 18106 | n/a | { |
|---|
| 18107 | n/a | PyObject *_res = NULL; |
|---|
| 18108 | n/a | ComponentResult _rv; |
|---|
| 18109 | n/a | VideoDigitizerComponent ci; |
|---|
| 18110 | n/a | PixMapHandle pm; |
|---|
| 18111 | n/a | Rect r; |
|---|
| 18112 | n/a | #ifndef VDGetMaxAuxBuffer |
|---|
| 18113 | n/a | PyMac_PRECHECK(VDGetMaxAuxBuffer); |
|---|
| 18114 | n/a | #endif |
|---|
| 18115 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18116 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18117 | n/a | return NULL; |
|---|
| 18118 | n/a | _rv = VDGetMaxAuxBuffer(ci, |
|---|
| 18119 | n/a | &pm, |
|---|
| 18120 | n/a | &r); |
|---|
| 18121 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 18122 | n/a | _rv, |
|---|
| 18123 | n/a | ResObj_New, pm, |
|---|
| 18124 | n/a | PyMac_BuildRect, &r); |
|---|
| 18125 | n/a | return _res; |
|---|
| 18126 | n/a | } |
|---|
| 18127 | n/a | |
|---|
| 18128 | n/a | static PyObject *Qt_VDGetCurrentFlags(PyObject *_self, PyObject *_args) |
|---|
| 18129 | n/a | { |
|---|
| 18130 | n/a | PyObject *_res = NULL; |
|---|
| 18131 | n/a | ComponentResult _rv; |
|---|
| 18132 | n/a | VideoDigitizerComponent ci; |
|---|
| 18133 | n/a | long inputCurrentFlag; |
|---|
| 18134 | n/a | long outputCurrentFlag; |
|---|
| 18135 | n/a | #ifndef VDGetCurrentFlags |
|---|
| 18136 | n/a | PyMac_PRECHECK(VDGetCurrentFlags); |
|---|
| 18137 | n/a | #endif |
|---|
| 18138 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18139 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18140 | n/a | return NULL; |
|---|
| 18141 | n/a | _rv = VDGetCurrentFlags(ci, |
|---|
| 18142 | n/a | &inputCurrentFlag, |
|---|
| 18143 | n/a | &outputCurrentFlag); |
|---|
| 18144 | n/a | _res = Py_BuildValue("lll", |
|---|
| 18145 | n/a | _rv, |
|---|
| 18146 | n/a | inputCurrentFlag, |
|---|
| 18147 | n/a | outputCurrentFlag); |
|---|
| 18148 | n/a | return _res; |
|---|
| 18149 | n/a | } |
|---|
| 18150 | n/a | |
|---|
| 18151 | n/a | static PyObject *Qt_VDSetKeyColor(PyObject *_self, PyObject *_args) |
|---|
| 18152 | n/a | { |
|---|
| 18153 | n/a | PyObject *_res = NULL; |
|---|
| 18154 | n/a | ComponentResult _rv; |
|---|
| 18155 | n/a | VideoDigitizerComponent ci; |
|---|
| 18156 | n/a | long index; |
|---|
| 18157 | n/a | #ifndef VDSetKeyColor |
|---|
| 18158 | n/a | PyMac_PRECHECK(VDSetKeyColor); |
|---|
| 18159 | n/a | #endif |
|---|
| 18160 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 18161 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18162 | n/a | &index)) |
|---|
| 18163 | n/a | return NULL; |
|---|
| 18164 | n/a | _rv = VDSetKeyColor(ci, |
|---|
| 18165 | n/a | index); |
|---|
| 18166 | n/a | _res = Py_BuildValue("l", |
|---|
| 18167 | n/a | _rv); |
|---|
| 18168 | n/a | return _res; |
|---|
| 18169 | n/a | } |
|---|
| 18170 | n/a | |
|---|
| 18171 | n/a | static PyObject *Qt_VDGetKeyColor(PyObject *_self, PyObject *_args) |
|---|
| 18172 | n/a | { |
|---|
| 18173 | n/a | PyObject *_res = NULL; |
|---|
| 18174 | n/a | ComponentResult _rv; |
|---|
| 18175 | n/a | VideoDigitizerComponent ci; |
|---|
| 18176 | n/a | long index; |
|---|
| 18177 | n/a | #ifndef VDGetKeyColor |
|---|
| 18178 | n/a | PyMac_PRECHECK(VDGetKeyColor); |
|---|
| 18179 | n/a | #endif |
|---|
| 18180 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18181 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18182 | n/a | return NULL; |
|---|
| 18183 | n/a | _rv = VDGetKeyColor(ci, |
|---|
| 18184 | n/a | &index); |
|---|
| 18185 | n/a | _res = Py_BuildValue("ll", |
|---|
| 18186 | n/a | _rv, |
|---|
| 18187 | n/a | index); |
|---|
| 18188 | n/a | return _res; |
|---|
| 18189 | n/a | } |
|---|
| 18190 | n/a | |
|---|
| 18191 | n/a | static PyObject *Qt_VDAddKeyColor(PyObject *_self, PyObject *_args) |
|---|
| 18192 | n/a | { |
|---|
| 18193 | n/a | PyObject *_res = NULL; |
|---|
| 18194 | n/a | ComponentResult _rv; |
|---|
| 18195 | n/a | VideoDigitizerComponent ci; |
|---|
| 18196 | n/a | long index; |
|---|
| 18197 | n/a | #ifndef VDAddKeyColor |
|---|
| 18198 | n/a | PyMac_PRECHECK(VDAddKeyColor); |
|---|
| 18199 | n/a | #endif |
|---|
| 18200 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18201 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18202 | n/a | return NULL; |
|---|
| 18203 | n/a | _rv = VDAddKeyColor(ci, |
|---|
| 18204 | n/a | &index); |
|---|
| 18205 | n/a | _res = Py_BuildValue("ll", |
|---|
| 18206 | n/a | _rv, |
|---|
| 18207 | n/a | index); |
|---|
| 18208 | n/a | return _res; |
|---|
| 18209 | n/a | } |
|---|
| 18210 | n/a | |
|---|
| 18211 | n/a | static PyObject *Qt_VDGetNextKeyColor(PyObject *_self, PyObject *_args) |
|---|
| 18212 | n/a | { |
|---|
| 18213 | n/a | PyObject *_res = NULL; |
|---|
| 18214 | n/a | ComponentResult _rv; |
|---|
| 18215 | n/a | VideoDigitizerComponent ci; |
|---|
| 18216 | n/a | long index; |
|---|
| 18217 | n/a | #ifndef VDGetNextKeyColor |
|---|
| 18218 | n/a | PyMac_PRECHECK(VDGetNextKeyColor); |
|---|
| 18219 | n/a | #endif |
|---|
| 18220 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 18221 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18222 | n/a | &index)) |
|---|
| 18223 | n/a | return NULL; |
|---|
| 18224 | n/a | _rv = VDGetNextKeyColor(ci, |
|---|
| 18225 | n/a | index); |
|---|
| 18226 | n/a | _res = Py_BuildValue("l", |
|---|
| 18227 | n/a | _rv); |
|---|
| 18228 | n/a | return _res; |
|---|
| 18229 | n/a | } |
|---|
| 18230 | n/a | |
|---|
| 18231 | n/a | static PyObject *Qt_VDSetKeyColorRange(PyObject *_self, PyObject *_args) |
|---|
| 18232 | n/a | { |
|---|
| 18233 | n/a | PyObject *_res = NULL; |
|---|
| 18234 | n/a | ComponentResult _rv; |
|---|
| 18235 | n/a | VideoDigitizerComponent ci; |
|---|
| 18236 | n/a | RGBColor minRGB; |
|---|
| 18237 | n/a | RGBColor maxRGB; |
|---|
| 18238 | n/a | #ifndef VDSetKeyColorRange |
|---|
| 18239 | n/a | PyMac_PRECHECK(VDSetKeyColorRange); |
|---|
| 18240 | n/a | #endif |
|---|
| 18241 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18242 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18243 | n/a | return NULL; |
|---|
| 18244 | n/a | _rv = VDSetKeyColorRange(ci, |
|---|
| 18245 | n/a | &minRGB, |
|---|
| 18246 | n/a | &maxRGB); |
|---|
| 18247 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 18248 | n/a | _rv, |
|---|
| 18249 | n/a | QdRGB_New, &minRGB, |
|---|
| 18250 | n/a | QdRGB_New, &maxRGB); |
|---|
| 18251 | n/a | return _res; |
|---|
| 18252 | n/a | } |
|---|
| 18253 | n/a | |
|---|
| 18254 | n/a | static PyObject *Qt_VDGetKeyColorRange(PyObject *_self, PyObject *_args) |
|---|
| 18255 | n/a | { |
|---|
| 18256 | n/a | PyObject *_res = NULL; |
|---|
| 18257 | n/a | ComponentResult _rv; |
|---|
| 18258 | n/a | VideoDigitizerComponent ci; |
|---|
| 18259 | n/a | RGBColor minRGB; |
|---|
| 18260 | n/a | RGBColor maxRGB; |
|---|
| 18261 | n/a | #ifndef VDGetKeyColorRange |
|---|
| 18262 | n/a | PyMac_PRECHECK(VDGetKeyColorRange); |
|---|
| 18263 | n/a | #endif |
|---|
| 18264 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18265 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18266 | n/a | return NULL; |
|---|
| 18267 | n/a | _rv = VDGetKeyColorRange(ci, |
|---|
| 18268 | n/a | &minRGB, |
|---|
| 18269 | n/a | &maxRGB); |
|---|
| 18270 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 18271 | n/a | _rv, |
|---|
| 18272 | n/a | QdRGB_New, &minRGB, |
|---|
| 18273 | n/a | QdRGB_New, &maxRGB); |
|---|
| 18274 | n/a | return _res; |
|---|
| 18275 | n/a | } |
|---|
| 18276 | n/a | |
|---|
| 18277 | n/a | static PyObject *Qt_VDSetInputColorSpaceMode(PyObject *_self, PyObject *_args) |
|---|
| 18278 | n/a | { |
|---|
| 18279 | n/a | PyObject *_res = NULL; |
|---|
| 18280 | n/a | ComponentResult _rv; |
|---|
| 18281 | n/a | VideoDigitizerComponent ci; |
|---|
| 18282 | n/a | short colorSpaceMode; |
|---|
| 18283 | n/a | #ifndef VDSetInputColorSpaceMode |
|---|
| 18284 | n/a | PyMac_PRECHECK(VDSetInputColorSpaceMode); |
|---|
| 18285 | n/a | #endif |
|---|
| 18286 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18287 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18288 | n/a | &colorSpaceMode)) |
|---|
| 18289 | n/a | return NULL; |
|---|
| 18290 | n/a | _rv = VDSetInputColorSpaceMode(ci, |
|---|
| 18291 | n/a | colorSpaceMode); |
|---|
| 18292 | n/a | _res = Py_BuildValue("l", |
|---|
| 18293 | n/a | _rv); |
|---|
| 18294 | n/a | return _res; |
|---|
| 18295 | n/a | } |
|---|
| 18296 | n/a | |
|---|
| 18297 | n/a | static PyObject *Qt_VDGetInputColorSpaceMode(PyObject *_self, PyObject *_args) |
|---|
| 18298 | n/a | { |
|---|
| 18299 | n/a | PyObject *_res = NULL; |
|---|
| 18300 | n/a | ComponentResult _rv; |
|---|
| 18301 | n/a | VideoDigitizerComponent ci; |
|---|
| 18302 | n/a | short colorSpaceMode; |
|---|
| 18303 | n/a | #ifndef VDGetInputColorSpaceMode |
|---|
| 18304 | n/a | PyMac_PRECHECK(VDGetInputColorSpaceMode); |
|---|
| 18305 | n/a | #endif |
|---|
| 18306 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18307 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18308 | n/a | return NULL; |
|---|
| 18309 | n/a | _rv = VDGetInputColorSpaceMode(ci, |
|---|
| 18310 | n/a | &colorSpaceMode); |
|---|
| 18311 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18312 | n/a | _rv, |
|---|
| 18313 | n/a | colorSpaceMode); |
|---|
| 18314 | n/a | return _res; |
|---|
| 18315 | n/a | } |
|---|
| 18316 | n/a | |
|---|
| 18317 | n/a | static PyObject *Qt_VDSetClipState(PyObject *_self, PyObject *_args) |
|---|
| 18318 | n/a | { |
|---|
| 18319 | n/a | PyObject *_res = NULL; |
|---|
| 18320 | n/a | ComponentResult _rv; |
|---|
| 18321 | n/a | VideoDigitizerComponent ci; |
|---|
| 18322 | n/a | short clipEnable; |
|---|
| 18323 | n/a | #ifndef VDSetClipState |
|---|
| 18324 | n/a | PyMac_PRECHECK(VDSetClipState); |
|---|
| 18325 | n/a | #endif |
|---|
| 18326 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18327 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18328 | n/a | &clipEnable)) |
|---|
| 18329 | n/a | return NULL; |
|---|
| 18330 | n/a | _rv = VDSetClipState(ci, |
|---|
| 18331 | n/a | clipEnable); |
|---|
| 18332 | n/a | _res = Py_BuildValue("l", |
|---|
| 18333 | n/a | _rv); |
|---|
| 18334 | n/a | return _res; |
|---|
| 18335 | n/a | } |
|---|
| 18336 | n/a | |
|---|
| 18337 | n/a | static PyObject *Qt_VDGetClipState(PyObject *_self, PyObject *_args) |
|---|
| 18338 | n/a | { |
|---|
| 18339 | n/a | PyObject *_res = NULL; |
|---|
| 18340 | n/a | ComponentResult _rv; |
|---|
| 18341 | n/a | VideoDigitizerComponent ci; |
|---|
| 18342 | n/a | short clipEnable; |
|---|
| 18343 | n/a | #ifndef VDGetClipState |
|---|
| 18344 | n/a | PyMac_PRECHECK(VDGetClipState); |
|---|
| 18345 | n/a | #endif |
|---|
| 18346 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18347 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18348 | n/a | return NULL; |
|---|
| 18349 | n/a | _rv = VDGetClipState(ci, |
|---|
| 18350 | n/a | &clipEnable); |
|---|
| 18351 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18352 | n/a | _rv, |
|---|
| 18353 | n/a | clipEnable); |
|---|
| 18354 | n/a | return _res; |
|---|
| 18355 | n/a | } |
|---|
| 18356 | n/a | |
|---|
| 18357 | n/a | static PyObject *Qt_VDSetClipRgn(PyObject *_self, PyObject *_args) |
|---|
| 18358 | n/a | { |
|---|
| 18359 | n/a | PyObject *_res = NULL; |
|---|
| 18360 | n/a | ComponentResult _rv; |
|---|
| 18361 | n/a | VideoDigitizerComponent ci; |
|---|
| 18362 | n/a | RgnHandle clipRegion; |
|---|
| 18363 | n/a | #ifndef VDSetClipRgn |
|---|
| 18364 | n/a | PyMac_PRECHECK(VDSetClipRgn); |
|---|
| 18365 | n/a | #endif |
|---|
| 18366 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 18367 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18368 | n/a | ResObj_Convert, &clipRegion)) |
|---|
| 18369 | n/a | return NULL; |
|---|
| 18370 | n/a | _rv = VDSetClipRgn(ci, |
|---|
| 18371 | n/a | clipRegion); |
|---|
| 18372 | n/a | _res = Py_BuildValue("l", |
|---|
| 18373 | n/a | _rv); |
|---|
| 18374 | n/a | return _res; |
|---|
| 18375 | n/a | } |
|---|
| 18376 | n/a | |
|---|
| 18377 | n/a | static PyObject *Qt_VDClearClipRgn(PyObject *_self, PyObject *_args) |
|---|
| 18378 | n/a | { |
|---|
| 18379 | n/a | PyObject *_res = NULL; |
|---|
| 18380 | n/a | ComponentResult _rv; |
|---|
| 18381 | n/a | VideoDigitizerComponent ci; |
|---|
| 18382 | n/a | RgnHandle clipRegion; |
|---|
| 18383 | n/a | #ifndef VDClearClipRgn |
|---|
| 18384 | n/a | PyMac_PRECHECK(VDClearClipRgn); |
|---|
| 18385 | n/a | #endif |
|---|
| 18386 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 18387 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18388 | n/a | ResObj_Convert, &clipRegion)) |
|---|
| 18389 | n/a | return NULL; |
|---|
| 18390 | n/a | _rv = VDClearClipRgn(ci, |
|---|
| 18391 | n/a | clipRegion); |
|---|
| 18392 | n/a | _res = Py_BuildValue("l", |
|---|
| 18393 | n/a | _rv); |
|---|
| 18394 | n/a | return _res; |
|---|
| 18395 | n/a | } |
|---|
| 18396 | n/a | |
|---|
| 18397 | n/a | static PyObject *Qt_VDGetCLUTInUse(PyObject *_self, PyObject *_args) |
|---|
| 18398 | n/a | { |
|---|
| 18399 | n/a | PyObject *_res = NULL; |
|---|
| 18400 | n/a | ComponentResult _rv; |
|---|
| 18401 | n/a | VideoDigitizerComponent ci; |
|---|
| 18402 | n/a | CTabHandle colorTableHandle; |
|---|
| 18403 | n/a | #ifndef VDGetCLUTInUse |
|---|
| 18404 | n/a | PyMac_PRECHECK(VDGetCLUTInUse); |
|---|
| 18405 | n/a | #endif |
|---|
| 18406 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18407 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18408 | n/a | return NULL; |
|---|
| 18409 | n/a | _rv = VDGetCLUTInUse(ci, |
|---|
| 18410 | n/a | &colorTableHandle); |
|---|
| 18411 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 18412 | n/a | _rv, |
|---|
| 18413 | n/a | ResObj_New, colorTableHandle); |
|---|
| 18414 | n/a | return _res; |
|---|
| 18415 | n/a | } |
|---|
| 18416 | n/a | |
|---|
| 18417 | n/a | static PyObject *Qt_VDSetPLLFilterType(PyObject *_self, PyObject *_args) |
|---|
| 18418 | n/a | { |
|---|
| 18419 | n/a | PyObject *_res = NULL; |
|---|
| 18420 | n/a | ComponentResult _rv; |
|---|
| 18421 | n/a | VideoDigitizerComponent ci; |
|---|
| 18422 | n/a | short pllType; |
|---|
| 18423 | n/a | #ifndef VDSetPLLFilterType |
|---|
| 18424 | n/a | PyMac_PRECHECK(VDSetPLLFilterType); |
|---|
| 18425 | n/a | #endif |
|---|
| 18426 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18427 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18428 | n/a | &pllType)) |
|---|
| 18429 | n/a | return NULL; |
|---|
| 18430 | n/a | _rv = VDSetPLLFilterType(ci, |
|---|
| 18431 | n/a | pllType); |
|---|
| 18432 | n/a | _res = Py_BuildValue("l", |
|---|
| 18433 | n/a | _rv); |
|---|
| 18434 | n/a | return _res; |
|---|
| 18435 | n/a | } |
|---|
| 18436 | n/a | |
|---|
| 18437 | n/a | static PyObject *Qt_VDGetPLLFilterType(PyObject *_self, PyObject *_args) |
|---|
| 18438 | n/a | { |
|---|
| 18439 | n/a | PyObject *_res = NULL; |
|---|
| 18440 | n/a | ComponentResult _rv; |
|---|
| 18441 | n/a | VideoDigitizerComponent ci; |
|---|
| 18442 | n/a | short pllType; |
|---|
| 18443 | n/a | #ifndef VDGetPLLFilterType |
|---|
| 18444 | n/a | PyMac_PRECHECK(VDGetPLLFilterType); |
|---|
| 18445 | n/a | #endif |
|---|
| 18446 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18447 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18448 | n/a | return NULL; |
|---|
| 18449 | n/a | _rv = VDGetPLLFilterType(ci, |
|---|
| 18450 | n/a | &pllType); |
|---|
| 18451 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18452 | n/a | _rv, |
|---|
| 18453 | n/a | pllType); |
|---|
| 18454 | n/a | return _res; |
|---|
| 18455 | n/a | } |
|---|
| 18456 | n/a | |
|---|
| 18457 | n/a | static PyObject *Qt_VDGetMaskandValue(PyObject *_self, PyObject *_args) |
|---|
| 18458 | n/a | { |
|---|
| 18459 | n/a | PyObject *_res = NULL; |
|---|
| 18460 | n/a | ComponentResult _rv; |
|---|
| 18461 | n/a | VideoDigitizerComponent ci; |
|---|
| 18462 | n/a | unsigned short blendLevel; |
|---|
| 18463 | n/a | long mask; |
|---|
| 18464 | n/a | long value; |
|---|
| 18465 | n/a | #ifndef VDGetMaskandValue |
|---|
| 18466 | n/a | PyMac_PRECHECK(VDGetMaskandValue); |
|---|
| 18467 | n/a | #endif |
|---|
| 18468 | n/a | if (!PyArg_ParseTuple(_args, "O&H", |
|---|
| 18469 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18470 | n/a | &blendLevel)) |
|---|
| 18471 | n/a | return NULL; |
|---|
| 18472 | n/a | _rv = VDGetMaskandValue(ci, |
|---|
| 18473 | n/a | blendLevel, |
|---|
| 18474 | n/a | &mask, |
|---|
| 18475 | n/a | &value); |
|---|
| 18476 | n/a | _res = Py_BuildValue("lll", |
|---|
| 18477 | n/a | _rv, |
|---|
| 18478 | n/a | mask, |
|---|
| 18479 | n/a | value); |
|---|
| 18480 | n/a | return _res; |
|---|
| 18481 | n/a | } |
|---|
| 18482 | n/a | |
|---|
| 18483 | n/a | static PyObject *Qt_VDSetMasterBlendLevel(PyObject *_self, PyObject *_args) |
|---|
| 18484 | n/a | { |
|---|
| 18485 | n/a | PyObject *_res = NULL; |
|---|
| 18486 | n/a | ComponentResult _rv; |
|---|
| 18487 | n/a | VideoDigitizerComponent ci; |
|---|
| 18488 | n/a | unsigned short blendLevel; |
|---|
| 18489 | n/a | #ifndef VDSetMasterBlendLevel |
|---|
| 18490 | n/a | PyMac_PRECHECK(VDSetMasterBlendLevel); |
|---|
| 18491 | n/a | #endif |
|---|
| 18492 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18493 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18494 | n/a | return NULL; |
|---|
| 18495 | n/a | _rv = VDSetMasterBlendLevel(ci, |
|---|
| 18496 | n/a | &blendLevel); |
|---|
| 18497 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18498 | n/a | _rv, |
|---|
| 18499 | n/a | blendLevel); |
|---|
| 18500 | n/a | return _res; |
|---|
| 18501 | n/a | } |
|---|
| 18502 | n/a | |
|---|
| 18503 | n/a | static PyObject *Qt_VDSetPlayThruOnOff(PyObject *_self, PyObject *_args) |
|---|
| 18504 | n/a | { |
|---|
| 18505 | n/a | PyObject *_res = NULL; |
|---|
| 18506 | n/a | ComponentResult _rv; |
|---|
| 18507 | n/a | VideoDigitizerComponent ci; |
|---|
| 18508 | n/a | short state; |
|---|
| 18509 | n/a | #ifndef VDSetPlayThruOnOff |
|---|
| 18510 | n/a | PyMac_PRECHECK(VDSetPlayThruOnOff); |
|---|
| 18511 | n/a | #endif |
|---|
| 18512 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18513 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18514 | n/a | &state)) |
|---|
| 18515 | n/a | return NULL; |
|---|
| 18516 | n/a | _rv = VDSetPlayThruOnOff(ci, |
|---|
| 18517 | n/a | state); |
|---|
| 18518 | n/a | _res = Py_BuildValue("l", |
|---|
| 18519 | n/a | _rv); |
|---|
| 18520 | n/a | return _res; |
|---|
| 18521 | n/a | } |
|---|
| 18522 | n/a | |
|---|
| 18523 | n/a | static PyObject *Qt_VDSetFieldPreference(PyObject *_self, PyObject *_args) |
|---|
| 18524 | n/a | { |
|---|
| 18525 | n/a | PyObject *_res = NULL; |
|---|
| 18526 | n/a | ComponentResult _rv; |
|---|
| 18527 | n/a | VideoDigitizerComponent ci; |
|---|
| 18528 | n/a | short fieldFlag; |
|---|
| 18529 | n/a | #ifndef VDSetFieldPreference |
|---|
| 18530 | n/a | PyMac_PRECHECK(VDSetFieldPreference); |
|---|
| 18531 | n/a | #endif |
|---|
| 18532 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18533 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18534 | n/a | &fieldFlag)) |
|---|
| 18535 | n/a | return NULL; |
|---|
| 18536 | n/a | _rv = VDSetFieldPreference(ci, |
|---|
| 18537 | n/a | fieldFlag); |
|---|
| 18538 | n/a | _res = Py_BuildValue("l", |
|---|
| 18539 | n/a | _rv); |
|---|
| 18540 | n/a | return _res; |
|---|
| 18541 | n/a | } |
|---|
| 18542 | n/a | |
|---|
| 18543 | n/a | static PyObject *Qt_VDGetFieldPreference(PyObject *_self, PyObject *_args) |
|---|
| 18544 | n/a | { |
|---|
| 18545 | n/a | PyObject *_res = NULL; |
|---|
| 18546 | n/a | ComponentResult _rv; |
|---|
| 18547 | n/a | VideoDigitizerComponent ci; |
|---|
| 18548 | n/a | short fieldFlag; |
|---|
| 18549 | n/a | #ifndef VDGetFieldPreference |
|---|
| 18550 | n/a | PyMac_PRECHECK(VDGetFieldPreference); |
|---|
| 18551 | n/a | #endif |
|---|
| 18552 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18553 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18554 | n/a | return NULL; |
|---|
| 18555 | n/a | _rv = VDGetFieldPreference(ci, |
|---|
| 18556 | n/a | &fieldFlag); |
|---|
| 18557 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18558 | n/a | _rv, |
|---|
| 18559 | n/a | fieldFlag); |
|---|
| 18560 | n/a | return _res; |
|---|
| 18561 | n/a | } |
|---|
| 18562 | n/a | |
|---|
| 18563 | n/a | static PyObject *Qt_VDPreflightGlobalRect(PyObject *_self, PyObject *_args) |
|---|
| 18564 | n/a | { |
|---|
| 18565 | n/a | PyObject *_res = NULL; |
|---|
| 18566 | n/a | ComponentResult _rv; |
|---|
| 18567 | n/a | VideoDigitizerComponent ci; |
|---|
| 18568 | n/a | GrafPtr theWindow; |
|---|
| 18569 | n/a | Rect globalRect; |
|---|
| 18570 | n/a | #ifndef VDPreflightGlobalRect |
|---|
| 18571 | n/a | PyMac_PRECHECK(VDPreflightGlobalRect); |
|---|
| 18572 | n/a | #endif |
|---|
| 18573 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 18574 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18575 | n/a | GrafObj_Convert, &theWindow)) |
|---|
| 18576 | n/a | return NULL; |
|---|
| 18577 | n/a | _rv = VDPreflightGlobalRect(ci, |
|---|
| 18578 | n/a | theWindow, |
|---|
| 18579 | n/a | &globalRect); |
|---|
| 18580 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 18581 | n/a | _rv, |
|---|
| 18582 | n/a | PyMac_BuildRect, &globalRect); |
|---|
| 18583 | n/a | return _res; |
|---|
| 18584 | n/a | } |
|---|
| 18585 | n/a | |
|---|
| 18586 | n/a | static PyObject *Qt_VDSetPlayThruGlobalRect(PyObject *_self, PyObject *_args) |
|---|
| 18587 | n/a | { |
|---|
| 18588 | n/a | PyObject *_res = NULL; |
|---|
| 18589 | n/a | ComponentResult _rv; |
|---|
| 18590 | n/a | VideoDigitizerComponent ci; |
|---|
| 18591 | n/a | GrafPtr theWindow; |
|---|
| 18592 | n/a | Rect globalRect; |
|---|
| 18593 | n/a | #ifndef VDSetPlayThruGlobalRect |
|---|
| 18594 | n/a | PyMac_PRECHECK(VDSetPlayThruGlobalRect); |
|---|
| 18595 | n/a | #endif |
|---|
| 18596 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 18597 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18598 | n/a | GrafObj_Convert, &theWindow)) |
|---|
| 18599 | n/a | return NULL; |
|---|
| 18600 | n/a | _rv = VDSetPlayThruGlobalRect(ci, |
|---|
| 18601 | n/a | theWindow, |
|---|
| 18602 | n/a | &globalRect); |
|---|
| 18603 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 18604 | n/a | _rv, |
|---|
| 18605 | n/a | PyMac_BuildRect, &globalRect); |
|---|
| 18606 | n/a | return _res; |
|---|
| 18607 | n/a | } |
|---|
| 18608 | n/a | |
|---|
| 18609 | n/a | static PyObject *Qt_VDSetBlackLevelValue(PyObject *_self, PyObject *_args) |
|---|
| 18610 | n/a | { |
|---|
| 18611 | n/a | PyObject *_res = NULL; |
|---|
| 18612 | n/a | ComponentResult _rv; |
|---|
| 18613 | n/a | VideoDigitizerComponent ci; |
|---|
| 18614 | n/a | unsigned short blackLevel; |
|---|
| 18615 | n/a | #ifndef VDSetBlackLevelValue |
|---|
| 18616 | n/a | PyMac_PRECHECK(VDSetBlackLevelValue); |
|---|
| 18617 | n/a | #endif |
|---|
| 18618 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18619 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18620 | n/a | return NULL; |
|---|
| 18621 | n/a | _rv = VDSetBlackLevelValue(ci, |
|---|
| 18622 | n/a | &blackLevel); |
|---|
| 18623 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18624 | n/a | _rv, |
|---|
| 18625 | n/a | blackLevel); |
|---|
| 18626 | n/a | return _res; |
|---|
| 18627 | n/a | } |
|---|
| 18628 | n/a | |
|---|
| 18629 | n/a | static PyObject *Qt_VDGetBlackLevelValue(PyObject *_self, PyObject *_args) |
|---|
| 18630 | n/a | { |
|---|
| 18631 | n/a | PyObject *_res = NULL; |
|---|
| 18632 | n/a | ComponentResult _rv; |
|---|
| 18633 | n/a | VideoDigitizerComponent ci; |
|---|
| 18634 | n/a | unsigned short blackLevel; |
|---|
| 18635 | n/a | #ifndef VDGetBlackLevelValue |
|---|
| 18636 | n/a | PyMac_PRECHECK(VDGetBlackLevelValue); |
|---|
| 18637 | n/a | #endif |
|---|
| 18638 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18639 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18640 | n/a | return NULL; |
|---|
| 18641 | n/a | _rv = VDGetBlackLevelValue(ci, |
|---|
| 18642 | n/a | &blackLevel); |
|---|
| 18643 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18644 | n/a | _rv, |
|---|
| 18645 | n/a | blackLevel); |
|---|
| 18646 | n/a | return _res; |
|---|
| 18647 | n/a | } |
|---|
| 18648 | n/a | |
|---|
| 18649 | n/a | static PyObject *Qt_VDSetWhiteLevelValue(PyObject *_self, PyObject *_args) |
|---|
| 18650 | n/a | { |
|---|
| 18651 | n/a | PyObject *_res = NULL; |
|---|
| 18652 | n/a | ComponentResult _rv; |
|---|
| 18653 | n/a | VideoDigitizerComponent ci; |
|---|
| 18654 | n/a | unsigned short whiteLevel; |
|---|
| 18655 | n/a | #ifndef VDSetWhiteLevelValue |
|---|
| 18656 | n/a | PyMac_PRECHECK(VDSetWhiteLevelValue); |
|---|
| 18657 | n/a | #endif |
|---|
| 18658 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18659 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18660 | n/a | return NULL; |
|---|
| 18661 | n/a | _rv = VDSetWhiteLevelValue(ci, |
|---|
| 18662 | n/a | &whiteLevel); |
|---|
| 18663 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18664 | n/a | _rv, |
|---|
| 18665 | n/a | whiteLevel); |
|---|
| 18666 | n/a | return _res; |
|---|
| 18667 | n/a | } |
|---|
| 18668 | n/a | |
|---|
| 18669 | n/a | static PyObject *Qt_VDGetWhiteLevelValue(PyObject *_self, PyObject *_args) |
|---|
| 18670 | n/a | { |
|---|
| 18671 | n/a | PyObject *_res = NULL; |
|---|
| 18672 | n/a | ComponentResult _rv; |
|---|
| 18673 | n/a | VideoDigitizerComponent ci; |
|---|
| 18674 | n/a | unsigned short whiteLevel; |
|---|
| 18675 | n/a | #ifndef VDGetWhiteLevelValue |
|---|
| 18676 | n/a | PyMac_PRECHECK(VDGetWhiteLevelValue); |
|---|
| 18677 | n/a | #endif |
|---|
| 18678 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18679 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18680 | n/a | return NULL; |
|---|
| 18681 | n/a | _rv = VDGetWhiteLevelValue(ci, |
|---|
| 18682 | n/a | &whiteLevel); |
|---|
| 18683 | n/a | _res = Py_BuildValue("lH", |
|---|
| 18684 | n/a | _rv, |
|---|
| 18685 | n/a | whiteLevel); |
|---|
| 18686 | n/a | return _res; |
|---|
| 18687 | n/a | } |
|---|
| 18688 | n/a | |
|---|
| 18689 | n/a | static PyObject *Qt_VDGetVideoDefaults(PyObject *_self, PyObject *_args) |
|---|
| 18690 | n/a | { |
|---|
| 18691 | n/a | PyObject *_res = NULL; |
|---|
| 18692 | n/a | ComponentResult _rv; |
|---|
| 18693 | n/a | VideoDigitizerComponent ci; |
|---|
| 18694 | n/a | unsigned short blackLevel; |
|---|
| 18695 | n/a | unsigned short whiteLevel; |
|---|
| 18696 | n/a | unsigned short brightness; |
|---|
| 18697 | n/a | unsigned short hue; |
|---|
| 18698 | n/a | unsigned short saturation; |
|---|
| 18699 | n/a | unsigned short contrast; |
|---|
| 18700 | n/a | unsigned short sharpness; |
|---|
| 18701 | n/a | #ifndef VDGetVideoDefaults |
|---|
| 18702 | n/a | PyMac_PRECHECK(VDGetVideoDefaults); |
|---|
| 18703 | n/a | #endif |
|---|
| 18704 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18705 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18706 | n/a | return NULL; |
|---|
| 18707 | n/a | _rv = VDGetVideoDefaults(ci, |
|---|
| 18708 | n/a | &blackLevel, |
|---|
| 18709 | n/a | &whiteLevel, |
|---|
| 18710 | n/a | &brightness, |
|---|
| 18711 | n/a | &hue, |
|---|
| 18712 | n/a | &saturation, |
|---|
| 18713 | n/a | &contrast, |
|---|
| 18714 | n/a | &sharpness); |
|---|
| 18715 | n/a | _res = Py_BuildValue("lHHHHHHH", |
|---|
| 18716 | n/a | _rv, |
|---|
| 18717 | n/a | blackLevel, |
|---|
| 18718 | n/a | whiteLevel, |
|---|
| 18719 | n/a | brightness, |
|---|
| 18720 | n/a | hue, |
|---|
| 18721 | n/a | saturation, |
|---|
| 18722 | n/a | contrast, |
|---|
| 18723 | n/a | sharpness); |
|---|
| 18724 | n/a | return _res; |
|---|
| 18725 | n/a | } |
|---|
| 18726 | n/a | |
|---|
| 18727 | n/a | static PyObject *Qt_VDGetNumberOfInputs(PyObject *_self, PyObject *_args) |
|---|
| 18728 | n/a | { |
|---|
| 18729 | n/a | PyObject *_res = NULL; |
|---|
| 18730 | n/a | ComponentResult _rv; |
|---|
| 18731 | n/a | VideoDigitizerComponent ci; |
|---|
| 18732 | n/a | short inputs; |
|---|
| 18733 | n/a | #ifndef VDGetNumberOfInputs |
|---|
| 18734 | n/a | PyMac_PRECHECK(VDGetNumberOfInputs); |
|---|
| 18735 | n/a | #endif |
|---|
| 18736 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18737 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18738 | n/a | return NULL; |
|---|
| 18739 | n/a | _rv = VDGetNumberOfInputs(ci, |
|---|
| 18740 | n/a | &inputs); |
|---|
| 18741 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18742 | n/a | _rv, |
|---|
| 18743 | n/a | inputs); |
|---|
| 18744 | n/a | return _res; |
|---|
| 18745 | n/a | } |
|---|
| 18746 | n/a | |
|---|
| 18747 | n/a | static PyObject *Qt_VDGetInputFormat(PyObject *_self, PyObject *_args) |
|---|
| 18748 | n/a | { |
|---|
| 18749 | n/a | PyObject *_res = NULL; |
|---|
| 18750 | n/a | ComponentResult _rv; |
|---|
| 18751 | n/a | VideoDigitizerComponent ci; |
|---|
| 18752 | n/a | short input; |
|---|
| 18753 | n/a | short format; |
|---|
| 18754 | n/a | #ifndef VDGetInputFormat |
|---|
| 18755 | n/a | PyMac_PRECHECK(VDGetInputFormat); |
|---|
| 18756 | n/a | #endif |
|---|
| 18757 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18758 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18759 | n/a | &input)) |
|---|
| 18760 | n/a | return NULL; |
|---|
| 18761 | n/a | _rv = VDGetInputFormat(ci, |
|---|
| 18762 | n/a | input, |
|---|
| 18763 | n/a | &format); |
|---|
| 18764 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18765 | n/a | _rv, |
|---|
| 18766 | n/a | format); |
|---|
| 18767 | n/a | return _res; |
|---|
| 18768 | n/a | } |
|---|
| 18769 | n/a | |
|---|
| 18770 | n/a | static PyObject *Qt_VDSetInput(PyObject *_self, PyObject *_args) |
|---|
| 18771 | n/a | { |
|---|
| 18772 | n/a | PyObject *_res = NULL; |
|---|
| 18773 | n/a | ComponentResult _rv; |
|---|
| 18774 | n/a | VideoDigitizerComponent ci; |
|---|
| 18775 | n/a | short input; |
|---|
| 18776 | n/a | #ifndef VDSetInput |
|---|
| 18777 | n/a | PyMac_PRECHECK(VDSetInput); |
|---|
| 18778 | n/a | #endif |
|---|
| 18779 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18780 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18781 | n/a | &input)) |
|---|
| 18782 | n/a | return NULL; |
|---|
| 18783 | n/a | _rv = VDSetInput(ci, |
|---|
| 18784 | n/a | input); |
|---|
| 18785 | n/a | _res = Py_BuildValue("l", |
|---|
| 18786 | n/a | _rv); |
|---|
| 18787 | n/a | return _res; |
|---|
| 18788 | n/a | } |
|---|
| 18789 | n/a | |
|---|
| 18790 | n/a | static PyObject *Qt_VDGetInput(PyObject *_self, PyObject *_args) |
|---|
| 18791 | n/a | { |
|---|
| 18792 | n/a | PyObject *_res = NULL; |
|---|
| 18793 | n/a | ComponentResult _rv; |
|---|
| 18794 | n/a | VideoDigitizerComponent ci; |
|---|
| 18795 | n/a | short input; |
|---|
| 18796 | n/a | #ifndef VDGetInput |
|---|
| 18797 | n/a | PyMac_PRECHECK(VDGetInput); |
|---|
| 18798 | n/a | #endif |
|---|
| 18799 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18800 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18801 | n/a | return NULL; |
|---|
| 18802 | n/a | _rv = VDGetInput(ci, |
|---|
| 18803 | n/a | &input); |
|---|
| 18804 | n/a | _res = Py_BuildValue("lh", |
|---|
| 18805 | n/a | _rv, |
|---|
| 18806 | n/a | input); |
|---|
| 18807 | n/a | return _res; |
|---|
| 18808 | n/a | } |
|---|
| 18809 | n/a | |
|---|
| 18810 | n/a | static PyObject *Qt_VDSetInputStandard(PyObject *_self, PyObject *_args) |
|---|
| 18811 | n/a | { |
|---|
| 18812 | n/a | PyObject *_res = NULL; |
|---|
| 18813 | n/a | ComponentResult _rv; |
|---|
| 18814 | n/a | VideoDigitizerComponent ci; |
|---|
| 18815 | n/a | short inputStandard; |
|---|
| 18816 | n/a | #ifndef VDSetInputStandard |
|---|
| 18817 | n/a | PyMac_PRECHECK(VDSetInputStandard); |
|---|
| 18818 | n/a | #endif |
|---|
| 18819 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18820 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18821 | n/a | &inputStandard)) |
|---|
| 18822 | n/a | return NULL; |
|---|
| 18823 | n/a | _rv = VDSetInputStandard(ci, |
|---|
| 18824 | n/a | inputStandard); |
|---|
| 18825 | n/a | _res = Py_BuildValue("l", |
|---|
| 18826 | n/a | _rv); |
|---|
| 18827 | n/a | return _res; |
|---|
| 18828 | n/a | } |
|---|
| 18829 | n/a | |
|---|
| 18830 | n/a | static PyObject *Qt_VDSetupBuffers(PyObject *_self, PyObject *_args) |
|---|
| 18831 | n/a | { |
|---|
| 18832 | n/a | PyObject *_res = NULL; |
|---|
| 18833 | n/a | ComponentResult _rv; |
|---|
| 18834 | n/a | VideoDigitizerComponent ci; |
|---|
| 18835 | n/a | VdigBufferRecListHandle bufferList; |
|---|
| 18836 | n/a | #ifndef VDSetupBuffers |
|---|
| 18837 | n/a | PyMac_PRECHECK(VDSetupBuffers); |
|---|
| 18838 | n/a | #endif |
|---|
| 18839 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 18840 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18841 | n/a | ResObj_Convert, &bufferList)) |
|---|
| 18842 | n/a | return NULL; |
|---|
| 18843 | n/a | _rv = VDSetupBuffers(ci, |
|---|
| 18844 | n/a | bufferList); |
|---|
| 18845 | n/a | _res = Py_BuildValue("l", |
|---|
| 18846 | n/a | _rv); |
|---|
| 18847 | n/a | return _res; |
|---|
| 18848 | n/a | } |
|---|
| 18849 | n/a | |
|---|
| 18850 | n/a | static PyObject *Qt_VDGrabOneFrameAsync(PyObject *_self, PyObject *_args) |
|---|
| 18851 | n/a | { |
|---|
| 18852 | n/a | PyObject *_res = NULL; |
|---|
| 18853 | n/a | ComponentResult _rv; |
|---|
| 18854 | n/a | VideoDigitizerComponent ci; |
|---|
| 18855 | n/a | short buffer; |
|---|
| 18856 | n/a | #ifndef VDGrabOneFrameAsync |
|---|
| 18857 | n/a | PyMac_PRECHECK(VDGrabOneFrameAsync); |
|---|
| 18858 | n/a | #endif |
|---|
| 18859 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18860 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18861 | n/a | &buffer)) |
|---|
| 18862 | n/a | return NULL; |
|---|
| 18863 | n/a | _rv = VDGrabOneFrameAsync(ci, |
|---|
| 18864 | n/a | buffer); |
|---|
| 18865 | n/a | _res = Py_BuildValue("l", |
|---|
| 18866 | n/a | _rv); |
|---|
| 18867 | n/a | return _res; |
|---|
| 18868 | n/a | } |
|---|
| 18869 | n/a | |
|---|
| 18870 | n/a | static PyObject *Qt_VDDone(PyObject *_self, PyObject *_args) |
|---|
| 18871 | n/a | { |
|---|
| 18872 | n/a | PyObject *_res = NULL; |
|---|
| 18873 | n/a | ComponentResult _rv; |
|---|
| 18874 | n/a | VideoDigitizerComponent ci; |
|---|
| 18875 | n/a | short buffer; |
|---|
| 18876 | n/a | #ifndef VDDone |
|---|
| 18877 | n/a | PyMac_PRECHECK(VDDone); |
|---|
| 18878 | n/a | #endif |
|---|
| 18879 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 18880 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18881 | n/a | &buffer)) |
|---|
| 18882 | n/a | return NULL; |
|---|
| 18883 | n/a | _rv = VDDone(ci, |
|---|
| 18884 | n/a | buffer); |
|---|
| 18885 | n/a | _res = Py_BuildValue("l", |
|---|
| 18886 | n/a | _rv); |
|---|
| 18887 | n/a | return _res; |
|---|
| 18888 | n/a | } |
|---|
| 18889 | n/a | |
|---|
| 18890 | n/a | static PyObject *Qt_VDSetCompression(PyObject *_self, PyObject *_args) |
|---|
| 18891 | n/a | { |
|---|
| 18892 | n/a | PyObject *_res = NULL; |
|---|
| 18893 | n/a | ComponentResult _rv; |
|---|
| 18894 | n/a | VideoDigitizerComponent ci; |
|---|
| 18895 | n/a | OSType compressType; |
|---|
| 18896 | n/a | short depth; |
|---|
| 18897 | n/a | Rect bounds; |
|---|
| 18898 | n/a | CodecQ spatialQuality; |
|---|
| 18899 | n/a | CodecQ temporalQuality; |
|---|
| 18900 | n/a | long keyFrameRate; |
|---|
| 18901 | n/a | #ifndef VDSetCompression |
|---|
| 18902 | n/a | PyMac_PRECHECK(VDSetCompression); |
|---|
| 18903 | n/a | #endif |
|---|
| 18904 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hlll", |
|---|
| 18905 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18906 | n/a | PyMac_GetOSType, &compressType, |
|---|
| 18907 | n/a | &depth, |
|---|
| 18908 | n/a | &spatialQuality, |
|---|
| 18909 | n/a | &temporalQuality, |
|---|
| 18910 | n/a | &keyFrameRate)) |
|---|
| 18911 | n/a | return NULL; |
|---|
| 18912 | n/a | _rv = VDSetCompression(ci, |
|---|
| 18913 | n/a | compressType, |
|---|
| 18914 | n/a | depth, |
|---|
| 18915 | n/a | &bounds, |
|---|
| 18916 | n/a | spatialQuality, |
|---|
| 18917 | n/a | temporalQuality, |
|---|
| 18918 | n/a | keyFrameRate); |
|---|
| 18919 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 18920 | n/a | _rv, |
|---|
| 18921 | n/a | PyMac_BuildRect, &bounds); |
|---|
| 18922 | n/a | return _res; |
|---|
| 18923 | n/a | } |
|---|
| 18924 | n/a | |
|---|
| 18925 | n/a | static PyObject *Qt_VDCompressOneFrameAsync(PyObject *_self, PyObject *_args) |
|---|
| 18926 | n/a | { |
|---|
| 18927 | n/a | PyObject *_res = NULL; |
|---|
| 18928 | n/a | ComponentResult _rv; |
|---|
| 18929 | n/a | VideoDigitizerComponent ci; |
|---|
| 18930 | n/a | #ifndef VDCompressOneFrameAsync |
|---|
| 18931 | n/a | PyMac_PRECHECK(VDCompressOneFrameAsync); |
|---|
| 18932 | n/a | #endif |
|---|
| 18933 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18934 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18935 | n/a | return NULL; |
|---|
| 18936 | n/a | _rv = VDCompressOneFrameAsync(ci); |
|---|
| 18937 | n/a | _res = Py_BuildValue("l", |
|---|
| 18938 | n/a | _rv); |
|---|
| 18939 | n/a | return _res; |
|---|
| 18940 | n/a | } |
|---|
| 18941 | n/a | |
|---|
| 18942 | n/a | static PyObject *Qt_VDGetImageDescription(PyObject *_self, PyObject *_args) |
|---|
| 18943 | n/a | { |
|---|
| 18944 | n/a | PyObject *_res = NULL; |
|---|
| 18945 | n/a | ComponentResult _rv; |
|---|
| 18946 | n/a | VideoDigitizerComponent ci; |
|---|
| 18947 | n/a | ImageDescriptionHandle desc; |
|---|
| 18948 | n/a | #ifndef VDGetImageDescription |
|---|
| 18949 | n/a | PyMac_PRECHECK(VDGetImageDescription); |
|---|
| 18950 | n/a | #endif |
|---|
| 18951 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 18952 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18953 | n/a | ResObj_Convert, &desc)) |
|---|
| 18954 | n/a | return NULL; |
|---|
| 18955 | n/a | _rv = VDGetImageDescription(ci, |
|---|
| 18956 | n/a | desc); |
|---|
| 18957 | n/a | _res = Py_BuildValue("l", |
|---|
| 18958 | n/a | _rv); |
|---|
| 18959 | n/a | return _res; |
|---|
| 18960 | n/a | } |
|---|
| 18961 | n/a | |
|---|
| 18962 | n/a | static PyObject *Qt_VDResetCompressSequence(PyObject *_self, PyObject *_args) |
|---|
| 18963 | n/a | { |
|---|
| 18964 | n/a | PyObject *_res = NULL; |
|---|
| 18965 | n/a | ComponentResult _rv; |
|---|
| 18966 | n/a | VideoDigitizerComponent ci; |
|---|
| 18967 | n/a | #ifndef VDResetCompressSequence |
|---|
| 18968 | n/a | PyMac_PRECHECK(VDResetCompressSequence); |
|---|
| 18969 | n/a | #endif |
|---|
| 18970 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 18971 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 18972 | n/a | return NULL; |
|---|
| 18973 | n/a | _rv = VDResetCompressSequence(ci); |
|---|
| 18974 | n/a | _res = Py_BuildValue("l", |
|---|
| 18975 | n/a | _rv); |
|---|
| 18976 | n/a | return _res; |
|---|
| 18977 | n/a | } |
|---|
| 18978 | n/a | |
|---|
| 18979 | n/a | static PyObject *Qt_VDSetCompressionOnOff(PyObject *_self, PyObject *_args) |
|---|
| 18980 | n/a | { |
|---|
| 18981 | n/a | PyObject *_res = NULL; |
|---|
| 18982 | n/a | ComponentResult _rv; |
|---|
| 18983 | n/a | VideoDigitizerComponent ci; |
|---|
| 18984 | n/a | Boolean state; |
|---|
| 18985 | n/a | #ifndef VDSetCompressionOnOff |
|---|
| 18986 | n/a | PyMac_PRECHECK(VDSetCompressionOnOff); |
|---|
| 18987 | n/a | #endif |
|---|
| 18988 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 18989 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 18990 | n/a | &state)) |
|---|
| 18991 | n/a | return NULL; |
|---|
| 18992 | n/a | _rv = VDSetCompressionOnOff(ci, |
|---|
| 18993 | n/a | state); |
|---|
| 18994 | n/a | _res = Py_BuildValue("l", |
|---|
| 18995 | n/a | _rv); |
|---|
| 18996 | n/a | return _res; |
|---|
| 18997 | n/a | } |
|---|
| 18998 | n/a | |
|---|
| 18999 | n/a | static PyObject *Qt_VDGetCompressionTypes(PyObject *_self, PyObject *_args) |
|---|
| 19000 | n/a | { |
|---|
| 19001 | n/a | PyObject *_res = NULL; |
|---|
| 19002 | n/a | ComponentResult _rv; |
|---|
| 19003 | n/a | VideoDigitizerComponent ci; |
|---|
| 19004 | n/a | VDCompressionListHandle h; |
|---|
| 19005 | n/a | #ifndef VDGetCompressionTypes |
|---|
| 19006 | n/a | PyMac_PRECHECK(VDGetCompressionTypes); |
|---|
| 19007 | n/a | #endif |
|---|
| 19008 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19009 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19010 | n/a | ResObj_Convert, &h)) |
|---|
| 19011 | n/a | return NULL; |
|---|
| 19012 | n/a | _rv = VDGetCompressionTypes(ci, |
|---|
| 19013 | n/a | h); |
|---|
| 19014 | n/a | _res = Py_BuildValue("l", |
|---|
| 19015 | n/a | _rv); |
|---|
| 19016 | n/a | return _res; |
|---|
| 19017 | n/a | } |
|---|
| 19018 | n/a | |
|---|
| 19019 | n/a | static PyObject *Qt_VDSetTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 19020 | n/a | { |
|---|
| 19021 | n/a | PyObject *_res = NULL; |
|---|
| 19022 | n/a | ComponentResult _rv; |
|---|
| 19023 | n/a | VideoDigitizerComponent ci; |
|---|
| 19024 | n/a | TimeBase t; |
|---|
| 19025 | n/a | #ifndef VDSetTimeBase |
|---|
| 19026 | n/a | PyMac_PRECHECK(VDSetTimeBase); |
|---|
| 19027 | n/a | #endif |
|---|
| 19028 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19029 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19030 | n/a | TimeBaseObj_Convert, &t)) |
|---|
| 19031 | n/a | return NULL; |
|---|
| 19032 | n/a | _rv = VDSetTimeBase(ci, |
|---|
| 19033 | n/a | t); |
|---|
| 19034 | n/a | _res = Py_BuildValue("l", |
|---|
| 19035 | n/a | _rv); |
|---|
| 19036 | n/a | return _res; |
|---|
| 19037 | n/a | } |
|---|
| 19038 | n/a | |
|---|
| 19039 | n/a | static PyObject *Qt_VDSetFrameRate(PyObject *_self, PyObject *_args) |
|---|
| 19040 | n/a | { |
|---|
| 19041 | n/a | PyObject *_res = NULL; |
|---|
| 19042 | n/a | ComponentResult _rv; |
|---|
| 19043 | n/a | VideoDigitizerComponent ci; |
|---|
| 19044 | n/a | Fixed framesPerSecond; |
|---|
| 19045 | n/a | #ifndef VDSetFrameRate |
|---|
| 19046 | n/a | PyMac_PRECHECK(VDSetFrameRate); |
|---|
| 19047 | n/a | #endif |
|---|
| 19048 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19049 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19050 | n/a | PyMac_GetFixed, &framesPerSecond)) |
|---|
| 19051 | n/a | return NULL; |
|---|
| 19052 | n/a | _rv = VDSetFrameRate(ci, |
|---|
| 19053 | n/a | framesPerSecond); |
|---|
| 19054 | n/a | _res = Py_BuildValue("l", |
|---|
| 19055 | n/a | _rv); |
|---|
| 19056 | n/a | return _res; |
|---|
| 19057 | n/a | } |
|---|
| 19058 | n/a | |
|---|
| 19059 | n/a | static PyObject *Qt_VDGetDataRate(PyObject *_self, PyObject *_args) |
|---|
| 19060 | n/a | { |
|---|
| 19061 | n/a | PyObject *_res = NULL; |
|---|
| 19062 | n/a | ComponentResult _rv; |
|---|
| 19063 | n/a | VideoDigitizerComponent ci; |
|---|
| 19064 | n/a | long milliSecPerFrame; |
|---|
| 19065 | n/a | Fixed framesPerSecond; |
|---|
| 19066 | n/a | long bytesPerSecond; |
|---|
| 19067 | n/a | #ifndef VDGetDataRate |
|---|
| 19068 | n/a | PyMac_PRECHECK(VDGetDataRate); |
|---|
| 19069 | n/a | #endif |
|---|
| 19070 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19071 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 19072 | n/a | return NULL; |
|---|
| 19073 | n/a | _rv = VDGetDataRate(ci, |
|---|
| 19074 | n/a | &milliSecPerFrame, |
|---|
| 19075 | n/a | &framesPerSecond, |
|---|
| 19076 | n/a | &bytesPerSecond); |
|---|
| 19077 | n/a | _res = Py_BuildValue("llO&l", |
|---|
| 19078 | n/a | _rv, |
|---|
| 19079 | n/a | milliSecPerFrame, |
|---|
| 19080 | n/a | PyMac_BuildFixed, framesPerSecond, |
|---|
| 19081 | n/a | bytesPerSecond); |
|---|
| 19082 | n/a | return _res; |
|---|
| 19083 | n/a | } |
|---|
| 19084 | n/a | |
|---|
| 19085 | n/a | static PyObject *Qt_VDGetSoundInputDriver(PyObject *_self, PyObject *_args) |
|---|
| 19086 | n/a | { |
|---|
| 19087 | n/a | PyObject *_res = NULL; |
|---|
| 19088 | n/a | ComponentResult _rv; |
|---|
| 19089 | n/a | VideoDigitizerComponent ci; |
|---|
| 19090 | n/a | Str255 soundDriverName; |
|---|
| 19091 | n/a | #ifndef VDGetSoundInputDriver |
|---|
| 19092 | n/a | PyMac_PRECHECK(VDGetSoundInputDriver); |
|---|
| 19093 | n/a | #endif |
|---|
| 19094 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19095 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19096 | n/a | PyMac_GetStr255, soundDriverName)) |
|---|
| 19097 | n/a | return NULL; |
|---|
| 19098 | n/a | _rv = VDGetSoundInputDriver(ci, |
|---|
| 19099 | n/a | soundDriverName); |
|---|
| 19100 | n/a | _res = Py_BuildValue("l", |
|---|
| 19101 | n/a | _rv); |
|---|
| 19102 | n/a | return _res; |
|---|
| 19103 | n/a | } |
|---|
| 19104 | n/a | |
|---|
| 19105 | n/a | static PyObject *Qt_VDGetDMADepths(PyObject *_self, PyObject *_args) |
|---|
| 19106 | n/a | { |
|---|
| 19107 | n/a | PyObject *_res = NULL; |
|---|
| 19108 | n/a | ComponentResult _rv; |
|---|
| 19109 | n/a | VideoDigitizerComponent ci; |
|---|
| 19110 | n/a | long depthArray; |
|---|
| 19111 | n/a | long preferredDepth; |
|---|
| 19112 | n/a | #ifndef VDGetDMADepths |
|---|
| 19113 | n/a | PyMac_PRECHECK(VDGetDMADepths); |
|---|
| 19114 | n/a | #endif |
|---|
| 19115 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19116 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 19117 | n/a | return NULL; |
|---|
| 19118 | n/a | _rv = VDGetDMADepths(ci, |
|---|
| 19119 | n/a | &depthArray, |
|---|
| 19120 | n/a | &preferredDepth); |
|---|
| 19121 | n/a | _res = Py_BuildValue("lll", |
|---|
| 19122 | n/a | _rv, |
|---|
| 19123 | n/a | depthArray, |
|---|
| 19124 | n/a | preferredDepth); |
|---|
| 19125 | n/a | return _res; |
|---|
| 19126 | n/a | } |
|---|
| 19127 | n/a | |
|---|
| 19128 | n/a | static PyObject *Qt_VDGetPreferredTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 19129 | n/a | { |
|---|
| 19130 | n/a | PyObject *_res = NULL; |
|---|
| 19131 | n/a | ComponentResult _rv; |
|---|
| 19132 | n/a | VideoDigitizerComponent ci; |
|---|
| 19133 | n/a | TimeScale preferred; |
|---|
| 19134 | n/a | #ifndef VDGetPreferredTimeScale |
|---|
| 19135 | n/a | PyMac_PRECHECK(VDGetPreferredTimeScale); |
|---|
| 19136 | n/a | #endif |
|---|
| 19137 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19138 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 19139 | n/a | return NULL; |
|---|
| 19140 | n/a | _rv = VDGetPreferredTimeScale(ci, |
|---|
| 19141 | n/a | &preferred); |
|---|
| 19142 | n/a | _res = Py_BuildValue("ll", |
|---|
| 19143 | n/a | _rv, |
|---|
| 19144 | n/a | preferred); |
|---|
| 19145 | n/a | return _res; |
|---|
| 19146 | n/a | } |
|---|
| 19147 | n/a | |
|---|
| 19148 | n/a | static PyObject *Qt_VDReleaseAsyncBuffers(PyObject *_self, PyObject *_args) |
|---|
| 19149 | n/a | { |
|---|
| 19150 | n/a | PyObject *_res = NULL; |
|---|
| 19151 | n/a | ComponentResult _rv; |
|---|
| 19152 | n/a | VideoDigitizerComponent ci; |
|---|
| 19153 | n/a | #ifndef VDReleaseAsyncBuffers |
|---|
| 19154 | n/a | PyMac_PRECHECK(VDReleaseAsyncBuffers); |
|---|
| 19155 | n/a | #endif |
|---|
| 19156 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19157 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 19158 | n/a | return NULL; |
|---|
| 19159 | n/a | _rv = VDReleaseAsyncBuffers(ci); |
|---|
| 19160 | n/a | _res = Py_BuildValue("l", |
|---|
| 19161 | n/a | _rv); |
|---|
| 19162 | n/a | return _res; |
|---|
| 19163 | n/a | } |
|---|
| 19164 | n/a | |
|---|
| 19165 | n/a | static PyObject *Qt_VDSetDataRate(PyObject *_self, PyObject *_args) |
|---|
| 19166 | n/a | { |
|---|
| 19167 | n/a | PyObject *_res = NULL; |
|---|
| 19168 | n/a | ComponentResult _rv; |
|---|
| 19169 | n/a | VideoDigitizerComponent ci; |
|---|
| 19170 | n/a | long bytesPerSecond; |
|---|
| 19171 | n/a | #ifndef VDSetDataRate |
|---|
| 19172 | n/a | PyMac_PRECHECK(VDSetDataRate); |
|---|
| 19173 | n/a | #endif |
|---|
| 19174 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19175 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19176 | n/a | &bytesPerSecond)) |
|---|
| 19177 | n/a | return NULL; |
|---|
| 19178 | n/a | _rv = VDSetDataRate(ci, |
|---|
| 19179 | n/a | bytesPerSecond); |
|---|
| 19180 | n/a | _res = Py_BuildValue("l", |
|---|
| 19181 | n/a | _rv); |
|---|
| 19182 | n/a | return _res; |
|---|
| 19183 | n/a | } |
|---|
| 19184 | n/a | |
|---|
| 19185 | n/a | static PyObject *Qt_VDGetTimeCode(PyObject *_self, PyObject *_args) |
|---|
| 19186 | n/a | { |
|---|
| 19187 | n/a | PyObject *_res = NULL; |
|---|
| 19188 | n/a | ComponentResult _rv; |
|---|
| 19189 | n/a | VideoDigitizerComponent ci; |
|---|
| 19190 | n/a | TimeRecord atTime; |
|---|
| 19191 | n/a | void * timeCodeFormat; |
|---|
| 19192 | n/a | void * timeCodeTime; |
|---|
| 19193 | n/a | #ifndef VDGetTimeCode |
|---|
| 19194 | n/a | PyMac_PRECHECK(VDGetTimeCode); |
|---|
| 19195 | n/a | #endif |
|---|
| 19196 | n/a | if (!PyArg_ParseTuple(_args, "O&ss", |
|---|
| 19197 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19198 | n/a | &timeCodeFormat, |
|---|
| 19199 | n/a | &timeCodeTime)) |
|---|
| 19200 | n/a | return NULL; |
|---|
| 19201 | n/a | _rv = VDGetTimeCode(ci, |
|---|
| 19202 | n/a | &atTime, |
|---|
| 19203 | n/a | timeCodeFormat, |
|---|
| 19204 | n/a | timeCodeTime); |
|---|
| 19205 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 19206 | n/a | _rv, |
|---|
| 19207 | n/a | QtTimeRecord_New, &atTime); |
|---|
| 19208 | n/a | return _res; |
|---|
| 19209 | n/a | } |
|---|
| 19210 | n/a | |
|---|
| 19211 | n/a | static PyObject *Qt_VDUseSafeBuffers(PyObject *_self, PyObject *_args) |
|---|
| 19212 | n/a | { |
|---|
| 19213 | n/a | PyObject *_res = NULL; |
|---|
| 19214 | n/a | ComponentResult _rv; |
|---|
| 19215 | n/a | VideoDigitizerComponent ci; |
|---|
| 19216 | n/a | Boolean useSafeBuffers; |
|---|
| 19217 | n/a | #ifndef VDUseSafeBuffers |
|---|
| 19218 | n/a | PyMac_PRECHECK(VDUseSafeBuffers); |
|---|
| 19219 | n/a | #endif |
|---|
| 19220 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 19221 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19222 | n/a | &useSafeBuffers)) |
|---|
| 19223 | n/a | return NULL; |
|---|
| 19224 | n/a | _rv = VDUseSafeBuffers(ci, |
|---|
| 19225 | n/a | useSafeBuffers); |
|---|
| 19226 | n/a | _res = Py_BuildValue("l", |
|---|
| 19227 | n/a | _rv); |
|---|
| 19228 | n/a | return _res; |
|---|
| 19229 | n/a | } |
|---|
| 19230 | n/a | |
|---|
| 19231 | n/a | static PyObject *Qt_VDGetSoundInputSource(PyObject *_self, PyObject *_args) |
|---|
| 19232 | n/a | { |
|---|
| 19233 | n/a | PyObject *_res = NULL; |
|---|
| 19234 | n/a | ComponentResult _rv; |
|---|
| 19235 | n/a | VideoDigitizerComponent ci; |
|---|
| 19236 | n/a | long videoInput; |
|---|
| 19237 | n/a | long soundInput; |
|---|
| 19238 | n/a | #ifndef VDGetSoundInputSource |
|---|
| 19239 | n/a | PyMac_PRECHECK(VDGetSoundInputSource); |
|---|
| 19240 | n/a | #endif |
|---|
| 19241 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19242 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19243 | n/a | &videoInput)) |
|---|
| 19244 | n/a | return NULL; |
|---|
| 19245 | n/a | _rv = VDGetSoundInputSource(ci, |
|---|
| 19246 | n/a | videoInput, |
|---|
| 19247 | n/a | &soundInput); |
|---|
| 19248 | n/a | _res = Py_BuildValue("ll", |
|---|
| 19249 | n/a | _rv, |
|---|
| 19250 | n/a | soundInput); |
|---|
| 19251 | n/a | return _res; |
|---|
| 19252 | n/a | } |
|---|
| 19253 | n/a | |
|---|
| 19254 | n/a | static PyObject *Qt_VDGetCompressionTime(PyObject *_self, PyObject *_args) |
|---|
| 19255 | n/a | { |
|---|
| 19256 | n/a | PyObject *_res = NULL; |
|---|
| 19257 | n/a | ComponentResult _rv; |
|---|
| 19258 | n/a | VideoDigitizerComponent ci; |
|---|
| 19259 | n/a | OSType compressionType; |
|---|
| 19260 | n/a | short depth; |
|---|
| 19261 | n/a | Rect srcRect; |
|---|
| 19262 | n/a | CodecQ spatialQuality; |
|---|
| 19263 | n/a | CodecQ temporalQuality; |
|---|
| 19264 | n/a | unsigned long compressTime; |
|---|
| 19265 | n/a | #ifndef VDGetCompressionTime |
|---|
| 19266 | n/a | PyMac_PRECHECK(VDGetCompressionTime); |
|---|
| 19267 | n/a | #endif |
|---|
| 19268 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 19269 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19270 | n/a | PyMac_GetOSType, &compressionType, |
|---|
| 19271 | n/a | &depth)) |
|---|
| 19272 | n/a | return NULL; |
|---|
| 19273 | n/a | _rv = VDGetCompressionTime(ci, |
|---|
| 19274 | n/a | compressionType, |
|---|
| 19275 | n/a | depth, |
|---|
| 19276 | n/a | &srcRect, |
|---|
| 19277 | n/a | &spatialQuality, |
|---|
| 19278 | n/a | &temporalQuality, |
|---|
| 19279 | n/a | &compressTime); |
|---|
| 19280 | n/a | _res = Py_BuildValue("lO&lll", |
|---|
| 19281 | n/a | _rv, |
|---|
| 19282 | n/a | PyMac_BuildRect, &srcRect, |
|---|
| 19283 | n/a | spatialQuality, |
|---|
| 19284 | n/a | temporalQuality, |
|---|
| 19285 | n/a | compressTime); |
|---|
| 19286 | n/a | return _res; |
|---|
| 19287 | n/a | } |
|---|
| 19288 | n/a | |
|---|
| 19289 | n/a | static PyObject *Qt_VDSetPreferredPacketSize(PyObject *_self, PyObject *_args) |
|---|
| 19290 | n/a | { |
|---|
| 19291 | n/a | PyObject *_res = NULL; |
|---|
| 19292 | n/a | ComponentResult _rv; |
|---|
| 19293 | n/a | VideoDigitizerComponent ci; |
|---|
| 19294 | n/a | long preferredPacketSizeInBytes; |
|---|
| 19295 | n/a | #ifndef VDSetPreferredPacketSize |
|---|
| 19296 | n/a | PyMac_PRECHECK(VDSetPreferredPacketSize); |
|---|
| 19297 | n/a | #endif |
|---|
| 19298 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19299 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19300 | n/a | &preferredPacketSizeInBytes)) |
|---|
| 19301 | n/a | return NULL; |
|---|
| 19302 | n/a | _rv = VDSetPreferredPacketSize(ci, |
|---|
| 19303 | n/a | preferredPacketSizeInBytes); |
|---|
| 19304 | n/a | _res = Py_BuildValue("l", |
|---|
| 19305 | n/a | _rv); |
|---|
| 19306 | n/a | return _res; |
|---|
| 19307 | n/a | } |
|---|
| 19308 | n/a | |
|---|
| 19309 | n/a | static PyObject *Qt_VDSetPreferredImageDimensions(PyObject *_self, PyObject *_args) |
|---|
| 19310 | n/a | { |
|---|
| 19311 | n/a | PyObject *_res = NULL; |
|---|
| 19312 | n/a | ComponentResult _rv; |
|---|
| 19313 | n/a | VideoDigitizerComponent ci; |
|---|
| 19314 | n/a | long width; |
|---|
| 19315 | n/a | long height; |
|---|
| 19316 | n/a | #ifndef VDSetPreferredImageDimensions |
|---|
| 19317 | n/a | PyMac_PRECHECK(VDSetPreferredImageDimensions); |
|---|
| 19318 | n/a | #endif |
|---|
| 19319 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 19320 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19321 | n/a | &width, |
|---|
| 19322 | n/a | &height)) |
|---|
| 19323 | n/a | return NULL; |
|---|
| 19324 | n/a | _rv = VDSetPreferredImageDimensions(ci, |
|---|
| 19325 | n/a | width, |
|---|
| 19326 | n/a | height); |
|---|
| 19327 | n/a | _res = Py_BuildValue("l", |
|---|
| 19328 | n/a | _rv); |
|---|
| 19329 | n/a | return _res; |
|---|
| 19330 | n/a | } |
|---|
| 19331 | n/a | |
|---|
| 19332 | n/a | static PyObject *Qt_VDGetPreferredImageDimensions(PyObject *_self, PyObject *_args) |
|---|
| 19333 | n/a | { |
|---|
| 19334 | n/a | PyObject *_res = NULL; |
|---|
| 19335 | n/a | ComponentResult _rv; |
|---|
| 19336 | n/a | VideoDigitizerComponent ci; |
|---|
| 19337 | n/a | long width; |
|---|
| 19338 | n/a | long height; |
|---|
| 19339 | n/a | #ifndef VDGetPreferredImageDimensions |
|---|
| 19340 | n/a | PyMac_PRECHECK(VDGetPreferredImageDimensions); |
|---|
| 19341 | n/a | #endif |
|---|
| 19342 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19343 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 19344 | n/a | return NULL; |
|---|
| 19345 | n/a | _rv = VDGetPreferredImageDimensions(ci, |
|---|
| 19346 | n/a | &width, |
|---|
| 19347 | n/a | &height); |
|---|
| 19348 | n/a | _res = Py_BuildValue("lll", |
|---|
| 19349 | n/a | _rv, |
|---|
| 19350 | n/a | width, |
|---|
| 19351 | n/a | height); |
|---|
| 19352 | n/a | return _res; |
|---|
| 19353 | n/a | } |
|---|
| 19354 | n/a | |
|---|
| 19355 | n/a | static PyObject *Qt_VDGetInputName(PyObject *_self, PyObject *_args) |
|---|
| 19356 | n/a | { |
|---|
| 19357 | n/a | PyObject *_res = NULL; |
|---|
| 19358 | n/a | ComponentResult _rv; |
|---|
| 19359 | n/a | VideoDigitizerComponent ci; |
|---|
| 19360 | n/a | long videoInput; |
|---|
| 19361 | n/a | Str255 name; |
|---|
| 19362 | n/a | #ifndef VDGetInputName |
|---|
| 19363 | n/a | PyMac_PRECHECK(VDGetInputName); |
|---|
| 19364 | n/a | #endif |
|---|
| 19365 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 19366 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19367 | n/a | &videoInput, |
|---|
| 19368 | n/a | PyMac_GetStr255, name)) |
|---|
| 19369 | n/a | return NULL; |
|---|
| 19370 | n/a | _rv = VDGetInputName(ci, |
|---|
| 19371 | n/a | videoInput, |
|---|
| 19372 | n/a | name); |
|---|
| 19373 | n/a | _res = Py_BuildValue("l", |
|---|
| 19374 | n/a | _rv); |
|---|
| 19375 | n/a | return _res; |
|---|
| 19376 | n/a | } |
|---|
| 19377 | n/a | |
|---|
| 19378 | n/a | static PyObject *Qt_VDSetDestinationPort(PyObject *_self, PyObject *_args) |
|---|
| 19379 | n/a | { |
|---|
| 19380 | n/a | PyObject *_res = NULL; |
|---|
| 19381 | n/a | ComponentResult _rv; |
|---|
| 19382 | n/a | VideoDigitizerComponent ci; |
|---|
| 19383 | n/a | CGrafPtr destPort; |
|---|
| 19384 | n/a | #ifndef VDSetDestinationPort |
|---|
| 19385 | n/a | PyMac_PRECHECK(VDSetDestinationPort); |
|---|
| 19386 | n/a | #endif |
|---|
| 19387 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19388 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19389 | n/a | GrafObj_Convert, &destPort)) |
|---|
| 19390 | n/a | return NULL; |
|---|
| 19391 | n/a | _rv = VDSetDestinationPort(ci, |
|---|
| 19392 | n/a | destPort); |
|---|
| 19393 | n/a | _res = Py_BuildValue("l", |
|---|
| 19394 | n/a | _rv); |
|---|
| 19395 | n/a | return _res; |
|---|
| 19396 | n/a | } |
|---|
| 19397 | n/a | |
|---|
| 19398 | n/a | static PyObject *Qt_VDGetDeviceNameAndFlags(PyObject *_self, PyObject *_args) |
|---|
| 19399 | n/a | { |
|---|
| 19400 | n/a | PyObject *_res = NULL; |
|---|
| 19401 | n/a | ComponentResult _rv; |
|---|
| 19402 | n/a | VideoDigitizerComponent ci; |
|---|
| 19403 | n/a | Str255 outName; |
|---|
| 19404 | n/a | UInt32 outNameFlags; |
|---|
| 19405 | n/a | #ifndef VDGetDeviceNameAndFlags |
|---|
| 19406 | n/a | PyMac_PRECHECK(VDGetDeviceNameAndFlags); |
|---|
| 19407 | n/a | #endif |
|---|
| 19408 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19409 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19410 | n/a | PyMac_GetStr255, outName)) |
|---|
| 19411 | n/a | return NULL; |
|---|
| 19412 | n/a | _rv = VDGetDeviceNameAndFlags(ci, |
|---|
| 19413 | n/a | outName, |
|---|
| 19414 | n/a | &outNameFlags); |
|---|
| 19415 | n/a | _res = Py_BuildValue("ll", |
|---|
| 19416 | n/a | _rv, |
|---|
| 19417 | n/a | outNameFlags); |
|---|
| 19418 | n/a | return _res; |
|---|
| 19419 | n/a | } |
|---|
| 19420 | n/a | |
|---|
| 19421 | n/a | static PyObject *Qt_VDCaptureStateChanging(PyObject *_self, PyObject *_args) |
|---|
| 19422 | n/a | { |
|---|
| 19423 | n/a | PyObject *_res = NULL; |
|---|
| 19424 | n/a | ComponentResult _rv; |
|---|
| 19425 | n/a | VideoDigitizerComponent ci; |
|---|
| 19426 | n/a | UInt32 inStateFlags; |
|---|
| 19427 | n/a | #ifndef VDCaptureStateChanging |
|---|
| 19428 | n/a | PyMac_PRECHECK(VDCaptureStateChanging); |
|---|
| 19429 | n/a | #endif |
|---|
| 19430 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19431 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 19432 | n/a | &inStateFlags)) |
|---|
| 19433 | n/a | return NULL; |
|---|
| 19434 | n/a | _rv = VDCaptureStateChanging(ci, |
|---|
| 19435 | n/a | inStateFlags); |
|---|
| 19436 | n/a | _res = Py_BuildValue("l", |
|---|
| 19437 | n/a | _rv); |
|---|
| 19438 | n/a | return _res; |
|---|
| 19439 | n/a | } |
|---|
| 19440 | n/a | |
|---|
| 19441 | n/a | static PyObject *Qt_XMLParseGetDetailedParseError(PyObject *_self, PyObject *_args) |
|---|
| 19442 | n/a | { |
|---|
| 19443 | n/a | PyObject *_res = NULL; |
|---|
| 19444 | n/a | ComponentResult _rv; |
|---|
| 19445 | n/a | ComponentInstance aParser; |
|---|
| 19446 | n/a | long errorLine; |
|---|
| 19447 | n/a | StringPtr errDesc; |
|---|
| 19448 | n/a | #ifndef XMLParseGetDetailedParseError |
|---|
| 19449 | n/a | PyMac_PRECHECK(XMLParseGetDetailedParseError); |
|---|
| 19450 | n/a | #endif |
|---|
| 19451 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 19452 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19453 | n/a | &errDesc)) |
|---|
| 19454 | n/a | return NULL; |
|---|
| 19455 | n/a | _rv = XMLParseGetDetailedParseError(aParser, |
|---|
| 19456 | n/a | &errorLine, |
|---|
| 19457 | n/a | errDesc); |
|---|
| 19458 | n/a | _res = Py_BuildValue("ll", |
|---|
| 19459 | n/a | _rv, |
|---|
| 19460 | n/a | errorLine); |
|---|
| 19461 | n/a | return _res; |
|---|
| 19462 | n/a | } |
|---|
| 19463 | n/a | |
|---|
| 19464 | n/a | static PyObject *Qt_XMLParseAddElement(PyObject *_self, PyObject *_args) |
|---|
| 19465 | n/a | { |
|---|
| 19466 | n/a | PyObject *_res = NULL; |
|---|
| 19467 | n/a | ComponentResult _rv; |
|---|
| 19468 | n/a | ComponentInstance aParser; |
|---|
| 19469 | n/a | char elementName; |
|---|
| 19470 | n/a | UInt32 nameSpaceID; |
|---|
| 19471 | n/a | UInt32 elementID; |
|---|
| 19472 | n/a | long elementFlags; |
|---|
| 19473 | n/a | #ifndef XMLParseAddElement |
|---|
| 19474 | n/a | PyMac_PRECHECK(XMLParseAddElement); |
|---|
| 19475 | n/a | #endif |
|---|
| 19476 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 19477 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19478 | n/a | &nameSpaceID, |
|---|
| 19479 | n/a | &elementFlags)) |
|---|
| 19480 | n/a | return NULL; |
|---|
| 19481 | n/a | _rv = XMLParseAddElement(aParser, |
|---|
| 19482 | n/a | &elementName, |
|---|
| 19483 | n/a | nameSpaceID, |
|---|
| 19484 | n/a | &elementID, |
|---|
| 19485 | n/a | elementFlags); |
|---|
| 19486 | n/a | _res = Py_BuildValue("lcl", |
|---|
| 19487 | n/a | _rv, |
|---|
| 19488 | n/a | elementName, |
|---|
| 19489 | n/a | elementID); |
|---|
| 19490 | n/a | return _res; |
|---|
| 19491 | n/a | } |
|---|
| 19492 | n/a | |
|---|
| 19493 | n/a | static PyObject *Qt_XMLParseAddAttribute(PyObject *_self, PyObject *_args) |
|---|
| 19494 | n/a | { |
|---|
| 19495 | n/a | PyObject *_res = NULL; |
|---|
| 19496 | n/a | ComponentResult _rv; |
|---|
| 19497 | n/a | ComponentInstance aParser; |
|---|
| 19498 | n/a | UInt32 elementID; |
|---|
| 19499 | n/a | UInt32 nameSpaceID; |
|---|
| 19500 | n/a | char attributeName; |
|---|
| 19501 | n/a | UInt32 attributeID; |
|---|
| 19502 | n/a | #ifndef XMLParseAddAttribute |
|---|
| 19503 | n/a | PyMac_PRECHECK(XMLParseAddAttribute); |
|---|
| 19504 | n/a | #endif |
|---|
| 19505 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 19506 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19507 | n/a | &elementID, |
|---|
| 19508 | n/a | &nameSpaceID)) |
|---|
| 19509 | n/a | return NULL; |
|---|
| 19510 | n/a | _rv = XMLParseAddAttribute(aParser, |
|---|
| 19511 | n/a | elementID, |
|---|
| 19512 | n/a | nameSpaceID, |
|---|
| 19513 | n/a | &attributeName, |
|---|
| 19514 | n/a | &attributeID); |
|---|
| 19515 | n/a | _res = Py_BuildValue("lcl", |
|---|
| 19516 | n/a | _rv, |
|---|
| 19517 | n/a | attributeName, |
|---|
| 19518 | n/a | attributeID); |
|---|
| 19519 | n/a | return _res; |
|---|
| 19520 | n/a | } |
|---|
| 19521 | n/a | |
|---|
| 19522 | n/a | static PyObject *Qt_XMLParseAddMultipleAttributes(PyObject *_self, PyObject *_args) |
|---|
| 19523 | n/a | { |
|---|
| 19524 | n/a | PyObject *_res = NULL; |
|---|
| 19525 | n/a | ComponentResult _rv; |
|---|
| 19526 | n/a | ComponentInstance aParser; |
|---|
| 19527 | n/a | UInt32 elementID; |
|---|
| 19528 | n/a | UInt32 nameSpaceIDs; |
|---|
| 19529 | n/a | char attributeNames; |
|---|
| 19530 | n/a | UInt32 attributeIDs; |
|---|
| 19531 | n/a | #ifndef XMLParseAddMultipleAttributes |
|---|
| 19532 | n/a | PyMac_PRECHECK(XMLParseAddMultipleAttributes); |
|---|
| 19533 | n/a | #endif |
|---|
| 19534 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19535 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19536 | n/a | &elementID)) |
|---|
| 19537 | n/a | return NULL; |
|---|
| 19538 | n/a | _rv = XMLParseAddMultipleAttributes(aParser, |
|---|
| 19539 | n/a | elementID, |
|---|
| 19540 | n/a | &nameSpaceIDs, |
|---|
| 19541 | n/a | &attributeNames, |
|---|
| 19542 | n/a | &attributeIDs); |
|---|
| 19543 | n/a | _res = Py_BuildValue("llcl", |
|---|
| 19544 | n/a | _rv, |
|---|
| 19545 | n/a | nameSpaceIDs, |
|---|
| 19546 | n/a | attributeNames, |
|---|
| 19547 | n/a | attributeIDs); |
|---|
| 19548 | n/a | return _res; |
|---|
| 19549 | n/a | } |
|---|
| 19550 | n/a | |
|---|
| 19551 | n/a | static PyObject *Qt_XMLParseAddAttributeAndValue(PyObject *_self, PyObject *_args) |
|---|
| 19552 | n/a | { |
|---|
| 19553 | n/a | PyObject *_res = NULL; |
|---|
| 19554 | n/a | ComponentResult _rv; |
|---|
| 19555 | n/a | ComponentInstance aParser; |
|---|
| 19556 | n/a | UInt32 elementID; |
|---|
| 19557 | n/a | UInt32 nameSpaceID; |
|---|
| 19558 | n/a | char attributeName; |
|---|
| 19559 | n/a | UInt32 attributeID; |
|---|
| 19560 | n/a | UInt32 attributeValueKind; |
|---|
| 19561 | n/a | void * attributeValueKindInfo; |
|---|
| 19562 | n/a | #ifndef XMLParseAddAttributeAndValue |
|---|
| 19563 | n/a | PyMac_PRECHECK(XMLParseAddAttributeAndValue); |
|---|
| 19564 | n/a | #endif |
|---|
| 19565 | n/a | if (!PyArg_ParseTuple(_args, "O&llls", |
|---|
| 19566 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19567 | n/a | &elementID, |
|---|
| 19568 | n/a | &nameSpaceID, |
|---|
| 19569 | n/a | &attributeValueKind, |
|---|
| 19570 | n/a | &attributeValueKindInfo)) |
|---|
| 19571 | n/a | return NULL; |
|---|
| 19572 | n/a | _rv = XMLParseAddAttributeAndValue(aParser, |
|---|
| 19573 | n/a | elementID, |
|---|
| 19574 | n/a | nameSpaceID, |
|---|
| 19575 | n/a | &attributeName, |
|---|
| 19576 | n/a | &attributeID, |
|---|
| 19577 | n/a | attributeValueKind, |
|---|
| 19578 | n/a | attributeValueKindInfo); |
|---|
| 19579 | n/a | _res = Py_BuildValue("lcl", |
|---|
| 19580 | n/a | _rv, |
|---|
| 19581 | n/a | attributeName, |
|---|
| 19582 | n/a | attributeID); |
|---|
| 19583 | n/a | return _res; |
|---|
| 19584 | n/a | } |
|---|
| 19585 | n/a | |
|---|
| 19586 | n/a | static PyObject *Qt_XMLParseAddAttributeValueKind(PyObject *_self, PyObject *_args) |
|---|
| 19587 | n/a | { |
|---|
| 19588 | n/a | PyObject *_res = NULL; |
|---|
| 19589 | n/a | ComponentResult _rv; |
|---|
| 19590 | n/a | ComponentInstance aParser; |
|---|
| 19591 | n/a | UInt32 elementID; |
|---|
| 19592 | n/a | UInt32 attributeID; |
|---|
| 19593 | n/a | UInt32 attributeValueKind; |
|---|
| 19594 | n/a | void * attributeValueKindInfo; |
|---|
| 19595 | n/a | #ifndef XMLParseAddAttributeValueKind |
|---|
| 19596 | n/a | PyMac_PRECHECK(XMLParseAddAttributeValueKind); |
|---|
| 19597 | n/a | #endif |
|---|
| 19598 | n/a | if (!PyArg_ParseTuple(_args, "O&llls", |
|---|
| 19599 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19600 | n/a | &elementID, |
|---|
| 19601 | n/a | &attributeID, |
|---|
| 19602 | n/a | &attributeValueKind, |
|---|
| 19603 | n/a | &attributeValueKindInfo)) |
|---|
| 19604 | n/a | return NULL; |
|---|
| 19605 | n/a | _rv = XMLParseAddAttributeValueKind(aParser, |
|---|
| 19606 | n/a | elementID, |
|---|
| 19607 | n/a | attributeID, |
|---|
| 19608 | n/a | attributeValueKind, |
|---|
| 19609 | n/a | attributeValueKindInfo); |
|---|
| 19610 | n/a | _res = Py_BuildValue("l", |
|---|
| 19611 | n/a | _rv); |
|---|
| 19612 | n/a | return _res; |
|---|
| 19613 | n/a | } |
|---|
| 19614 | n/a | |
|---|
| 19615 | n/a | static PyObject *Qt_XMLParseAddNameSpace(PyObject *_self, PyObject *_args) |
|---|
| 19616 | n/a | { |
|---|
| 19617 | n/a | PyObject *_res = NULL; |
|---|
| 19618 | n/a | ComponentResult _rv; |
|---|
| 19619 | n/a | ComponentInstance aParser; |
|---|
| 19620 | n/a | char nameSpaceURL; |
|---|
| 19621 | n/a | UInt32 nameSpaceID; |
|---|
| 19622 | n/a | #ifndef XMLParseAddNameSpace |
|---|
| 19623 | n/a | PyMac_PRECHECK(XMLParseAddNameSpace); |
|---|
| 19624 | n/a | #endif |
|---|
| 19625 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19626 | n/a | CmpInstObj_Convert, &aParser)) |
|---|
| 19627 | n/a | return NULL; |
|---|
| 19628 | n/a | _rv = XMLParseAddNameSpace(aParser, |
|---|
| 19629 | n/a | &nameSpaceURL, |
|---|
| 19630 | n/a | &nameSpaceID); |
|---|
| 19631 | n/a | _res = Py_BuildValue("lcl", |
|---|
| 19632 | n/a | _rv, |
|---|
| 19633 | n/a | nameSpaceURL, |
|---|
| 19634 | n/a | nameSpaceID); |
|---|
| 19635 | n/a | return _res; |
|---|
| 19636 | n/a | } |
|---|
| 19637 | n/a | |
|---|
| 19638 | n/a | static PyObject *Qt_XMLParseSetOffsetAndLimit(PyObject *_self, PyObject *_args) |
|---|
| 19639 | n/a | { |
|---|
| 19640 | n/a | PyObject *_res = NULL; |
|---|
| 19641 | n/a | ComponentResult _rv; |
|---|
| 19642 | n/a | ComponentInstance aParser; |
|---|
| 19643 | n/a | UInt32 offset; |
|---|
| 19644 | n/a | UInt32 limit; |
|---|
| 19645 | n/a | #ifndef XMLParseSetOffsetAndLimit |
|---|
| 19646 | n/a | PyMac_PRECHECK(XMLParseSetOffsetAndLimit); |
|---|
| 19647 | n/a | #endif |
|---|
| 19648 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 19649 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19650 | n/a | &offset, |
|---|
| 19651 | n/a | &limit)) |
|---|
| 19652 | n/a | return NULL; |
|---|
| 19653 | n/a | _rv = XMLParseSetOffsetAndLimit(aParser, |
|---|
| 19654 | n/a | offset, |
|---|
| 19655 | n/a | limit); |
|---|
| 19656 | n/a | _res = Py_BuildValue("l", |
|---|
| 19657 | n/a | _rv); |
|---|
| 19658 | n/a | return _res; |
|---|
| 19659 | n/a | } |
|---|
| 19660 | n/a | |
|---|
| 19661 | n/a | static PyObject *Qt_XMLParseSetEventParseRefCon(PyObject *_self, PyObject *_args) |
|---|
| 19662 | n/a | { |
|---|
| 19663 | n/a | PyObject *_res = NULL; |
|---|
| 19664 | n/a | ComponentResult _rv; |
|---|
| 19665 | n/a | ComponentInstance aParser; |
|---|
| 19666 | n/a | long refcon; |
|---|
| 19667 | n/a | #ifndef XMLParseSetEventParseRefCon |
|---|
| 19668 | n/a | PyMac_PRECHECK(XMLParseSetEventParseRefCon); |
|---|
| 19669 | n/a | #endif |
|---|
| 19670 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19671 | n/a | CmpInstObj_Convert, &aParser, |
|---|
| 19672 | n/a | &refcon)) |
|---|
| 19673 | n/a | return NULL; |
|---|
| 19674 | n/a | _rv = XMLParseSetEventParseRefCon(aParser, |
|---|
| 19675 | n/a | refcon); |
|---|
| 19676 | n/a | _res = Py_BuildValue("l", |
|---|
| 19677 | n/a | _rv); |
|---|
| 19678 | n/a | return _res; |
|---|
| 19679 | n/a | } |
|---|
| 19680 | n/a | |
|---|
| 19681 | n/a | static PyObject *Qt_SGInitialize(PyObject *_self, PyObject *_args) |
|---|
| 19682 | n/a | { |
|---|
| 19683 | n/a | PyObject *_res = NULL; |
|---|
| 19684 | n/a | ComponentResult _rv; |
|---|
| 19685 | n/a | SeqGrabComponent s; |
|---|
| 19686 | n/a | #ifndef SGInitialize |
|---|
| 19687 | n/a | PyMac_PRECHECK(SGInitialize); |
|---|
| 19688 | n/a | #endif |
|---|
| 19689 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19690 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19691 | n/a | return NULL; |
|---|
| 19692 | n/a | _rv = SGInitialize(s); |
|---|
| 19693 | n/a | _res = Py_BuildValue("l", |
|---|
| 19694 | n/a | _rv); |
|---|
| 19695 | n/a | return _res; |
|---|
| 19696 | n/a | } |
|---|
| 19697 | n/a | |
|---|
| 19698 | n/a | static PyObject *Qt_SGSetDataOutput(PyObject *_self, PyObject *_args) |
|---|
| 19699 | n/a | { |
|---|
| 19700 | n/a | PyObject *_res = NULL; |
|---|
| 19701 | n/a | ComponentResult _rv; |
|---|
| 19702 | n/a | SeqGrabComponent s; |
|---|
| 19703 | n/a | FSSpec movieFile; |
|---|
| 19704 | n/a | long whereFlags; |
|---|
| 19705 | n/a | #ifndef SGSetDataOutput |
|---|
| 19706 | n/a | PyMac_PRECHECK(SGSetDataOutput); |
|---|
| 19707 | n/a | #endif |
|---|
| 19708 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 19709 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19710 | n/a | PyMac_GetFSSpec, &movieFile, |
|---|
| 19711 | n/a | &whereFlags)) |
|---|
| 19712 | n/a | return NULL; |
|---|
| 19713 | n/a | _rv = SGSetDataOutput(s, |
|---|
| 19714 | n/a | &movieFile, |
|---|
| 19715 | n/a | whereFlags); |
|---|
| 19716 | n/a | _res = Py_BuildValue("l", |
|---|
| 19717 | n/a | _rv); |
|---|
| 19718 | n/a | return _res; |
|---|
| 19719 | n/a | } |
|---|
| 19720 | n/a | |
|---|
| 19721 | n/a | static PyObject *Qt_SGGetDataOutput(PyObject *_self, PyObject *_args) |
|---|
| 19722 | n/a | { |
|---|
| 19723 | n/a | PyObject *_res = NULL; |
|---|
| 19724 | n/a | ComponentResult _rv; |
|---|
| 19725 | n/a | SeqGrabComponent s; |
|---|
| 19726 | n/a | FSSpec movieFile; |
|---|
| 19727 | n/a | long whereFlags; |
|---|
| 19728 | n/a | #ifndef SGGetDataOutput |
|---|
| 19729 | n/a | PyMac_PRECHECK(SGGetDataOutput); |
|---|
| 19730 | n/a | #endif |
|---|
| 19731 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19732 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19733 | n/a | PyMac_GetFSSpec, &movieFile)) |
|---|
| 19734 | n/a | return NULL; |
|---|
| 19735 | n/a | _rv = SGGetDataOutput(s, |
|---|
| 19736 | n/a | &movieFile, |
|---|
| 19737 | n/a | &whereFlags); |
|---|
| 19738 | n/a | _res = Py_BuildValue("ll", |
|---|
| 19739 | n/a | _rv, |
|---|
| 19740 | n/a | whereFlags); |
|---|
| 19741 | n/a | return _res; |
|---|
| 19742 | n/a | } |
|---|
| 19743 | n/a | |
|---|
| 19744 | n/a | static PyObject *Qt_SGSetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 19745 | n/a | { |
|---|
| 19746 | n/a | PyObject *_res = NULL; |
|---|
| 19747 | n/a | ComponentResult _rv; |
|---|
| 19748 | n/a | SeqGrabComponent s; |
|---|
| 19749 | n/a | CGrafPtr gp; |
|---|
| 19750 | n/a | GDHandle gd; |
|---|
| 19751 | n/a | #ifndef SGSetGWorld |
|---|
| 19752 | n/a | PyMac_PRECHECK(SGSetGWorld); |
|---|
| 19753 | n/a | #endif |
|---|
| 19754 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 19755 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19756 | n/a | GrafObj_Convert, &gp, |
|---|
| 19757 | n/a | OptResObj_Convert, &gd)) |
|---|
| 19758 | n/a | return NULL; |
|---|
| 19759 | n/a | _rv = SGSetGWorld(s, |
|---|
| 19760 | n/a | gp, |
|---|
| 19761 | n/a | gd); |
|---|
| 19762 | n/a | _res = Py_BuildValue("l", |
|---|
| 19763 | n/a | _rv); |
|---|
| 19764 | n/a | return _res; |
|---|
| 19765 | n/a | } |
|---|
| 19766 | n/a | |
|---|
| 19767 | n/a | static PyObject *Qt_SGGetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 19768 | n/a | { |
|---|
| 19769 | n/a | PyObject *_res = NULL; |
|---|
| 19770 | n/a | ComponentResult _rv; |
|---|
| 19771 | n/a | SeqGrabComponent s; |
|---|
| 19772 | n/a | CGrafPtr gp; |
|---|
| 19773 | n/a | GDHandle gd; |
|---|
| 19774 | n/a | #ifndef SGGetGWorld |
|---|
| 19775 | n/a | PyMac_PRECHECK(SGGetGWorld); |
|---|
| 19776 | n/a | #endif |
|---|
| 19777 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19778 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19779 | n/a | return NULL; |
|---|
| 19780 | n/a | _rv = SGGetGWorld(s, |
|---|
| 19781 | n/a | &gp, |
|---|
| 19782 | n/a | &gd); |
|---|
| 19783 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 19784 | n/a | _rv, |
|---|
| 19785 | n/a | GrafObj_New, gp, |
|---|
| 19786 | n/a | OptResObj_New, gd); |
|---|
| 19787 | n/a | return _res; |
|---|
| 19788 | n/a | } |
|---|
| 19789 | n/a | |
|---|
| 19790 | n/a | static PyObject *Qt_SGNewChannel(PyObject *_self, PyObject *_args) |
|---|
| 19791 | n/a | { |
|---|
| 19792 | n/a | PyObject *_res = NULL; |
|---|
| 19793 | n/a | ComponentResult _rv; |
|---|
| 19794 | n/a | SeqGrabComponent s; |
|---|
| 19795 | n/a | OSType channelType; |
|---|
| 19796 | n/a | SGChannel ref; |
|---|
| 19797 | n/a | #ifndef SGNewChannel |
|---|
| 19798 | n/a | PyMac_PRECHECK(SGNewChannel); |
|---|
| 19799 | n/a | #endif |
|---|
| 19800 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19801 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19802 | n/a | PyMac_GetOSType, &channelType)) |
|---|
| 19803 | n/a | return NULL; |
|---|
| 19804 | n/a | _rv = SGNewChannel(s, |
|---|
| 19805 | n/a | channelType, |
|---|
| 19806 | n/a | &ref); |
|---|
| 19807 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 19808 | n/a | _rv, |
|---|
| 19809 | n/a | CmpInstObj_New, ref); |
|---|
| 19810 | n/a | return _res; |
|---|
| 19811 | n/a | } |
|---|
| 19812 | n/a | |
|---|
| 19813 | n/a | static PyObject *Qt_SGDisposeChannel(PyObject *_self, PyObject *_args) |
|---|
| 19814 | n/a | { |
|---|
| 19815 | n/a | PyObject *_res = NULL; |
|---|
| 19816 | n/a | ComponentResult _rv; |
|---|
| 19817 | n/a | SeqGrabComponent s; |
|---|
| 19818 | n/a | SGChannel c; |
|---|
| 19819 | n/a | #ifndef SGDisposeChannel |
|---|
| 19820 | n/a | PyMac_PRECHECK(SGDisposeChannel); |
|---|
| 19821 | n/a | #endif |
|---|
| 19822 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 19823 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19824 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 19825 | n/a | return NULL; |
|---|
| 19826 | n/a | _rv = SGDisposeChannel(s, |
|---|
| 19827 | n/a | c); |
|---|
| 19828 | n/a | _res = Py_BuildValue("l", |
|---|
| 19829 | n/a | _rv); |
|---|
| 19830 | n/a | return _res; |
|---|
| 19831 | n/a | } |
|---|
| 19832 | n/a | |
|---|
| 19833 | n/a | static PyObject *Qt_SGStartPreview(PyObject *_self, PyObject *_args) |
|---|
| 19834 | n/a | { |
|---|
| 19835 | n/a | PyObject *_res = NULL; |
|---|
| 19836 | n/a | ComponentResult _rv; |
|---|
| 19837 | n/a | SeqGrabComponent s; |
|---|
| 19838 | n/a | #ifndef SGStartPreview |
|---|
| 19839 | n/a | PyMac_PRECHECK(SGStartPreview); |
|---|
| 19840 | n/a | #endif |
|---|
| 19841 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19842 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19843 | n/a | return NULL; |
|---|
| 19844 | n/a | _rv = SGStartPreview(s); |
|---|
| 19845 | n/a | _res = Py_BuildValue("l", |
|---|
| 19846 | n/a | _rv); |
|---|
| 19847 | n/a | return _res; |
|---|
| 19848 | n/a | } |
|---|
| 19849 | n/a | |
|---|
| 19850 | n/a | static PyObject *Qt_SGStartRecord(PyObject *_self, PyObject *_args) |
|---|
| 19851 | n/a | { |
|---|
| 19852 | n/a | PyObject *_res = NULL; |
|---|
| 19853 | n/a | ComponentResult _rv; |
|---|
| 19854 | n/a | SeqGrabComponent s; |
|---|
| 19855 | n/a | #ifndef SGStartRecord |
|---|
| 19856 | n/a | PyMac_PRECHECK(SGStartRecord); |
|---|
| 19857 | n/a | #endif |
|---|
| 19858 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19859 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19860 | n/a | return NULL; |
|---|
| 19861 | n/a | _rv = SGStartRecord(s); |
|---|
| 19862 | n/a | _res = Py_BuildValue("l", |
|---|
| 19863 | n/a | _rv); |
|---|
| 19864 | n/a | return _res; |
|---|
| 19865 | n/a | } |
|---|
| 19866 | n/a | |
|---|
| 19867 | n/a | static PyObject *Qt_SGIdle(PyObject *_self, PyObject *_args) |
|---|
| 19868 | n/a | { |
|---|
| 19869 | n/a | PyObject *_res = NULL; |
|---|
| 19870 | n/a | ComponentResult _rv; |
|---|
| 19871 | n/a | SeqGrabComponent s; |
|---|
| 19872 | n/a | #ifndef SGIdle |
|---|
| 19873 | n/a | PyMac_PRECHECK(SGIdle); |
|---|
| 19874 | n/a | #endif |
|---|
| 19875 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19876 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19877 | n/a | return NULL; |
|---|
| 19878 | n/a | _rv = SGIdle(s); |
|---|
| 19879 | n/a | _res = Py_BuildValue("l", |
|---|
| 19880 | n/a | _rv); |
|---|
| 19881 | n/a | return _res; |
|---|
| 19882 | n/a | } |
|---|
| 19883 | n/a | |
|---|
| 19884 | n/a | static PyObject *Qt_SGStop(PyObject *_self, PyObject *_args) |
|---|
| 19885 | n/a | { |
|---|
| 19886 | n/a | PyObject *_res = NULL; |
|---|
| 19887 | n/a | ComponentResult _rv; |
|---|
| 19888 | n/a | SeqGrabComponent s; |
|---|
| 19889 | n/a | #ifndef SGStop |
|---|
| 19890 | n/a | PyMac_PRECHECK(SGStop); |
|---|
| 19891 | n/a | #endif |
|---|
| 19892 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19893 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19894 | n/a | return NULL; |
|---|
| 19895 | n/a | _rv = SGStop(s); |
|---|
| 19896 | n/a | _res = Py_BuildValue("l", |
|---|
| 19897 | n/a | _rv); |
|---|
| 19898 | n/a | return _res; |
|---|
| 19899 | n/a | } |
|---|
| 19900 | n/a | |
|---|
| 19901 | n/a | static PyObject *Qt_SGPause(PyObject *_self, PyObject *_args) |
|---|
| 19902 | n/a | { |
|---|
| 19903 | n/a | PyObject *_res = NULL; |
|---|
| 19904 | n/a | ComponentResult _rv; |
|---|
| 19905 | n/a | SeqGrabComponent s; |
|---|
| 19906 | n/a | Boolean pause; |
|---|
| 19907 | n/a | #ifndef SGPause |
|---|
| 19908 | n/a | PyMac_PRECHECK(SGPause); |
|---|
| 19909 | n/a | #endif |
|---|
| 19910 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 19911 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19912 | n/a | &pause)) |
|---|
| 19913 | n/a | return NULL; |
|---|
| 19914 | n/a | _rv = SGPause(s, |
|---|
| 19915 | n/a | pause); |
|---|
| 19916 | n/a | _res = Py_BuildValue("l", |
|---|
| 19917 | n/a | _rv); |
|---|
| 19918 | n/a | return _res; |
|---|
| 19919 | n/a | } |
|---|
| 19920 | n/a | |
|---|
| 19921 | n/a | static PyObject *Qt_SGPrepare(PyObject *_self, PyObject *_args) |
|---|
| 19922 | n/a | { |
|---|
| 19923 | n/a | PyObject *_res = NULL; |
|---|
| 19924 | n/a | ComponentResult _rv; |
|---|
| 19925 | n/a | SeqGrabComponent s; |
|---|
| 19926 | n/a | Boolean prepareForPreview; |
|---|
| 19927 | n/a | Boolean prepareForRecord; |
|---|
| 19928 | n/a | #ifndef SGPrepare |
|---|
| 19929 | n/a | PyMac_PRECHECK(SGPrepare); |
|---|
| 19930 | n/a | #endif |
|---|
| 19931 | n/a | if (!PyArg_ParseTuple(_args, "O&bb", |
|---|
| 19932 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19933 | n/a | &prepareForPreview, |
|---|
| 19934 | n/a | &prepareForRecord)) |
|---|
| 19935 | n/a | return NULL; |
|---|
| 19936 | n/a | _rv = SGPrepare(s, |
|---|
| 19937 | n/a | prepareForPreview, |
|---|
| 19938 | n/a | prepareForRecord); |
|---|
| 19939 | n/a | _res = Py_BuildValue("l", |
|---|
| 19940 | n/a | _rv); |
|---|
| 19941 | n/a | return _res; |
|---|
| 19942 | n/a | } |
|---|
| 19943 | n/a | |
|---|
| 19944 | n/a | static PyObject *Qt_SGRelease(PyObject *_self, PyObject *_args) |
|---|
| 19945 | n/a | { |
|---|
| 19946 | n/a | PyObject *_res = NULL; |
|---|
| 19947 | n/a | ComponentResult _rv; |
|---|
| 19948 | n/a | SeqGrabComponent s; |
|---|
| 19949 | n/a | #ifndef SGRelease |
|---|
| 19950 | n/a | PyMac_PRECHECK(SGRelease); |
|---|
| 19951 | n/a | #endif |
|---|
| 19952 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19953 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19954 | n/a | return NULL; |
|---|
| 19955 | n/a | _rv = SGRelease(s); |
|---|
| 19956 | n/a | _res = Py_BuildValue("l", |
|---|
| 19957 | n/a | _rv); |
|---|
| 19958 | n/a | return _res; |
|---|
| 19959 | n/a | } |
|---|
| 19960 | n/a | |
|---|
| 19961 | n/a | static PyObject *Qt_SGGetMovie(PyObject *_self, PyObject *_args) |
|---|
| 19962 | n/a | { |
|---|
| 19963 | n/a | PyObject *_res = NULL; |
|---|
| 19964 | n/a | Movie _rv; |
|---|
| 19965 | n/a | SeqGrabComponent s; |
|---|
| 19966 | n/a | #ifndef SGGetMovie |
|---|
| 19967 | n/a | PyMac_PRECHECK(SGGetMovie); |
|---|
| 19968 | n/a | #endif |
|---|
| 19969 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 19970 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 19971 | n/a | return NULL; |
|---|
| 19972 | n/a | _rv = SGGetMovie(s); |
|---|
| 19973 | n/a | _res = Py_BuildValue("O&", |
|---|
| 19974 | n/a | MovieObj_New, _rv); |
|---|
| 19975 | n/a | return _res; |
|---|
| 19976 | n/a | } |
|---|
| 19977 | n/a | |
|---|
| 19978 | n/a | static PyObject *Qt_SGSetMaximumRecordTime(PyObject *_self, PyObject *_args) |
|---|
| 19979 | n/a | { |
|---|
| 19980 | n/a | PyObject *_res = NULL; |
|---|
| 19981 | n/a | ComponentResult _rv; |
|---|
| 19982 | n/a | SeqGrabComponent s; |
|---|
| 19983 | n/a | unsigned long ticks; |
|---|
| 19984 | n/a | #ifndef SGSetMaximumRecordTime |
|---|
| 19985 | n/a | PyMac_PRECHECK(SGSetMaximumRecordTime); |
|---|
| 19986 | n/a | #endif |
|---|
| 19987 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 19988 | n/a | CmpInstObj_Convert, &s, |
|---|
| 19989 | n/a | &ticks)) |
|---|
| 19990 | n/a | return NULL; |
|---|
| 19991 | n/a | _rv = SGSetMaximumRecordTime(s, |
|---|
| 19992 | n/a | ticks); |
|---|
| 19993 | n/a | _res = Py_BuildValue("l", |
|---|
| 19994 | n/a | _rv); |
|---|
| 19995 | n/a | return _res; |
|---|
| 19996 | n/a | } |
|---|
| 19997 | n/a | |
|---|
| 19998 | n/a | static PyObject *Qt_SGGetMaximumRecordTime(PyObject *_self, PyObject *_args) |
|---|
| 19999 | n/a | { |
|---|
| 20000 | n/a | PyObject *_res = NULL; |
|---|
| 20001 | n/a | ComponentResult _rv; |
|---|
| 20002 | n/a | SeqGrabComponent s; |
|---|
| 20003 | n/a | unsigned long ticks; |
|---|
| 20004 | n/a | #ifndef SGGetMaximumRecordTime |
|---|
| 20005 | n/a | PyMac_PRECHECK(SGGetMaximumRecordTime); |
|---|
| 20006 | n/a | #endif |
|---|
| 20007 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20008 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20009 | n/a | return NULL; |
|---|
| 20010 | n/a | _rv = SGGetMaximumRecordTime(s, |
|---|
| 20011 | n/a | &ticks); |
|---|
| 20012 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20013 | n/a | _rv, |
|---|
| 20014 | n/a | ticks); |
|---|
| 20015 | n/a | return _res; |
|---|
| 20016 | n/a | } |
|---|
| 20017 | n/a | |
|---|
| 20018 | n/a | static PyObject *Qt_SGGetStorageSpaceRemaining(PyObject *_self, PyObject *_args) |
|---|
| 20019 | n/a | { |
|---|
| 20020 | n/a | PyObject *_res = NULL; |
|---|
| 20021 | n/a | ComponentResult _rv; |
|---|
| 20022 | n/a | SeqGrabComponent s; |
|---|
| 20023 | n/a | unsigned long bytes; |
|---|
| 20024 | n/a | #ifndef SGGetStorageSpaceRemaining |
|---|
| 20025 | n/a | PyMac_PRECHECK(SGGetStorageSpaceRemaining); |
|---|
| 20026 | n/a | #endif |
|---|
| 20027 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20028 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20029 | n/a | return NULL; |
|---|
| 20030 | n/a | _rv = SGGetStorageSpaceRemaining(s, |
|---|
| 20031 | n/a | &bytes); |
|---|
| 20032 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20033 | n/a | _rv, |
|---|
| 20034 | n/a | bytes); |
|---|
| 20035 | n/a | return _res; |
|---|
| 20036 | n/a | } |
|---|
| 20037 | n/a | |
|---|
| 20038 | n/a | static PyObject *Qt_SGGetTimeRemaining(PyObject *_self, PyObject *_args) |
|---|
| 20039 | n/a | { |
|---|
| 20040 | n/a | PyObject *_res = NULL; |
|---|
| 20041 | n/a | ComponentResult _rv; |
|---|
| 20042 | n/a | SeqGrabComponent s; |
|---|
| 20043 | n/a | long ticksLeft; |
|---|
| 20044 | n/a | #ifndef SGGetTimeRemaining |
|---|
| 20045 | n/a | PyMac_PRECHECK(SGGetTimeRemaining); |
|---|
| 20046 | n/a | #endif |
|---|
| 20047 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20048 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20049 | n/a | return NULL; |
|---|
| 20050 | n/a | _rv = SGGetTimeRemaining(s, |
|---|
| 20051 | n/a | &ticksLeft); |
|---|
| 20052 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20053 | n/a | _rv, |
|---|
| 20054 | n/a | ticksLeft); |
|---|
| 20055 | n/a | return _res; |
|---|
| 20056 | n/a | } |
|---|
| 20057 | n/a | |
|---|
| 20058 | n/a | static PyObject *Qt_SGGrabPict(PyObject *_self, PyObject *_args) |
|---|
| 20059 | n/a | { |
|---|
| 20060 | n/a | PyObject *_res = NULL; |
|---|
| 20061 | n/a | ComponentResult _rv; |
|---|
| 20062 | n/a | SeqGrabComponent s; |
|---|
| 20063 | n/a | PicHandle p; |
|---|
| 20064 | n/a | Rect bounds; |
|---|
| 20065 | n/a | short offscreenDepth; |
|---|
| 20066 | n/a | long grabPictFlags; |
|---|
| 20067 | n/a | #ifndef SGGrabPict |
|---|
| 20068 | n/a | PyMac_PRECHECK(SGGrabPict); |
|---|
| 20069 | n/a | #endif |
|---|
| 20070 | n/a | if (!PyArg_ParseTuple(_args, "O&O&hl", |
|---|
| 20071 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20072 | n/a | PyMac_GetRect, &bounds, |
|---|
| 20073 | n/a | &offscreenDepth, |
|---|
| 20074 | n/a | &grabPictFlags)) |
|---|
| 20075 | n/a | return NULL; |
|---|
| 20076 | n/a | _rv = SGGrabPict(s, |
|---|
| 20077 | n/a | &p, |
|---|
| 20078 | n/a | &bounds, |
|---|
| 20079 | n/a | offscreenDepth, |
|---|
| 20080 | n/a | grabPictFlags); |
|---|
| 20081 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20082 | n/a | _rv, |
|---|
| 20083 | n/a | ResObj_New, p); |
|---|
| 20084 | n/a | return _res; |
|---|
| 20085 | n/a | } |
|---|
| 20086 | n/a | |
|---|
| 20087 | n/a | static PyObject *Qt_SGGetLastMovieResID(PyObject *_self, PyObject *_args) |
|---|
| 20088 | n/a | { |
|---|
| 20089 | n/a | PyObject *_res = NULL; |
|---|
| 20090 | n/a | ComponentResult _rv; |
|---|
| 20091 | n/a | SeqGrabComponent s; |
|---|
| 20092 | n/a | short resID; |
|---|
| 20093 | n/a | #ifndef SGGetLastMovieResID |
|---|
| 20094 | n/a | PyMac_PRECHECK(SGGetLastMovieResID); |
|---|
| 20095 | n/a | #endif |
|---|
| 20096 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20097 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20098 | n/a | return NULL; |
|---|
| 20099 | n/a | _rv = SGGetLastMovieResID(s, |
|---|
| 20100 | n/a | &resID); |
|---|
| 20101 | n/a | _res = Py_BuildValue("lh", |
|---|
| 20102 | n/a | _rv, |
|---|
| 20103 | n/a | resID); |
|---|
| 20104 | n/a | return _res; |
|---|
| 20105 | n/a | } |
|---|
| 20106 | n/a | |
|---|
| 20107 | n/a | static PyObject *Qt_SGSetFlags(PyObject *_self, PyObject *_args) |
|---|
| 20108 | n/a | { |
|---|
| 20109 | n/a | PyObject *_res = NULL; |
|---|
| 20110 | n/a | ComponentResult _rv; |
|---|
| 20111 | n/a | SeqGrabComponent s; |
|---|
| 20112 | n/a | long sgFlags; |
|---|
| 20113 | n/a | #ifndef SGSetFlags |
|---|
| 20114 | n/a | PyMac_PRECHECK(SGSetFlags); |
|---|
| 20115 | n/a | #endif |
|---|
| 20116 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 20117 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20118 | n/a | &sgFlags)) |
|---|
| 20119 | n/a | return NULL; |
|---|
| 20120 | n/a | _rv = SGSetFlags(s, |
|---|
| 20121 | n/a | sgFlags); |
|---|
| 20122 | n/a | _res = Py_BuildValue("l", |
|---|
| 20123 | n/a | _rv); |
|---|
| 20124 | n/a | return _res; |
|---|
| 20125 | n/a | } |
|---|
| 20126 | n/a | |
|---|
| 20127 | n/a | static PyObject *Qt_SGGetFlags(PyObject *_self, PyObject *_args) |
|---|
| 20128 | n/a | { |
|---|
| 20129 | n/a | PyObject *_res = NULL; |
|---|
| 20130 | n/a | ComponentResult _rv; |
|---|
| 20131 | n/a | SeqGrabComponent s; |
|---|
| 20132 | n/a | long sgFlags; |
|---|
| 20133 | n/a | #ifndef SGGetFlags |
|---|
| 20134 | n/a | PyMac_PRECHECK(SGGetFlags); |
|---|
| 20135 | n/a | #endif |
|---|
| 20136 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20137 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20138 | n/a | return NULL; |
|---|
| 20139 | n/a | _rv = SGGetFlags(s, |
|---|
| 20140 | n/a | &sgFlags); |
|---|
| 20141 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20142 | n/a | _rv, |
|---|
| 20143 | n/a | sgFlags); |
|---|
| 20144 | n/a | return _res; |
|---|
| 20145 | n/a | } |
|---|
| 20146 | n/a | |
|---|
| 20147 | n/a | static PyObject *Qt_SGNewChannelFromComponent(PyObject *_self, PyObject *_args) |
|---|
| 20148 | n/a | { |
|---|
| 20149 | n/a | PyObject *_res = NULL; |
|---|
| 20150 | n/a | ComponentResult _rv; |
|---|
| 20151 | n/a | SeqGrabComponent s; |
|---|
| 20152 | n/a | SGChannel newChannel; |
|---|
| 20153 | n/a | Component sgChannelComponent; |
|---|
| 20154 | n/a | #ifndef SGNewChannelFromComponent |
|---|
| 20155 | n/a | PyMac_PRECHECK(SGNewChannelFromComponent); |
|---|
| 20156 | n/a | #endif |
|---|
| 20157 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20158 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20159 | n/a | CmpObj_Convert, &sgChannelComponent)) |
|---|
| 20160 | n/a | return NULL; |
|---|
| 20161 | n/a | _rv = SGNewChannelFromComponent(s, |
|---|
| 20162 | n/a | &newChannel, |
|---|
| 20163 | n/a | sgChannelComponent); |
|---|
| 20164 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20165 | n/a | _rv, |
|---|
| 20166 | n/a | CmpInstObj_New, newChannel); |
|---|
| 20167 | n/a | return _res; |
|---|
| 20168 | n/a | } |
|---|
| 20169 | n/a | |
|---|
| 20170 | n/a | static PyObject *Qt_SGSetSettings(PyObject *_self, PyObject *_args) |
|---|
| 20171 | n/a | { |
|---|
| 20172 | n/a | PyObject *_res = NULL; |
|---|
| 20173 | n/a | ComponentResult _rv; |
|---|
| 20174 | n/a | SeqGrabComponent s; |
|---|
| 20175 | n/a | UserData ud; |
|---|
| 20176 | n/a | long flags; |
|---|
| 20177 | n/a | #ifndef SGSetSettings |
|---|
| 20178 | n/a | PyMac_PRECHECK(SGSetSettings); |
|---|
| 20179 | n/a | #endif |
|---|
| 20180 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 20181 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20182 | n/a | UserDataObj_Convert, &ud, |
|---|
| 20183 | n/a | &flags)) |
|---|
| 20184 | n/a | return NULL; |
|---|
| 20185 | n/a | _rv = SGSetSettings(s, |
|---|
| 20186 | n/a | ud, |
|---|
| 20187 | n/a | flags); |
|---|
| 20188 | n/a | _res = Py_BuildValue("l", |
|---|
| 20189 | n/a | _rv); |
|---|
| 20190 | n/a | return _res; |
|---|
| 20191 | n/a | } |
|---|
| 20192 | n/a | |
|---|
| 20193 | n/a | static PyObject *Qt_SGGetSettings(PyObject *_self, PyObject *_args) |
|---|
| 20194 | n/a | { |
|---|
| 20195 | n/a | PyObject *_res = NULL; |
|---|
| 20196 | n/a | ComponentResult _rv; |
|---|
| 20197 | n/a | SeqGrabComponent s; |
|---|
| 20198 | n/a | UserData ud; |
|---|
| 20199 | n/a | long flags; |
|---|
| 20200 | n/a | #ifndef SGGetSettings |
|---|
| 20201 | n/a | PyMac_PRECHECK(SGGetSettings); |
|---|
| 20202 | n/a | #endif |
|---|
| 20203 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 20204 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20205 | n/a | &flags)) |
|---|
| 20206 | n/a | return NULL; |
|---|
| 20207 | n/a | _rv = SGGetSettings(s, |
|---|
| 20208 | n/a | &ud, |
|---|
| 20209 | n/a | flags); |
|---|
| 20210 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20211 | n/a | _rv, |
|---|
| 20212 | n/a | UserDataObj_New, ud); |
|---|
| 20213 | n/a | return _res; |
|---|
| 20214 | n/a | } |
|---|
| 20215 | n/a | |
|---|
| 20216 | n/a | static PyObject *Qt_SGGetIndChannel(PyObject *_self, PyObject *_args) |
|---|
| 20217 | n/a | { |
|---|
| 20218 | n/a | PyObject *_res = NULL; |
|---|
| 20219 | n/a | ComponentResult _rv; |
|---|
| 20220 | n/a | SeqGrabComponent s; |
|---|
| 20221 | n/a | short index; |
|---|
| 20222 | n/a | SGChannel ref; |
|---|
| 20223 | n/a | OSType chanType; |
|---|
| 20224 | n/a | #ifndef SGGetIndChannel |
|---|
| 20225 | n/a | PyMac_PRECHECK(SGGetIndChannel); |
|---|
| 20226 | n/a | #endif |
|---|
| 20227 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 20228 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20229 | n/a | &index)) |
|---|
| 20230 | n/a | return NULL; |
|---|
| 20231 | n/a | _rv = SGGetIndChannel(s, |
|---|
| 20232 | n/a | index, |
|---|
| 20233 | n/a | &ref, |
|---|
| 20234 | n/a | &chanType); |
|---|
| 20235 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 20236 | n/a | _rv, |
|---|
| 20237 | n/a | CmpInstObj_New, ref, |
|---|
| 20238 | n/a | PyMac_BuildOSType, chanType); |
|---|
| 20239 | n/a | return _res; |
|---|
| 20240 | n/a | } |
|---|
| 20241 | n/a | |
|---|
| 20242 | n/a | static PyObject *Qt_SGUpdate(PyObject *_self, PyObject *_args) |
|---|
| 20243 | n/a | { |
|---|
| 20244 | n/a | PyObject *_res = NULL; |
|---|
| 20245 | n/a | ComponentResult _rv; |
|---|
| 20246 | n/a | SeqGrabComponent s; |
|---|
| 20247 | n/a | RgnHandle updateRgn; |
|---|
| 20248 | n/a | #ifndef SGUpdate |
|---|
| 20249 | n/a | PyMac_PRECHECK(SGUpdate); |
|---|
| 20250 | n/a | #endif |
|---|
| 20251 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20252 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20253 | n/a | ResObj_Convert, &updateRgn)) |
|---|
| 20254 | n/a | return NULL; |
|---|
| 20255 | n/a | _rv = SGUpdate(s, |
|---|
| 20256 | n/a | updateRgn); |
|---|
| 20257 | n/a | _res = Py_BuildValue("l", |
|---|
| 20258 | n/a | _rv); |
|---|
| 20259 | n/a | return _res; |
|---|
| 20260 | n/a | } |
|---|
| 20261 | n/a | |
|---|
| 20262 | n/a | static PyObject *Qt_SGGetPause(PyObject *_self, PyObject *_args) |
|---|
| 20263 | n/a | { |
|---|
| 20264 | n/a | PyObject *_res = NULL; |
|---|
| 20265 | n/a | ComponentResult _rv; |
|---|
| 20266 | n/a | SeqGrabComponent s; |
|---|
| 20267 | n/a | Boolean paused; |
|---|
| 20268 | n/a | #ifndef SGGetPause |
|---|
| 20269 | n/a | PyMac_PRECHECK(SGGetPause); |
|---|
| 20270 | n/a | #endif |
|---|
| 20271 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20272 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20273 | n/a | return NULL; |
|---|
| 20274 | n/a | _rv = SGGetPause(s, |
|---|
| 20275 | n/a | &paused); |
|---|
| 20276 | n/a | _res = Py_BuildValue("lb", |
|---|
| 20277 | n/a | _rv, |
|---|
| 20278 | n/a | paused); |
|---|
| 20279 | n/a | return _res; |
|---|
| 20280 | n/a | } |
|---|
| 20281 | n/a | |
|---|
| 20282 | n/a | static PyObject *Qt_SGSetChannelSettings(PyObject *_self, PyObject *_args) |
|---|
| 20283 | n/a | { |
|---|
| 20284 | n/a | PyObject *_res = NULL; |
|---|
| 20285 | n/a | ComponentResult _rv; |
|---|
| 20286 | n/a | SeqGrabComponent s; |
|---|
| 20287 | n/a | SGChannel c; |
|---|
| 20288 | n/a | UserData ud; |
|---|
| 20289 | n/a | long flags; |
|---|
| 20290 | n/a | #ifndef SGSetChannelSettings |
|---|
| 20291 | n/a | PyMac_PRECHECK(SGSetChannelSettings); |
|---|
| 20292 | n/a | #endif |
|---|
| 20293 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&l", |
|---|
| 20294 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20295 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20296 | n/a | UserDataObj_Convert, &ud, |
|---|
| 20297 | n/a | &flags)) |
|---|
| 20298 | n/a | return NULL; |
|---|
| 20299 | n/a | _rv = SGSetChannelSettings(s, |
|---|
| 20300 | n/a | c, |
|---|
| 20301 | n/a | ud, |
|---|
| 20302 | n/a | flags); |
|---|
| 20303 | n/a | _res = Py_BuildValue("l", |
|---|
| 20304 | n/a | _rv); |
|---|
| 20305 | n/a | return _res; |
|---|
| 20306 | n/a | } |
|---|
| 20307 | n/a | |
|---|
| 20308 | n/a | static PyObject *Qt_SGGetChannelSettings(PyObject *_self, PyObject *_args) |
|---|
| 20309 | n/a | { |
|---|
| 20310 | n/a | PyObject *_res = NULL; |
|---|
| 20311 | n/a | ComponentResult _rv; |
|---|
| 20312 | n/a | SeqGrabComponent s; |
|---|
| 20313 | n/a | SGChannel c; |
|---|
| 20314 | n/a | UserData ud; |
|---|
| 20315 | n/a | long flags; |
|---|
| 20316 | n/a | #ifndef SGGetChannelSettings |
|---|
| 20317 | n/a | PyMac_PRECHECK(SGGetChannelSettings); |
|---|
| 20318 | n/a | #endif |
|---|
| 20319 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 20320 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20321 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20322 | n/a | &flags)) |
|---|
| 20323 | n/a | return NULL; |
|---|
| 20324 | n/a | _rv = SGGetChannelSettings(s, |
|---|
| 20325 | n/a | c, |
|---|
| 20326 | n/a | &ud, |
|---|
| 20327 | n/a | flags); |
|---|
| 20328 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20329 | n/a | _rv, |
|---|
| 20330 | n/a | UserDataObj_New, ud); |
|---|
| 20331 | n/a | return _res; |
|---|
| 20332 | n/a | } |
|---|
| 20333 | n/a | |
|---|
| 20334 | n/a | static PyObject *Qt_SGGetMode(PyObject *_self, PyObject *_args) |
|---|
| 20335 | n/a | { |
|---|
| 20336 | n/a | PyObject *_res = NULL; |
|---|
| 20337 | n/a | ComponentResult _rv; |
|---|
| 20338 | n/a | SeqGrabComponent s; |
|---|
| 20339 | n/a | Boolean previewMode; |
|---|
| 20340 | n/a | Boolean recordMode; |
|---|
| 20341 | n/a | #ifndef SGGetMode |
|---|
| 20342 | n/a | PyMac_PRECHECK(SGGetMode); |
|---|
| 20343 | n/a | #endif |
|---|
| 20344 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20345 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20346 | n/a | return NULL; |
|---|
| 20347 | n/a | _rv = SGGetMode(s, |
|---|
| 20348 | n/a | &previewMode, |
|---|
| 20349 | n/a | &recordMode); |
|---|
| 20350 | n/a | _res = Py_BuildValue("lbb", |
|---|
| 20351 | n/a | _rv, |
|---|
| 20352 | n/a | previewMode, |
|---|
| 20353 | n/a | recordMode); |
|---|
| 20354 | n/a | return _res; |
|---|
| 20355 | n/a | } |
|---|
| 20356 | n/a | |
|---|
| 20357 | n/a | static PyObject *Qt_SGSetDataRef(PyObject *_self, PyObject *_args) |
|---|
| 20358 | n/a | { |
|---|
| 20359 | n/a | PyObject *_res = NULL; |
|---|
| 20360 | n/a | ComponentResult _rv; |
|---|
| 20361 | n/a | SeqGrabComponent s; |
|---|
| 20362 | n/a | Handle dataRef; |
|---|
| 20363 | n/a | OSType dataRefType; |
|---|
| 20364 | n/a | long whereFlags; |
|---|
| 20365 | n/a | #ifndef SGSetDataRef |
|---|
| 20366 | n/a | PyMac_PRECHECK(SGSetDataRef); |
|---|
| 20367 | n/a | #endif |
|---|
| 20368 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&l", |
|---|
| 20369 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20370 | n/a | ResObj_Convert, &dataRef, |
|---|
| 20371 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 20372 | n/a | &whereFlags)) |
|---|
| 20373 | n/a | return NULL; |
|---|
| 20374 | n/a | _rv = SGSetDataRef(s, |
|---|
| 20375 | n/a | dataRef, |
|---|
| 20376 | n/a | dataRefType, |
|---|
| 20377 | n/a | whereFlags); |
|---|
| 20378 | n/a | _res = Py_BuildValue("l", |
|---|
| 20379 | n/a | _rv); |
|---|
| 20380 | n/a | return _res; |
|---|
| 20381 | n/a | } |
|---|
| 20382 | n/a | |
|---|
| 20383 | n/a | static PyObject *Qt_SGGetDataRef(PyObject *_self, PyObject *_args) |
|---|
| 20384 | n/a | { |
|---|
| 20385 | n/a | PyObject *_res = NULL; |
|---|
| 20386 | n/a | ComponentResult _rv; |
|---|
| 20387 | n/a | SeqGrabComponent s; |
|---|
| 20388 | n/a | Handle dataRef; |
|---|
| 20389 | n/a | OSType dataRefType; |
|---|
| 20390 | n/a | long whereFlags; |
|---|
| 20391 | n/a | #ifndef SGGetDataRef |
|---|
| 20392 | n/a | PyMac_PRECHECK(SGGetDataRef); |
|---|
| 20393 | n/a | #endif |
|---|
| 20394 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20395 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20396 | n/a | return NULL; |
|---|
| 20397 | n/a | _rv = SGGetDataRef(s, |
|---|
| 20398 | n/a | &dataRef, |
|---|
| 20399 | n/a | &dataRefType, |
|---|
| 20400 | n/a | &whereFlags); |
|---|
| 20401 | n/a | _res = Py_BuildValue("lO&O&l", |
|---|
| 20402 | n/a | _rv, |
|---|
| 20403 | n/a | ResObj_New, dataRef, |
|---|
| 20404 | n/a | PyMac_BuildOSType, dataRefType, |
|---|
| 20405 | n/a | whereFlags); |
|---|
| 20406 | n/a | return _res; |
|---|
| 20407 | n/a | } |
|---|
| 20408 | n/a | |
|---|
| 20409 | n/a | static PyObject *Qt_SGNewOutput(PyObject *_self, PyObject *_args) |
|---|
| 20410 | n/a | { |
|---|
| 20411 | n/a | PyObject *_res = NULL; |
|---|
| 20412 | n/a | ComponentResult _rv; |
|---|
| 20413 | n/a | SeqGrabComponent s; |
|---|
| 20414 | n/a | Handle dataRef; |
|---|
| 20415 | n/a | OSType dataRefType; |
|---|
| 20416 | n/a | long whereFlags; |
|---|
| 20417 | n/a | SGOutput sgOut; |
|---|
| 20418 | n/a | #ifndef SGNewOutput |
|---|
| 20419 | n/a | PyMac_PRECHECK(SGNewOutput); |
|---|
| 20420 | n/a | #endif |
|---|
| 20421 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&l", |
|---|
| 20422 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20423 | n/a | ResObj_Convert, &dataRef, |
|---|
| 20424 | n/a | PyMac_GetOSType, &dataRefType, |
|---|
| 20425 | n/a | &whereFlags)) |
|---|
| 20426 | n/a | return NULL; |
|---|
| 20427 | n/a | _rv = SGNewOutput(s, |
|---|
| 20428 | n/a | dataRef, |
|---|
| 20429 | n/a | dataRefType, |
|---|
| 20430 | n/a | whereFlags, |
|---|
| 20431 | n/a | &sgOut); |
|---|
| 20432 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20433 | n/a | _rv, |
|---|
| 20434 | n/a | SGOutputObj_New, sgOut); |
|---|
| 20435 | n/a | return _res; |
|---|
| 20436 | n/a | } |
|---|
| 20437 | n/a | |
|---|
| 20438 | n/a | static PyObject *Qt_SGDisposeOutput(PyObject *_self, PyObject *_args) |
|---|
| 20439 | n/a | { |
|---|
| 20440 | n/a | PyObject *_res = NULL; |
|---|
| 20441 | n/a | ComponentResult _rv; |
|---|
| 20442 | n/a | SeqGrabComponent s; |
|---|
| 20443 | n/a | SGOutput sgOut; |
|---|
| 20444 | n/a | #ifndef SGDisposeOutput |
|---|
| 20445 | n/a | PyMac_PRECHECK(SGDisposeOutput); |
|---|
| 20446 | n/a | #endif |
|---|
| 20447 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20448 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20449 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20450 | n/a | return NULL; |
|---|
| 20451 | n/a | _rv = SGDisposeOutput(s, |
|---|
| 20452 | n/a | sgOut); |
|---|
| 20453 | n/a | _res = Py_BuildValue("l", |
|---|
| 20454 | n/a | _rv); |
|---|
| 20455 | n/a | return _res; |
|---|
| 20456 | n/a | } |
|---|
| 20457 | n/a | |
|---|
| 20458 | n/a | static PyObject *Qt_SGSetOutputFlags(PyObject *_self, PyObject *_args) |
|---|
| 20459 | n/a | { |
|---|
| 20460 | n/a | PyObject *_res = NULL; |
|---|
| 20461 | n/a | ComponentResult _rv; |
|---|
| 20462 | n/a | SeqGrabComponent s; |
|---|
| 20463 | n/a | SGOutput sgOut; |
|---|
| 20464 | n/a | long whereFlags; |
|---|
| 20465 | n/a | #ifndef SGSetOutputFlags |
|---|
| 20466 | n/a | PyMac_PRECHECK(SGSetOutputFlags); |
|---|
| 20467 | n/a | #endif |
|---|
| 20468 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 20469 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20470 | n/a | SGOutputObj_Convert, &sgOut, |
|---|
| 20471 | n/a | &whereFlags)) |
|---|
| 20472 | n/a | return NULL; |
|---|
| 20473 | n/a | _rv = SGSetOutputFlags(s, |
|---|
| 20474 | n/a | sgOut, |
|---|
| 20475 | n/a | whereFlags); |
|---|
| 20476 | n/a | _res = Py_BuildValue("l", |
|---|
| 20477 | n/a | _rv); |
|---|
| 20478 | n/a | return _res; |
|---|
| 20479 | n/a | } |
|---|
| 20480 | n/a | |
|---|
| 20481 | n/a | static PyObject *Qt_SGSetChannelOutput(PyObject *_self, PyObject *_args) |
|---|
| 20482 | n/a | { |
|---|
| 20483 | n/a | PyObject *_res = NULL; |
|---|
| 20484 | n/a | ComponentResult _rv; |
|---|
| 20485 | n/a | SeqGrabComponent s; |
|---|
| 20486 | n/a | SGChannel c; |
|---|
| 20487 | n/a | SGOutput sgOut; |
|---|
| 20488 | n/a | #ifndef SGSetChannelOutput |
|---|
| 20489 | n/a | PyMac_PRECHECK(SGSetChannelOutput); |
|---|
| 20490 | n/a | #endif |
|---|
| 20491 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 20492 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20493 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20494 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20495 | n/a | return NULL; |
|---|
| 20496 | n/a | _rv = SGSetChannelOutput(s, |
|---|
| 20497 | n/a | c, |
|---|
| 20498 | n/a | sgOut); |
|---|
| 20499 | n/a | _res = Py_BuildValue("l", |
|---|
| 20500 | n/a | _rv); |
|---|
| 20501 | n/a | return _res; |
|---|
| 20502 | n/a | } |
|---|
| 20503 | n/a | |
|---|
| 20504 | n/a | static PyObject *Qt_SGGetDataOutputStorageSpaceRemaining(PyObject *_self, PyObject *_args) |
|---|
| 20505 | n/a | { |
|---|
| 20506 | n/a | PyObject *_res = NULL; |
|---|
| 20507 | n/a | ComponentResult _rv; |
|---|
| 20508 | n/a | SeqGrabComponent s; |
|---|
| 20509 | n/a | SGOutput sgOut; |
|---|
| 20510 | n/a | unsigned long space; |
|---|
| 20511 | n/a | #ifndef SGGetDataOutputStorageSpaceRemaining |
|---|
| 20512 | n/a | PyMac_PRECHECK(SGGetDataOutputStorageSpaceRemaining); |
|---|
| 20513 | n/a | #endif |
|---|
| 20514 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20515 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20516 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20517 | n/a | return NULL; |
|---|
| 20518 | n/a | _rv = SGGetDataOutputStorageSpaceRemaining(s, |
|---|
| 20519 | n/a | sgOut, |
|---|
| 20520 | n/a | &space); |
|---|
| 20521 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20522 | n/a | _rv, |
|---|
| 20523 | n/a | space); |
|---|
| 20524 | n/a | return _res; |
|---|
| 20525 | n/a | } |
|---|
| 20526 | n/a | |
|---|
| 20527 | n/a | static PyObject *Qt_SGHandleUpdateEvent(PyObject *_self, PyObject *_args) |
|---|
| 20528 | n/a | { |
|---|
| 20529 | n/a | PyObject *_res = NULL; |
|---|
| 20530 | n/a | ComponentResult _rv; |
|---|
| 20531 | n/a | SeqGrabComponent s; |
|---|
| 20532 | n/a | EventRecord event; |
|---|
| 20533 | n/a | Boolean handled; |
|---|
| 20534 | n/a | #ifndef SGHandleUpdateEvent |
|---|
| 20535 | n/a | PyMac_PRECHECK(SGHandleUpdateEvent); |
|---|
| 20536 | n/a | #endif |
|---|
| 20537 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20538 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20539 | n/a | PyMac_GetEventRecord, &event)) |
|---|
| 20540 | n/a | return NULL; |
|---|
| 20541 | n/a | _rv = SGHandleUpdateEvent(s, |
|---|
| 20542 | n/a | &event, |
|---|
| 20543 | n/a | &handled); |
|---|
| 20544 | n/a | _res = Py_BuildValue("lb", |
|---|
| 20545 | n/a | _rv, |
|---|
| 20546 | n/a | handled); |
|---|
| 20547 | n/a | return _res; |
|---|
| 20548 | n/a | } |
|---|
| 20549 | n/a | |
|---|
| 20550 | n/a | static PyObject *Qt_SGSetOutputNextOutput(PyObject *_self, PyObject *_args) |
|---|
| 20551 | n/a | { |
|---|
| 20552 | n/a | PyObject *_res = NULL; |
|---|
| 20553 | n/a | ComponentResult _rv; |
|---|
| 20554 | n/a | SeqGrabComponent s; |
|---|
| 20555 | n/a | SGOutput sgOut; |
|---|
| 20556 | n/a | SGOutput nextOut; |
|---|
| 20557 | n/a | #ifndef SGSetOutputNextOutput |
|---|
| 20558 | n/a | PyMac_PRECHECK(SGSetOutputNextOutput); |
|---|
| 20559 | n/a | #endif |
|---|
| 20560 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 20561 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20562 | n/a | SGOutputObj_Convert, &sgOut, |
|---|
| 20563 | n/a | SGOutputObj_Convert, &nextOut)) |
|---|
| 20564 | n/a | return NULL; |
|---|
| 20565 | n/a | _rv = SGSetOutputNextOutput(s, |
|---|
| 20566 | n/a | sgOut, |
|---|
| 20567 | n/a | nextOut); |
|---|
| 20568 | n/a | _res = Py_BuildValue("l", |
|---|
| 20569 | n/a | _rv); |
|---|
| 20570 | n/a | return _res; |
|---|
| 20571 | n/a | } |
|---|
| 20572 | n/a | |
|---|
| 20573 | n/a | static PyObject *Qt_SGGetOutputNextOutput(PyObject *_self, PyObject *_args) |
|---|
| 20574 | n/a | { |
|---|
| 20575 | n/a | PyObject *_res = NULL; |
|---|
| 20576 | n/a | ComponentResult _rv; |
|---|
| 20577 | n/a | SeqGrabComponent s; |
|---|
| 20578 | n/a | SGOutput sgOut; |
|---|
| 20579 | n/a | SGOutput nextOut; |
|---|
| 20580 | n/a | #ifndef SGGetOutputNextOutput |
|---|
| 20581 | n/a | PyMac_PRECHECK(SGGetOutputNextOutput); |
|---|
| 20582 | n/a | #endif |
|---|
| 20583 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20584 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20585 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20586 | n/a | return NULL; |
|---|
| 20587 | n/a | _rv = SGGetOutputNextOutput(s, |
|---|
| 20588 | n/a | sgOut, |
|---|
| 20589 | n/a | &nextOut); |
|---|
| 20590 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20591 | n/a | _rv, |
|---|
| 20592 | n/a | SGOutputObj_New, nextOut); |
|---|
| 20593 | n/a | return _res; |
|---|
| 20594 | n/a | } |
|---|
| 20595 | n/a | |
|---|
| 20596 | n/a | static PyObject *Qt_SGSetOutputMaximumOffset(PyObject *_self, PyObject *_args) |
|---|
| 20597 | n/a | { |
|---|
| 20598 | n/a | PyObject *_res = NULL; |
|---|
| 20599 | n/a | ComponentResult _rv; |
|---|
| 20600 | n/a | SeqGrabComponent s; |
|---|
| 20601 | n/a | SGOutput sgOut; |
|---|
| 20602 | n/a | wide maxOffset; |
|---|
| 20603 | n/a | #ifndef SGSetOutputMaximumOffset |
|---|
| 20604 | n/a | PyMac_PRECHECK(SGSetOutputMaximumOffset); |
|---|
| 20605 | n/a | #endif |
|---|
| 20606 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 20607 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20608 | n/a | SGOutputObj_Convert, &sgOut, |
|---|
| 20609 | n/a | PyMac_Getwide, &maxOffset)) |
|---|
| 20610 | n/a | return NULL; |
|---|
| 20611 | n/a | _rv = SGSetOutputMaximumOffset(s, |
|---|
| 20612 | n/a | sgOut, |
|---|
| 20613 | n/a | &maxOffset); |
|---|
| 20614 | n/a | _res = Py_BuildValue("l", |
|---|
| 20615 | n/a | _rv); |
|---|
| 20616 | n/a | return _res; |
|---|
| 20617 | n/a | } |
|---|
| 20618 | n/a | |
|---|
| 20619 | n/a | static PyObject *Qt_SGGetOutputMaximumOffset(PyObject *_self, PyObject *_args) |
|---|
| 20620 | n/a | { |
|---|
| 20621 | n/a | PyObject *_res = NULL; |
|---|
| 20622 | n/a | ComponentResult _rv; |
|---|
| 20623 | n/a | SeqGrabComponent s; |
|---|
| 20624 | n/a | SGOutput sgOut; |
|---|
| 20625 | n/a | wide maxOffset; |
|---|
| 20626 | n/a | #ifndef SGGetOutputMaximumOffset |
|---|
| 20627 | n/a | PyMac_PRECHECK(SGGetOutputMaximumOffset); |
|---|
| 20628 | n/a | #endif |
|---|
| 20629 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20630 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20631 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20632 | n/a | return NULL; |
|---|
| 20633 | n/a | _rv = SGGetOutputMaximumOffset(s, |
|---|
| 20634 | n/a | sgOut, |
|---|
| 20635 | n/a | &maxOffset); |
|---|
| 20636 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20637 | n/a | _rv, |
|---|
| 20638 | n/a | PyMac_Buildwide, maxOffset); |
|---|
| 20639 | n/a | return _res; |
|---|
| 20640 | n/a | } |
|---|
| 20641 | n/a | |
|---|
| 20642 | n/a | static PyObject *Qt_SGGetOutputDataReference(PyObject *_self, PyObject *_args) |
|---|
| 20643 | n/a | { |
|---|
| 20644 | n/a | PyObject *_res = NULL; |
|---|
| 20645 | n/a | ComponentResult _rv; |
|---|
| 20646 | n/a | SeqGrabComponent s; |
|---|
| 20647 | n/a | SGOutput sgOut; |
|---|
| 20648 | n/a | Handle dataRef; |
|---|
| 20649 | n/a | OSType dataRefType; |
|---|
| 20650 | n/a | #ifndef SGGetOutputDataReference |
|---|
| 20651 | n/a | PyMac_PRECHECK(SGGetOutputDataReference); |
|---|
| 20652 | n/a | #endif |
|---|
| 20653 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20654 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20655 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20656 | n/a | return NULL; |
|---|
| 20657 | n/a | _rv = SGGetOutputDataReference(s, |
|---|
| 20658 | n/a | sgOut, |
|---|
| 20659 | n/a | &dataRef, |
|---|
| 20660 | n/a | &dataRefType); |
|---|
| 20661 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 20662 | n/a | _rv, |
|---|
| 20663 | n/a | ResObj_New, dataRef, |
|---|
| 20664 | n/a | PyMac_BuildOSType, dataRefType); |
|---|
| 20665 | n/a | return _res; |
|---|
| 20666 | n/a | } |
|---|
| 20667 | n/a | |
|---|
| 20668 | n/a | static PyObject *Qt_SGWriteExtendedMovieData(PyObject *_self, PyObject *_args) |
|---|
| 20669 | n/a | { |
|---|
| 20670 | n/a | PyObject *_res = NULL; |
|---|
| 20671 | n/a | ComponentResult _rv; |
|---|
| 20672 | n/a | SeqGrabComponent s; |
|---|
| 20673 | n/a | SGChannel c; |
|---|
| 20674 | n/a | Ptr p; |
|---|
| 20675 | n/a | long len; |
|---|
| 20676 | n/a | wide offset; |
|---|
| 20677 | n/a | SGOutput sgOut; |
|---|
| 20678 | n/a | #ifndef SGWriteExtendedMovieData |
|---|
| 20679 | n/a | PyMac_PRECHECK(SGWriteExtendedMovieData); |
|---|
| 20680 | n/a | #endif |
|---|
| 20681 | n/a | if (!PyArg_ParseTuple(_args, "O&O&sl", |
|---|
| 20682 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20683 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20684 | n/a | &p, |
|---|
| 20685 | n/a | &len)) |
|---|
| 20686 | n/a | return NULL; |
|---|
| 20687 | n/a | _rv = SGWriteExtendedMovieData(s, |
|---|
| 20688 | n/a | c, |
|---|
| 20689 | n/a | p, |
|---|
| 20690 | n/a | len, |
|---|
| 20691 | n/a | &offset, |
|---|
| 20692 | n/a | &sgOut); |
|---|
| 20693 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 20694 | n/a | _rv, |
|---|
| 20695 | n/a | PyMac_Buildwide, offset, |
|---|
| 20696 | n/a | SGOutputObj_New, sgOut); |
|---|
| 20697 | n/a | return _res; |
|---|
| 20698 | n/a | } |
|---|
| 20699 | n/a | |
|---|
| 20700 | n/a | static PyObject *Qt_SGGetStorageSpaceRemaining64(PyObject *_self, PyObject *_args) |
|---|
| 20701 | n/a | { |
|---|
| 20702 | n/a | PyObject *_res = NULL; |
|---|
| 20703 | n/a | ComponentResult _rv; |
|---|
| 20704 | n/a | SeqGrabComponent s; |
|---|
| 20705 | n/a | wide bytes; |
|---|
| 20706 | n/a | #ifndef SGGetStorageSpaceRemaining64 |
|---|
| 20707 | n/a | PyMac_PRECHECK(SGGetStorageSpaceRemaining64); |
|---|
| 20708 | n/a | #endif |
|---|
| 20709 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20710 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20711 | n/a | return NULL; |
|---|
| 20712 | n/a | _rv = SGGetStorageSpaceRemaining64(s, |
|---|
| 20713 | n/a | &bytes); |
|---|
| 20714 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20715 | n/a | _rv, |
|---|
| 20716 | n/a | PyMac_Buildwide, bytes); |
|---|
| 20717 | n/a | return _res; |
|---|
| 20718 | n/a | } |
|---|
| 20719 | n/a | |
|---|
| 20720 | n/a | static PyObject *Qt_SGGetDataOutputStorageSpaceRemaining64(PyObject *_self, PyObject *_args) |
|---|
| 20721 | n/a | { |
|---|
| 20722 | n/a | PyObject *_res = NULL; |
|---|
| 20723 | n/a | ComponentResult _rv; |
|---|
| 20724 | n/a | SeqGrabComponent s; |
|---|
| 20725 | n/a | SGOutput sgOut; |
|---|
| 20726 | n/a | wide space; |
|---|
| 20727 | n/a | #ifndef SGGetDataOutputStorageSpaceRemaining64 |
|---|
| 20728 | n/a | PyMac_PRECHECK(SGGetDataOutputStorageSpaceRemaining64); |
|---|
| 20729 | n/a | #endif |
|---|
| 20730 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20731 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20732 | n/a | SGOutputObj_Convert, &sgOut)) |
|---|
| 20733 | n/a | return NULL; |
|---|
| 20734 | n/a | _rv = SGGetDataOutputStorageSpaceRemaining64(s, |
|---|
| 20735 | n/a | sgOut, |
|---|
| 20736 | n/a | &space); |
|---|
| 20737 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20738 | n/a | _rv, |
|---|
| 20739 | n/a | PyMac_Buildwide, space); |
|---|
| 20740 | n/a | return _res; |
|---|
| 20741 | n/a | } |
|---|
| 20742 | n/a | |
|---|
| 20743 | n/a | static PyObject *Qt_SGWriteMovieData(PyObject *_self, PyObject *_args) |
|---|
| 20744 | n/a | { |
|---|
| 20745 | n/a | PyObject *_res = NULL; |
|---|
| 20746 | n/a | ComponentResult _rv; |
|---|
| 20747 | n/a | SeqGrabComponent s; |
|---|
| 20748 | n/a | SGChannel c; |
|---|
| 20749 | n/a | Ptr p; |
|---|
| 20750 | n/a | long len; |
|---|
| 20751 | n/a | long offset; |
|---|
| 20752 | n/a | #ifndef SGWriteMovieData |
|---|
| 20753 | n/a | PyMac_PRECHECK(SGWriteMovieData); |
|---|
| 20754 | n/a | #endif |
|---|
| 20755 | n/a | if (!PyArg_ParseTuple(_args, "O&O&sl", |
|---|
| 20756 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20757 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20758 | n/a | &p, |
|---|
| 20759 | n/a | &len)) |
|---|
| 20760 | n/a | return NULL; |
|---|
| 20761 | n/a | _rv = SGWriteMovieData(s, |
|---|
| 20762 | n/a | c, |
|---|
| 20763 | n/a | p, |
|---|
| 20764 | n/a | len, |
|---|
| 20765 | n/a | &offset); |
|---|
| 20766 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20767 | n/a | _rv, |
|---|
| 20768 | n/a | offset); |
|---|
| 20769 | n/a | return _res; |
|---|
| 20770 | n/a | } |
|---|
| 20771 | n/a | |
|---|
| 20772 | n/a | static PyObject *Qt_SGGetTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 20773 | n/a | { |
|---|
| 20774 | n/a | PyObject *_res = NULL; |
|---|
| 20775 | n/a | ComponentResult _rv; |
|---|
| 20776 | n/a | SeqGrabComponent s; |
|---|
| 20777 | n/a | TimeBase tb; |
|---|
| 20778 | n/a | #ifndef SGGetTimeBase |
|---|
| 20779 | n/a | PyMac_PRECHECK(SGGetTimeBase); |
|---|
| 20780 | n/a | #endif |
|---|
| 20781 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20782 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 20783 | n/a | return NULL; |
|---|
| 20784 | n/a | _rv = SGGetTimeBase(s, |
|---|
| 20785 | n/a | &tb); |
|---|
| 20786 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 20787 | n/a | _rv, |
|---|
| 20788 | n/a | TimeBaseObj_New, tb); |
|---|
| 20789 | n/a | return _res; |
|---|
| 20790 | n/a | } |
|---|
| 20791 | n/a | |
|---|
| 20792 | n/a | static PyObject *Qt_SGAddMovieData(PyObject *_self, PyObject *_args) |
|---|
| 20793 | n/a | { |
|---|
| 20794 | n/a | PyObject *_res = NULL; |
|---|
| 20795 | n/a | ComponentResult _rv; |
|---|
| 20796 | n/a | SeqGrabComponent s; |
|---|
| 20797 | n/a | SGChannel c; |
|---|
| 20798 | n/a | Ptr p; |
|---|
| 20799 | n/a | long len; |
|---|
| 20800 | n/a | long offset; |
|---|
| 20801 | n/a | long chRefCon; |
|---|
| 20802 | n/a | TimeValue time; |
|---|
| 20803 | n/a | short writeType; |
|---|
| 20804 | n/a | #ifndef SGAddMovieData |
|---|
| 20805 | n/a | PyMac_PRECHECK(SGAddMovieData); |
|---|
| 20806 | n/a | #endif |
|---|
| 20807 | n/a | if (!PyArg_ParseTuple(_args, "O&O&slllh", |
|---|
| 20808 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20809 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20810 | n/a | &p, |
|---|
| 20811 | n/a | &len, |
|---|
| 20812 | n/a | &chRefCon, |
|---|
| 20813 | n/a | &time, |
|---|
| 20814 | n/a | &writeType)) |
|---|
| 20815 | n/a | return NULL; |
|---|
| 20816 | n/a | _rv = SGAddMovieData(s, |
|---|
| 20817 | n/a | c, |
|---|
| 20818 | n/a | p, |
|---|
| 20819 | n/a | len, |
|---|
| 20820 | n/a | &offset, |
|---|
| 20821 | n/a | chRefCon, |
|---|
| 20822 | n/a | time, |
|---|
| 20823 | n/a | writeType); |
|---|
| 20824 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20825 | n/a | _rv, |
|---|
| 20826 | n/a | offset); |
|---|
| 20827 | n/a | return _res; |
|---|
| 20828 | n/a | } |
|---|
| 20829 | n/a | |
|---|
| 20830 | n/a | static PyObject *Qt_SGChangedSource(PyObject *_self, PyObject *_args) |
|---|
| 20831 | n/a | { |
|---|
| 20832 | n/a | PyObject *_res = NULL; |
|---|
| 20833 | n/a | ComponentResult _rv; |
|---|
| 20834 | n/a | SeqGrabComponent s; |
|---|
| 20835 | n/a | SGChannel c; |
|---|
| 20836 | n/a | #ifndef SGChangedSource |
|---|
| 20837 | n/a | PyMac_PRECHECK(SGChangedSource); |
|---|
| 20838 | n/a | #endif |
|---|
| 20839 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20840 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20841 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 20842 | n/a | return NULL; |
|---|
| 20843 | n/a | _rv = SGChangedSource(s, |
|---|
| 20844 | n/a | c); |
|---|
| 20845 | n/a | _res = Py_BuildValue("l", |
|---|
| 20846 | n/a | _rv); |
|---|
| 20847 | n/a | return _res; |
|---|
| 20848 | n/a | } |
|---|
| 20849 | n/a | |
|---|
| 20850 | n/a | static PyObject *Qt_SGAddExtendedMovieData(PyObject *_self, PyObject *_args) |
|---|
| 20851 | n/a | { |
|---|
| 20852 | n/a | PyObject *_res = NULL; |
|---|
| 20853 | n/a | ComponentResult _rv; |
|---|
| 20854 | n/a | SeqGrabComponent s; |
|---|
| 20855 | n/a | SGChannel c; |
|---|
| 20856 | n/a | Ptr p; |
|---|
| 20857 | n/a | long len; |
|---|
| 20858 | n/a | wide offset; |
|---|
| 20859 | n/a | long chRefCon; |
|---|
| 20860 | n/a | TimeValue time; |
|---|
| 20861 | n/a | short writeType; |
|---|
| 20862 | n/a | SGOutput whichOutput; |
|---|
| 20863 | n/a | #ifndef SGAddExtendedMovieData |
|---|
| 20864 | n/a | PyMac_PRECHECK(SGAddExtendedMovieData); |
|---|
| 20865 | n/a | #endif |
|---|
| 20866 | n/a | if (!PyArg_ParseTuple(_args, "O&O&slllh", |
|---|
| 20867 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20868 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20869 | n/a | &p, |
|---|
| 20870 | n/a | &len, |
|---|
| 20871 | n/a | &chRefCon, |
|---|
| 20872 | n/a | &time, |
|---|
| 20873 | n/a | &writeType)) |
|---|
| 20874 | n/a | return NULL; |
|---|
| 20875 | n/a | _rv = SGAddExtendedMovieData(s, |
|---|
| 20876 | n/a | c, |
|---|
| 20877 | n/a | p, |
|---|
| 20878 | n/a | len, |
|---|
| 20879 | n/a | &offset, |
|---|
| 20880 | n/a | chRefCon, |
|---|
| 20881 | n/a | time, |
|---|
| 20882 | n/a | writeType, |
|---|
| 20883 | n/a | &whichOutput); |
|---|
| 20884 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 20885 | n/a | _rv, |
|---|
| 20886 | n/a | PyMac_Buildwide, offset, |
|---|
| 20887 | n/a | SGOutputObj_New, whichOutput); |
|---|
| 20888 | n/a | return _res; |
|---|
| 20889 | n/a | } |
|---|
| 20890 | n/a | |
|---|
| 20891 | n/a | static PyObject *Qt_SGAddOutputDataRefToMedia(PyObject *_self, PyObject *_args) |
|---|
| 20892 | n/a | { |
|---|
| 20893 | n/a | PyObject *_res = NULL; |
|---|
| 20894 | n/a | ComponentResult _rv; |
|---|
| 20895 | n/a | SeqGrabComponent s; |
|---|
| 20896 | n/a | SGOutput sgOut; |
|---|
| 20897 | n/a | Media theMedia; |
|---|
| 20898 | n/a | SampleDescriptionHandle desc; |
|---|
| 20899 | n/a | #ifndef SGAddOutputDataRefToMedia |
|---|
| 20900 | n/a | PyMac_PRECHECK(SGAddOutputDataRefToMedia); |
|---|
| 20901 | n/a | #endif |
|---|
| 20902 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&O&", |
|---|
| 20903 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20904 | n/a | SGOutputObj_Convert, &sgOut, |
|---|
| 20905 | n/a | MediaObj_Convert, &theMedia, |
|---|
| 20906 | n/a | ResObj_Convert, &desc)) |
|---|
| 20907 | n/a | return NULL; |
|---|
| 20908 | n/a | _rv = SGAddOutputDataRefToMedia(s, |
|---|
| 20909 | n/a | sgOut, |
|---|
| 20910 | n/a | theMedia, |
|---|
| 20911 | n/a | desc); |
|---|
| 20912 | n/a | _res = Py_BuildValue("l", |
|---|
| 20913 | n/a | _rv); |
|---|
| 20914 | n/a | return _res; |
|---|
| 20915 | n/a | } |
|---|
| 20916 | n/a | |
|---|
| 20917 | n/a | static PyObject *Qt_SGSetSettingsSummary(PyObject *_self, PyObject *_args) |
|---|
| 20918 | n/a | { |
|---|
| 20919 | n/a | PyObject *_res = NULL; |
|---|
| 20920 | n/a | ComponentResult _rv; |
|---|
| 20921 | n/a | SeqGrabComponent s; |
|---|
| 20922 | n/a | Handle summaryText; |
|---|
| 20923 | n/a | #ifndef SGSetSettingsSummary |
|---|
| 20924 | n/a | PyMac_PRECHECK(SGSetSettingsSummary); |
|---|
| 20925 | n/a | #endif |
|---|
| 20926 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20927 | n/a | CmpInstObj_Convert, &s, |
|---|
| 20928 | n/a | ResObj_Convert, &summaryText)) |
|---|
| 20929 | n/a | return NULL; |
|---|
| 20930 | n/a | _rv = SGSetSettingsSummary(s, |
|---|
| 20931 | n/a | summaryText); |
|---|
| 20932 | n/a | _res = Py_BuildValue("l", |
|---|
| 20933 | n/a | _rv); |
|---|
| 20934 | n/a | return _res; |
|---|
| 20935 | n/a | } |
|---|
| 20936 | n/a | |
|---|
| 20937 | n/a | static PyObject *Qt_SGSetChannelUsage(PyObject *_self, PyObject *_args) |
|---|
| 20938 | n/a | { |
|---|
| 20939 | n/a | PyObject *_res = NULL; |
|---|
| 20940 | n/a | ComponentResult _rv; |
|---|
| 20941 | n/a | SGChannel c; |
|---|
| 20942 | n/a | long usage; |
|---|
| 20943 | n/a | #ifndef SGSetChannelUsage |
|---|
| 20944 | n/a | PyMac_PRECHECK(SGSetChannelUsage); |
|---|
| 20945 | n/a | #endif |
|---|
| 20946 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 20947 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20948 | n/a | &usage)) |
|---|
| 20949 | n/a | return NULL; |
|---|
| 20950 | n/a | _rv = SGSetChannelUsage(c, |
|---|
| 20951 | n/a | usage); |
|---|
| 20952 | n/a | _res = Py_BuildValue("l", |
|---|
| 20953 | n/a | _rv); |
|---|
| 20954 | n/a | return _res; |
|---|
| 20955 | n/a | } |
|---|
| 20956 | n/a | |
|---|
| 20957 | n/a | static PyObject *Qt_SGGetChannelUsage(PyObject *_self, PyObject *_args) |
|---|
| 20958 | n/a | { |
|---|
| 20959 | n/a | PyObject *_res = NULL; |
|---|
| 20960 | n/a | ComponentResult _rv; |
|---|
| 20961 | n/a | SGChannel c; |
|---|
| 20962 | n/a | long usage; |
|---|
| 20963 | n/a | #ifndef SGGetChannelUsage |
|---|
| 20964 | n/a | PyMac_PRECHECK(SGGetChannelUsage); |
|---|
| 20965 | n/a | #endif |
|---|
| 20966 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 20967 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 20968 | n/a | return NULL; |
|---|
| 20969 | n/a | _rv = SGGetChannelUsage(c, |
|---|
| 20970 | n/a | &usage); |
|---|
| 20971 | n/a | _res = Py_BuildValue("ll", |
|---|
| 20972 | n/a | _rv, |
|---|
| 20973 | n/a | usage); |
|---|
| 20974 | n/a | return _res; |
|---|
| 20975 | n/a | } |
|---|
| 20976 | n/a | |
|---|
| 20977 | n/a | static PyObject *Qt_SGSetChannelBounds(PyObject *_self, PyObject *_args) |
|---|
| 20978 | n/a | { |
|---|
| 20979 | n/a | PyObject *_res = NULL; |
|---|
| 20980 | n/a | ComponentResult _rv; |
|---|
| 20981 | n/a | SGChannel c; |
|---|
| 20982 | n/a | Rect bounds; |
|---|
| 20983 | n/a | #ifndef SGSetChannelBounds |
|---|
| 20984 | n/a | PyMac_PRECHECK(SGSetChannelBounds); |
|---|
| 20985 | n/a | #endif |
|---|
| 20986 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 20987 | n/a | CmpInstObj_Convert, &c, |
|---|
| 20988 | n/a | PyMac_GetRect, &bounds)) |
|---|
| 20989 | n/a | return NULL; |
|---|
| 20990 | n/a | _rv = SGSetChannelBounds(c, |
|---|
| 20991 | n/a | &bounds); |
|---|
| 20992 | n/a | _res = Py_BuildValue("l", |
|---|
| 20993 | n/a | _rv); |
|---|
| 20994 | n/a | return _res; |
|---|
| 20995 | n/a | } |
|---|
| 20996 | n/a | |
|---|
| 20997 | n/a | static PyObject *Qt_SGGetChannelBounds(PyObject *_self, PyObject *_args) |
|---|
| 20998 | n/a | { |
|---|
| 20999 | n/a | PyObject *_res = NULL; |
|---|
| 21000 | n/a | ComponentResult _rv; |
|---|
| 21001 | n/a | SGChannel c; |
|---|
| 21002 | n/a | Rect bounds; |
|---|
| 21003 | n/a | #ifndef SGGetChannelBounds |
|---|
| 21004 | n/a | PyMac_PRECHECK(SGGetChannelBounds); |
|---|
| 21005 | n/a | #endif |
|---|
| 21006 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21007 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21008 | n/a | return NULL; |
|---|
| 21009 | n/a | _rv = SGGetChannelBounds(c, |
|---|
| 21010 | n/a | &bounds); |
|---|
| 21011 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21012 | n/a | _rv, |
|---|
| 21013 | n/a | PyMac_BuildRect, &bounds); |
|---|
| 21014 | n/a | return _res; |
|---|
| 21015 | n/a | } |
|---|
| 21016 | n/a | |
|---|
| 21017 | n/a | static PyObject *Qt_SGSetChannelVolume(PyObject *_self, PyObject *_args) |
|---|
| 21018 | n/a | { |
|---|
| 21019 | n/a | PyObject *_res = NULL; |
|---|
| 21020 | n/a | ComponentResult _rv; |
|---|
| 21021 | n/a | SGChannel c; |
|---|
| 21022 | n/a | short volume; |
|---|
| 21023 | n/a | #ifndef SGSetChannelVolume |
|---|
| 21024 | n/a | PyMac_PRECHECK(SGSetChannelVolume); |
|---|
| 21025 | n/a | #endif |
|---|
| 21026 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 21027 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21028 | n/a | &volume)) |
|---|
| 21029 | n/a | return NULL; |
|---|
| 21030 | n/a | _rv = SGSetChannelVolume(c, |
|---|
| 21031 | n/a | volume); |
|---|
| 21032 | n/a | _res = Py_BuildValue("l", |
|---|
| 21033 | n/a | _rv); |
|---|
| 21034 | n/a | return _res; |
|---|
| 21035 | n/a | } |
|---|
| 21036 | n/a | |
|---|
| 21037 | n/a | static PyObject *Qt_SGGetChannelVolume(PyObject *_self, PyObject *_args) |
|---|
| 21038 | n/a | { |
|---|
| 21039 | n/a | PyObject *_res = NULL; |
|---|
| 21040 | n/a | ComponentResult _rv; |
|---|
| 21041 | n/a | SGChannel c; |
|---|
| 21042 | n/a | short volume; |
|---|
| 21043 | n/a | #ifndef SGGetChannelVolume |
|---|
| 21044 | n/a | PyMac_PRECHECK(SGGetChannelVolume); |
|---|
| 21045 | n/a | #endif |
|---|
| 21046 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21047 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21048 | n/a | return NULL; |
|---|
| 21049 | n/a | _rv = SGGetChannelVolume(c, |
|---|
| 21050 | n/a | &volume); |
|---|
| 21051 | n/a | _res = Py_BuildValue("lh", |
|---|
| 21052 | n/a | _rv, |
|---|
| 21053 | n/a | volume); |
|---|
| 21054 | n/a | return _res; |
|---|
| 21055 | n/a | } |
|---|
| 21056 | n/a | |
|---|
| 21057 | n/a | static PyObject *Qt_SGGetChannelInfo(PyObject *_self, PyObject *_args) |
|---|
| 21058 | n/a | { |
|---|
| 21059 | n/a | PyObject *_res = NULL; |
|---|
| 21060 | n/a | ComponentResult _rv; |
|---|
| 21061 | n/a | SGChannel c; |
|---|
| 21062 | n/a | long channelInfo; |
|---|
| 21063 | n/a | #ifndef SGGetChannelInfo |
|---|
| 21064 | n/a | PyMac_PRECHECK(SGGetChannelInfo); |
|---|
| 21065 | n/a | #endif |
|---|
| 21066 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21067 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21068 | n/a | return NULL; |
|---|
| 21069 | n/a | _rv = SGGetChannelInfo(c, |
|---|
| 21070 | n/a | &channelInfo); |
|---|
| 21071 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21072 | n/a | _rv, |
|---|
| 21073 | n/a | channelInfo); |
|---|
| 21074 | n/a | return _res; |
|---|
| 21075 | n/a | } |
|---|
| 21076 | n/a | |
|---|
| 21077 | n/a | static PyObject *Qt_SGSetChannelPlayFlags(PyObject *_self, PyObject *_args) |
|---|
| 21078 | n/a | { |
|---|
| 21079 | n/a | PyObject *_res = NULL; |
|---|
| 21080 | n/a | ComponentResult _rv; |
|---|
| 21081 | n/a | SGChannel c; |
|---|
| 21082 | n/a | long playFlags; |
|---|
| 21083 | n/a | #ifndef SGSetChannelPlayFlags |
|---|
| 21084 | n/a | PyMac_PRECHECK(SGSetChannelPlayFlags); |
|---|
| 21085 | n/a | #endif |
|---|
| 21086 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 21087 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21088 | n/a | &playFlags)) |
|---|
| 21089 | n/a | return NULL; |
|---|
| 21090 | n/a | _rv = SGSetChannelPlayFlags(c, |
|---|
| 21091 | n/a | playFlags); |
|---|
| 21092 | n/a | _res = Py_BuildValue("l", |
|---|
| 21093 | n/a | _rv); |
|---|
| 21094 | n/a | return _res; |
|---|
| 21095 | n/a | } |
|---|
| 21096 | n/a | |
|---|
| 21097 | n/a | static PyObject *Qt_SGGetChannelPlayFlags(PyObject *_self, PyObject *_args) |
|---|
| 21098 | n/a | { |
|---|
| 21099 | n/a | PyObject *_res = NULL; |
|---|
| 21100 | n/a | ComponentResult _rv; |
|---|
| 21101 | n/a | SGChannel c; |
|---|
| 21102 | n/a | long playFlags; |
|---|
| 21103 | n/a | #ifndef SGGetChannelPlayFlags |
|---|
| 21104 | n/a | PyMac_PRECHECK(SGGetChannelPlayFlags); |
|---|
| 21105 | n/a | #endif |
|---|
| 21106 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21107 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21108 | n/a | return NULL; |
|---|
| 21109 | n/a | _rv = SGGetChannelPlayFlags(c, |
|---|
| 21110 | n/a | &playFlags); |
|---|
| 21111 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21112 | n/a | _rv, |
|---|
| 21113 | n/a | playFlags); |
|---|
| 21114 | n/a | return _res; |
|---|
| 21115 | n/a | } |
|---|
| 21116 | n/a | |
|---|
| 21117 | n/a | static PyObject *Qt_SGSetChannelMaxFrames(PyObject *_self, PyObject *_args) |
|---|
| 21118 | n/a | { |
|---|
| 21119 | n/a | PyObject *_res = NULL; |
|---|
| 21120 | n/a | ComponentResult _rv; |
|---|
| 21121 | n/a | SGChannel c; |
|---|
| 21122 | n/a | long frameCount; |
|---|
| 21123 | n/a | #ifndef SGSetChannelMaxFrames |
|---|
| 21124 | n/a | PyMac_PRECHECK(SGSetChannelMaxFrames); |
|---|
| 21125 | n/a | #endif |
|---|
| 21126 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 21127 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21128 | n/a | &frameCount)) |
|---|
| 21129 | n/a | return NULL; |
|---|
| 21130 | n/a | _rv = SGSetChannelMaxFrames(c, |
|---|
| 21131 | n/a | frameCount); |
|---|
| 21132 | n/a | _res = Py_BuildValue("l", |
|---|
| 21133 | n/a | _rv); |
|---|
| 21134 | n/a | return _res; |
|---|
| 21135 | n/a | } |
|---|
| 21136 | n/a | |
|---|
| 21137 | n/a | static PyObject *Qt_SGGetChannelMaxFrames(PyObject *_self, PyObject *_args) |
|---|
| 21138 | n/a | { |
|---|
| 21139 | n/a | PyObject *_res = NULL; |
|---|
| 21140 | n/a | ComponentResult _rv; |
|---|
| 21141 | n/a | SGChannel c; |
|---|
| 21142 | n/a | long frameCount; |
|---|
| 21143 | n/a | #ifndef SGGetChannelMaxFrames |
|---|
| 21144 | n/a | PyMac_PRECHECK(SGGetChannelMaxFrames); |
|---|
| 21145 | n/a | #endif |
|---|
| 21146 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21147 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21148 | n/a | return NULL; |
|---|
| 21149 | n/a | _rv = SGGetChannelMaxFrames(c, |
|---|
| 21150 | n/a | &frameCount); |
|---|
| 21151 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21152 | n/a | _rv, |
|---|
| 21153 | n/a | frameCount); |
|---|
| 21154 | n/a | return _res; |
|---|
| 21155 | n/a | } |
|---|
| 21156 | n/a | |
|---|
| 21157 | n/a | static PyObject *Qt_SGSetChannelRefCon(PyObject *_self, PyObject *_args) |
|---|
| 21158 | n/a | { |
|---|
| 21159 | n/a | PyObject *_res = NULL; |
|---|
| 21160 | n/a | ComponentResult _rv; |
|---|
| 21161 | n/a | SGChannel c; |
|---|
| 21162 | n/a | long refCon; |
|---|
| 21163 | n/a | #ifndef SGSetChannelRefCon |
|---|
| 21164 | n/a | PyMac_PRECHECK(SGSetChannelRefCon); |
|---|
| 21165 | n/a | #endif |
|---|
| 21166 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 21167 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21168 | n/a | &refCon)) |
|---|
| 21169 | n/a | return NULL; |
|---|
| 21170 | n/a | _rv = SGSetChannelRefCon(c, |
|---|
| 21171 | n/a | refCon); |
|---|
| 21172 | n/a | _res = Py_BuildValue("l", |
|---|
| 21173 | n/a | _rv); |
|---|
| 21174 | n/a | return _res; |
|---|
| 21175 | n/a | } |
|---|
| 21176 | n/a | |
|---|
| 21177 | n/a | static PyObject *Qt_SGSetChannelClip(PyObject *_self, PyObject *_args) |
|---|
| 21178 | n/a | { |
|---|
| 21179 | n/a | PyObject *_res = NULL; |
|---|
| 21180 | n/a | ComponentResult _rv; |
|---|
| 21181 | n/a | SGChannel c; |
|---|
| 21182 | n/a | RgnHandle theClip; |
|---|
| 21183 | n/a | #ifndef SGSetChannelClip |
|---|
| 21184 | n/a | PyMac_PRECHECK(SGSetChannelClip); |
|---|
| 21185 | n/a | #endif |
|---|
| 21186 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21187 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21188 | n/a | ResObj_Convert, &theClip)) |
|---|
| 21189 | n/a | return NULL; |
|---|
| 21190 | n/a | _rv = SGSetChannelClip(c, |
|---|
| 21191 | n/a | theClip); |
|---|
| 21192 | n/a | _res = Py_BuildValue("l", |
|---|
| 21193 | n/a | _rv); |
|---|
| 21194 | n/a | return _res; |
|---|
| 21195 | n/a | } |
|---|
| 21196 | n/a | |
|---|
| 21197 | n/a | static PyObject *Qt_SGGetChannelClip(PyObject *_self, PyObject *_args) |
|---|
| 21198 | n/a | { |
|---|
| 21199 | n/a | PyObject *_res = NULL; |
|---|
| 21200 | n/a | ComponentResult _rv; |
|---|
| 21201 | n/a | SGChannel c; |
|---|
| 21202 | n/a | RgnHandle theClip; |
|---|
| 21203 | n/a | #ifndef SGGetChannelClip |
|---|
| 21204 | n/a | PyMac_PRECHECK(SGGetChannelClip); |
|---|
| 21205 | n/a | #endif |
|---|
| 21206 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21207 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21208 | n/a | return NULL; |
|---|
| 21209 | n/a | _rv = SGGetChannelClip(c, |
|---|
| 21210 | n/a | &theClip); |
|---|
| 21211 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21212 | n/a | _rv, |
|---|
| 21213 | n/a | ResObj_New, theClip); |
|---|
| 21214 | n/a | return _res; |
|---|
| 21215 | n/a | } |
|---|
| 21216 | n/a | |
|---|
| 21217 | n/a | static PyObject *Qt_SGGetChannelSampleDescription(PyObject *_self, PyObject *_args) |
|---|
| 21218 | n/a | { |
|---|
| 21219 | n/a | PyObject *_res = NULL; |
|---|
| 21220 | n/a | ComponentResult _rv; |
|---|
| 21221 | n/a | SGChannel c; |
|---|
| 21222 | n/a | Handle sampleDesc; |
|---|
| 21223 | n/a | #ifndef SGGetChannelSampleDescription |
|---|
| 21224 | n/a | PyMac_PRECHECK(SGGetChannelSampleDescription); |
|---|
| 21225 | n/a | #endif |
|---|
| 21226 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21227 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21228 | n/a | ResObj_Convert, &sampleDesc)) |
|---|
| 21229 | n/a | return NULL; |
|---|
| 21230 | n/a | _rv = SGGetChannelSampleDescription(c, |
|---|
| 21231 | n/a | sampleDesc); |
|---|
| 21232 | n/a | _res = Py_BuildValue("l", |
|---|
| 21233 | n/a | _rv); |
|---|
| 21234 | n/a | return _res; |
|---|
| 21235 | n/a | } |
|---|
| 21236 | n/a | |
|---|
| 21237 | n/a | static PyObject *Qt_SGSetChannelDevice(PyObject *_self, PyObject *_args) |
|---|
| 21238 | n/a | { |
|---|
| 21239 | n/a | PyObject *_res = NULL; |
|---|
| 21240 | n/a | ComponentResult _rv; |
|---|
| 21241 | n/a | SGChannel c; |
|---|
| 21242 | n/a | StringPtr name; |
|---|
| 21243 | n/a | #ifndef SGSetChannelDevice |
|---|
| 21244 | n/a | PyMac_PRECHECK(SGSetChannelDevice); |
|---|
| 21245 | n/a | #endif |
|---|
| 21246 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 21247 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21248 | n/a | &name)) |
|---|
| 21249 | n/a | return NULL; |
|---|
| 21250 | n/a | _rv = SGSetChannelDevice(c, |
|---|
| 21251 | n/a | name); |
|---|
| 21252 | n/a | _res = Py_BuildValue("l", |
|---|
| 21253 | n/a | _rv); |
|---|
| 21254 | n/a | return _res; |
|---|
| 21255 | n/a | } |
|---|
| 21256 | n/a | |
|---|
| 21257 | n/a | static PyObject *Qt_SGGetChannelTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 21258 | n/a | { |
|---|
| 21259 | n/a | PyObject *_res = NULL; |
|---|
| 21260 | n/a | ComponentResult _rv; |
|---|
| 21261 | n/a | SGChannel c; |
|---|
| 21262 | n/a | TimeScale scale; |
|---|
| 21263 | n/a | #ifndef SGGetChannelTimeScale |
|---|
| 21264 | n/a | PyMac_PRECHECK(SGGetChannelTimeScale); |
|---|
| 21265 | n/a | #endif |
|---|
| 21266 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21267 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21268 | n/a | return NULL; |
|---|
| 21269 | n/a | _rv = SGGetChannelTimeScale(c, |
|---|
| 21270 | n/a | &scale); |
|---|
| 21271 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21272 | n/a | _rv, |
|---|
| 21273 | n/a | scale); |
|---|
| 21274 | n/a | return _res; |
|---|
| 21275 | n/a | } |
|---|
| 21276 | n/a | |
|---|
| 21277 | n/a | static PyObject *Qt_SGChannelPutPicture(PyObject *_self, PyObject *_args) |
|---|
| 21278 | n/a | { |
|---|
| 21279 | n/a | PyObject *_res = NULL; |
|---|
| 21280 | n/a | ComponentResult _rv; |
|---|
| 21281 | n/a | SGChannel c; |
|---|
| 21282 | n/a | #ifndef SGChannelPutPicture |
|---|
| 21283 | n/a | PyMac_PRECHECK(SGChannelPutPicture); |
|---|
| 21284 | n/a | #endif |
|---|
| 21285 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21286 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21287 | n/a | return NULL; |
|---|
| 21288 | n/a | _rv = SGChannelPutPicture(c); |
|---|
| 21289 | n/a | _res = Py_BuildValue("l", |
|---|
| 21290 | n/a | _rv); |
|---|
| 21291 | n/a | return _res; |
|---|
| 21292 | n/a | } |
|---|
| 21293 | n/a | |
|---|
| 21294 | n/a | static PyObject *Qt_SGChannelSetRequestedDataRate(PyObject *_self, PyObject *_args) |
|---|
| 21295 | n/a | { |
|---|
| 21296 | n/a | PyObject *_res = NULL; |
|---|
| 21297 | n/a | ComponentResult _rv; |
|---|
| 21298 | n/a | SGChannel c; |
|---|
| 21299 | n/a | long bytesPerSecond; |
|---|
| 21300 | n/a | #ifndef SGChannelSetRequestedDataRate |
|---|
| 21301 | n/a | PyMac_PRECHECK(SGChannelSetRequestedDataRate); |
|---|
| 21302 | n/a | #endif |
|---|
| 21303 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 21304 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21305 | n/a | &bytesPerSecond)) |
|---|
| 21306 | n/a | return NULL; |
|---|
| 21307 | n/a | _rv = SGChannelSetRequestedDataRate(c, |
|---|
| 21308 | n/a | bytesPerSecond); |
|---|
| 21309 | n/a | _res = Py_BuildValue("l", |
|---|
| 21310 | n/a | _rv); |
|---|
| 21311 | n/a | return _res; |
|---|
| 21312 | n/a | } |
|---|
| 21313 | n/a | |
|---|
| 21314 | n/a | static PyObject *Qt_SGChannelGetRequestedDataRate(PyObject *_self, PyObject *_args) |
|---|
| 21315 | n/a | { |
|---|
| 21316 | n/a | PyObject *_res = NULL; |
|---|
| 21317 | n/a | ComponentResult _rv; |
|---|
| 21318 | n/a | SGChannel c; |
|---|
| 21319 | n/a | long bytesPerSecond; |
|---|
| 21320 | n/a | #ifndef SGChannelGetRequestedDataRate |
|---|
| 21321 | n/a | PyMac_PRECHECK(SGChannelGetRequestedDataRate); |
|---|
| 21322 | n/a | #endif |
|---|
| 21323 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21324 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21325 | n/a | return NULL; |
|---|
| 21326 | n/a | _rv = SGChannelGetRequestedDataRate(c, |
|---|
| 21327 | n/a | &bytesPerSecond); |
|---|
| 21328 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21329 | n/a | _rv, |
|---|
| 21330 | n/a | bytesPerSecond); |
|---|
| 21331 | n/a | return _res; |
|---|
| 21332 | n/a | } |
|---|
| 21333 | n/a | |
|---|
| 21334 | n/a | static PyObject *Qt_SGChannelSetDataSourceName(PyObject *_self, PyObject *_args) |
|---|
| 21335 | n/a | { |
|---|
| 21336 | n/a | PyObject *_res = NULL; |
|---|
| 21337 | n/a | ComponentResult _rv; |
|---|
| 21338 | n/a | SGChannel c; |
|---|
| 21339 | n/a | Str255 name; |
|---|
| 21340 | n/a | ScriptCode scriptTag; |
|---|
| 21341 | n/a | #ifndef SGChannelSetDataSourceName |
|---|
| 21342 | n/a | PyMac_PRECHECK(SGChannelSetDataSourceName); |
|---|
| 21343 | n/a | #endif |
|---|
| 21344 | n/a | if (!PyArg_ParseTuple(_args, "O&O&h", |
|---|
| 21345 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21346 | n/a | PyMac_GetStr255, name, |
|---|
| 21347 | n/a | &scriptTag)) |
|---|
| 21348 | n/a | return NULL; |
|---|
| 21349 | n/a | _rv = SGChannelSetDataSourceName(c, |
|---|
| 21350 | n/a | name, |
|---|
| 21351 | n/a | scriptTag); |
|---|
| 21352 | n/a | _res = Py_BuildValue("l", |
|---|
| 21353 | n/a | _rv); |
|---|
| 21354 | n/a | return _res; |
|---|
| 21355 | n/a | } |
|---|
| 21356 | n/a | |
|---|
| 21357 | n/a | static PyObject *Qt_SGChannelGetDataSourceName(PyObject *_self, PyObject *_args) |
|---|
| 21358 | n/a | { |
|---|
| 21359 | n/a | PyObject *_res = NULL; |
|---|
| 21360 | n/a | ComponentResult _rv; |
|---|
| 21361 | n/a | SGChannel c; |
|---|
| 21362 | n/a | Str255 name; |
|---|
| 21363 | n/a | ScriptCode scriptTag; |
|---|
| 21364 | n/a | #ifndef SGChannelGetDataSourceName |
|---|
| 21365 | n/a | PyMac_PRECHECK(SGChannelGetDataSourceName); |
|---|
| 21366 | n/a | #endif |
|---|
| 21367 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21368 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21369 | n/a | PyMac_GetStr255, name)) |
|---|
| 21370 | n/a | return NULL; |
|---|
| 21371 | n/a | _rv = SGChannelGetDataSourceName(c, |
|---|
| 21372 | n/a | name, |
|---|
| 21373 | n/a | &scriptTag); |
|---|
| 21374 | n/a | _res = Py_BuildValue("lh", |
|---|
| 21375 | n/a | _rv, |
|---|
| 21376 | n/a | scriptTag); |
|---|
| 21377 | n/a | return _res; |
|---|
| 21378 | n/a | } |
|---|
| 21379 | n/a | |
|---|
| 21380 | n/a | static PyObject *Qt_SGChannelSetCodecSettings(PyObject *_self, PyObject *_args) |
|---|
| 21381 | n/a | { |
|---|
| 21382 | n/a | PyObject *_res = NULL; |
|---|
| 21383 | n/a | ComponentResult _rv; |
|---|
| 21384 | n/a | SGChannel c; |
|---|
| 21385 | n/a | Handle settings; |
|---|
| 21386 | n/a | #ifndef SGChannelSetCodecSettings |
|---|
| 21387 | n/a | PyMac_PRECHECK(SGChannelSetCodecSettings); |
|---|
| 21388 | n/a | #endif |
|---|
| 21389 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21390 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21391 | n/a | ResObj_Convert, &settings)) |
|---|
| 21392 | n/a | return NULL; |
|---|
| 21393 | n/a | _rv = SGChannelSetCodecSettings(c, |
|---|
| 21394 | n/a | settings); |
|---|
| 21395 | n/a | _res = Py_BuildValue("l", |
|---|
| 21396 | n/a | _rv); |
|---|
| 21397 | n/a | return _res; |
|---|
| 21398 | n/a | } |
|---|
| 21399 | n/a | |
|---|
| 21400 | n/a | static PyObject *Qt_SGChannelGetCodecSettings(PyObject *_self, PyObject *_args) |
|---|
| 21401 | n/a | { |
|---|
| 21402 | n/a | PyObject *_res = NULL; |
|---|
| 21403 | n/a | ComponentResult _rv; |
|---|
| 21404 | n/a | SGChannel c; |
|---|
| 21405 | n/a | Handle settings; |
|---|
| 21406 | n/a | #ifndef SGChannelGetCodecSettings |
|---|
| 21407 | n/a | PyMac_PRECHECK(SGChannelGetCodecSettings); |
|---|
| 21408 | n/a | #endif |
|---|
| 21409 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21410 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21411 | n/a | return NULL; |
|---|
| 21412 | n/a | _rv = SGChannelGetCodecSettings(c, |
|---|
| 21413 | n/a | &settings); |
|---|
| 21414 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21415 | n/a | _rv, |
|---|
| 21416 | n/a | ResObj_New, settings); |
|---|
| 21417 | n/a | return _res; |
|---|
| 21418 | n/a | } |
|---|
| 21419 | n/a | |
|---|
| 21420 | n/a | static PyObject *Qt_SGGetChannelTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 21421 | n/a | { |
|---|
| 21422 | n/a | PyObject *_res = NULL; |
|---|
| 21423 | n/a | ComponentResult _rv; |
|---|
| 21424 | n/a | SGChannel c; |
|---|
| 21425 | n/a | TimeBase tb; |
|---|
| 21426 | n/a | #ifndef SGGetChannelTimeBase |
|---|
| 21427 | n/a | PyMac_PRECHECK(SGGetChannelTimeBase); |
|---|
| 21428 | n/a | #endif |
|---|
| 21429 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21430 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21431 | n/a | return NULL; |
|---|
| 21432 | n/a | _rv = SGGetChannelTimeBase(c, |
|---|
| 21433 | n/a | &tb); |
|---|
| 21434 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21435 | n/a | _rv, |
|---|
| 21436 | n/a | TimeBaseObj_New, tb); |
|---|
| 21437 | n/a | return _res; |
|---|
| 21438 | n/a | } |
|---|
| 21439 | n/a | |
|---|
| 21440 | n/a | static PyObject *Qt_SGGetChannelRefCon(PyObject *_self, PyObject *_args) |
|---|
| 21441 | n/a | { |
|---|
| 21442 | n/a | PyObject *_res = NULL; |
|---|
| 21443 | n/a | ComponentResult _rv; |
|---|
| 21444 | n/a | SGChannel c; |
|---|
| 21445 | n/a | long refCon; |
|---|
| 21446 | n/a | #ifndef SGGetChannelRefCon |
|---|
| 21447 | n/a | PyMac_PRECHECK(SGGetChannelRefCon); |
|---|
| 21448 | n/a | #endif |
|---|
| 21449 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21450 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21451 | n/a | return NULL; |
|---|
| 21452 | n/a | _rv = SGGetChannelRefCon(c, |
|---|
| 21453 | n/a | &refCon); |
|---|
| 21454 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21455 | n/a | _rv, |
|---|
| 21456 | n/a | refCon); |
|---|
| 21457 | n/a | return _res; |
|---|
| 21458 | n/a | } |
|---|
| 21459 | n/a | |
|---|
| 21460 | n/a | static PyObject *Qt_SGGetChannelDeviceAndInputNames(PyObject *_self, PyObject *_args) |
|---|
| 21461 | n/a | { |
|---|
| 21462 | n/a | PyObject *_res = NULL; |
|---|
| 21463 | n/a | ComponentResult _rv; |
|---|
| 21464 | n/a | SGChannel c; |
|---|
| 21465 | n/a | Str255 outDeviceName; |
|---|
| 21466 | n/a | Str255 outInputName; |
|---|
| 21467 | n/a | short outInputNumber; |
|---|
| 21468 | n/a | #ifndef SGGetChannelDeviceAndInputNames |
|---|
| 21469 | n/a | PyMac_PRECHECK(SGGetChannelDeviceAndInputNames); |
|---|
| 21470 | n/a | #endif |
|---|
| 21471 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 21472 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21473 | n/a | PyMac_GetStr255, outDeviceName, |
|---|
| 21474 | n/a | PyMac_GetStr255, outInputName)) |
|---|
| 21475 | n/a | return NULL; |
|---|
| 21476 | n/a | _rv = SGGetChannelDeviceAndInputNames(c, |
|---|
| 21477 | n/a | outDeviceName, |
|---|
| 21478 | n/a | outInputName, |
|---|
| 21479 | n/a | &outInputNumber); |
|---|
| 21480 | n/a | _res = Py_BuildValue("lh", |
|---|
| 21481 | n/a | _rv, |
|---|
| 21482 | n/a | outInputNumber); |
|---|
| 21483 | n/a | return _res; |
|---|
| 21484 | n/a | } |
|---|
| 21485 | n/a | |
|---|
| 21486 | n/a | static PyObject *Qt_SGSetChannelDeviceInput(PyObject *_self, PyObject *_args) |
|---|
| 21487 | n/a | { |
|---|
| 21488 | n/a | PyObject *_res = NULL; |
|---|
| 21489 | n/a | ComponentResult _rv; |
|---|
| 21490 | n/a | SGChannel c; |
|---|
| 21491 | n/a | short inInputNumber; |
|---|
| 21492 | n/a | #ifndef SGSetChannelDeviceInput |
|---|
| 21493 | n/a | PyMac_PRECHECK(SGSetChannelDeviceInput); |
|---|
| 21494 | n/a | #endif |
|---|
| 21495 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 21496 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21497 | n/a | &inInputNumber)) |
|---|
| 21498 | n/a | return NULL; |
|---|
| 21499 | n/a | _rv = SGSetChannelDeviceInput(c, |
|---|
| 21500 | n/a | inInputNumber); |
|---|
| 21501 | n/a | _res = Py_BuildValue("l", |
|---|
| 21502 | n/a | _rv); |
|---|
| 21503 | n/a | return _res; |
|---|
| 21504 | n/a | } |
|---|
| 21505 | n/a | |
|---|
| 21506 | n/a | static PyObject *Qt_SGSetChannelSettingsStateChanging(PyObject *_self, PyObject *_args) |
|---|
| 21507 | n/a | { |
|---|
| 21508 | n/a | PyObject *_res = NULL; |
|---|
| 21509 | n/a | ComponentResult _rv; |
|---|
| 21510 | n/a | SGChannel c; |
|---|
| 21511 | n/a | UInt32 inFlags; |
|---|
| 21512 | n/a | #ifndef SGSetChannelSettingsStateChanging |
|---|
| 21513 | n/a | PyMac_PRECHECK(SGSetChannelSettingsStateChanging); |
|---|
| 21514 | n/a | #endif |
|---|
| 21515 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 21516 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21517 | n/a | &inFlags)) |
|---|
| 21518 | n/a | return NULL; |
|---|
| 21519 | n/a | _rv = SGSetChannelSettingsStateChanging(c, |
|---|
| 21520 | n/a | inFlags); |
|---|
| 21521 | n/a | _res = Py_BuildValue("l", |
|---|
| 21522 | n/a | _rv); |
|---|
| 21523 | n/a | return _res; |
|---|
| 21524 | n/a | } |
|---|
| 21525 | n/a | |
|---|
| 21526 | n/a | static PyObject *Qt_SGInitChannel(PyObject *_self, PyObject *_args) |
|---|
| 21527 | n/a | { |
|---|
| 21528 | n/a | PyObject *_res = NULL; |
|---|
| 21529 | n/a | ComponentResult _rv; |
|---|
| 21530 | n/a | SGChannel c; |
|---|
| 21531 | n/a | SeqGrabComponent owner; |
|---|
| 21532 | n/a | #ifndef SGInitChannel |
|---|
| 21533 | n/a | PyMac_PRECHECK(SGInitChannel); |
|---|
| 21534 | n/a | #endif |
|---|
| 21535 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21536 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21537 | n/a | CmpInstObj_Convert, &owner)) |
|---|
| 21538 | n/a | return NULL; |
|---|
| 21539 | n/a | _rv = SGInitChannel(c, |
|---|
| 21540 | n/a | owner); |
|---|
| 21541 | n/a | _res = Py_BuildValue("l", |
|---|
| 21542 | n/a | _rv); |
|---|
| 21543 | n/a | return _res; |
|---|
| 21544 | n/a | } |
|---|
| 21545 | n/a | |
|---|
| 21546 | n/a | static PyObject *Qt_SGWriteSamples(PyObject *_self, PyObject *_args) |
|---|
| 21547 | n/a | { |
|---|
| 21548 | n/a | PyObject *_res = NULL; |
|---|
| 21549 | n/a | ComponentResult _rv; |
|---|
| 21550 | n/a | SGChannel c; |
|---|
| 21551 | n/a | Movie m; |
|---|
| 21552 | n/a | AliasHandle theFile; |
|---|
| 21553 | n/a | #ifndef SGWriteSamples |
|---|
| 21554 | n/a | PyMac_PRECHECK(SGWriteSamples); |
|---|
| 21555 | n/a | #endif |
|---|
| 21556 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 21557 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21558 | n/a | MovieObj_Convert, &m, |
|---|
| 21559 | n/a | ResObj_Convert, &theFile)) |
|---|
| 21560 | n/a | return NULL; |
|---|
| 21561 | n/a | _rv = SGWriteSamples(c, |
|---|
| 21562 | n/a | m, |
|---|
| 21563 | n/a | theFile); |
|---|
| 21564 | n/a | _res = Py_BuildValue("l", |
|---|
| 21565 | n/a | _rv); |
|---|
| 21566 | n/a | return _res; |
|---|
| 21567 | n/a | } |
|---|
| 21568 | n/a | |
|---|
| 21569 | n/a | static PyObject *Qt_SGGetDataRate(PyObject *_self, PyObject *_args) |
|---|
| 21570 | n/a | { |
|---|
| 21571 | n/a | PyObject *_res = NULL; |
|---|
| 21572 | n/a | ComponentResult _rv; |
|---|
| 21573 | n/a | SGChannel c; |
|---|
| 21574 | n/a | long bytesPerSecond; |
|---|
| 21575 | n/a | #ifndef SGGetDataRate |
|---|
| 21576 | n/a | PyMac_PRECHECK(SGGetDataRate); |
|---|
| 21577 | n/a | #endif |
|---|
| 21578 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21579 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21580 | n/a | return NULL; |
|---|
| 21581 | n/a | _rv = SGGetDataRate(c, |
|---|
| 21582 | n/a | &bytesPerSecond); |
|---|
| 21583 | n/a | _res = Py_BuildValue("ll", |
|---|
| 21584 | n/a | _rv, |
|---|
| 21585 | n/a | bytesPerSecond); |
|---|
| 21586 | n/a | return _res; |
|---|
| 21587 | n/a | } |
|---|
| 21588 | n/a | |
|---|
| 21589 | n/a | static PyObject *Qt_SGAlignChannelRect(PyObject *_self, PyObject *_args) |
|---|
| 21590 | n/a | { |
|---|
| 21591 | n/a | PyObject *_res = NULL; |
|---|
| 21592 | n/a | ComponentResult _rv; |
|---|
| 21593 | n/a | SGChannel c; |
|---|
| 21594 | n/a | Rect r; |
|---|
| 21595 | n/a | #ifndef SGAlignChannelRect |
|---|
| 21596 | n/a | PyMac_PRECHECK(SGAlignChannelRect); |
|---|
| 21597 | n/a | #endif |
|---|
| 21598 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21599 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21600 | n/a | return NULL; |
|---|
| 21601 | n/a | _rv = SGAlignChannelRect(c, |
|---|
| 21602 | n/a | &r); |
|---|
| 21603 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21604 | n/a | _rv, |
|---|
| 21605 | n/a | PyMac_BuildRect, &r); |
|---|
| 21606 | n/a | return _res; |
|---|
| 21607 | n/a | } |
|---|
| 21608 | n/a | |
|---|
| 21609 | n/a | static PyObject *Qt_SGPanelGetDitl(PyObject *_self, PyObject *_args) |
|---|
| 21610 | n/a | { |
|---|
| 21611 | n/a | PyObject *_res = NULL; |
|---|
| 21612 | n/a | ComponentResult _rv; |
|---|
| 21613 | n/a | SeqGrabComponent s; |
|---|
| 21614 | n/a | Handle ditl; |
|---|
| 21615 | n/a | #ifndef SGPanelGetDitl |
|---|
| 21616 | n/a | PyMac_PRECHECK(SGPanelGetDitl); |
|---|
| 21617 | n/a | #endif |
|---|
| 21618 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21619 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 21620 | n/a | return NULL; |
|---|
| 21621 | n/a | _rv = SGPanelGetDitl(s, |
|---|
| 21622 | n/a | &ditl); |
|---|
| 21623 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21624 | n/a | _rv, |
|---|
| 21625 | n/a | ResObj_New, ditl); |
|---|
| 21626 | n/a | return _res; |
|---|
| 21627 | n/a | } |
|---|
| 21628 | n/a | |
|---|
| 21629 | n/a | static PyObject *Qt_SGPanelGetTitle(PyObject *_self, PyObject *_args) |
|---|
| 21630 | n/a | { |
|---|
| 21631 | n/a | PyObject *_res = NULL; |
|---|
| 21632 | n/a | ComponentResult _rv; |
|---|
| 21633 | n/a | SeqGrabComponent s; |
|---|
| 21634 | n/a | Str255 title; |
|---|
| 21635 | n/a | #ifndef SGPanelGetTitle |
|---|
| 21636 | n/a | PyMac_PRECHECK(SGPanelGetTitle); |
|---|
| 21637 | n/a | #endif |
|---|
| 21638 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21639 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21640 | n/a | PyMac_GetStr255, title)) |
|---|
| 21641 | n/a | return NULL; |
|---|
| 21642 | n/a | _rv = SGPanelGetTitle(s, |
|---|
| 21643 | n/a | title); |
|---|
| 21644 | n/a | _res = Py_BuildValue("l", |
|---|
| 21645 | n/a | _rv); |
|---|
| 21646 | n/a | return _res; |
|---|
| 21647 | n/a | } |
|---|
| 21648 | n/a | |
|---|
| 21649 | n/a | static PyObject *Qt_SGPanelCanRun(PyObject *_self, PyObject *_args) |
|---|
| 21650 | n/a | { |
|---|
| 21651 | n/a | PyObject *_res = NULL; |
|---|
| 21652 | n/a | ComponentResult _rv; |
|---|
| 21653 | n/a | SeqGrabComponent s; |
|---|
| 21654 | n/a | SGChannel c; |
|---|
| 21655 | n/a | #ifndef SGPanelCanRun |
|---|
| 21656 | n/a | PyMac_PRECHECK(SGPanelCanRun); |
|---|
| 21657 | n/a | #endif |
|---|
| 21658 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21659 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21660 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21661 | n/a | return NULL; |
|---|
| 21662 | n/a | _rv = SGPanelCanRun(s, |
|---|
| 21663 | n/a | c); |
|---|
| 21664 | n/a | _res = Py_BuildValue("l", |
|---|
| 21665 | n/a | _rv); |
|---|
| 21666 | n/a | return _res; |
|---|
| 21667 | n/a | } |
|---|
| 21668 | n/a | |
|---|
| 21669 | n/a | static PyObject *Qt_SGPanelInstall(PyObject *_self, PyObject *_args) |
|---|
| 21670 | n/a | { |
|---|
| 21671 | n/a | PyObject *_res = NULL; |
|---|
| 21672 | n/a | ComponentResult _rv; |
|---|
| 21673 | n/a | SeqGrabComponent s; |
|---|
| 21674 | n/a | SGChannel c; |
|---|
| 21675 | n/a | DialogPtr d; |
|---|
| 21676 | n/a | short itemOffset; |
|---|
| 21677 | n/a | #ifndef SGPanelInstall |
|---|
| 21678 | n/a | PyMac_PRECHECK(SGPanelInstall); |
|---|
| 21679 | n/a | #endif |
|---|
| 21680 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&h", |
|---|
| 21681 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21682 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21683 | n/a | DlgObj_Convert, &d, |
|---|
| 21684 | n/a | &itemOffset)) |
|---|
| 21685 | n/a | return NULL; |
|---|
| 21686 | n/a | _rv = SGPanelInstall(s, |
|---|
| 21687 | n/a | c, |
|---|
| 21688 | n/a | d, |
|---|
| 21689 | n/a | itemOffset); |
|---|
| 21690 | n/a | _res = Py_BuildValue("l", |
|---|
| 21691 | n/a | _rv); |
|---|
| 21692 | n/a | return _res; |
|---|
| 21693 | n/a | } |
|---|
| 21694 | n/a | |
|---|
| 21695 | n/a | static PyObject *Qt_SGPanelEvent(PyObject *_self, PyObject *_args) |
|---|
| 21696 | n/a | { |
|---|
| 21697 | n/a | PyObject *_res = NULL; |
|---|
| 21698 | n/a | ComponentResult _rv; |
|---|
| 21699 | n/a | SeqGrabComponent s; |
|---|
| 21700 | n/a | SGChannel c; |
|---|
| 21701 | n/a | DialogPtr d; |
|---|
| 21702 | n/a | short itemOffset; |
|---|
| 21703 | n/a | EventRecord theEvent; |
|---|
| 21704 | n/a | short itemHit; |
|---|
| 21705 | n/a | Boolean handled; |
|---|
| 21706 | n/a | #ifndef SGPanelEvent |
|---|
| 21707 | n/a | PyMac_PRECHECK(SGPanelEvent); |
|---|
| 21708 | n/a | #endif |
|---|
| 21709 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&hO&", |
|---|
| 21710 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21711 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21712 | n/a | DlgObj_Convert, &d, |
|---|
| 21713 | n/a | &itemOffset, |
|---|
| 21714 | n/a | PyMac_GetEventRecord, &theEvent)) |
|---|
| 21715 | n/a | return NULL; |
|---|
| 21716 | n/a | _rv = SGPanelEvent(s, |
|---|
| 21717 | n/a | c, |
|---|
| 21718 | n/a | d, |
|---|
| 21719 | n/a | itemOffset, |
|---|
| 21720 | n/a | &theEvent, |
|---|
| 21721 | n/a | &itemHit, |
|---|
| 21722 | n/a | &handled); |
|---|
| 21723 | n/a | _res = Py_BuildValue("lhb", |
|---|
| 21724 | n/a | _rv, |
|---|
| 21725 | n/a | itemHit, |
|---|
| 21726 | n/a | handled); |
|---|
| 21727 | n/a | return _res; |
|---|
| 21728 | n/a | } |
|---|
| 21729 | n/a | |
|---|
| 21730 | n/a | static PyObject *Qt_SGPanelItem(PyObject *_self, PyObject *_args) |
|---|
| 21731 | n/a | { |
|---|
| 21732 | n/a | PyObject *_res = NULL; |
|---|
| 21733 | n/a | ComponentResult _rv; |
|---|
| 21734 | n/a | SeqGrabComponent s; |
|---|
| 21735 | n/a | SGChannel c; |
|---|
| 21736 | n/a | DialogPtr d; |
|---|
| 21737 | n/a | short itemOffset; |
|---|
| 21738 | n/a | short itemNum; |
|---|
| 21739 | n/a | #ifndef SGPanelItem |
|---|
| 21740 | n/a | PyMac_PRECHECK(SGPanelItem); |
|---|
| 21741 | n/a | #endif |
|---|
| 21742 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&hh", |
|---|
| 21743 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21744 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21745 | n/a | DlgObj_Convert, &d, |
|---|
| 21746 | n/a | &itemOffset, |
|---|
| 21747 | n/a | &itemNum)) |
|---|
| 21748 | n/a | return NULL; |
|---|
| 21749 | n/a | _rv = SGPanelItem(s, |
|---|
| 21750 | n/a | c, |
|---|
| 21751 | n/a | d, |
|---|
| 21752 | n/a | itemOffset, |
|---|
| 21753 | n/a | itemNum); |
|---|
| 21754 | n/a | _res = Py_BuildValue("l", |
|---|
| 21755 | n/a | _rv); |
|---|
| 21756 | n/a | return _res; |
|---|
| 21757 | n/a | } |
|---|
| 21758 | n/a | |
|---|
| 21759 | n/a | static PyObject *Qt_SGPanelRemove(PyObject *_self, PyObject *_args) |
|---|
| 21760 | n/a | { |
|---|
| 21761 | n/a | PyObject *_res = NULL; |
|---|
| 21762 | n/a | ComponentResult _rv; |
|---|
| 21763 | n/a | SeqGrabComponent s; |
|---|
| 21764 | n/a | SGChannel c; |
|---|
| 21765 | n/a | DialogPtr d; |
|---|
| 21766 | n/a | short itemOffset; |
|---|
| 21767 | n/a | #ifndef SGPanelRemove |
|---|
| 21768 | n/a | PyMac_PRECHECK(SGPanelRemove); |
|---|
| 21769 | n/a | #endif |
|---|
| 21770 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&h", |
|---|
| 21771 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21772 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21773 | n/a | DlgObj_Convert, &d, |
|---|
| 21774 | n/a | &itemOffset)) |
|---|
| 21775 | n/a | return NULL; |
|---|
| 21776 | n/a | _rv = SGPanelRemove(s, |
|---|
| 21777 | n/a | c, |
|---|
| 21778 | n/a | d, |
|---|
| 21779 | n/a | itemOffset); |
|---|
| 21780 | n/a | _res = Py_BuildValue("l", |
|---|
| 21781 | n/a | _rv); |
|---|
| 21782 | n/a | return _res; |
|---|
| 21783 | n/a | } |
|---|
| 21784 | n/a | |
|---|
| 21785 | n/a | static PyObject *Qt_SGPanelSetGrabber(PyObject *_self, PyObject *_args) |
|---|
| 21786 | n/a | { |
|---|
| 21787 | n/a | PyObject *_res = NULL; |
|---|
| 21788 | n/a | ComponentResult _rv; |
|---|
| 21789 | n/a | SeqGrabComponent s; |
|---|
| 21790 | n/a | SeqGrabComponent sg; |
|---|
| 21791 | n/a | #ifndef SGPanelSetGrabber |
|---|
| 21792 | n/a | PyMac_PRECHECK(SGPanelSetGrabber); |
|---|
| 21793 | n/a | #endif |
|---|
| 21794 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21795 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21796 | n/a | CmpInstObj_Convert, &sg)) |
|---|
| 21797 | n/a | return NULL; |
|---|
| 21798 | n/a | _rv = SGPanelSetGrabber(s, |
|---|
| 21799 | n/a | sg); |
|---|
| 21800 | n/a | _res = Py_BuildValue("l", |
|---|
| 21801 | n/a | _rv); |
|---|
| 21802 | n/a | return _res; |
|---|
| 21803 | n/a | } |
|---|
| 21804 | n/a | |
|---|
| 21805 | n/a | static PyObject *Qt_SGPanelSetResFile(PyObject *_self, PyObject *_args) |
|---|
| 21806 | n/a | { |
|---|
| 21807 | n/a | PyObject *_res = NULL; |
|---|
| 21808 | n/a | ComponentResult _rv; |
|---|
| 21809 | n/a | SeqGrabComponent s; |
|---|
| 21810 | n/a | short resRef; |
|---|
| 21811 | n/a | #ifndef SGPanelSetResFile |
|---|
| 21812 | n/a | PyMac_PRECHECK(SGPanelSetResFile); |
|---|
| 21813 | n/a | #endif |
|---|
| 21814 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 21815 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21816 | n/a | &resRef)) |
|---|
| 21817 | n/a | return NULL; |
|---|
| 21818 | n/a | _rv = SGPanelSetResFile(s, |
|---|
| 21819 | n/a | resRef); |
|---|
| 21820 | n/a | _res = Py_BuildValue("l", |
|---|
| 21821 | n/a | _rv); |
|---|
| 21822 | n/a | return _res; |
|---|
| 21823 | n/a | } |
|---|
| 21824 | n/a | |
|---|
| 21825 | n/a | static PyObject *Qt_SGPanelGetSettings(PyObject *_self, PyObject *_args) |
|---|
| 21826 | n/a | { |
|---|
| 21827 | n/a | PyObject *_res = NULL; |
|---|
| 21828 | n/a | ComponentResult _rv; |
|---|
| 21829 | n/a | SeqGrabComponent s; |
|---|
| 21830 | n/a | SGChannel c; |
|---|
| 21831 | n/a | UserData ud; |
|---|
| 21832 | n/a | long flags; |
|---|
| 21833 | n/a | #ifndef SGPanelGetSettings |
|---|
| 21834 | n/a | PyMac_PRECHECK(SGPanelGetSettings); |
|---|
| 21835 | n/a | #endif |
|---|
| 21836 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 21837 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21838 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21839 | n/a | &flags)) |
|---|
| 21840 | n/a | return NULL; |
|---|
| 21841 | n/a | _rv = SGPanelGetSettings(s, |
|---|
| 21842 | n/a | c, |
|---|
| 21843 | n/a | &ud, |
|---|
| 21844 | n/a | flags); |
|---|
| 21845 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21846 | n/a | _rv, |
|---|
| 21847 | n/a | UserDataObj_New, ud); |
|---|
| 21848 | n/a | return _res; |
|---|
| 21849 | n/a | } |
|---|
| 21850 | n/a | |
|---|
| 21851 | n/a | static PyObject *Qt_SGPanelSetSettings(PyObject *_self, PyObject *_args) |
|---|
| 21852 | n/a | { |
|---|
| 21853 | n/a | PyObject *_res = NULL; |
|---|
| 21854 | n/a | ComponentResult _rv; |
|---|
| 21855 | n/a | SeqGrabComponent s; |
|---|
| 21856 | n/a | SGChannel c; |
|---|
| 21857 | n/a | UserData ud; |
|---|
| 21858 | n/a | long flags; |
|---|
| 21859 | n/a | #ifndef SGPanelSetSettings |
|---|
| 21860 | n/a | PyMac_PRECHECK(SGPanelSetSettings); |
|---|
| 21861 | n/a | #endif |
|---|
| 21862 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&l", |
|---|
| 21863 | n/a | CmpInstObj_Convert, &s, |
|---|
| 21864 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21865 | n/a | UserDataObj_Convert, &ud, |
|---|
| 21866 | n/a | &flags)) |
|---|
| 21867 | n/a | return NULL; |
|---|
| 21868 | n/a | _rv = SGPanelSetSettings(s, |
|---|
| 21869 | n/a | c, |
|---|
| 21870 | n/a | ud, |
|---|
| 21871 | n/a | flags); |
|---|
| 21872 | n/a | _res = Py_BuildValue("l", |
|---|
| 21873 | n/a | _rv); |
|---|
| 21874 | n/a | return _res; |
|---|
| 21875 | n/a | } |
|---|
| 21876 | n/a | |
|---|
| 21877 | n/a | static PyObject *Qt_SGPanelValidateInput(PyObject *_self, PyObject *_args) |
|---|
| 21878 | n/a | { |
|---|
| 21879 | n/a | PyObject *_res = NULL; |
|---|
| 21880 | n/a | ComponentResult _rv; |
|---|
| 21881 | n/a | SeqGrabComponent s; |
|---|
| 21882 | n/a | Boolean ok; |
|---|
| 21883 | n/a | #ifndef SGPanelValidateInput |
|---|
| 21884 | n/a | PyMac_PRECHECK(SGPanelValidateInput); |
|---|
| 21885 | n/a | #endif |
|---|
| 21886 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21887 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 21888 | n/a | return NULL; |
|---|
| 21889 | n/a | _rv = SGPanelValidateInput(s, |
|---|
| 21890 | n/a | &ok); |
|---|
| 21891 | n/a | _res = Py_BuildValue("lb", |
|---|
| 21892 | n/a | _rv, |
|---|
| 21893 | n/a | ok); |
|---|
| 21894 | n/a | return _res; |
|---|
| 21895 | n/a | } |
|---|
| 21896 | n/a | |
|---|
| 21897 | n/a | static PyObject *Qt_SGPanelGetDITLForSize(PyObject *_self, PyObject *_args) |
|---|
| 21898 | n/a | { |
|---|
| 21899 | n/a | PyObject *_res = NULL; |
|---|
| 21900 | n/a | ComponentResult _rv; |
|---|
| 21901 | n/a | SeqGrabComponent s; |
|---|
| 21902 | n/a | Handle ditl; |
|---|
| 21903 | n/a | Point requestedSize; |
|---|
| 21904 | n/a | #ifndef SGPanelGetDITLForSize |
|---|
| 21905 | n/a | PyMac_PRECHECK(SGPanelGetDITLForSize); |
|---|
| 21906 | n/a | #endif |
|---|
| 21907 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21908 | n/a | CmpInstObj_Convert, &s)) |
|---|
| 21909 | n/a | return NULL; |
|---|
| 21910 | n/a | _rv = SGPanelGetDITLForSize(s, |
|---|
| 21911 | n/a | &ditl, |
|---|
| 21912 | n/a | &requestedSize); |
|---|
| 21913 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 21914 | n/a | _rv, |
|---|
| 21915 | n/a | ResObj_New, ditl, |
|---|
| 21916 | n/a | PyMac_BuildPoint, requestedSize); |
|---|
| 21917 | n/a | return _res; |
|---|
| 21918 | n/a | } |
|---|
| 21919 | n/a | |
|---|
| 21920 | n/a | static PyObject *Qt_SGGetSrcVideoBounds(PyObject *_self, PyObject *_args) |
|---|
| 21921 | n/a | { |
|---|
| 21922 | n/a | PyObject *_res = NULL; |
|---|
| 21923 | n/a | ComponentResult _rv; |
|---|
| 21924 | n/a | SGChannel c; |
|---|
| 21925 | n/a | Rect r; |
|---|
| 21926 | n/a | #ifndef SGGetSrcVideoBounds |
|---|
| 21927 | n/a | PyMac_PRECHECK(SGGetSrcVideoBounds); |
|---|
| 21928 | n/a | #endif |
|---|
| 21929 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21930 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21931 | n/a | return NULL; |
|---|
| 21932 | n/a | _rv = SGGetSrcVideoBounds(c, |
|---|
| 21933 | n/a | &r); |
|---|
| 21934 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21935 | n/a | _rv, |
|---|
| 21936 | n/a | PyMac_BuildRect, &r); |
|---|
| 21937 | n/a | return _res; |
|---|
| 21938 | n/a | } |
|---|
| 21939 | n/a | |
|---|
| 21940 | n/a | static PyObject *Qt_SGSetVideoRect(PyObject *_self, PyObject *_args) |
|---|
| 21941 | n/a | { |
|---|
| 21942 | n/a | PyObject *_res = NULL; |
|---|
| 21943 | n/a | ComponentResult _rv; |
|---|
| 21944 | n/a | SGChannel c; |
|---|
| 21945 | n/a | Rect r; |
|---|
| 21946 | n/a | #ifndef SGSetVideoRect |
|---|
| 21947 | n/a | PyMac_PRECHECK(SGSetVideoRect); |
|---|
| 21948 | n/a | #endif |
|---|
| 21949 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 21950 | n/a | CmpInstObj_Convert, &c, |
|---|
| 21951 | n/a | PyMac_GetRect, &r)) |
|---|
| 21952 | n/a | return NULL; |
|---|
| 21953 | n/a | _rv = SGSetVideoRect(c, |
|---|
| 21954 | n/a | &r); |
|---|
| 21955 | n/a | _res = Py_BuildValue("l", |
|---|
| 21956 | n/a | _rv); |
|---|
| 21957 | n/a | return _res; |
|---|
| 21958 | n/a | } |
|---|
| 21959 | n/a | |
|---|
| 21960 | n/a | static PyObject *Qt_SGGetVideoRect(PyObject *_self, PyObject *_args) |
|---|
| 21961 | n/a | { |
|---|
| 21962 | n/a | PyObject *_res = NULL; |
|---|
| 21963 | n/a | ComponentResult _rv; |
|---|
| 21964 | n/a | SGChannel c; |
|---|
| 21965 | n/a | Rect r; |
|---|
| 21966 | n/a | #ifndef SGGetVideoRect |
|---|
| 21967 | n/a | PyMac_PRECHECK(SGGetVideoRect); |
|---|
| 21968 | n/a | #endif |
|---|
| 21969 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21970 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21971 | n/a | return NULL; |
|---|
| 21972 | n/a | _rv = SGGetVideoRect(c, |
|---|
| 21973 | n/a | &r); |
|---|
| 21974 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21975 | n/a | _rv, |
|---|
| 21976 | n/a | PyMac_BuildRect, &r); |
|---|
| 21977 | n/a | return _res; |
|---|
| 21978 | n/a | } |
|---|
| 21979 | n/a | |
|---|
| 21980 | n/a | static PyObject *Qt_SGGetVideoCompressorType(PyObject *_self, PyObject *_args) |
|---|
| 21981 | n/a | { |
|---|
| 21982 | n/a | PyObject *_res = NULL; |
|---|
| 21983 | n/a | ComponentResult _rv; |
|---|
| 21984 | n/a | SGChannel c; |
|---|
| 21985 | n/a | OSType compressorType; |
|---|
| 21986 | n/a | #ifndef SGGetVideoCompressorType |
|---|
| 21987 | n/a | PyMac_PRECHECK(SGGetVideoCompressorType); |
|---|
| 21988 | n/a | #endif |
|---|
| 21989 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 21990 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 21991 | n/a | return NULL; |
|---|
| 21992 | n/a | _rv = SGGetVideoCompressorType(c, |
|---|
| 21993 | n/a | &compressorType); |
|---|
| 21994 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 21995 | n/a | _rv, |
|---|
| 21996 | n/a | PyMac_BuildOSType, compressorType); |
|---|
| 21997 | n/a | return _res; |
|---|
| 21998 | n/a | } |
|---|
| 21999 | n/a | |
|---|
| 22000 | n/a | static PyObject *Qt_SGSetVideoCompressorType(PyObject *_self, PyObject *_args) |
|---|
| 22001 | n/a | { |
|---|
| 22002 | n/a | PyObject *_res = NULL; |
|---|
| 22003 | n/a | ComponentResult _rv; |
|---|
| 22004 | n/a | SGChannel c; |
|---|
| 22005 | n/a | OSType compressorType; |
|---|
| 22006 | n/a | #ifndef SGSetVideoCompressorType |
|---|
| 22007 | n/a | PyMac_PRECHECK(SGSetVideoCompressorType); |
|---|
| 22008 | n/a | #endif |
|---|
| 22009 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22010 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22011 | n/a | PyMac_GetOSType, &compressorType)) |
|---|
| 22012 | n/a | return NULL; |
|---|
| 22013 | n/a | _rv = SGSetVideoCompressorType(c, |
|---|
| 22014 | n/a | compressorType); |
|---|
| 22015 | n/a | _res = Py_BuildValue("l", |
|---|
| 22016 | n/a | _rv); |
|---|
| 22017 | n/a | return _res; |
|---|
| 22018 | n/a | } |
|---|
| 22019 | n/a | |
|---|
| 22020 | n/a | static PyObject *Qt_SGSetVideoCompressor(PyObject *_self, PyObject *_args) |
|---|
| 22021 | n/a | { |
|---|
| 22022 | n/a | PyObject *_res = NULL; |
|---|
| 22023 | n/a | ComponentResult _rv; |
|---|
| 22024 | n/a | SGChannel c; |
|---|
| 22025 | n/a | short depth; |
|---|
| 22026 | n/a | CompressorComponent compressor; |
|---|
| 22027 | n/a | CodecQ spatialQuality; |
|---|
| 22028 | n/a | CodecQ temporalQuality; |
|---|
| 22029 | n/a | long keyFrameRate; |
|---|
| 22030 | n/a | #ifndef SGSetVideoCompressor |
|---|
| 22031 | n/a | PyMac_PRECHECK(SGSetVideoCompressor); |
|---|
| 22032 | n/a | #endif |
|---|
| 22033 | n/a | if (!PyArg_ParseTuple(_args, "O&hO&lll", |
|---|
| 22034 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22035 | n/a | &depth, |
|---|
| 22036 | n/a | CmpObj_Convert, &compressor, |
|---|
| 22037 | n/a | &spatialQuality, |
|---|
| 22038 | n/a | &temporalQuality, |
|---|
| 22039 | n/a | &keyFrameRate)) |
|---|
| 22040 | n/a | return NULL; |
|---|
| 22041 | n/a | _rv = SGSetVideoCompressor(c, |
|---|
| 22042 | n/a | depth, |
|---|
| 22043 | n/a | compressor, |
|---|
| 22044 | n/a | spatialQuality, |
|---|
| 22045 | n/a | temporalQuality, |
|---|
| 22046 | n/a | keyFrameRate); |
|---|
| 22047 | n/a | _res = Py_BuildValue("l", |
|---|
| 22048 | n/a | _rv); |
|---|
| 22049 | n/a | return _res; |
|---|
| 22050 | n/a | } |
|---|
| 22051 | n/a | |
|---|
| 22052 | n/a | static PyObject *Qt_SGGetVideoCompressor(PyObject *_self, PyObject *_args) |
|---|
| 22053 | n/a | { |
|---|
| 22054 | n/a | PyObject *_res = NULL; |
|---|
| 22055 | n/a | ComponentResult _rv; |
|---|
| 22056 | n/a | SGChannel c; |
|---|
| 22057 | n/a | short depth; |
|---|
| 22058 | n/a | CompressorComponent compressor; |
|---|
| 22059 | n/a | CodecQ spatialQuality; |
|---|
| 22060 | n/a | CodecQ temporalQuality; |
|---|
| 22061 | n/a | long keyFrameRate; |
|---|
| 22062 | n/a | #ifndef SGGetVideoCompressor |
|---|
| 22063 | n/a | PyMac_PRECHECK(SGGetVideoCompressor); |
|---|
| 22064 | n/a | #endif |
|---|
| 22065 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22066 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22067 | n/a | return NULL; |
|---|
| 22068 | n/a | _rv = SGGetVideoCompressor(c, |
|---|
| 22069 | n/a | &depth, |
|---|
| 22070 | n/a | &compressor, |
|---|
| 22071 | n/a | &spatialQuality, |
|---|
| 22072 | n/a | &temporalQuality, |
|---|
| 22073 | n/a | &keyFrameRate); |
|---|
| 22074 | n/a | _res = Py_BuildValue("lhO&lll", |
|---|
| 22075 | n/a | _rv, |
|---|
| 22076 | n/a | depth, |
|---|
| 22077 | n/a | CmpObj_New, compressor, |
|---|
| 22078 | n/a | spatialQuality, |
|---|
| 22079 | n/a | temporalQuality, |
|---|
| 22080 | n/a | keyFrameRate); |
|---|
| 22081 | n/a | return _res; |
|---|
| 22082 | n/a | } |
|---|
| 22083 | n/a | |
|---|
| 22084 | n/a | static PyObject *Qt_SGGetVideoDigitizerComponent(PyObject *_self, PyObject *_args) |
|---|
| 22085 | n/a | { |
|---|
| 22086 | n/a | PyObject *_res = NULL; |
|---|
| 22087 | n/a | ComponentInstance _rv; |
|---|
| 22088 | n/a | SGChannel c; |
|---|
| 22089 | n/a | #ifndef SGGetVideoDigitizerComponent |
|---|
| 22090 | n/a | PyMac_PRECHECK(SGGetVideoDigitizerComponent); |
|---|
| 22091 | n/a | #endif |
|---|
| 22092 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22093 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22094 | n/a | return NULL; |
|---|
| 22095 | n/a | _rv = SGGetVideoDigitizerComponent(c); |
|---|
| 22096 | n/a | _res = Py_BuildValue("O&", |
|---|
| 22097 | n/a | CmpInstObj_New, _rv); |
|---|
| 22098 | n/a | return _res; |
|---|
| 22099 | n/a | } |
|---|
| 22100 | n/a | |
|---|
| 22101 | n/a | static PyObject *Qt_SGSetVideoDigitizerComponent(PyObject *_self, PyObject *_args) |
|---|
| 22102 | n/a | { |
|---|
| 22103 | n/a | PyObject *_res = NULL; |
|---|
| 22104 | n/a | ComponentResult _rv; |
|---|
| 22105 | n/a | SGChannel c; |
|---|
| 22106 | n/a | ComponentInstance vdig; |
|---|
| 22107 | n/a | #ifndef SGSetVideoDigitizerComponent |
|---|
| 22108 | n/a | PyMac_PRECHECK(SGSetVideoDigitizerComponent); |
|---|
| 22109 | n/a | #endif |
|---|
| 22110 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22111 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22112 | n/a | CmpInstObj_Convert, &vdig)) |
|---|
| 22113 | n/a | return NULL; |
|---|
| 22114 | n/a | _rv = SGSetVideoDigitizerComponent(c, |
|---|
| 22115 | n/a | vdig); |
|---|
| 22116 | n/a | _res = Py_BuildValue("l", |
|---|
| 22117 | n/a | _rv); |
|---|
| 22118 | n/a | return _res; |
|---|
| 22119 | n/a | } |
|---|
| 22120 | n/a | |
|---|
| 22121 | n/a | static PyObject *Qt_SGVideoDigitizerChanged(PyObject *_self, PyObject *_args) |
|---|
| 22122 | n/a | { |
|---|
| 22123 | n/a | PyObject *_res = NULL; |
|---|
| 22124 | n/a | ComponentResult _rv; |
|---|
| 22125 | n/a | SGChannel c; |
|---|
| 22126 | n/a | #ifndef SGVideoDigitizerChanged |
|---|
| 22127 | n/a | PyMac_PRECHECK(SGVideoDigitizerChanged); |
|---|
| 22128 | n/a | #endif |
|---|
| 22129 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22130 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22131 | n/a | return NULL; |
|---|
| 22132 | n/a | _rv = SGVideoDigitizerChanged(c); |
|---|
| 22133 | n/a | _res = Py_BuildValue("l", |
|---|
| 22134 | n/a | _rv); |
|---|
| 22135 | n/a | return _res; |
|---|
| 22136 | n/a | } |
|---|
| 22137 | n/a | |
|---|
| 22138 | n/a | static PyObject *Qt_SGGrabFrame(PyObject *_self, PyObject *_args) |
|---|
| 22139 | n/a | { |
|---|
| 22140 | n/a | PyObject *_res = NULL; |
|---|
| 22141 | n/a | ComponentResult _rv; |
|---|
| 22142 | n/a | SGChannel c; |
|---|
| 22143 | n/a | short bufferNum; |
|---|
| 22144 | n/a | #ifndef SGGrabFrame |
|---|
| 22145 | n/a | PyMac_PRECHECK(SGGrabFrame); |
|---|
| 22146 | n/a | #endif |
|---|
| 22147 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22148 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22149 | n/a | &bufferNum)) |
|---|
| 22150 | n/a | return NULL; |
|---|
| 22151 | n/a | _rv = SGGrabFrame(c, |
|---|
| 22152 | n/a | bufferNum); |
|---|
| 22153 | n/a | _res = Py_BuildValue("l", |
|---|
| 22154 | n/a | _rv); |
|---|
| 22155 | n/a | return _res; |
|---|
| 22156 | n/a | } |
|---|
| 22157 | n/a | |
|---|
| 22158 | n/a | static PyObject *Qt_SGGrabFrameComplete(PyObject *_self, PyObject *_args) |
|---|
| 22159 | n/a | { |
|---|
| 22160 | n/a | PyObject *_res = NULL; |
|---|
| 22161 | n/a | ComponentResult _rv; |
|---|
| 22162 | n/a | SGChannel c; |
|---|
| 22163 | n/a | short bufferNum; |
|---|
| 22164 | n/a | Boolean done; |
|---|
| 22165 | n/a | #ifndef SGGrabFrameComplete |
|---|
| 22166 | n/a | PyMac_PRECHECK(SGGrabFrameComplete); |
|---|
| 22167 | n/a | #endif |
|---|
| 22168 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22169 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22170 | n/a | &bufferNum)) |
|---|
| 22171 | n/a | return NULL; |
|---|
| 22172 | n/a | _rv = SGGrabFrameComplete(c, |
|---|
| 22173 | n/a | bufferNum, |
|---|
| 22174 | n/a | &done); |
|---|
| 22175 | n/a | _res = Py_BuildValue("lb", |
|---|
| 22176 | n/a | _rv, |
|---|
| 22177 | n/a | done); |
|---|
| 22178 | n/a | return _res; |
|---|
| 22179 | n/a | } |
|---|
| 22180 | n/a | |
|---|
| 22181 | n/a | static PyObject *Qt_SGCompressFrame(PyObject *_self, PyObject *_args) |
|---|
| 22182 | n/a | { |
|---|
| 22183 | n/a | PyObject *_res = NULL; |
|---|
| 22184 | n/a | ComponentResult _rv; |
|---|
| 22185 | n/a | SGChannel c; |
|---|
| 22186 | n/a | short bufferNum; |
|---|
| 22187 | n/a | #ifndef SGCompressFrame |
|---|
| 22188 | n/a | PyMac_PRECHECK(SGCompressFrame); |
|---|
| 22189 | n/a | #endif |
|---|
| 22190 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22191 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22192 | n/a | &bufferNum)) |
|---|
| 22193 | n/a | return NULL; |
|---|
| 22194 | n/a | _rv = SGCompressFrame(c, |
|---|
| 22195 | n/a | bufferNum); |
|---|
| 22196 | n/a | _res = Py_BuildValue("l", |
|---|
| 22197 | n/a | _rv); |
|---|
| 22198 | n/a | return _res; |
|---|
| 22199 | n/a | } |
|---|
| 22200 | n/a | |
|---|
| 22201 | n/a | static PyObject *Qt_SGSetCompressBuffer(PyObject *_self, PyObject *_args) |
|---|
| 22202 | n/a | { |
|---|
| 22203 | n/a | PyObject *_res = NULL; |
|---|
| 22204 | n/a | ComponentResult _rv; |
|---|
| 22205 | n/a | SGChannel c; |
|---|
| 22206 | n/a | short depth; |
|---|
| 22207 | n/a | Rect compressSize; |
|---|
| 22208 | n/a | #ifndef SGSetCompressBuffer |
|---|
| 22209 | n/a | PyMac_PRECHECK(SGSetCompressBuffer); |
|---|
| 22210 | n/a | #endif |
|---|
| 22211 | n/a | if (!PyArg_ParseTuple(_args, "O&hO&", |
|---|
| 22212 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22213 | n/a | &depth, |
|---|
| 22214 | n/a | PyMac_GetRect, &compressSize)) |
|---|
| 22215 | n/a | return NULL; |
|---|
| 22216 | n/a | _rv = SGSetCompressBuffer(c, |
|---|
| 22217 | n/a | depth, |
|---|
| 22218 | n/a | &compressSize); |
|---|
| 22219 | n/a | _res = Py_BuildValue("l", |
|---|
| 22220 | n/a | _rv); |
|---|
| 22221 | n/a | return _res; |
|---|
| 22222 | n/a | } |
|---|
| 22223 | n/a | |
|---|
| 22224 | n/a | static PyObject *Qt_SGGetCompressBuffer(PyObject *_self, PyObject *_args) |
|---|
| 22225 | n/a | { |
|---|
| 22226 | n/a | PyObject *_res = NULL; |
|---|
| 22227 | n/a | ComponentResult _rv; |
|---|
| 22228 | n/a | SGChannel c; |
|---|
| 22229 | n/a | short depth; |
|---|
| 22230 | n/a | Rect compressSize; |
|---|
| 22231 | n/a | #ifndef SGGetCompressBuffer |
|---|
| 22232 | n/a | PyMac_PRECHECK(SGGetCompressBuffer); |
|---|
| 22233 | n/a | #endif |
|---|
| 22234 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22235 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22236 | n/a | return NULL; |
|---|
| 22237 | n/a | _rv = SGGetCompressBuffer(c, |
|---|
| 22238 | n/a | &depth, |
|---|
| 22239 | n/a | &compressSize); |
|---|
| 22240 | n/a | _res = Py_BuildValue("lhO&", |
|---|
| 22241 | n/a | _rv, |
|---|
| 22242 | n/a | depth, |
|---|
| 22243 | n/a | PyMac_BuildRect, &compressSize); |
|---|
| 22244 | n/a | return _res; |
|---|
| 22245 | n/a | } |
|---|
| 22246 | n/a | |
|---|
| 22247 | n/a | static PyObject *Qt_SGGetBufferInfo(PyObject *_self, PyObject *_args) |
|---|
| 22248 | n/a | { |
|---|
| 22249 | n/a | PyObject *_res = NULL; |
|---|
| 22250 | n/a | ComponentResult _rv; |
|---|
| 22251 | n/a | SGChannel c; |
|---|
| 22252 | n/a | short bufferNum; |
|---|
| 22253 | n/a | PixMapHandle bufferPM; |
|---|
| 22254 | n/a | Rect bufferRect; |
|---|
| 22255 | n/a | GWorldPtr compressBuffer; |
|---|
| 22256 | n/a | Rect compressBufferRect; |
|---|
| 22257 | n/a | #ifndef SGGetBufferInfo |
|---|
| 22258 | n/a | PyMac_PRECHECK(SGGetBufferInfo); |
|---|
| 22259 | n/a | #endif |
|---|
| 22260 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22261 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22262 | n/a | &bufferNum)) |
|---|
| 22263 | n/a | return NULL; |
|---|
| 22264 | n/a | _rv = SGGetBufferInfo(c, |
|---|
| 22265 | n/a | bufferNum, |
|---|
| 22266 | n/a | &bufferPM, |
|---|
| 22267 | n/a | &bufferRect, |
|---|
| 22268 | n/a | &compressBuffer, |
|---|
| 22269 | n/a | &compressBufferRect); |
|---|
| 22270 | n/a | _res = Py_BuildValue("lO&O&O&O&", |
|---|
| 22271 | n/a | _rv, |
|---|
| 22272 | n/a | ResObj_New, bufferPM, |
|---|
| 22273 | n/a | PyMac_BuildRect, &bufferRect, |
|---|
| 22274 | n/a | GWorldObj_New, compressBuffer, |
|---|
| 22275 | n/a | PyMac_BuildRect, &compressBufferRect); |
|---|
| 22276 | n/a | return _res; |
|---|
| 22277 | n/a | } |
|---|
| 22278 | n/a | |
|---|
| 22279 | n/a | static PyObject *Qt_SGSetUseScreenBuffer(PyObject *_self, PyObject *_args) |
|---|
| 22280 | n/a | { |
|---|
| 22281 | n/a | PyObject *_res = NULL; |
|---|
| 22282 | n/a | ComponentResult _rv; |
|---|
| 22283 | n/a | SGChannel c; |
|---|
| 22284 | n/a | Boolean useScreenBuffer; |
|---|
| 22285 | n/a | #ifndef SGSetUseScreenBuffer |
|---|
| 22286 | n/a | PyMac_PRECHECK(SGSetUseScreenBuffer); |
|---|
| 22287 | n/a | #endif |
|---|
| 22288 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 22289 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22290 | n/a | &useScreenBuffer)) |
|---|
| 22291 | n/a | return NULL; |
|---|
| 22292 | n/a | _rv = SGSetUseScreenBuffer(c, |
|---|
| 22293 | n/a | useScreenBuffer); |
|---|
| 22294 | n/a | _res = Py_BuildValue("l", |
|---|
| 22295 | n/a | _rv); |
|---|
| 22296 | n/a | return _res; |
|---|
| 22297 | n/a | } |
|---|
| 22298 | n/a | |
|---|
| 22299 | n/a | static PyObject *Qt_SGGetUseScreenBuffer(PyObject *_self, PyObject *_args) |
|---|
| 22300 | n/a | { |
|---|
| 22301 | n/a | PyObject *_res = NULL; |
|---|
| 22302 | n/a | ComponentResult _rv; |
|---|
| 22303 | n/a | SGChannel c; |
|---|
| 22304 | n/a | Boolean useScreenBuffer; |
|---|
| 22305 | n/a | #ifndef SGGetUseScreenBuffer |
|---|
| 22306 | n/a | PyMac_PRECHECK(SGGetUseScreenBuffer); |
|---|
| 22307 | n/a | #endif |
|---|
| 22308 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22309 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22310 | n/a | return NULL; |
|---|
| 22311 | n/a | _rv = SGGetUseScreenBuffer(c, |
|---|
| 22312 | n/a | &useScreenBuffer); |
|---|
| 22313 | n/a | _res = Py_BuildValue("lb", |
|---|
| 22314 | n/a | _rv, |
|---|
| 22315 | n/a | useScreenBuffer); |
|---|
| 22316 | n/a | return _res; |
|---|
| 22317 | n/a | } |
|---|
| 22318 | n/a | |
|---|
| 22319 | n/a | static PyObject *Qt_SGSetFrameRate(PyObject *_self, PyObject *_args) |
|---|
| 22320 | n/a | { |
|---|
| 22321 | n/a | PyObject *_res = NULL; |
|---|
| 22322 | n/a | ComponentResult _rv; |
|---|
| 22323 | n/a | SGChannel c; |
|---|
| 22324 | n/a | Fixed frameRate; |
|---|
| 22325 | n/a | #ifndef SGSetFrameRate |
|---|
| 22326 | n/a | PyMac_PRECHECK(SGSetFrameRate); |
|---|
| 22327 | n/a | #endif |
|---|
| 22328 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22329 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22330 | n/a | PyMac_GetFixed, &frameRate)) |
|---|
| 22331 | n/a | return NULL; |
|---|
| 22332 | n/a | _rv = SGSetFrameRate(c, |
|---|
| 22333 | n/a | frameRate); |
|---|
| 22334 | n/a | _res = Py_BuildValue("l", |
|---|
| 22335 | n/a | _rv); |
|---|
| 22336 | n/a | return _res; |
|---|
| 22337 | n/a | } |
|---|
| 22338 | n/a | |
|---|
| 22339 | n/a | static PyObject *Qt_SGGetFrameRate(PyObject *_self, PyObject *_args) |
|---|
| 22340 | n/a | { |
|---|
| 22341 | n/a | PyObject *_res = NULL; |
|---|
| 22342 | n/a | ComponentResult _rv; |
|---|
| 22343 | n/a | SGChannel c; |
|---|
| 22344 | n/a | Fixed frameRate; |
|---|
| 22345 | n/a | #ifndef SGGetFrameRate |
|---|
| 22346 | n/a | PyMac_PRECHECK(SGGetFrameRate); |
|---|
| 22347 | n/a | #endif |
|---|
| 22348 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22349 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22350 | n/a | return NULL; |
|---|
| 22351 | n/a | _rv = SGGetFrameRate(c, |
|---|
| 22352 | n/a | &frameRate); |
|---|
| 22353 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22354 | n/a | _rv, |
|---|
| 22355 | n/a | PyMac_BuildFixed, frameRate); |
|---|
| 22356 | n/a | return _res; |
|---|
| 22357 | n/a | } |
|---|
| 22358 | n/a | |
|---|
| 22359 | n/a | static PyObject *Qt_SGSetPreferredPacketSize(PyObject *_self, PyObject *_args) |
|---|
| 22360 | n/a | { |
|---|
| 22361 | n/a | PyObject *_res = NULL; |
|---|
| 22362 | n/a | ComponentResult _rv; |
|---|
| 22363 | n/a | SGChannel c; |
|---|
| 22364 | n/a | long preferredPacketSizeInBytes; |
|---|
| 22365 | n/a | #ifndef SGSetPreferredPacketSize |
|---|
| 22366 | n/a | PyMac_PRECHECK(SGSetPreferredPacketSize); |
|---|
| 22367 | n/a | #endif |
|---|
| 22368 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 22369 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22370 | n/a | &preferredPacketSizeInBytes)) |
|---|
| 22371 | n/a | return NULL; |
|---|
| 22372 | n/a | _rv = SGSetPreferredPacketSize(c, |
|---|
| 22373 | n/a | preferredPacketSizeInBytes); |
|---|
| 22374 | n/a | _res = Py_BuildValue("l", |
|---|
| 22375 | n/a | _rv); |
|---|
| 22376 | n/a | return _res; |
|---|
| 22377 | n/a | } |
|---|
| 22378 | n/a | |
|---|
| 22379 | n/a | static PyObject *Qt_SGGetPreferredPacketSize(PyObject *_self, PyObject *_args) |
|---|
| 22380 | n/a | { |
|---|
| 22381 | n/a | PyObject *_res = NULL; |
|---|
| 22382 | n/a | ComponentResult _rv; |
|---|
| 22383 | n/a | SGChannel c; |
|---|
| 22384 | n/a | long preferredPacketSizeInBytes; |
|---|
| 22385 | n/a | #ifndef SGGetPreferredPacketSize |
|---|
| 22386 | n/a | PyMac_PRECHECK(SGGetPreferredPacketSize); |
|---|
| 22387 | n/a | #endif |
|---|
| 22388 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22389 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22390 | n/a | return NULL; |
|---|
| 22391 | n/a | _rv = SGGetPreferredPacketSize(c, |
|---|
| 22392 | n/a | &preferredPacketSizeInBytes); |
|---|
| 22393 | n/a | _res = Py_BuildValue("ll", |
|---|
| 22394 | n/a | _rv, |
|---|
| 22395 | n/a | preferredPacketSizeInBytes); |
|---|
| 22396 | n/a | return _res; |
|---|
| 22397 | n/a | } |
|---|
| 22398 | n/a | |
|---|
| 22399 | n/a | static PyObject *Qt_SGSetUserVideoCompressorList(PyObject *_self, PyObject *_args) |
|---|
| 22400 | n/a | { |
|---|
| 22401 | n/a | PyObject *_res = NULL; |
|---|
| 22402 | n/a | ComponentResult _rv; |
|---|
| 22403 | n/a | SGChannel c; |
|---|
| 22404 | n/a | Handle compressorTypes; |
|---|
| 22405 | n/a | #ifndef SGSetUserVideoCompressorList |
|---|
| 22406 | n/a | PyMac_PRECHECK(SGSetUserVideoCompressorList); |
|---|
| 22407 | n/a | #endif |
|---|
| 22408 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22409 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22410 | n/a | ResObj_Convert, &compressorTypes)) |
|---|
| 22411 | n/a | return NULL; |
|---|
| 22412 | n/a | _rv = SGSetUserVideoCompressorList(c, |
|---|
| 22413 | n/a | compressorTypes); |
|---|
| 22414 | n/a | _res = Py_BuildValue("l", |
|---|
| 22415 | n/a | _rv); |
|---|
| 22416 | n/a | return _res; |
|---|
| 22417 | n/a | } |
|---|
| 22418 | n/a | |
|---|
| 22419 | n/a | static PyObject *Qt_SGGetUserVideoCompressorList(PyObject *_self, PyObject *_args) |
|---|
| 22420 | n/a | { |
|---|
| 22421 | n/a | PyObject *_res = NULL; |
|---|
| 22422 | n/a | ComponentResult _rv; |
|---|
| 22423 | n/a | SGChannel c; |
|---|
| 22424 | n/a | Handle compressorTypes; |
|---|
| 22425 | n/a | #ifndef SGGetUserVideoCompressorList |
|---|
| 22426 | n/a | PyMac_PRECHECK(SGGetUserVideoCompressorList); |
|---|
| 22427 | n/a | #endif |
|---|
| 22428 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22429 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22430 | n/a | return NULL; |
|---|
| 22431 | n/a | _rv = SGGetUserVideoCompressorList(c, |
|---|
| 22432 | n/a | &compressorTypes); |
|---|
| 22433 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22434 | n/a | _rv, |
|---|
| 22435 | n/a | ResObj_New, compressorTypes); |
|---|
| 22436 | n/a | return _res; |
|---|
| 22437 | n/a | } |
|---|
| 22438 | n/a | |
|---|
| 22439 | n/a | static PyObject *Qt_SGSetSoundInputDriver(PyObject *_self, PyObject *_args) |
|---|
| 22440 | n/a | { |
|---|
| 22441 | n/a | PyObject *_res = NULL; |
|---|
| 22442 | n/a | ComponentResult _rv; |
|---|
| 22443 | n/a | SGChannel c; |
|---|
| 22444 | n/a | Str255 driverName; |
|---|
| 22445 | n/a | #ifndef SGSetSoundInputDriver |
|---|
| 22446 | n/a | PyMac_PRECHECK(SGSetSoundInputDriver); |
|---|
| 22447 | n/a | #endif |
|---|
| 22448 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22449 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22450 | n/a | PyMac_GetStr255, driverName)) |
|---|
| 22451 | n/a | return NULL; |
|---|
| 22452 | n/a | _rv = SGSetSoundInputDriver(c, |
|---|
| 22453 | n/a | driverName); |
|---|
| 22454 | n/a | _res = Py_BuildValue("l", |
|---|
| 22455 | n/a | _rv); |
|---|
| 22456 | n/a | return _res; |
|---|
| 22457 | n/a | } |
|---|
| 22458 | n/a | |
|---|
| 22459 | n/a | static PyObject *Qt_SGGetSoundInputDriver(PyObject *_self, PyObject *_args) |
|---|
| 22460 | n/a | { |
|---|
| 22461 | n/a | PyObject *_res = NULL; |
|---|
| 22462 | n/a | long _rv; |
|---|
| 22463 | n/a | SGChannel c; |
|---|
| 22464 | n/a | #ifndef SGGetSoundInputDriver |
|---|
| 22465 | n/a | PyMac_PRECHECK(SGGetSoundInputDriver); |
|---|
| 22466 | n/a | #endif |
|---|
| 22467 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22468 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22469 | n/a | return NULL; |
|---|
| 22470 | n/a | _rv = SGGetSoundInputDriver(c); |
|---|
| 22471 | n/a | _res = Py_BuildValue("l", |
|---|
| 22472 | n/a | _rv); |
|---|
| 22473 | n/a | return _res; |
|---|
| 22474 | n/a | } |
|---|
| 22475 | n/a | |
|---|
| 22476 | n/a | static PyObject *Qt_SGSoundInputDriverChanged(PyObject *_self, PyObject *_args) |
|---|
| 22477 | n/a | { |
|---|
| 22478 | n/a | PyObject *_res = NULL; |
|---|
| 22479 | n/a | ComponentResult _rv; |
|---|
| 22480 | n/a | SGChannel c; |
|---|
| 22481 | n/a | #ifndef SGSoundInputDriverChanged |
|---|
| 22482 | n/a | PyMac_PRECHECK(SGSoundInputDriverChanged); |
|---|
| 22483 | n/a | #endif |
|---|
| 22484 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22485 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22486 | n/a | return NULL; |
|---|
| 22487 | n/a | _rv = SGSoundInputDriverChanged(c); |
|---|
| 22488 | n/a | _res = Py_BuildValue("l", |
|---|
| 22489 | n/a | _rv); |
|---|
| 22490 | n/a | return _res; |
|---|
| 22491 | n/a | } |
|---|
| 22492 | n/a | |
|---|
| 22493 | n/a | static PyObject *Qt_SGSetSoundRecordChunkSize(PyObject *_self, PyObject *_args) |
|---|
| 22494 | n/a | { |
|---|
| 22495 | n/a | PyObject *_res = NULL; |
|---|
| 22496 | n/a | ComponentResult _rv; |
|---|
| 22497 | n/a | SGChannel c; |
|---|
| 22498 | n/a | long seconds; |
|---|
| 22499 | n/a | #ifndef SGSetSoundRecordChunkSize |
|---|
| 22500 | n/a | PyMac_PRECHECK(SGSetSoundRecordChunkSize); |
|---|
| 22501 | n/a | #endif |
|---|
| 22502 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 22503 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22504 | n/a | &seconds)) |
|---|
| 22505 | n/a | return NULL; |
|---|
| 22506 | n/a | _rv = SGSetSoundRecordChunkSize(c, |
|---|
| 22507 | n/a | seconds); |
|---|
| 22508 | n/a | _res = Py_BuildValue("l", |
|---|
| 22509 | n/a | _rv); |
|---|
| 22510 | n/a | return _res; |
|---|
| 22511 | n/a | } |
|---|
| 22512 | n/a | |
|---|
| 22513 | n/a | static PyObject *Qt_SGGetSoundRecordChunkSize(PyObject *_self, PyObject *_args) |
|---|
| 22514 | n/a | { |
|---|
| 22515 | n/a | PyObject *_res = NULL; |
|---|
| 22516 | n/a | long _rv; |
|---|
| 22517 | n/a | SGChannel c; |
|---|
| 22518 | n/a | #ifndef SGGetSoundRecordChunkSize |
|---|
| 22519 | n/a | PyMac_PRECHECK(SGGetSoundRecordChunkSize); |
|---|
| 22520 | n/a | #endif |
|---|
| 22521 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22522 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22523 | n/a | return NULL; |
|---|
| 22524 | n/a | _rv = SGGetSoundRecordChunkSize(c); |
|---|
| 22525 | n/a | _res = Py_BuildValue("l", |
|---|
| 22526 | n/a | _rv); |
|---|
| 22527 | n/a | return _res; |
|---|
| 22528 | n/a | } |
|---|
| 22529 | n/a | |
|---|
| 22530 | n/a | static PyObject *Qt_SGSetSoundInputRate(PyObject *_self, PyObject *_args) |
|---|
| 22531 | n/a | { |
|---|
| 22532 | n/a | PyObject *_res = NULL; |
|---|
| 22533 | n/a | ComponentResult _rv; |
|---|
| 22534 | n/a | SGChannel c; |
|---|
| 22535 | n/a | Fixed rate; |
|---|
| 22536 | n/a | #ifndef SGSetSoundInputRate |
|---|
| 22537 | n/a | PyMac_PRECHECK(SGSetSoundInputRate); |
|---|
| 22538 | n/a | #endif |
|---|
| 22539 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22540 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22541 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 22542 | n/a | return NULL; |
|---|
| 22543 | n/a | _rv = SGSetSoundInputRate(c, |
|---|
| 22544 | n/a | rate); |
|---|
| 22545 | n/a | _res = Py_BuildValue("l", |
|---|
| 22546 | n/a | _rv); |
|---|
| 22547 | n/a | return _res; |
|---|
| 22548 | n/a | } |
|---|
| 22549 | n/a | |
|---|
| 22550 | n/a | static PyObject *Qt_SGGetSoundInputRate(PyObject *_self, PyObject *_args) |
|---|
| 22551 | n/a | { |
|---|
| 22552 | n/a | PyObject *_res = NULL; |
|---|
| 22553 | n/a | Fixed _rv; |
|---|
| 22554 | n/a | SGChannel c; |
|---|
| 22555 | n/a | #ifndef SGGetSoundInputRate |
|---|
| 22556 | n/a | PyMac_PRECHECK(SGGetSoundInputRate); |
|---|
| 22557 | n/a | #endif |
|---|
| 22558 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22559 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22560 | n/a | return NULL; |
|---|
| 22561 | n/a | _rv = SGGetSoundInputRate(c); |
|---|
| 22562 | n/a | _res = Py_BuildValue("O&", |
|---|
| 22563 | n/a | PyMac_BuildFixed, _rv); |
|---|
| 22564 | n/a | return _res; |
|---|
| 22565 | n/a | } |
|---|
| 22566 | n/a | |
|---|
| 22567 | n/a | static PyObject *Qt_SGSetSoundInputParameters(PyObject *_self, PyObject *_args) |
|---|
| 22568 | n/a | { |
|---|
| 22569 | n/a | PyObject *_res = NULL; |
|---|
| 22570 | n/a | ComponentResult _rv; |
|---|
| 22571 | n/a | SGChannel c; |
|---|
| 22572 | n/a | short sampleSize; |
|---|
| 22573 | n/a | short numChannels; |
|---|
| 22574 | n/a | OSType compressionType; |
|---|
| 22575 | n/a | #ifndef SGSetSoundInputParameters |
|---|
| 22576 | n/a | PyMac_PRECHECK(SGSetSoundInputParameters); |
|---|
| 22577 | n/a | #endif |
|---|
| 22578 | n/a | if (!PyArg_ParseTuple(_args, "O&hhO&", |
|---|
| 22579 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22580 | n/a | &sampleSize, |
|---|
| 22581 | n/a | &numChannels, |
|---|
| 22582 | n/a | PyMac_GetOSType, &compressionType)) |
|---|
| 22583 | n/a | return NULL; |
|---|
| 22584 | n/a | _rv = SGSetSoundInputParameters(c, |
|---|
| 22585 | n/a | sampleSize, |
|---|
| 22586 | n/a | numChannels, |
|---|
| 22587 | n/a | compressionType); |
|---|
| 22588 | n/a | _res = Py_BuildValue("l", |
|---|
| 22589 | n/a | _rv); |
|---|
| 22590 | n/a | return _res; |
|---|
| 22591 | n/a | } |
|---|
| 22592 | n/a | |
|---|
| 22593 | n/a | static PyObject *Qt_SGGetSoundInputParameters(PyObject *_self, PyObject *_args) |
|---|
| 22594 | n/a | { |
|---|
| 22595 | n/a | PyObject *_res = NULL; |
|---|
| 22596 | n/a | ComponentResult _rv; |
|---|
| 22597 | n/a | SGChannel c; |
|---|
| 22598 | n/a | short sampleSize; |
|---|
| 22599 | n/a | short numChannels; |
|---|
| 22600 | n/a | OSType compressionType; |
|---|
| 22601 | n/a | #ifndef SGGetSoundInputParameters |
|---|
| 22602 | n/a | PyMac_PRECHECK(SGGetSoundInputParameters); |
|---|
| 22603 | n/a | #endif |
|---|
| 22604 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22605 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22606 | n/a | return NULL; |
|---|
| 22607 | n/a | _rv = SGGetSoundInputParameters(c, |
|---|
| 22608 | n/a | &sampleSize, |
|---|
| 22609 | n/a | &numChannels, |
|---|
| 22610 | n/a | &compressionType); |
|---|
| 22611 | n/a | _res = Py_BuildValue("lhhO&", |
|---|
| 22612 | n/a | _rv, |
|---|
| 22613 | n/a | sampleSize, |
|---|
| 22614 | n/a | numChannels, |
|---|
| 22615 | n/a | PyMac_BuildOSType, compressionType); |
|---|
| 22616 | n/a | return _res; |
|---|
| 22617 | n/a | } |
|---|
| 22618 | n/a | |
|---|
| 22619 | n/a | static PyObject *Qt_SGSetAdditionalSoundRates(PyObject *_self, PyObject *_args) |
|---|
| 22620 | n/a | { |
|---|
| 22621 | n/a | PyObject *_res = NULL; |
|---|
| 22622 | n/a | ComponentResult _rv; |
|---|
| 22623 | n/a | SGChannel c; |
|---|
| 22624 | n/a | Handle rates; |
|---|
| 22625 | n/a | #ifndef SGSetAdditionalSoundRates |
|---|
| 22626 | n/a | PyMac_PRECHECK(SGSetAdditionalSoundRates); |
|---|
| 22627 | n/a | #endif |
|---|
| 22628 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22629 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22630 | n/a | ResObj_Convert, &rates)) |
|---|
| 22631 | n/a | return NULL; |
|---|
| 22632 | n/a | _rv = SGSetAdditionalSoundRates(c, |
|---|
| 22633 | n/a | rates); |
|---|
| 22634 | n/a | _res = Py_BuildValue("l", |
|---|
| 22635 | n/a | _rv); |
|---|
| 22636 | n/a | return _res; |
|---|
| 22637 | n/a | } |
|---|
| 22638 | n/a | |
|---|
| 22639 | n/a | static PyObject *Qt_SGGetAdditionalSoundRates(PyObject *_self, PyObject *_args) |
|---|
| 22640 | n/a | { |
|---|
| 22641 | n/a | PyObject *_res = NULL; |
|---|
| 22642 | n/a | ComponentResult _rv; |
|---|
| 22643 | n/a | SGChannel c; |
|---|
| 22644 | n/a | Handle rates; |
|---|
| 22645 | n/a | #ifndef SGGetAdditionalSoundRates |
|---|
| 22646 | n/a | PyMac_PRECHECK(SGGetAdditionalSoundRates); |
|---|
| 22647 | n/a | #endif |
|---|
| 22648 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22649 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22650 | n/a | return NULL; |
|---|
| 22651 | n/a | _rv = SGGetAdditionalSoundRates(c, |
|---|
| 22652 | n/a | &rates); |
|---|
| 22653 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22654 | n/a | _rv, |
|---|
| 22655 | n/a | ResObj_New, rates); |
|---|
| 22656 | n/a | return _res; |
|---|
| 22657 | n/a | } |
|---|
| 22658 | n/a | |
|---|
| 22659 | n/a | static PyObject *Qt_SGSetFontName(PyObject *_self, PyObject *_args) |
|---|
| 22660 | n/a | { |
|---|
| 22661 | n/a | PyObject *_res = NULL; |
|---|
| 22662 | n/a | ComponentResult _rv; |
|---|
| 22663 | n/a | SGChannel c; |
|---|
| 22664 | n/a | StringPtr pstr; |
|---|
| 22665 | n/a | #ifndef SGSetFontName |
|---|
| 22666 | n/a | PyMac_PRECHECK(SGSetFontName); |
|---|
| 22667 | n/a | #endif |
|---|
| 22668 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 22669 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22670 | n/a | &pstr)) |
|---|
| 22671 | n/a | return NULL; |
|---|
| 22672 | n/a | _rv = SGSetFontName(c, |
|---|
| 22673 | n/a | pstr); |
|---|
| 22674 | n/a | _res = Py_BuildValue("l", |
|---|
| 22675 | n/a | _rv); |
|---|
| 22676 | n/a | return _res; |
|---|
| 22677 | n/a | } |
|---|
| 22678 | n/a | |
|---|
| 22679 | n/a | static PyObject *Qt_SGSetFontSize(PyObject *_self, PyObject *_args) |
|---|
| 22680 | n/a | { |
|---|
| 22681 | n/a | PyObject *_res = NULL; |
|---|
| 22682 | n/a | ComponentResult _rv; |
|---|
| 22683 | n/a | SGChannel c; |
|---|
| 22684 | n/a | short fontSize; |
|---|
| 22685 | n/a | #ifndef SGSetFontSize |
|---|
| 22686 | n/a | PyMac_PRECHECK(SGSetFontSize); |
|---|
| 22687 | n/a | #endif |
|---|
| 22688 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22689 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22690 | n/a | &fontSize)) |
|---|
| 22691 | n/a | return NULL; |
|---|
| 22692 | n/a | _rv = SGSetFontSize(c, |
|---|
| 22693 | n/a | fontSize); |
|---|
| 22694 | n/a | _res = Py_BuildValue("l", |
|---|
| 22695 | n/a | _rv); |
|---|
| 22696 | n/a | return _res; |
|---|
| 22697 | n/a | } |
|---|
| 22698 | n/a | |
|---|
| 22699 | n/a | static PyObject *Qt_SGSetTextForeColor(PyObject *_self, PyObject *_args) |
|---|
| 22700 | n/a | { |
|---|
| 22701 | n/a | PyObject *_res = NULL; |
|---|
| 22702 | n/a | ComponentResult _rv; |
|---|
| 22703 | n/a | SGChannel c; |
|---|
| 22704 | n/a | RGBColor theColor; |
|---|
| 22705 | n/a | #ifndef SGSetTextForeColor |
|---|
| 22706 | n/a | PyMac_PRECHECK(SGSetTextForeColor); |
|---|
| 22707 | n/a | #endif |
|---|
| 22708 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22709 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22710 | n/a | return NULL; |
|---|
| 22711 | n/a | _rv = SGSetTextForeColor(c, |
|---|
| 22712 | n/a | &theColor); |
|---|
| 22713 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22714 | n/a | _rv, |
|---|
| 22715 | n/a | QdRGB_New, &theColor); |
|---|
| 22716 | n/a | return _res; |
|---|
| 22717 | n/a | } |
|---|
| 22718 | n/a | |
|---|
| 22719 | n/a | static PyObject *Qt_SGSetTextBackColor(PyObject *_self, PyObject *_args) |
|---|
| 22720 | n/a | { |
|---|
| 22721 | n/a | PyObject *_res = NULL; |
|---|
| 22722 | n/a | ComponentResult _rv; |
|---|
| 22723 | n/a | SGChannel c; |
|---|
| 22724 | n/a | RGBColor theColor; |
|---|
| 22725 | n/a | #ifndef SGSetTextBackColor |
|---|
| 22726 | n/a | PyMac_PRECHECK(SGSetTextBackColor); |
|---|
| 22727 | n/a | #endif |
|---|
| 22728 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22729 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22730 | n/a | return NULL; |
|---|
| 22731 | n/a | _rv = SGSetTextBackColor(c, |
|---|
| 22732 | n/a | &theColor); |
|---|
| 22733 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22734 | n/a | _rv, |
|---|
| 22735 | n/a | QdRGB_New, &theColor); |
|---|
| 22736 | n/a | return _res; |
|---|
| 22737 | n/a | } |
|---|
| 22738 | n/a | |
|---|
| 22739 | n/a | static PyObject *Qt_SGSetJustification(PyObject *_self, PyObject *_args) |
|---|
| 22740 | n/a | { |
|---|
| 22741 | n/a | PyObject *_res = NULL; |
|---|
| 22742 | n/a | ComponentResult _rv; |
|---|
| 22743 | n/a | SGChannel c; |
|---|
| 22744 | n/a | short just; |
|---|
| 22745 | n/a | #ifndef SGSetJustification |
|---|
| 22746 | n/a | PyMac_PRECHECK(SGSetJustification); |
|---|
| 22747 | n/a | #endif |
|---|
| 22748 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22749 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22750 | n/a | &just)) |
|---|
| 22751 | n/a | return NULL; |
|---|
| 22752 | n/a | _rv = SGSetJustification(c, |
|---|
| 22753 | n/a | just); |
|---|
| 22754 | n/a | _res = Py_BuildValue("l", |
|---|
| 22755 | n/a | _rv); |
|---|
| 22756 | n/a | return _res; |
|---|
| 22757 | n/a | } |
|---|
| 22758 | n/a | |
|---|
| 22759 | n/a | static PyObject *Qt_SGGetTextReturnToSpaceValue(PyObject *_self, PyObject *_args) |
|---|
| 22760 | n/a | { |
|---|
| 22761 | n/a | PyObject *_res = NULL; |
|---|
| 22762 | n/a | ComponentResult _rv; |
|---|
| 22763 | n/a | SGChannel c; |
|---|
| 22764 | n/a | short rettospace; |
|---|
| 22765 | n/a | #ifndef SGGetTextReturnToSpaceValue |
|---|
| 22766 | n/a | PyMac_PRECHECK(SGGetTextReturnToSpaceValue); |
|---|
| 22767 | n/a | #endif |
|---|
| 22768 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22769 | n/a | CmpInstObj_Convert, &c)) |
|---|
| 22770 | n/a | return NULL; |
|---|
| 22771 | n/a | _rv = SGGetTextReturnToSpaceValue(c, |
|---|
| 22772 | n/a | &rettospace); |
|---|
| 22773 | n/a | _res = Py_BuildValue("lh", |
|---|
| 22774 | n/a | _rv, |
|---|
| 22775 | n/a | rettospace); |
|---|
| 22776 | n/a | return _res; |
|---|
| 22777 | n/a | } |
|---|
| 22778 | n/a | |
|---|
| 22779 | n/a | static PyObject *Qt_SGSetTextReturnToSpaceValue(PyObject *_self, PyObject *_args) |
|---|
| 22780 | n/a | { |
|---|
| 22781 | n/a | PyObject *_res = NULL; |
|---|
| 22782 | n/a | ComponentResult _rv; |
|---|
| 22783 | n/a | SGChannel c; |
|---|
| 22784 | n/a | short rettospace; |
|---|
| 22785 | n/a | #ifndef SGSetTextReturnToSpaceValue |
|---|
| 22786 | n/a | PyMac_PRECHECK(SGSetTextReturnToSpaceValue); |
|---|
| 22787 | n/a | #endif |
|---|
| 22788 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 22789 | n/a | CmpInstObj_Convert, &c, |
|---|
| 22790 | n/a | &rettospace)) |
|---|
| 22791 | n/a | return NULL; |
|---|
| 22792 | n/a | _rv = SGSetTextReturnToSpaceValue(c, |
|---|
| 22793 | n/a | rettospace); |
|---|
| 22794 | n/a | _res = Py_BuildValue("l", |
|---|
| 22795 | n/a | _rv); |
|---|
| 22796 | n/a | return _res; |
|---|
| 22797 | n/a | } |
|---|
| 22798 | n/a | |
|---|
| 22799 | n/a | static PyObject *Qt_QTVideoOutputGetCurrentClientName(PyObject *_self, PyObject *_args) |
|---|
| 22800 | n/a | { |
|---|
| 22801 | n/a | PyObject *_res = NULL; |
|---|
| 22802 | n/a | ComponentResult _rv; |
|---|
| 22803 | n/a | QTVideoOutputComponent vo; |
|---|
| 22804 | n/a | Str255 str; |
|---|
| 22805 | n/a | #ifndef QTVideoOutputGetCurrentClientName |
|---|
| 22806 | n/a | PyMac_PRECHECK(QTVideoOutputGetCurrentClientName); |
|---|
| 22807 | n/a | #endif |
|---|
| 22808 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22809 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 22810 | n/a | PyMac_GetStr255, str)) |
|---|
| 22811 | n/a | return NULL; |
|---|
| 22812 | n/a | _rv = QTVideoOutputGetCurrentClientName(vo, |
|---|
| 22813 | n/a | str); |
|---|
| 22814 | n/a | _res = Py_BuildValue("l", |
|---|
| 22815 | n/a | _rv); |
|---|
| 22816 | n/a | return _res; |
|---|
| 22817 | n/a | } |
|---|
| 22818 | n/a | |
|---|
| 22819 | n/a | static PyObject *Qt_QTVideoOutputSetClientName(PyObject *_self, PyObject *_args) |
|---|
| 22820 | n/a | { |
|---|
| 22821 | n/a | PyObject *_res = NULL; |
|---|
| 22822 | n/a | ComponentResult _rv; |
|---|
| 22823 | n/a | QTVideoOutputComponent vo; |
|---|
| 22824 | n/a | Str255 str; |
|---|
| 22825 | n/a | #ifndef QTVideoOutputSetClientName |
|---|
| 22826 | n/a | PyMac_PRECHECK(QTVideoOutputSetClientName); |
|---|
| 22827 | n/a | #endif |
|---|
| 22828 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22829 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 22830 | n/a | PyMac_GetStr255, str)) |
|---|
| 22831 | n/a | return NULL; |
|---|
| 22832 | n/a | _rv = QTVideoOutputSetClientName(vo, |
|---|
| 22833 | n/a | str); |
|---|
| 22834 | n/a | _res = Py_BuildValue("l", |
|---|
| 22835 | n/a | _rv); |
|---|
| 22836 | n/a | return _res; |
|---|
| 22837 | n/a | } |
|---|
| 22838 | n/a | |
|---|
| 22839 | n/a | static PyObject *Qt_QTVideoOutputGetClientName(PyObject *_self, PyObject *_args) |
|---|
| 22840 | n/a | { |
|---|
| 22841 | n/a | PyObject *_res = NULL; |
|---|
| 22842 | n/a | ComponentResult _rv; |
|---|
| 22843 | n/a | QTVideoOutputComponent vo; |
|---|
| 22844 | n/a | Str255 str; |
|---|
| 22845 | n/a | #ifndef QTVideoOutputGetClientName |
|---|
| 22846 | n/a | PyMac_PRECHECK(QTVideoOutputGetClientName); |
|---|
| 22847 | n/a | #endif |
|---|
| 22848 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 22849 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 22850 | n/a | PyMac_GetStr255, str)) |
|---|
| 22851 | n/a | return NULL; |
|---|
| 22852 | n/a | _rv = QTVideoOutputGetClientName(vo, |
|---|
| 22853 | n/a | str); |
|---|
| 22854 | n/a | _res = Py_BuildValue("l", |
|---|
| 22855 | n/a | _rv); |
|---|
| 22856 | n/a | return _res; |
|---|
| 22857 | n/a | } |
|---|
| 22858 | n/a | |
|---|
| 22859 | n/a | static PyObject *Qt_QTVideoOutputBegin(PyObject *_self, PyObject *_args) |
|---|
| 22860 | n/a | { |
|---|
| 22861 | n/a | PyObject *_res = NULL; |
|---|
| 22862 | n/a | ComponentResult _rv; |
|---|
| 22863 | n/a | QTVideoOutputComponent vo; |
|---|
| 22864 | n/a | #ifndef QTVideoOutputBegin |
|---|
| 22865 | n/a | PyMac_PRECHECK(QTVideoOutputBegin); |
|---|
| 22866 | n/a | #endif |
|---|
| 22867 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22868 | n/a | CmpInstObj_Convert, &vo)) |
|---|
| 22869 | n/a | return NULL; |
|---|
| 22870 | n/a | _rv = QTVideoOutputBegin(vo); |
|---|
| 22871 | n/a | _res = Py_BuildValue("l", |
|---|
| 22872 | n/a | _rv); |
|---|
| 22873 | n/a | return _res; |
|---|
| 22874 | n/a | } |
|---|
| 22875 | n/a | |
|---|
| 22876 | n/a | static PyObject *Qt_QTVideoOutputEnd(PyObject *_self, PyObject *_args) |
|---|
| 22877 | n/a | { |
|---|
| 22878 | n/a | PyObject *_res = NULL; |
|---|
| 22879 | n/a | ComponentResult _rv; |
|---|
| 22880 | n/a | QTVideoOutputComponent vo; |
|---|
| 22881 | n/a | #ifndef QTVideoOutputEnd |
|---|
| 22882 | n/a | PyMac_PRECHECK(QTVideoOutputEnd); |
|---|
| 22883 | n/a | #endif |
|---|
| 22884 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22885 | n/a | CmpInstObj_Convert, &vo)) |
|---|
| 22886 | n/a | return NULL; |
|---|
| 22887 | n/a | _rv = QTVideoOutputEnd(vo); |
|---|
| 22888 | n/a | _res = Py_BuildValue("l", |
|---|
| 22889 | n/a | _rv); |
|---|
| 22890 | n/a | return _res; |
|---|
| 22891 | n/a | } |
|---|
| 22892 | n/a | |
|---|
| 22893 | n/a | static PyObject *Qt_QTVideoOutputSetDisplayMode(PyObject *_self, PyObject *_args) |
|---|
| 22894 | n/a | { |
|---|
| 22895 | n/a | PyObject *_res = NULL; |
|---|
| 22896 | n/a | ComponentResult _rv; |
|---|
| 22897 | n/a | QTVideoOutputComponent vo; |
|---|
| 22898 | n/a | long displayModeID; |
|---|
| 22899 | n/a | #ifndef QTVideoOutputSetDisplayMode |
|---|
| 22900 | n/a | PyMac_PRECHECK(QTVideoOutputSetDisplayMode); |
|---|
| 22901 | n/a | #endif |
|---|
| 22902 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 22903 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 22904 | n/a | &displayModeID)) |
|---|
| 22905 | n/a | return NULL; |
|---|
| 22906 | n/a | _rv = QTVideoOutputSetDisplayMode(vo, |
|---|
| 22907 | n/a | displayModeID); |
|---|
| 22908 | n/a | _res = Py_BuildValue("l", |
|---|
| 22909 | n/a | _rv); |
|---|
| 22910 | n/a | return _res; |
|---|
| 22911 | n/a | } |
|---|
| 22912 | n/a | |
|---|
| 22913 | n/a | static PyObject *Qt_QTVideoOutputGetDisplayMode(PyObject *_self, PyObject *_args) |
|---|
| 22914 | n/a | { |
|---|
| 22915 | n/a | PyObject *_res = NULL; |
|---|
| 22916 | n/a | ComponentResult _rv; |
|---|
| 22917 | n/a | QTVideoOutputComponent vo; |
|---|
| 22918 | n/a | long displayModeID; |
|---|
| 22919 | n/a | #ifndef QTVideoOutputGetDisplayMode |
|---|
| 22920 | n/a | PyMac_PRECHECK(QTVideoOutputGetDisplayMode); |
|---|
| 22921 | n/a | #endif |
|---|
| 22922 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22923 | n/a | CmpInstObj_Convert, &vo)) |
|---|
| 22924 | n/a | return NULL; |
|---|
| 22925 | n/a | _rv = QTVideoOutputGetDisplayMode(vo, |
|---|
| 22926 | n/a | &displayModeID); |
|---|
| 22927 | n/a | _res = Py_BuildValue("ll", |
|---|
| 22928 | n/a | _rv, |
|---|
| 22929 | n/a | displayModeID); |
|---|
| 22930 | n/a | return _res; |
|---|
| 22931 | n/a | } |
|---|
| 22932 | n/a | |
|---|
| 22933 | n/a | static PyObject *Qt_QTVideoOutputGetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 22934 | n/a | { |
|---|
| 22935 | n/a | PyObject *_res = NULL; |
|---|
| 22936 | n/a | ComponentResult _rv; |
|---|
| 22937 | n/a | QTVideoOutputComponent vo; |
|---|
| 22938 | n/a | GWorldPtr gw; |
|---|
| 22939 | n/a | #ifndef QTVideoOutputGetGWorld |
|---|
| 22940 | n/a | PyMac_PRECHECK(QTVideoOutputGetGWorld); |
|---|
| 22941 | n/a | #endif |
|---|
| 22942 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22943 | n/a | CmpInstObj_Convert, &vo)) |
|---|
| 22944 | n/a | return NULL; |
|---|
| 22945 | n/a | _rv = QTVideoOutputGetGWorld(vo, |
|---|
| 22946 | n/a | &gw); |
|---|
| 22947 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22948 | n/a | _rv, |
|---|
| 22949 | n/a | GWorldObj_New, gw); |
|---|
| 22950 | n/a | return _res; |
|---|
| 22951 | n/a | } |
|---|
| 22952 | n/a | |
|---|
| 22953 | n/a | static PyObject *Qt_QTVideoOutputGetIndSoundOutput(PyObject *_self, PyObject *_args) |
|---|
| 22954 | n/a | { |
|---|
| 22955 | n/a | PyObject *_res = NULL; |
|---|
| 22956 | n/a | ComponentResult _rv; |
|---|
| 22957 | n/a | QTVideoOutputComponent vo; |
|---|
| 22958 | n/a | long index; |
|---|
| 22959 | n/a | Component outputComponent; |
|---|
| 22960 | n/a | #ifndef QTVideoOutputGetIndSoundOutput |
|---|
| 22961 | n/a | PyMac_PRECHECK(QTVideoOutputGetIndSoundOutput); |
|---|
| 22962 | n/a | #endif |
|---|
| 22963 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 22964 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 22965 | n/a | &index)) |
|---|
| 22966 | n/a | return NULL; |
|---|
| 22967 | n/a | _rv = QTVideoOutputGetIndSoundOutput(vo, |
|---|
| 22968 | n/a | index, |
|---|
| 22969 | n/a | &outputComponent); |
|---|
| 22970 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22971 | n/a | _rv, |
|---|
| 22972 | n/a | CmpObj_New, outputComponent); |
|---|
| 22973 | n/a | return _res; |
|---|
| 22974 | n/a | } |
|---|
| 22975 | n/a | |
|---|
| 22976 | n/a | static PyObject *Qt_QTVideoOutputGetClock(PyObject *_self, PyObject *_args) |
|---|
| 22977 | n/a | { |
|---|
| 22978 | n/a | PyObject *_res = NULL; |
|---|
| 22979 | n/a | ComponentResult _rv; |
|---|
| 22980 | n/a | QTVideoOutputComponent vo; |
|---|
| 22981 | n/a | ComponentInstance clock; |
|---|
| 22982 | n/a | #ifndef QTVideoOutputGetClock |
|---|
| 22983 | n/a | PyMac_PRECHECK(QTVideoOutputGetClock); |
|---|
| 22984 | n/a | #endif |
|---|
| 22985 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 22986 | n/a | CmpInstObj_Convert, &vo)) |
|---|
| 22987 | n/a | return NULL; |
|---|
| 22988 | n/a | _rv = QTVideoOutputGetClock(vo, |
|---|
| 22989 | n/a | &clock); |
|---|
| 22990 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 22991 | n/a | _rv, |
|---|
| 22992 | n/a | CmpInstObj_New, clock); |
|---|
| 22993 | n/a | return _res; |
|---|
| 22994 | n/a | } |
|---|
| 22995 | n/a | |
|---|
| 22996 | n/a | static PyObject *Qt_QTVideoOutputSetEchoPort(PyObject *_self, PyObject *_args) |
|---|
| 22997 | n/a | { |
|---|
| 22998 | n/a | PyObject *_res = NULL; |
|---|
| 22999 | n/a | ComponentResult _rv; |
|---|
| 23000 | n/a | QTVideoOutputComponent vo; |
|---|
| 23001 | n/a | CGrafPtr echoPort; |
|---|
| 23002 | n/a | #ifndef QTVideoOutputSetEchoPort |
|---|
| 23003 | n/a | PyMac_PRECHECK(QTVideoOutputSetEchoPort); |
|---|
| 23004 | n/a | #endif |
|---|
| 23005 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23006 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 23007 | n/a | GrafObj_Convert, &echoPort)) |
|---|
| 23008 | n/a | return NULL; |
|---|
| 23009 | n/a | _rv = QTVideoOutputSetEchoPort(vo, |
|---|
| 23010 | n/a | echoPort); |
|---|
| 23011 | n/a | _res = Py_BuildValue("l", |
|---|
| 23012 | n/a | _rv); |
|---|
| 23013 | n/a | return _res; |
|---|
| 23014 | n/a | } |
|---|
| 23015 | n/a | |
|---|
| 23016 | n/a | static PyObject *Qt_QTVideoOutputGetIndImageDecompressor(PyObject *_self, PyObject *_args) |
|---|
| 23017 | n/a | { |
|---|
| 23018 | n/a | PyObject *_res = NULL; |
|---|
| 23019 | n/a | ComponentResult _rv; |
|---|
| 23020 | n/a | QTVideoOutputComponent vo; |
|---|
| 23021 | n/a | long index; |
|---|
| 23022 | n/a | Component codec; |
|---|
| 23023 | n/a | #ifndef QTVideoOutputGetIndImageDecompressor |
|---|
| 23024 | n/a | PyMac_PRECHECK(QTVideoOutputGetIndImageDecompressor); |
|---|
| 23025 | n/a | #endif |
|---|
| 23026 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23027 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 23028 | n/a | &index)) |
|---|
| 23029 | n/a | return NULL; |
|---|
| 23030 | n/a | _rv = QTVideoOutputGetIndImageDecompressor(vo, |
|---|
| 23031 | n/a | index, |
|---|
| 23032 | n/a | &codec); |
|---|
| 23033 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 23034 | n/a | _rv, |
|---|
| 23035 | n/a | CmpObj_New, codec); |
|---|
| 23036 | n/a | return _res; |
|---|
| 23037 | n/a | } |
|---|
| 23038 | n/a | |
|---|
| 23039 | n/a | static PyObject *Qt_QTVideoOutputBaseSetEchoPort(PyObject *_self, PyObject *_args) |
|---|
| 23040 | n/a | { |
|---|
| 23041 | n/a | PyObject *_res = NULL; |
|---|
| 23042 | n/a | ComponentResult _rv; |
|---|
| 23043 | n/a | QTVideoOutputComponent vo; |
|---|
| 23044 | n/a | CGrafPtr echoPort; |
|---|
| 23045 | n/a | #ifndef QTVideoOutputBaseSetEchoPort |
|---|
| 23046 | n/a | PyMac_PRECHECK(QTVideoOutputBaseSetEchoPort); |
|---|
| 23047 | n/a | #endif |
|---|
| 23048 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23049 | n/a | CmpInstObj_Convert, &vo, |
|---|
| 23050 | n/a | GrafObj_Convert, &echoPort)) |
|---|
| 23051 | n/a | return NULL; |
|---|
| 23052 | n/a | _rv = QTVideoOutputBaseSetEchoPort(vo, |
|---|
| 23053 | n/a | echoPort); |
|---|
| 23054 | n/a | _res = Py_BuildValue("l", |
|---|
| 23055 | n/a | _rv); |
|---|
| 23056 | n/a | return _res; |
|---|
| 23057 | n/a | } |
|---|
| 23058 | n/a | |
|---|
| 23059 | n/a | static PyObject *Qt_MediaSetChunkManagementFlags(PyObject *_self, PyObject *_args) |
|---|
| 23060 | n/a | { |
|---|
| 23061 | n/a | PyObject *_res = NULL; |
|---|
| 23062 | n/a | ComponentResult _rv; |
|---|
| 23063 | n/a | MediaHandler mh; |
|---|
| 23064 | n/a | UInt32 flags; |
|---|
| 23065 | n/a | UInt32 flagsMask; |
|---|
| 23066 | n/a | #ifndef MediaSetChunkManagementFlags |
|---|
| 23067 | n/a | PyMac_PRECHECK(MediaSetChunkManagementFlags); |
|---|
| 23068 | n/a | #endif |
|---|
| 23069 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 23070 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23071 | n/a | &flags, |
|---|
| 23072 | n/a | &flagsMask)) |
|---|
| 23073 | n/a | return NULL; |
|---|
| 23074 | n/a | _rv = MediaSetChunkManagementFlags(mh, |
|---|
| 23075 | n/a | flags, |
|---|
| 23076 | n/a | flagsMask); |
|---|
| 23077 | n/a | _res = Py_BuildValue("l", |
|---|
| 23078 | n/a | _rv); |
|---|
| 23079 | n/a | return _res; |
|---|
| 23080 | n/a | } |
|---|
| 23081 | n/a | |
|---|
| 23082 | n/a | static PyObject *Qt_MediaGetChunkManagementFlags(PyObject *_self, PyObject *_args) |
|---|
| 23083 | n/a | { |
|---|
| 23084 | n/a | PyObject *_res = NULL; |
|---|
| 23085 | n/a | ComponentResult _rv; |
|---|
| 23086 | n/a | MediaHandler mh; |
|---|
| 23087 | n/a | UInt32 flags; |
|---|
| 23088 | n/a | #ifndef MediaGetChunkManagementFlags |
|---|
| 23089 | n/a | PyMac_PRECHECK(MediaGetChunkManagementFlags); |
|---|
| 23090 | n/a | #endif |
|---|
| 23091 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23092 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23093 | n/a | return NULL; |
|---|
| 23094 | n/a | _rv = MediaGetChunkManagementFlags(mh, |
|---|
| 23095 | n/a | &flags); |
|---|
| 23096 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23097 | n/a | _rv, |
|---|
| 23098 | n/a | flags); |
|---|
| 23099 | n/a | return _res; |
|---|
| 23100 | n/a | } |
|---|
| 23101 | n/a | |
|---|
| 23102 | n/a | static PyObject *Qt_MediaSetPurgeableChunkMemoryAllowance(PyObject *_self, PyObject *_args) |
|---|
| 23103 | n/a | { |
|---|
| 23104 | n/a | PyObject *_res = NULL; |
|---|
| 23105 | n/a | ComponentResult _rv; |
|---|
| 23106 | n/a | MediaHandler mh; |
|---|
| 23107 | n/a | Size allowance; |
|---|
| 23108 | n/a | #ifndef MediaSetPurgeableChunkMemoryAllowance |
|---|
| 23109 | n/a | PyMac_PRECHECK(MediaSetPurgeableChunkMemoryAllowance); |
|---|
| 23110 | n/a | #endif |
|---|
| 23111 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23112 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23113 | n/a | &allowance)) |
|---|
| 23114 | n/a | return NULL; |
|---|
| 23115 | n/a | _rv = MediaSetPurgeableChunkMemoryAllowance(mh, |
|---|
| 23116 | n/a | allowance); |
|---|
| 23117 | n/a | _res = Py_BuildValue("l", |
|---|
| 23118 | n/a | _rv); |
|---|
| 23119 | n/a | return _res; |
|---|
| 23120 | n/a | } |
|---|
| 23121 | n/a | |
|---|
| 23122 | n/a | static PyObject *Qt_MediaGetPurgeableChunkMemoryAllowance(PyObject *_self, PyObject *_args) |
|---|
| 23123 | n/a | { |
|---|
| 23124 | n/a | PyObject *_res = NULL; |
|---|
| 23125 | n/a | ComponentResult _rv; |
|---|
| 23126 | n/a | MediaHandler mh; |
|---|
| 23127 | n/a | Size allowance; |
|---|
| 23128 | n/a | #ifndef MediaGetPurgeableChunkMemoryAllowance |
|---|
| 23129 | n/a | PyMac_PRECHECK(MediaGetPurgeableChunkMemoryAllowance); |
|---|
| 23130 | n/a | #endif |
|---|
| 23131 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23132 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23133 | n/a | return NULL; |
|---|
| 23134 | n/a | _rv = MediaGetPurgeableChunkMemoryAllowance(mh, |
|---|
| 23135 | n/a | &allowance); |
|---|
| 23136 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23137 | n/a | _rv, |
|---|
| 23138 | n/a | allowance); |
|---|
| 23139 | n/a | return _res; |
|---|
| 23140 | n/a | } |
|---|
| 23141 | n/a | |
|---|
| 23142 | n/a | static PyObject *Qt_MediaEmptyAllPurgeableChunks(PyObject *_self, PyObject *_args) |
|---|
| 23143 | n/a | { |
|---|
| 23144 | n/a | PyObject *_res = NULL; |
|---|
| 23145 | n/a | ComponentResult _rv; |
|---|
| 23146 | n/a | MediaHandler mh; |
|---|
| 23147 | n/a | #ifndef MediaEmptyAllPurgeableChunks |
|---|
| 23148 | n/a | PyMac_PRECHECK(MediaEmptyAllPurgeableChunks); |
|---|
| 23149 | n/a | #endif |
|---|
| 23150 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23151 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23152 | n/a | return NULL; |
|---|
| 23153 | n/a | _rv = MediaEmptyAllPurgeableChunks(mh); |
|---|
| 23154 | n/a | _res = Py_BuildValue("l", |
|---|
| 23155 | n/a | _rv); |
|---|
| 23156 | n/a | return _res; |
|---|
| 23157 | n/a | } |
|---|
| 23158 | n/a | |
|---|
| 23159 | n/a | static PyObject *Qt_MediaSetHandlerCapabilities(PyObject *_self, PyObject *_args) |
|---|
| 23160 | n/a | { |
|---|
| 23161 | n/a | PyObject *_res = NULL; |
|---|
| 23162 | n/a | ComponentResult _rv; |
|---|
| 23163 | n/a | MediaHandler mh; |
|---|
| 23164 | n/a | long flags; |
|---|
| 23165 | n/a | long flagsMask; |
|---|
| 23166 | n/a | #ifndef MediaSetHandlerCapabilities |
|---|
| 23167 | n/a | PyMac_PRECHECK(MediaSetHandlerCapabilities); |
|---|
| 23168 | n/a | #endif |
|---|
| 23169 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 23170 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23171 | n/a | &flags, |
|---|
| 23172 | n/a | &flagsMask)) |
|---|
| 23173 | n/a | return NULL; |
|---|
| 23174 | n/a | _rv = MediaSetHandlerCapabilities(mh, |
|---|
| 23175 | n/a | flags, |
|---|
| 23176 | n/a | flagsMask); |
|---|
| 23177 | n/a | _res = Py_BuildValue("l", |
|---|
| 23178 | n/a | _rv); |
|---|
| 23179 | n/a | return _res; |
|---|
| 23180 | n/a | } |
|---|
| 23181 | n/a | |
|---|
| 23182 | n/a | static PyObject *Qt_MediaIdle(PyObject *_self, PyObject *_args) |
|---|
| 23183 | n/a | { |
|---|
| 23184 | n/a | PyObject *_res = NULL; |
|---|
| 23185 | n/a | ComponentResult _rv; |
|---|
| 23186 | n/a | MediaHandler mh; |
|---|
| 23187 | n/a | TimeValue atMediaTime; |
|---|
| 23188 | n/a | long flagsIn; |
|---|
| 23189 | n/a | long flagsOut; |
|---|
| 23190 | n/a | TimeRecord movieTime; |
|---|
| 23191 | n/a | #ifndef MediaIdle |
|---|
| 23192 | n/a | PyMac_PRECHECK(MediaIdle); |
|---|
| 23193 | n/a | #endif |
|---|
| 23194 | n/a | if (!PyArg_ParseTuple(_args, "O&llO&", |
|---|
| 23195 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23196 | n/a | &atMediaTime, |
|---|
| 23197 | n/a | &flagsIn, |
|---|
| 23198 | n/a | QtTimeRecord_Convert, &movieTime)) |
|---|
| 23199 | n/a | return NULL; |
|---|
| 23200 | n/a | _rv = MediaIdle(mh, |
|---|
| 23201 | n/a | atMediaTime, |
|---|
| 23202 | n/a | flagsIn, |
|---|
| 23203 | n/a | &flagsOut, |
|---|
| 23204 | n/a | &movieTime); |
|---|
| 23205 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23206 | n/a | _rv, |
|---|
| 23207 | n/a | flagsOut); |
|---|
| 23208 | n/a | return _res; |
|---|
| 23209 | n/a | } |
|---|
| 23210 | n/a | |
|---|
| 23211 | n/a | static PyObject *Qt_MediaGetMediaInfo(PyObject *_self, PyObject *_args) |
|---|
| 23212 | n/a | { |
|---|
| 23213 | n/a | PyObject *_res = NULL; |
|---|
| 23214 | n/a | ComponentResult _rv; |
|---|
| 23215 | n/a | MediaHandler mh; |
|---|
| 23216 | n/a | Handle h; |
|---|
| 23217 | n/a | #ifndef MediaGetMediaInfo |
|---|
| 23218 | n/a | PyMac_PRECHECK(MediaGetMediaInfo); |
|---|
| 23219 | n/a | #endif |
|---|
| 23220 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23221 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23222 | n/a | ResObj_Convert, &h)) |
|---|
| 23223 | n/a | return NULL; |
|---|
| 23224 | n/a | _rv = MediaGetMediaInfo(mh, |
|---|
| 23225 | n/a | h); |
|---|
| 23226 | n/a | _res = Py_BuildValue("l", |
|---|
| 23227 | n/a | _rv); |
|---|
| 23228 | n/a | return _res; |
|---|
| 23229 | n/a | } |
|---|
| 23230 | n/a | |
|---|
| 23231 | n/a | static PyObject *Qt_MediaPutMediaInfo(PyObject *_self, PyObject *_args) |
|---|
| 23232 | n/a | { |
|---|
| 23233 | n/a | PyObject *_res = NULL; |
|---|
| 23234 | n/a | ComponentResult _rv; |
|---|
| 23235 | n/a | MediaHandler mh; |
|---|
| 23236 | n/a | Handle h; |
|---|
| 23237 | n/a | #ifndef MediaPutMediaInfo |
|---|
| 23238 | n/a | PyMac_PRECHECK(MediaPutMediaInfo); |
|---|
| 23239 | n/a | #endif |
|---|
| 23240 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23241 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23242 | n/a | ResObj_Convert, &h)) |
|---|
| 23243 | n/a | return NULL; |
|---|
| 23244 | n/a | _rv = MediaPutMediaInfo(mh, |
|---|
| 23245 | n/a | h); |
|---|
| 23246 | n/a | _res = Py_BuildValue("l", |
|---|
| 23247 | n/a | _rv); |
|---|
| 23248 | n/a | return _res; |
|---|
| 23249 | n/a | } |
|---|
| 23250 | n/a | |
|---|
| 23251 | n/a | static PyObject *Qt_MediaSetActive(PyObject *_self, PyObject *_args) |
|---|
| 23252 | n/a | { |
|---|
| 23253 | n/a | PyObject *_res = NULL; |
|---|
| 23254 | n/a | ComponentResult _rv; |
|---|
| 23255 | n/a | MediaHandler mh; |
|---|
| 23256 | n/a | Boolean enableMedia; |
|---|
| 23257 | n/a | #ifndef MediaSetActive |
|---|
| 23258 | n/a | PyMac_PRECHECK(MediaSetActive); |
|---|
| 23259 | n/a | #endif |
|---|
| 23260 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 23261 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23262 | n/a | &enableMedia)) |
|---|
| 23263 | n/a | return NULL; |
|---|
| 23264 | n/a | _rv = MediaSetActive(mh, |
|---|
| 23265 | n/a | enableMedia); |
|---|
| 23266 | n/a | _res = Py_BuildValue("l", |
|---|
| 23267 | n/a | _rv); |
|---|
| 23268 | n/a | return _res; |
|---|
| 23269 | n/a | } |
|---|
| 23270 | n/a | |
|---|
| 23271 | n/a | static PyObject *Qt_MediaSetRate(PyObject *_self, PyObject *_args) |
|---|
| 23272 | n/a | { |
|---|
| 23273 | n/a | PyObject *_res = NULL; |
|---|
| 23274 | n/a | ComponentResult _rv; |
|---|
| 23275 | n/a | MediaHandler mh; |
|---|
| 23276 | n/a | Fixed rate; |
|---|
| 23277 | n/a | #ifndef MediaSetRate |
|---|
| 23278 | n/a | PyMac_PRECHECK(MediaSetRate); |
|---|
| 23279 | n/a | #endif |
|---|
| 23280 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23281 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23282 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 23283 | n/a | return NULL; |
|---|
| 23284 | n/a | _rv = MediaSetRate(mh, |
|---|
| 23285 | n/a | rate); |
|---|
| 23286 | n/a | _res = Py_BuildValue("l", |
|---|
| 23287 | n/a | _rv); |
|---|
| 23288 | n/a | return _res; |
|---|
| 23289 | n/a | } |
|---|
| 23290 | n/a | |
|---|
| 23291 | n/a | static PyObject *Qt_MediaGGetStatus(PyObject *_self, PyObject *_args) |
|---|
| 23292 | n/a | { |
|---|
| 23293 | n/a | PyObject *_res = NULL; |
|---|
| 23294 | n/a | ComponentResult _rv; |
|---|
| 23295 | n/a | MediaHandler mh; |
|---|
| 23296 | n/a | ComponentResult statusErr; |
|---|
| 23297 | n/a | #ifndef MediaGGetStatus |
|---|
| 23298 | n/a | PyMac_PRECHECK(MediaGGetStatus); |
|---|
| 23299 | n/a | #endif |
|---|
| 23300 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23301 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23302 | n/a | return NULL; |
|---|
| 23303 | n/a | _rv = MediaGGetStatus(mh, |
|---|
| 23304 | n/a | &statusErr); |
|---|
| 23305 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23306 | n/a | _rv, |
|---|
| 23307 | n/a | statusErr); |
|---|
| 23308 | n/a | return _res; |
|---|
| 23309 | n/a | } |
|---|
| 23310 | n/a | |
|---|
| 23311 | n/a | static PyObject *Qt_MediaTrackEdited(PyObject *_self, PyObject *_args) |
|---|
| 23312 | n/a | { |
|---|
| 23313 | n/a | PyObject *_res = NULL; |
|---|
| 23314 | n/a | ComponentResult _rv; |
|---|
| 23315 | n/a | MediaHandler mh; |
|---|
| 23316 | n/a | #ifndef MediaTrackEdited |
|---|
| 23317 | n/a | PyMac_PRECHECK(MediaTrackEdited); |
|---|
| 23318 | n/a | #endif |
|---|
| 23319 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23320 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23321 | n/a | return NULL; |
|---|
| 23322 | n/a | _rv = MediaTrackEdited(mh); |
|---|
| 23323 | n/a | _res = Py_BuildValue("l", |
|---|
| 23324 | n/a | _rv); |
|---|
| 23325 | n/a | return _res; |
|---|
| 23326 | n/a | } |
|---|
| 23327 | n/a | |
|---|
| 23328 | n/a | static PyObject *Qt_MediaSetMediaTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 23329 | n/a | { |
|---|
| 23330 | n/a | PyObject *_res = NULL; |
|---|
| 23331 | n/a | ComponentResult _rv; |
|---|
| 23332 | n/a | MediaHandler mh; |
|---|
| 23333 | n/a | TimeScale newTimeScale; |
|---|
| 23334 | n/a | #ifndef MediaSetMediaTimeScale |
|---|
| 23335 | n/a | PyMac_PRECHECK(MediaSetMediaTimeScale); |
|---|
| 23336 | n/a | #endif |
|---|
| 23337 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23338 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23339 | n/a | &newTimeScale)) |
|---|
| 23340 | n/a | return NULL; |
|---|
| 23341 | n/a | _rv = MediaSetMediaTimeScale(mh, |
|---|
| 23342 | n/a | newTimeScale); |
|---|
| 23343 | n/a | _res = Py_BuildValue("l", |
|---|
| 23344 | n/a | _rv); |
|---|
| 23345 | n/a | return _res; |
|---|
| 23346 | n/a | } |
|---|
| 23347 | n/a | |
|---|
| 23348 | n/a | static PyObject *Qt_MediaSetMovieTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 23349 | n/a | { |
|---|
| 23350 | n/a | PyObject *_res = NULL; |
|---|
| 23351 | n/a | ComponentResult _rv; |
|---|
| 23352 | n/a | MediaHandler mh; |
|---|
| 23353 | n/a | TimeScale newTimeScale; |
|---|
| 23354 | n/a | #ifndef MediaSetMovieTimeScale |
|---|
| 23355 | n/a | PyMac_PRECHECK(MediaSetMovieTimeScale); |
|---|
| 23356 | n/a | #endif |
|---|
| 23357 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23358 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23359 | n/a | &newTimeScale)) |
|---|
| 23360 | n/a | return NULL; |
|---|
| 23361 | n/a | _rv = MediaSetMovieTimeScale(mh, |
|---|
| 23362 | n/a | newTimeScale); |
|---|
| 23363 | n/a | _res = Py_BuildValue("l", |
|---|
| 23364 | n/a | _rv); |
|---|
| 23365 | n/a | return _res; |
|---|
| 23366 | n/a | } |
|---|
| 23367 | n/a | |
|---|
| 23368 | n/a | static PyObject *Qt_MediaSetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 23369 | n/a | { |
|---|
| 23370 | n/a | PyObject *_res = NULL; |
|---|
| 23371 | n/a | ComponentResult _rv; |
|---|
| 23372 | n/a | MediaHandler mh; |
|---|
| 23373 | n/a | CGrafPtr aPort; |
|---|
| 23374 | n/a | GDHandle aGD; |
|---|
| 23375 | n/a | #ifndef MediaSetGWorld |
|---|
| 23376 | n/a | PyMac_PRECHECK(MediaSetGWorld); |
|---|
| 23377 | n/a | #endif |
|---|
| 23378 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 23379 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23380 | n/a | GrafObj_Convert, &aPort, |
|---|
| 23381 | n/a | OptResObj_Convert, &aGD)) |
|---|
| 23382 | n/a | return NULL; |
|---|
| 23383 | n/a | _rv = MediaSetGWorld(mh, |
|---|
| 23384 | n/a | aPort, |
|---|
| 23385 | n/a | aGD); |
|---|
| 23386 | n/a | _res = Py_BuildValue("l", |
|---|
| 23387 | n/a | _rv); |
|---|
| 23388 | n/a | return _res; |
|---|
| 23389 | n/a | } |
|---|
| 23390 | n/a | |
|---|
| 23391 | n/a | static PyObject *Qt_MediaSetDimensions(PyObject *_self, PyObject *_args) |
|---|
| 23392 | n/a | { |
|---|
| 23393 | n/a | PyObject *_res = NULL; |
|---|
| 23394 | n/a | ComponentResult _rv; |
|---|
| 23395 | n/a | MediaHandler mh; |
|---|
| 23396 | n/a | Fixed width; |
|---|
| 23397 | n/a | Fixed height; |
|---|
| 23398 | n/a | #ifndef MediaSetDimensions |
|---|
| 23399 | n/a | PyMac_PRECHECK(MediaSetDimensions); |
|---|
| 23400 | n/a | #endif |
|---|
| 23401 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 23402 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23403 | n/a | PyMac_GetFixed, &width, |
|---|
| 23404 | n/a | PyMac_GetFixed, &height)) |
|---|
| 23405 | n/a | return NULL; |
|---|
| 23406 | n/a | _rv = MediaSetDimensions(mh, |
|---|
| 23407 | n/a | width, |
|---|
| 23408 | n/a | height); |
|---|
| 23409 | n/a | _res = Py_BuildValue("l", |
|---|
| 23410 | n/a | _rv); |
|---|
| 23411 | n/a | return _res; |
|---|
| 23412 | n/a | } |
|---|
| 23413 | n/a | |
|---|
| 23414 | n/a | static PyObject *Qt_MediaSetClip(PyObject *_self, PyObject *_args) |
|---|
| 23415 | n/a | { |
|---|
| 23416 | n/a | PyObject *_res = NULL; |
|---|
| 23417 | n/a | ComponentResult _rv; |
|---|
| 23418 | n/a | MediaHandler mh; |
|---|
| 23419 | n/a | RgnHandle theClip; |
|---|
| 23420 | n/a | #ifndef MediaSetClip |
|---|
| 23421 | n/a | PyMac_PRECHECK(MediaSetClip); |
|---|
| 23422 | n/a | #endif |
|---|
| 23423 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23424 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23425 | n/a | ResObj_Convert, &theClip)) |
|---|
| 23426 | n/a | return NULL; |
|---|
| 23427 | n/a | _rv = MediaSetClip(mh, |
|---|
| 23428 | n/a | theClip); |
|---|
| 23429 | n/a | _res = Py_BuildValue("l", |
|---|
| 23430 | n/a | _rv); |
|---|
| 23431 | n/a | return _res; |
|---|
| 23432 | n/a | } |
|---|
| 23433 | n/a | |
|---|
| 23434 | n/a | static PyObject *Qt_MediaGetTrackOpaque(PyObject *_self, PyObject *_args) |
|---|
| 23435 | n/a | { |
|---|
| 23436 | n/a | PyObject *_res = NULL; |
|---|
| 23437 | n/a | ComponentResult _rv; |
|---|
| 23438 | n/a | MediaHandler mh; |
|---|
| 23439 | n/a | Boolean trackIsOpaque; |
|---|
| 23440 | n/a | #ifndef MediaGetTrackOpaque |
|---|
| 23441 | n/a | PyMac_PRECHECK(MediaGetTrackOpaque); |
|---|
| 23442 | n/a | #endif |
|---|
| 23443 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23444 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23445 | n/a | return NULL; |
|---|
| 23446 | n/a | _rv = MediaGetTrackOpaque(mh, |
|---|
| 23447 | n/a | &trackIsOpaque); |
|---|
| 23448 | n/a | _res = Py_BuildValue("lb", |
|---|
| 23449 | n/a | _rv, |
|---|
| 23450 | n/a | trackIsOpaque); |
|---|
| 23451 | n/a | return _res; |
|---|
| 23452 | n/a | } |
|---|
| 23453 | n/a | |
|---|
| 23454 | n/a | static PyObject *Qt_MediaSetGraphicsMode(PyObject *_self, PyObject *_args) |
|---|
| 23455 | n/a | { |
|---|
| 23456 | n/a | PyObject *_res = NULL; |
|---|
| 23457 | n/a | ComponentResult _rv; |
|---|
| 23458 | n/a | MediaHandler mh; |
|---|
| 23459 | n/a | long mode; |
|---|
| 23460 | n/a | RGBColor opColor; |
|---|
| 23461 | n/a | #ifndef MediaSetGraphicsMode |
|---|
| 23462 | n/a | PyMac_PRECHECK(MediaSetGraphicsMode); |
|---|
| 23463 | n/a | #endif |
|---|
| 23464 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 23465 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23466 | n/a | &mode, |
|---|
| 23467 | n/a | QdRGB_Convert, &opColor)) |
|---|
| 23468 | n/a | return NULL; |
|---|
| 23469 | n/a | _rv = MediaSetGraphicsMode(mh, |
|---|
| 23470 | n/a | mode, |
|---|
| 23471 | n/a | &opColor); |
|---|
| 23472 | n/a | _res = Py_BuildValue("l", |
|---|
| 23473 | n/a | _rv); |
|---|
| 23474 | n/a | return _res; |
|---|
| 23475 | n/a | } |
|---|
| 23476 | n/a | |
|---|
| 23477 | n/a | static PyObject *Qt_MediaGetGraphicsMode(PyObject *_self, PyObject *_args) |
|---|
| 23478 | n/a | { |
|---|
| 23479 | n/a | PyObject *_res = NULL; |
|---|
| 23480 | n/a | ComponentResult _rv; |
|---|
| 23481 | n/a | MediaHandler mh; |
|---|
| 23482 | n/a | long mode; |
|---|
| 23483 | n/a | RGBColor opColor; |
|---|
| 23484 | n/a | #ifndef MediaGetGraphicsMode |
|---|
| 23485 | n/a | PyMac_PRECHECK(MediaGetGraphicsMode); |
|---|
| 23486 | n/a | #endif |
|---|
| 23487 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23488 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23489 | n/a | return NULL; |
|---|
| 23490 | n/a | _rv = MediaGetGraphicsMode(mh, |
|---|
| 23491 | n/a | &mode, |
|---|
| 23492 | n/a | &opColor); |
|---|
| 23493 | n/a | _res = Py_BuildValue("llO&", |
|---|
| 23494 | n/a | _rv, |
|---|
| 23495 | n/a | mode, |
|---|
| 23496 | n/a | QdRGB_New, &opColor); |
|---|
| 23497 | n/a | return _res; |
|---|
| 23498 | n/a | } |
|---|
| 23499 | n/a | |
|---|
| 23500 | n/a | static PyObject *Qt_MediaGSetVolume(PyObject *_self, PyObject *_args) |
|---|
| 23501 | n/a | { |
|---|
| 23502 | n/a | PyObject *_res = NULL; |
|---|
| 23503 | n/a | ComponentResult _rv; |
|---|
| 23504 | n/a | MediaHandler mh; |
|---|
| 23505 | n/a | short volume; |
|---|
| 23506 | n/a | #ifndef MediaGSetVolume |
|---|
| 23507 | n/a | PyMac_PRECHECK(MediaGSetVolume); |
|---|
| 23508 | n/a | #endif |
|---|
| 23509 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 23510 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23511 | n/a | &volume)) |
|---|
| 23512 | n/a | return NULL; |
|---|
| 23513 | n/a | _rv = MediaGSetVolume(mh, |
|---|
| 23514 | n/a | volume); |
|---|
| 23515 | n/a | _res = Py_BuildValue("l", |
|---|
| 23516 | n/a | _rv); |
|---|
| 23517 | n/a | return _res; |
|---|
| 23518 | n/a | } |
|---|
| 23519 | n/a | |
|---|
| 23520 | n/a | static PyObject *Qt_MediaSetSoundBalance(PyObject *_self, PyObject *_args) |
|---|
| 23521 | n/a | { |
|---|
| 23522 | n/a | PyObject *_res = NULL; |
|---|
| 23523 | n/a | ComponentResult _rv; |
|---|
| 23524 | n/a | MediaHandler mh; |
|---|
| 23525 | n/a | short balance; |
|---|
| 23526 | n/a | #ifndef MediaSetSoundBalance |
|---|
| 23527 | n/a | PyMac_PRECHECK(MediaSetSoundBalance); |
|---|
| 23528 | n/a | #endif |
|---|
| 23529 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 23530 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23531 | n/a | &balance)) |
|---|
| 23532 | n/a | return NULL; |
|---|
| 23533 | n/a | _rv = MediaSetSoundBalance(mh, |
|---|
| 23534 | n/a | balance); |
|---|
| 23535 | n/a | _res = Py_BuildValue("l", |
|---|
| 23536 | n/a | _rv); |
|---|
| 23537 | n/a | return _res; |
|---|
| 23538 | n/a | } |
|---|
| 23539 | n/a | |
|---|
| 23540 | n/a | static PyObject *Qt_MediaGetSoundBalance(PyObject *_self, PyObject *_args) |
|---|
| 23541 | n/a | { |
|---|
| 23542 | n/a | PyObject *_res = NULL; |
|---|
| 23543 | n/a | ComponentResult _rv; |
|---|
| 23544 | n/a | MediaHandler mh; |
|---|
| 23545 | n/a | short balance; |
|---|
| 23546 | n/a | #ifndef MediaGetSoundBalance |
|---|
| 23547 | n/a | PyMac_PRECHECK(MediaGetSoundBalance); |
|---|
| 23548 | n/a | #endif |
|---|
| 23549 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23550 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23551 | n/a | return NULL; |
|---|
| 23552 | n/a | _rv = MediaGetSoundBalance(mh, |
|---|
| 23553 | n/a | &balance); |
|---|
| 23554 | n/a | _res = Py_BuildValue("lh", |
|---|
| 23555 | n/a | _rv, |
|---|
| 23556 | n/a | balance); |
|---|
| 23557 | n/a | return _res; |
|---|
| 23558 | n/a | } |
|---|
| 23559 | n/a | |
|---|
| 23560 | n/a | static PyObject *Qt_MediaGetNextBoundsChange(PyObject *_self, PyObject *_args) |
|---|
| 23561 | n/a | { |
|---|
| 23562 | n/a | PyObject *_res = NULL; |
|---|
| 23563 | n/a | ComponentResult _rv; |
|---|
| 23564 | n/a | MediaHandler mh; |
|---|
| 23565 | n/a | TimeValue when; |
|---|
| 23566 | n/a | #ifndef MediaGetNextBoundsChange |
|---|
| 23567 | n/a | PyMac_PRECHECK(MediaGetNextBoundsChange); |
|---|
| 23568 | n/a | #endif |
|---|
| 23569 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23570 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23571 | n/a | return NULL; |
|---|
| 23572 | n/a | _rv = MediaGetNextBoundsChange(mh, |
|---|
| 23573 | n/a | &when); |
|---|
| 23574 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23575 | n/a | _rv, |
|---|
| 23576 | n/a | when); |
|---|
| 23577 | n/a | return _res; |
|---|
| 23578 | n/a | } |
|---|
| 23579 | n/a | |
|---|
| 23580 | n/a | static PyObject *Qt_MediaGetSrcRgn(PyObject *_self, PyObject *_args) |
|---|
| 23581 | n/a | { |
|---|
| 23582 | n/a | PyObject *_res = NULL; |
|---|
| 23583 | n/a | ComponentResult _rv; |
|---|
| 23584 | n/a | MediaHandler mh; |
|---|
| 23585 | n/a | RgnHandle rgn; |
|---|
| 23586 | n/a | TimeValue atMediaTime; |
|---|
| 23587 | n/a | #ifndef MediaGetSrcRgn |
|---|
| 23588 | n/a | PyMac_PRECHECK(MediaGetSrcRgn); |
|---|
| 23589 | n/a | #endif |
|---|
| 23590 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 23591 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23592 | n/a | ResObj_Convert, &rgn, |
|---|
| 23593 | n/a | &atMediaTime)) |
|---|
| 23594 | n/a | return NULL; |
|---|
| 23595 | n/a | _rv = MediaGetSrcRgn(mh, |
|---|
| 23596 | n/a | rgn, |
|---|
| 23597 | n/a | atMediaTime); |
|---|
| 23598 | n/a | _res = Py_BuildValue("l", |
|---|
| 23599 | n/a | _rv); |
|---|
| 23600 | n/a | return _res; |
|---|
| 23601 | n/a | } |
|---|
| 23602 | n/a | |
|---|
| 23603 | n/a | static PyObject *Qt_MediaPreroll(PyObject *_self, PyObject *_args) |
|---|
| 23604 | n/a | { |
|---|
| 23605 | n/a | PyObject *_res = NULL; |
|---|
| 23606 | n/a | ComponentResult _rv; |
|---|
| 23607 | n/a | MediaHandler mh; |
|---|
| 23608 | n/a | TimeValue time; |
|---|
| 23609 | n/a | Fixed rate; |
|---|
| 23610 | n/a | #ifndef MediaPreroll |
|---|
| 23611 | n/a | PyMac_PRECHECK(MediaPreroll); |
|---|
| 23612 | n/a | #endif |
|---|
| 23613 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 23614 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23615 | n/a | &time, |
|---|
| 23616 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 23617 | n/a | return NULL; |
|---|
| 23618 | n/a | _rv = MediaPreroll(mh, |
|---|
| 23619 | n/a | time, |
|---|
| 23620 | n/a | rate); |
|---|
| 23621 | n/a | _res = Py_BuildValue("l", |
|---|
| 23622 | n/a | _rv); |
|---|
| 23623 | n/a | return _res; |
|---|
| 23624 | n/a | } |
|---|
| 23625 | n/a | |
|---|
| 23626 | n/a | static PyObject *Qt_MediaSampleDescriptionChanged(PyObject *_self, PyObject *_args) |
|---|
| 23627 | n/a | { |
|---|
| 23628 | n/a | PyObject *_res = NULL; |
|---|
| 23629 | n/a | ComponentResult _rv; |
|---|
| 23630 | n/a | MediaHandler mh; |
|---|
| 23631 | n/a | long index; |
|---|
| 23632 | n/a | #ifndef MediaSampleDescriptionChanged |
|---|
| 23633 | n/a | PyMac_PRECHECK(MediaSampleDescriptionChanged); |
|---|
| 23634 | n/a | #endif |
|---|
| 23635 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23636 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23637 | n/a | &index)) |
|---|
| 23638 | n/a | return NULL; |
|---|
| 23639 | n/a | _rv = MediaSampleDescriptionChanged(mh, |
|---|
| 23640 | n/a | index); |
|---|
| 23641 | n/a | _res = Py_BuildValue("l", |
|---|
| 23642 | n/a | _rv); |
|---|
| 23643 | n/a | return _res; |
|---|
| 23644 | n/a | } |
|---|
| 23645 | n/a | |
|---|
| 23646 | n/a | static PyObject *Qt_MediaHasCharacteristic(PyObject *_self, PyObject *_args) |
|---|
| 23647 | n/a | { |
|---|
| 23648 | n/a | PyObject *_res = NULL; |
|---|
| 23649 | n/a | ComponentResult _rv; |
|---|
| 23650 | n/a | MediaHandler mh; |
|---|
| 23651 | n/a | OSType characteristic; |
|---|
| 23652 | n/a | Boolean hasIt; |
|---|
| 23653 | n/a | #ifndef MediaHasCharacteristic |
|---|
| 23654 | n/a | PyMac_PRECHECK(MediaHasCharacteristic); |
|---|
| 23655 | n/a | #endif |
|---|
| 23656 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23657 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23658 | n/a | PyMac_GetOSType, &characteristic)) |
|---|
| 23659 | n/a | return NULL; |
|---|
| 23660 | n/a | _rv = MediaHasCharacteristic(mh, |
|---|
| 23661 | n/a | characteristic, |
|---|
| 23662 | n/a | &hasIt); |
|---|
| 23663 | n/a | _res = Py_BuildValue("lb", |
|---|
| 23664 | n/a | _rv, |
|---|
| 23665 | n/a | hasIt); |
|---|
| 23666 | n/a | return _res; |
|---|
| 23667 | n/a | } |
|---|
| 23668 | n/a | |
|---|
| 23669 | n/a | static PyObject *Qt_MediaGetOffscreenBufferSize(PyObject *_self, PyObject *_args) |
|---|
| 23670 | n/a | { |
|---|
| 23671 | n/a | PyObject *_res = NULL; |
|---|
| 23672 | n/a | ComponentResult _rv; |
|---|
| 23673 | n/a | MediaHandler mh; |
|---|
| 23674 | n/a | Rect bounds; |
|---|
| 23675 | n/a | short depth; |
|---|
| 23676 | n/a | CTabHandle ctab; |
|---|
| 23677 | n/a | #ifndef MediaGetOffscreenBufferSize |
|---|
| 23678 | n/a | PyMac_PRECHECK(MediaGetOffscreenBufferSize); |
|---|
| 23679 | n/a | #endif |
|---|
| 23680 | n/a | if (!PyArg_ParseTuple(_args, "O&hO&", |
|---|
| 23681 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23682 | n/a | &depth, |
|---|
| 23683 | n/a | ResObj_Convert, &ctab)) |
|---|
| 23684 | n/a | return NULL; |
|---|
| 23685 | n/a | _rv = MediaGetOffscreenBufferSize(mh, |
|---|
| 23686 | n/a | &bounds, |
|---|
| 23687 | n/a | depth, |
|---|
| 23688 | n/a | ctab); |
|---|
| 23689 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 23690 | n/a | _rv, |
|---|
| 23691 | n/a | PyMac_BuildRect, &bounds); |
|---|
| 23692 | n/a | return _res; |
|---|
| 23693 | n/a | } |
|---|
| 23694 | n/a | |
|---|
| 23695 | n/a | static PyObject *Qt_MediaSetHints(PyObject *_self, PyObject *_args) |
|---|
| 23696 | n/a | { |
|---|
| 23697 | n/a | PyObject *_res = NULL; |
|---|
| 23698 | n/a | ComponentResult _rv; |
|---|
| 23699 | n/a | MediaHandler mh; |
|---|
| 23700 | n/a | long hints; |
|---|
| 23701 | n/a | #ifndef MediaSetHints |
|---|
| 23702 | n/a | PyMac_PRECHECK(MediaSetHints); |
|---|
| 23703 | n/a | #endif |
|---|
| 23704 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23705 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23706 | n/a | &hints)) |
|---|
| 23707 | n/a | return NULL; |
|---|
| 23708 | n/a | _rv = MediaSetHints(mh, |
|---|
| 23709 | n/a | hints); |
|---|
| 23710 | n/a | _res = Py_BuildValue("l", |
|---|
| 23711 | n/a | _rv); |
|---|
| 23712 | n/a | return _res; |
|---|
| 23713 | n/a | } |
|---|
| 23714 | n/a | |
|---|
| 23715 | n/a | static PyObject *Qt_MediaGetName(PyObject *_self, PyObject *_args) |
|---|
| 23716 | n/a | { |
|---|
| 23717 | n/a | PyObject *_res = NULL; |
|---|
| 23718 | n/a | ComponentResult _rv; |
|---|
| 23719 | n/a | MediaHandler mh; |
|---|
| 23720 | n/a | Str255 name; |
|---|
| 23721 | n/a | long requestedLanguage; |
|---|
| 23722 | n/a | long actualLanguage; |
|---|
| 23723 | n/a | #ifndef MediaGetName |
|---|
| 23724 | n/a | PyMac_PRECHECK(MediaGetName); |
|---|
| 23725 | n/a | #endif |
|---|
| 23726 | n/a | if (!PyArg_ParseTuple(_args, "O&O&l", |
|---|
| 23727 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23728 | n/a | PyMac_GetStr255, name, |
|---|
| 23729 | n/a | &requestedLanguage)) |
|---|
| 23730 | n/a | return NULL; |
|---|
| 23731 | n/a | _rv = MediaGetName(mh, |
|---|
| 23732 | n/a | name, |
|---|
| 23733 | n/a | requestedLanguage, |
|---|
| 23734 | n/a | &actualLanguage); |
|---|
| 23735 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23736 | n/a | _rv, |
|---|
| 23737 | n/a | actualLanguage); |
|---|
| 23738 | n/a | return _res; |
|---|
| 23739 | n/a | } |
|---|
| 23740 | n/a | |
|---|
| 23741 | n/a | static PyObject *Qt_MediaForceUpdate(PyObject *_self, PyObject *_args) |
|---|
| 23742 | n/a | { |
|---|
| 23743 | n/a | PyObject *_res = NULL; |
|---|
| 23744 | n/a | ComponentResult _rv; |
|---|
| 23745 | n/a | MediaHandler mh; |
|---|
| 23746 | n/a | long forceUpdateFlags; |
|---|
| 23747 | n/a | #ifndef MediaForceUpdate |
|---|
| 23748 | n/a | PyMac_PRECHECK(MediaForceUpdate); |
|---|
| 23749 | n/a | #endif |
|---|
| 23750 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23751 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23752 | n/a | &forceUpdateFlags)) |
|---|
| 23753 | n/a | return NULL; |
|---|
| 23754 | n/a | _rv = MediaForceUpdate(mh, |
|---|
| 23755 | n/a | forceUpdateFlags); |
|---|
| 23756 | n/a | _res = Py_BuildValue("l", |
|---|
| 23757 | n/a | _rv); |
|---|
| 23758 | n/a | return _res; |
|---|
| 23759 | n/a | } |
|---|
| 23760 | n/a | |
|---|
| 23761 | n/a | static PyObject *Qt_MediaGetDrawingRgn(PyObject *_self, PyObject *_args) |
|---|
| 23762 | n/a | { |
|---|
| 23763 | n/a | PyObject *_res = NULL; |
|---|
| 23764 | n/a | ComponentResult _rv; |
|---|
| 23765 | n/a | MediaHandler mh; |
|---|
| 23766 | n/a | RgnHandle partialRgn; |
|---|
| 23767 | n/a | #ifndef MediaGetDrawingRgn |
|---|
| 23768 | n/a | PyMac_PRECHECK(MediaGetDrawingRgn); |
|---|
| 23769 | n/a | #endif |
|---|
| 23770 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23771 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23772 | n/a | return NULL; |
|---|
| 23773 | n/a | _rv = MediaGetDrawingRgn(mh, |
|---|
| 23774 | n/a | &partialRgn); |
|---|
| 23775 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 23776 | n/a | _rv, |
|---|
| 23777 | n/a | ResObj_New, partialRgn); |
|---|
| 23778 | n/a | return _res; |
|---|
| 23779 | n/a | } |
|---|
| 23780 | n/a | |
|---|
| 23781 | n/a | static PyObject *Qt_MediaGSetActiveSegment(PyObject *_self, PyObject *_args) |
|---|
| 23782 | n/a | { |
|---|
| 23783 | n/a | PyObject *_res = NULL; |
|---|
| 23784 | n/a | ComponentResult _rv; |
|---|
| 23785 | n/a | MediaHandler mh; |
|---|
| 23786 | n/a | TimeValue activeStart; |
|---|
| 23787 | n/a | TimeValue activeDuration; |
|---|
| 23788 | n/a | #ifndef MediaGSetActiveSegment |
|---|
| 23789 | n/a | PyMac_PRECHECK(MediaGSetActiveSegment); |
|---|
| 23790 | n/a | #endif |
|---|
| 23791 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 23792 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23793 | n/a | &activeStart, |
|---|
| 23794 | n/a | &activeDuration)) |
|---|
| 23795 | n/a | return NULL; |
|---|
| 23796 | n/a | _rv = MediaGSetActiveSegment(mh, |
|---|
| 23797 | n/a | activeStart, |
|---|
| 23798 | n/a | activeDuration); |
|---|
| 23799 | n/a | _res = Py_BuildValue("l", |
|---|
| 23800 | n/a | _rv); |
|---|
| 23801 | n/a | return _res; |
|---|
| 23802 | n/a | } |
|---|
| 23803 | n/a | |
|---|
| 23804 | n/a | static PyObject *Qt_MediaInvalidateRegion(PyObject *_self, PyObject *_args) |
|---|
| 23805 | n/a | { |
|---|
| 23806 | n/a | PyObject *_res = NULL; |
|---|
| 23807 | n/a | ComponentResult _rv; |
|---|
| 23808 | n/a | MediaHandler mh; |
|---|
| 23809 | n/a | RgnHandle invalRgn; |
|---|
| 23810 | n/a | #ifndef MediaInvalidateRegion |
|---|
| 23811 | n/a | PyMac_PRECHECK(MediaInvalidateRegion); |
|---|
| 23812 | n/a | #endif |
|---|
| 23813 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 23814 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23815 | n/a | ResObj_Convert, &invalRgn)) |
|---|
| 23816 | n/a | return NULL; |
|---|
| 23817 | n/a | _rv = MediaInvalidateRegion(mh, |
|---|
| 23818 | n/a | invalRgn); |
|---|
| 23819 | n/a | _res = Py_BuildValue("l", |
|---|
| 23820 | n/a | _rv); |
|---|
| 23821 | n/a | return _res; |
|---|
| 23822 | n/a | } |
|---|
| 23823 | n/a | |
|---|
| 23824 | n/a | static PyObject *Qt_MediaGetNextStepTime(PyObject *_self, PyObject *_args) |
|---|
| 23825 | n/a | { |
|---|
| 23826 | n/a | PyObject *_res = NULL; |
|---|
| 23827 | n/a | ComponentResult _rv; |
|---|
| 23828 | n/a | MediaHandler mh; |
|---|
| 23829 | n/a | short flags; |
|---|
| 23830 | n/a | TimeValue mediaTimeIn; |
|---|
| 23831 | n/a | TimeValue mediaTimeOut; |
|---|
| 23832 | n/a | Fixed rate; |
|---|
| 23833 | n/a | #ifndef MediaGetNextStepTime |
|---|
| 23834 | n/a | PyMac_PRECHECK(MediaGetNextStepTime); |
|---|
| 23835 | n/a | #endif |
|---|
| 23836 | n/a | if (!PyArg_ParseTuple(_args, "O&hlO&", |
|---|
| 23837 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23838 | n/a | &flags, |
|---|
| 23839 | n/a | &mediaTimeIn, |
|---|
| 23840 | n/a | PyMac_GetFixed, &rate)) |
|---|
| 23841 | n/a | return NULL; |
|---|
| 23842 | n/a | _rv = MediaGetNextStepTime(mh, |
|---|
| 23843 | n/a | flags, |
|---|
| 23844 | n/a | mediaTimeIn, |
|---|
| 23845 | n/a | &mediaTimeOut, |
|---|
| 23846 | n/a | rate); |
|---|
| 23847 | n/a | _res = Py_BuildValue("ll", |
|---|
| 23848 | n/a | _rv, |
|---|
| 23849 | n/a | mediaTimeOut); |
|---|
| 23850 | n/a | return _res; |
|---|
| 23851 | n/a | } |
|---|
| 23852 | n/a | |
|---|
| 23853 | n/a | static PyObject *Qt_MediaChangedNonPrimarySource(PyObject *_self, PyObject *_args) |
|---|
| 23854 | n/a | { |
|---|
| 23855 | n/a | PyObject *_res = NULL; |
|---|
| 23856 | n/a | ComponentResult _rv; |
|---|
| 23857 | n/a | MediaHandler mh; |
|---|
| 23858 | n/a | long inputIndex; |
|---|
| 23859 | n/a | #ifndef MediaChangedNonPrimarySource |
|---|
| 23860 | n/a | PyMac_PRECHECK(MediaChangedNonPrimarySource); |
|---|
| 23861 | n/a | #endif |
|---|
| 23862 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23863 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23864 | n/a | &inputIndex)) |
|---|
| 23865 | n/a | return NULL; |
|---|
| 23866 | n/a | _rv = MediaChangedNonPrimarySource(mh, |
|---|
| 23867 | n/a | inputIndex); |
|---|
| 23868 | n/a | _res = Py_BuildValue("l", |
|---|
| 23869 | n/a | _rv); |
|---|
| 23870 | n/a | return _res; |
|---|
| 23871 | n/a | } |
|---|
| 23872 | n/a | |
|---|
| 23873 | n/a | static PyObject *Qt_MediaTrackReferencesChanged(PyObject *_self, PyObject *_args) |
|---|
| 23874 | n/a | { |
|---|
| 23875 | n/a | PyObject *_res = NULL; |
|---|
| 23876 | n/a | ComponentResult _rv; |
|---|
| 23877 | n/a | MediaHandler mh; |
|---|
| 23878 | n/a | #ifndef MediaTrackReferencesChanged |
|---|
| 23879 | n/a | PyMac_PRECHECK(MediaTrackReferencesChanged); |
|---|
| 23880 | n/a | #endif |
|---|
| 23881 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23882 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23883 | n/a | return NULL; |
|---|
| 23884 | n/a | _rv = MediaTrackReferencesChanged(mh); |
|---|
| 23885 | n/a | _res = Py_BuildValue("l", |
|---|
| 23886 | n/a | _rv); |
|---|
| 23887 | n/a | return _res; |
|---|
| 23888 | n/a | } |
|---|
| 23889 | n/a | |
|---|
| 23890 | n/a | static PyObject *Qt_MediaReleaseSampleDataPointer(PyObject *_self, PyObject *_args) |
|---|
| 23891 | n/a | { |
|---|
| 23892 | n/a | PyObject *_res = NULL; |
|---|
| 23893 | n/a | ComponentResult _rv; |
|---|
| 23894 | n/a | MediaHandler mh; |
|---|
| 23895 | n/a | long sampleNum; |
|---|
| 23896 | n/a | #ifndef MediaReleaseSampleDataPointer |
|---|
| 23897 | n/a | PyMac_PRECHECK(MediaReleaseSampleDataPointer); |
|---|
| 23898 | n/a | #endif |
|---|
| 23899 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23900 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23901 | n/a | &sampleNum)) |
|---|
| 23902 | n/a | return NULL; |
|---|
| 23903 | n/a | _rv = MediaReleaseSampleDataPointer(mh, |
|---|
| 23904 | n/a | sampleNum); |
|---|
| 23905 | n/a | _res = Py_BuildValue("l", |
|---|
| 23906 | n/a | _rv); |
|---|
| 23907 | n/a | return _res; |
|---|
| 23908 | n/a | } |
|---|
| 23909 | n/a | |
|---|
| 23910 | n/a | static PyObject *Qt_MediaTrackPropertyAtomChanged(PyObject *_self, PyObject *_args) |
|---|
| 23911 | n/a | { |
|---|
| 23912 | n/a | PyObject *_res = NULL; |
|---|
| 23913 | n/a | ComponentResult _rv; |
|---|
| 23914 | n/a | MediaHandler mh; |
|---|
| 23915 | n/a | #ifndef MediaTrackPropertyAtomChanged |
|---|
| 23916 | n/a | PyMac_PRECHECK(MediaTrackPropertyAtomChanged); |
|---|
| 23917 | n/a | #endif |
|---|
| 23918 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 23919 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 23920 | n/a | return NULL; |
|---|
| 23921 | n/a | _rv = MediaTrackPropertyAtomChanged(mh); |
|---|
| 23922 | n/a | _res = Py_BuildValue("l", |
|---|
| 23923 | n/a | _rv); |
|---|
| 23924 | n/a | return _res; |
|---|
| 23925 | n/a | } |
|---|
| 23926 | n/a | |
|---|
| 23927 | n/a | static PyObject *Qt_MediaSetVideoParam(PyObject *_self, PyObject *_args) |
|---|
| 23928 | n/a | { |
|---|
| 23929 | n/a | PyObject *_res = NULL; |
|---|
| 23930 | n/a | ComponentResult _rv; |
|---|
| 23931 | n/a | MediaHandler mh; |
|---|
| 23932 | n/a | long whichParam; |
|---|
| 23933 | n/a | unsigned short value; |
|---|
| 23934 | n/a | #ifndef MediaSetVideoParam |
|---|
| 23935 | n/a | PyMac_PRECHECK(MediaSetVideoParam); |
|---|
| 23936 | n/a | #endif |
|---|
| 23937 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23938 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23939 | n/a | &whichParam)) |
|---|
| 23940 | n/a | return NULL; |
|---|
| 23941 | n/a | _rv = MediaSetVideoParam(mh, |
|---|
| 23942 | n/a | whichParam, |
|---|
| 23943 | n/a | &value); |
|---|
| 23944 | n/a | _res = Py_BuildValue("lH", |
|---|
| 23945 | n/a | _rv, |
|---|
| 23946 | n/a | value); |
|---|
| 23947 | n/a | return _res; |
|---|
| 23948 | n/a | } |
|---|
| 23949 | n/a | |
|---|
| 23950 | n/a | static PyObject *Qt_MediaGetVideoParam(PyObject *_self, PyObject *_args) |
|---|
| 23951 | n/a | { |
|---|
| 23952 | n/a | PyObject *_res = NULL; |
|---|
| 23953 | n/a | ComponentResult _rv; |
|---|
| 23954 | n/a | MediaHandler mh; |
|---|
| 23955 | n/a | long whichParam; |
|---|
| 23956 | n/a | unsigned short value; |
|---|
| 23957 | n/a | #ifndef MediaGetVideoParam |
|---|
| 23958 | n/a | PyMac_PRECHECK(MediaGetVideoParam); |
|---|
| 23959 | n/a | #endif |
|---|
| 23960 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 23961 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23962 | n/a | &whichParam)) |
|---|
| 23963 | n/a | return NULL; |
|---|
| 23964 | n/a | _rv = MediaGetVideoParam(mh, |
|---|
| 23965 | n/a | whichParam, |
|---|
| 23966 | n/a | &value); |
|---|
| 23967 | n/a | _res = Py_BuildValue("lH", |
|---|
| 23968 | n/a | _rv, |
|---|
| 23969 | n/a | value); |
|---|
| 23970 | n/a | return _res; |
|---|
| 23971 | n/a | } |
|---|
| 23972 | n/a | |
|---|
| 23973 | n/a | static PyObject *Qt_MediaCompare(PyObject *_self, PyObject *_args) |
|---|
| 23974 | n/a | { |
|---|
| 23975 | n/a | PyObject *_res = NULL; |
|---|
| 23976 | n/a | ComponentResult _rv; |
|---|
| 23977 | n/a | MediaHandler mh; |
|---|
| 23978 | n/a | Boolean isOK; |
|---|
| 23979 | n/a | Media srcMedia; |
|---|
| 23980 | n/a | ComponentInstance srcMediaComponent; |
|---|
| 23981 | n/a | #ifndef MediaCompare |
|---|
| 23982 | n/a | PyMac_PRECHECK(MediaCompare); |
|---|
| 23983 | n/a | #endif |
|---|
| 23984 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 23985 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 23986 | n/a | MediaObj_Convert, &srcMedia, |
|---|
| 23987 | n/a | CmpInstObj_Convert, &srcMediaComponent)) |
|---|
| 23988 | n/a | return NULL; |
|---|
| 23989 | n/a | _rv = MediaCompare(mh, |
|---|
| 23990 | n/a | &isOK, |
|---|
| 23991 | n/a | srcMedia, |
|---|
| 23992 | n/a | srcMediaComponent); |
|---|
| 23993 | n/a | _res = Py_BuildValue("lb", |
|---|
| 23994 | n/a | _rv, |
|---|
| 23995 | n/a | isOK); |
|---|
| 23996 | n/a | return _res; |
|---|
| 23997 | n/a | } |
|---|
| 23998 | n/a | |
|---|
| 23999 | n/a | static PyObject *Qt_MediaGetClock(PyObject *_self, PyObject *_args) |
|---|
| 24000 | n/a | { |
|---|
| 24001 | n/a | PyObject *_res = NULL; |
|---|
| 24002 | n/a | ComponentResult _rv; |
|---|
| 24003 | n/a | MediaHandler mh; |
|---|
| 24004 | n/a | ComponentInstance clock; |
|---|
| 24005 | n/a | #ifndef MediaGetClock |
|---|
| 24006 | n/a | PyMac_PRECHECK(MediaGetClock); |
|---|
| 24007 | n/a | #endif |
|---|
| 24008 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24009 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24010 | n/a | return NULL; |
|---|
| 24011 | n/a | _rv = MediaGetClock(mh, |
|---|
| 24012 | n/a | &clock); |
|---|
| 24013 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 24014 | n/a | _rv, |
|---|
| 24015 | n/a | CmpInstObj_New, clock); |
|---|
| 24016 | n/a | return _res; |
|---|
| 24017 | n/a | } |
|---|
| 24018 | n/a | |
|---|
| 24019 | n/a | static PyObject *Qt_MediaSetSoundOutputComponent(PyObject *_self, PyObject *_args) |
|---|
| 24020 | n/a | { |
|---|
| 24021 | n/a | PyObject *_res = NULL; |
|---|
| 24022 | n/a | ComponentResult _rv; |
|---|
| 24023 | n/a | MediaHandler mh; |
|---|
| 24024 | n/a | Component outputComponent; |
|---|
| 24025 | n/a | #ifndef MediaSetSoundOutputComponent |
|---|
| 24026 | n/a | PyMac_PRECHECK(MediaSetSoundOutputComponent); |
|---|
| 24027 | n/a | #endif |
|---|
| 24028 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24029 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24030 | n/a | CmpObj_Convert, &outputComponent)) |
|---|
| 24031 | n/a | return NULL; |
|---|
| 24032 | n/a | _rv = MediaSetSoundOutputComponent(mh, |
|---|
| 24033 | n/a | outputComponent); |
|---|
| 24034 | n/a | _res = Py_BuildValue("l", |
|---|
| 24035 | n/a | _rv); |
|---|
| 24036 | n/a | return _res; |
|---|
| 24037 | n/a | } |
|---|
| 24038 | n/a | |
|---|
| 24039 | n/a | static PyObject *Qt_MediaGetSoundOutputComponent(PyObject *_self, PyObject *_args) |
|---|
| 24040 | n/a | { |
|---|
| 24041 | n/a | PyObject *_res = NULL; |
|---|
| 24042 | n/a | ComponentResult _rv; |
|---|
| 24043 | n/a | MediaHandler mh; |
|---|
| 24044 | n/a | Component outputComponent; |
|---|
| 24045 | n/a | #ifndef MediaGetSoundOutputComponent |
|---|
| 24046 | n/a | PyMac_PRECHECK(MediaGetSoundOutputComponent); |
|---|
| 24047 | n/a | #endif |
|---|
| 24048 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24049 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24050 | n/a | return NULL; |
|---|
| 24051 | n/a | _rv = MediaGetSoundOutputComponent(mh, |
|---|
| 24052 | n/a | &outputComponent); |
|---|
| 24053 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 24054 | n/a | _rv, |
|---|
| 24055 | n/a | CmpObj_New, outputComponent); |
|---|
| 24056 | n/a | return _res; |
|---|
| 24057 | n/a | } |
|---|
| 24058 | n/a | |
|---|
| 24059 | n/a | static PyObject *Qt_MediaSetSoundLocalizationData(PyObject *_self, PyObject *_args) |
|---|
| 24060 | n/a | { |
|---|
| 24061 | n/a | PyObject *_res = NULL; |
|---|
| 24062 | n/a | ComponentResult _rv; |
|---|
| 24063 | n/a | MediaHandler mh; |
|---|
| 24064 | n/a | Handle data; |
|---|
| 24065 | n/a | #ifndef MediaSetSoundLocalizationData |
|---|
| 24066 | n/a | PyMac_PRECHECK(MediaSetSoundLocalizationData); |
|---|
| 24067 | n/a | #endif |
|---|
| 24068 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24069 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24070 | n/a | ResObj_Convert, &data)) |
|---|
| 24071 | n/a | return NULL; |
|---|
| 24072 | n/a | _rv = MediaSetSoundLocalizationData(mh, |
|---|
| 24073 | n/a | data); |
|---|
| 24074 | n/a | _res = Py_BuildValue("l", |
|---|
| 24075 | n/a | _rv); |
|---|
| 24076 | n/a | return _res; |
|---|
| 24077 | n/a | } |
|---|
| 24078 | n/a | |
|---|
| 24079 | n/a | static PyObject *Qt_MediaGetInvalidRegion(PyObject *_self, PyObject *_args) |
|---|
| 24080 | n/a | { |
|---|
| 24081 | n/a | PyObject *_res = NULL; |
|---|
| 24082 | n/a | ComponentResult _rv; |
|---|
| 24083 | n/a | MediaHandler mh; |
|---|
| 24084 | n/a | RgnHandle rgn; |
|---|
| 24085 | n/a | #ifndef MediaGetInvalidRegion |
|---|
| 24086 | n/a | PyMac_PRECHECK(MediaGetInvalidRegion); |
|---|
| 24087 | n/a | #endif |
|---|
| 24088 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24089 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24090 | n/a | ResObj_Convert, &rgn)) |
|---|
| 24091 | n/a | return NULL; |
|---|
| 24092 | n/a | _rv = MediaGetInvalidRegion(mh, |
|---|
| 24093 | n/a | rgn); |
|---|
| 24094 | n/a | _res = Py_BuildValue("l", |
|---|
| 24095 | n/a | _rv); |
|---|
| 24096 | n/a | return _res; |
|---|
| 24097 | n/a | } |
|---|
| 24098 | n/a | |
|---|
| 24099 | n/a | static PyObject *Qt_MediaSampleDescriptionB2N(PyObject *_self, PyObject *_args) |
|---|
| 24100 | n/a | { |
|---|
| 24101 | n/a | PyObject *_res = NULL; |
|---|
| 24102 | n/a | ComponentResult _rv; |
|---|
| 24103 | n/a | MediaHandler mh; |
|---|
| 24104 | n/a | SampleDescriptionHandle sampleDescriptionH; |
|---|
| 24105 | n/a | #ifndef MediaSampleDescriptionB2N |
|---|
| 24106 | n/a | PyMac_PRECHECK(MediaSampleDescriptionB2N); |
|---|
| 24107 | n/a | #endif |
|---|
| 24108 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24109 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24110 | n/a | ResObj_Convert, &sampleDescriptionH)) |
|---|
| 24111 | n/a | return NULL; |
|---|
| 24112 | n/a | _rv = MediaSampleDescriptionB2N(mh, |
|---|
| 24113 | n/a | sampleDescriptionH); |
|---|
| 24114 | n/a | _res = Py_BuildValue("l", |
|---|
| 24115 | n/a | _rv); |
|---|
| 24116 | n/a | return _res; |
|---|
| 24117 | n/a | } |
|---|
| 24118 | n/a | |
|---|
| 24119 | n/a | static PyObject *Qt_MediaSampleDescriptionN2B(PyObject *_self, PyObject *_args) |
|---|
| 24120 | n/a | { |
|---|
| 24121 | n/a | PyObject *_res = NULL; |
|---|
| 24122 | n/a | ComponentResult _rv; |
|---|
| 24123 | n/a | MediaHandler mh; |
|---|
| 24124 | n/a | SampleDescriptionHandle sampleDescriptionH; |
|---|
| 24125 | n/a | #ifndef MediaSampleDescriptionN2B |
|---|
| 24126 | n/a | PyMac_PRECHECK(MediaSampleDescriptionN2B); |
|---|
| 24127 | n/a | #endif |
|---|
| 24128 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24129 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24130 | n/a | ResObj_Convert, &sampleDescriptionH)) |
|---|
| 24131 | n/a | return NULL; |
|---|
| 24132 | n/a | _rv = MediaSampleDescriptionN2B(mh, |
|---|
| 24133 | n/a | sampleDescriptionH); |
|---|
| 24134 | n/a | _res = Py_BuildValue("l", |
|---|
| 24135 | n/a | _rv); |
|---|
| 24136 | n/a | return _res; |
|---|
| 24137 | n/a | } |
|---|
| 24138 | n/a | |
|---|
| 24139 | n/a | static PyObject *Qt_MediaFlushNonPrimarySourceData(PyObject *_self, PyObject *_args) |
|---|
| 24140 | n/a | { |
|---|
| 24141 | n/a | PyObject *_res = NULL; |
|---|
| 24142 | n/a | ComponentResult _rv; |
|---|
| 24143 | n/a | MediaHandler mh; |
|---|
| 24144 | n/a | long inputIndex; |
|---|
| 24145 | n/a | #ifndef MediaFlushNonPrimarySourceData |
|---|
| 24146 | n/a | PyMac_PRECHECK(MediaFlushNonPrimarySourceData); |
|---|
| 24147 | n/a | #endif |
|---|
| 24148 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 24149 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24150 | n/a | &inputIndex)) |
|---|
| 24151 | n/a | return NULL; |
|---|
| 24152 | n/a | _rv = MediaFlushNonPrimarySourceData(mh, |
|---|
| 24153 | n/a | inputIndex); |
|---|
| 24154 | n/a | _res = Py_BuildValue("l", |
|---|
| 24155 | n/a | _rv); |
|---|
| 24156 | n/a | return _res; |
|---|
| 24157 | n/a | } |
|---|
| 24158 | n/a | |
|---|
| 24159 | n/a | static PyObject *Qt_MediaGetURLLink(PyObject *_self, PyObject *_args) |
|---|
| 24160 | n/a | { |
|---|
| 24161 | n/a | PyObject *_res = NULL; |
|---|
| 24162 | n/a | ComponentResult _rv; |
|---|
| 24163 | n/a | MediaHandler mh; |
|---|
| 24164 | n/a | Point displayWhere; |
|---|
| 24165 | n/a | Handle urlLink; |
|---|
| 24166 | n/a | #ifndef MediaGetURLLink |
|---|
| 24167 | n/a | PyMac_PRECHECK(MediaGetURLLink); |
|---|
| 24168 | n/a | #endif |
|---|
| 24169 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24170 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24171 | n/a | PyMac_GetPoint, &displayWhere)) |
|---|
| 24172 | n/a | return NULL; |
|---|
| 24173 | n/a | _rv = MediaGetURLLink(mh, |
|---|
| 24174 | n/a | displayWhere, |
|---|
| 24175 | n/a | &urlLink); |
|---|
| 24176 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 24177 | n/a | _rv, |
|---|
| 24178 | n/a | ResObj_New, urlLink); |
|---|
| 24179 | n/a | return _res; |
|---|
| 24180 | n/a | } |
|---|
| 24181 | n/a | |
|---|
| 24182 | n/a | static PyObject *Qt_MediaHitTestForTargetRefCon(PyObject *_self, PyObject *_args) |
|---|
| 24183 | n/a | { |
|---|
| 24184 | n/a | PyObject *_res = NULL; |
|---|
| 24185 | n/a | ComponentResult _rv; |
|---|
| 24186 | n/a | MediaHandler mh; |
|---|
| 24187 | n/a | long flags; |
|---|
| 24188 | n/a | Point loc; |
|---|
| 24189 | n/a | long targetRefCon; |
|---|
| 24190 | n/a | #ifndef MediaHitTestForTargetRefCon |
|---|
| 24191 | n/a | PyMac_PRECHECK(MediaHitTestForTargetRefCon); |
|---|
| 24192 | n/a | #endif |
|---|
| 24193 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 24194 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24195 | n/a | &flags, |
|---|
| 24196 | n/a | PyMac_GetPoint, &loc)) |
|---|
| 24197 | n/a | return NULL; |
|---|
| 24198 | n/a | _rv = MediaHitTestForTargetRefCon(mh, |
|---|
| 24199 | n/a | flags, |
|---|
| 24200 | n/a | loc, |
|---|
| 24201 | n/a | &targetRefCon); |
|---|
| 24202 | n/a | _res = Py_BuildValue("ll", |
|---|
| 24203 | n/a | _rv, |
|---|
| 24204 | n/a | targetRefCon); |
|---|
| 24205 | n/a | return _res; |
|---|
| 24206 | n/a | } |
|---|
| 24207 | n/a | |
|---|
| 24208 | n/a | static PyObject *Qt_MediaHitTestTargetRefCon(PyObject *_self, PyObject *_args) |
|---|
| 24209 | n/a | { |
|---|
| 24210 | n/a | PyObject *_res = NULL; |
|---|
| 24211 | n/a | ComponentResult _rv; |
|---|
| 24212 | n/a | MediaHandler mh; |
|---|
| 24213 | n/a | long targetRefCon; |
|---|
| 24214 | n/a | long flags; |
|---|
| 24215 | n/a | Point loc; |
|---|
| 24216 | n/a | Boolean wasHit; |
|---|
| 24217 | n/a | #ifndef MediaHitTestTargetRefCon |
|---|
| 24218 | n/a | PyMac_PRECHECK(MediaHitTestTargetRefCon); |
|---|
| 24219 | n/a | #endif |
|---|
| 24220 | n/a | if (!PyArg_ParseTuple(_args, "O&llO&", |
|---|
| 24221 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24222 | n/a | &targetRefCon, |
|---|
| 24223 | n/a | &flags, |
|---|
| 24224 | n/a | PyMac_GetPoint, &loc)) |
|---|
| 24225 | n/a | return NULL; |
|---|
| 24226 | n/a | _rv = MediaHitTestTargetRefCon(mh, |
|---|
| 24227 | n/a | targetRefCon, |
|---|
| 24228 | n/a | flags, |
|---|
| 24229 | n/a | loc, |
|---|
| 24230 | n/a | &wasHit); |
|---|
| 24231 | n/a | _res = Py_BuildValue("lb", |
|---|
| 24232 | n/a | _rv, |
|---|
| 24233 | n/a | wasHit); |
|---|
| 24234 | n/a | return _res; |
|---|
| 24235 | n/a | } |
|---|
| 24236 | n/a | |
|---|
| 24237 | n/a | static PyObject *Qt_MediaDisposeTargetRefCon(PyObject *_self, PyObject *_args) |
|---|
| 24238 | n/a | { |
|---|
| 24239 | n/a | PyObject *_res = NULL; |
|---|
| 24240 | n/a | ComponentResult _rv; |
|---|
| 24241 | n/a | MediaHandler mh; |
|---|
| 24242 | n/a | long targetRefCon; |
|---|
| 24243 | n/a | #ifndef MediaDisposeTargetRefCon |
|---|
| 24244 | n/a | PyMac_PRECHECK(MediaDisposeTargetRefCon); |
|---|
| 24245 | n/a | #endif |
|---|
| 24246 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 24247 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24248 | n/a | &targetRefCon)) |
|---|
| 24249 | n/a | return NULL; |
|---|
| 24250 | n/a | _rv = MediaDisposeTargetRefCon(mh, |
|---|
| 24251 | n/a | targetRefCon); |
|---|
| 24252 | n/a | _res = Py_BuildValue("l", |
|---|
| 24253 | n/a | _rv); |
|---|
| 24254 | n/a | return _res; |
|---|
| 24255 | n/a | } |
|---|
| 24256 | n/a | |
|---|
| 24257 | n/a | static PyObject *Qt_MediaTargetRefConsEqual(PyObject *_self, PyObject *_args) |
|---|
| 24258 | n/a | { |
|---|
| 24259 | n/a | PyObject *_res = NULL; |
|---|
| 24260 | n/a | ComponentResult _rv; |
|---|
| 24261 | n/a | MediaHandler mh; |
|---|
| 24262 | n/a | long firstRefCon; |
|---|
| 24263 | n/a | long secondRefCon; |
|---|
| 24264 | n/a | Boolean equal; |
|---|
| 24265 | n/a | #ifndef MediaTargetRefConsEqual |
|---|
| 24266 | n/a | PyMac_PRECHECK(MediaTargetRefConsEqual); |
|---|
| 24267 | n/a | #endif |
|---|
| 24268 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 24269 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24270 | n/a | &firstRefCon, |
|---|
| 24271 | n/a | &secondRefCon)) |
|---|
| 24272 | n/a | return NULL; |
|---|
| 24273 | n/a | _rv = MediaTargetRefConsEqual(mh, |
|---|
| 24274 | n/a | firstRefCon, |
|---|
| 24275 | n/a | secondRefCon, |
|---|
| 24276 | n/a | &equal); |
|---|
| 24277 | n/a | _res = Py_BuildValue("lb", |
|---|
| 24278 | n/a | _rv, |
|---|
| 24279 | n/a | equal); |
|---|
| 24280 | n/a | return _res; |
|---|
| 24281 | n/a | } |
|---|
| 24282 | n/a | |
|---|
| 24283 | n/a | static PyObject *Qt_MediaPrePrerollCancel(PyObject *_self, PyObject *_args) |
|---|
| 24284 | n/a | { |
|---|
| 24285 | n/a | PyObject *_res = NULL; |
|---|
| 24286 | n/a | ComponentResult _rv; |
|---|
| 24287 | n/a | MediaHandler mh; |
|---|
| 24288 | n/a | void * refcon; |
|---|
| 24289 | n/a | #ifndef MediaPrePrerollCancel |
|---|
| 24290 | n/a | PyMac_PRECHECK(MediaPrePrerollCancel); |
|---|
| 24291 | n/a | #endif |
|---|
| 24292 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 24293 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24294 | n/a | &refcon)) |
|---|
| 24295 | n/a | return NULL; |
|---|
| 24296 | n/a | _rv = MediaPrePrerollCancel(mh, |
|---|
| 24297 | n/a | refcon); |
|---|
| 24298 | n/a | _res = Py_BuildValue("l", |
|---|
| 24299 | n/a | _rv); |
|---|
| 24300 | n/a | return _res; |
|---|
| 24301 | n/a | } |
|---|
| 24302 | n/a | |
|---|
| 24303 | n/a | static PyObject *Qt_MediaEnterEmptyEdit(PyObject *_self, PyObject *_args) |
|---|
| 24304 | n/a | { |
|---|
| 24305 | n/a | PyObject *_res = NULL; |
|---|
| 24306 | n/a | ComponentResult _rv; |
|---|
| 24307 | n/a | MediaHandler mh; |
|---|
| 24308 | n/a | #ifndef MediaEnterEmptyEdit |
|---|
| 24309 | n/a | PyMac_PRECHECK(MediaEnterEmptyEdit); |
|---|
| 24310 | n/a | #endif |
|---|
| 24311 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24312 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24313 | n/a | return NULL; |
|---|
| 24314 | n/a | _rv = MediaEnterEmptyEdit(mh); |
|---|
| 24315 | n/a | _res = Py_BuildValue("l", |
|---|
| 24316 | n/a | _rv); |
|---|
| 24317 | n/a | return _res; |
|---|
| 24318 | n/a | } |
|---|
| 24319 | n/a | |
|---|
| 24320 | n/a | static PyObject *Qt_MediaCurrentMediaQueuedData(PyObject *_self, PyObject *_args) |
|---|
| 24321 | n/a | { |
|---|
| 24322 | n/a | PyObject *_res = NULL; |
|---|
| 24323 | n/a | ComponentResult _rv; |
|---|
| 24324 | n/a | MediaHandler mh; |
|---|
| 24325 | n/a | long milliSecs; |
|---|
| 24326 | n/a | #ifndef MediaCurrentMediaQueuedData |
|---|
| 24327 | n/a | PyMac_PRECHECK(MediaCurrentMediaQueuedData); |
|---|
| 24328 | n/a | #endif |
|---|
| 24329 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24330 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24331 | n/a | return NULL; |
|---|
| 24332 | n/a | _rv = MediaCurrentMediaQueuedData(mh, |
|---|
| 24333 | n/a | &milliSecs); |
|---|
| 24334 | n/a | _res = Py_BuildValue("ll", |
|---|
| 24335 | n/a | _rv, |
|---|
| 24336 | n/a | milliSecs); |
|---|
| 24337 | n/a | return _res; |
|---|
| 24338 | n/a | } |
|---|
| 24339 | n/a | |
|---|
| 24340 | n/a | static PyObject *Qt_MediaGetEffectiveVolume(PyObject *_self, PyObject *_args) |
|---|
| 24341 | n/a | { |
|---|
| 24342 | n/a | PyObject *_res = NULL; |
|---|
| 24343 | n/a | ComponentResult _rv; |
|---|
| 24344 | n/a | MediaHandler mh; |
|---|
| 24345 | n/a | short volume; |
|---|
| 24346 | n/a | #ifndef MediaGetEffectiveVolume |
|---|
| 24347 | n/a | PyMac_PRECHECK(MediaGetEffectiveVolume); |
|---|
| 24348 | n/a | #endif |
|---|
| 24349 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24350 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24351 | n/a | return NULL; |
|---|
| 24352 | n/a | _rv = MediaGetEffectiveVolume(mh, |
|---|
| 24353 | n/a | &volume); |
|---|
| 24354 | n/a | _res = Py_BuildValue("lh", |
|---|
| 24355 | n/a | _rv, |
|---|
| 24356 | n/a | volume); |
|---|
| 24357 | n/a | return _res; |
|---|
| 24358 | n/a | } |
|---|
| 24359 | n/a | |
|---|
| 24360 | n/a | static PyObject *Qt_MediaGetSoundLevelMeteringEnabled(PyObject *_self, PyObject *_args) |
|---|
| 24361 | n/a | { |
|---|
| 24362 | n/a | PyObject *_res = NULL; |
|---|
| 24363 | n/a | ComponentResult _rv; |
|---|
| 24364 | n/a | MediaHandler mh; |
|---|
| 24365 | n/a | Boolean enabled; |
|---|
| 24366 | n/a | #ifndef MediaGetSoundLevelMeteringEnabled |
|---|
| 24367 | n/a | PyMac_PRECHECK(MediaGetSoundLevelMeteringEnabled); |
|---|
| 24368 | n/a | #endif |
|---|
| 24369 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24370 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24371 | n/a | return NULL; |
|---|
| 24372 | n/a | _rv = MediaGetSoundLevelMeteringEnabled(mh, |
|---|
| 24373 | n/a | &enabled); |
|---|
| 24374 | n/a | _res = Py_BuildValue("lb", |
|---|
| 24375 | n/a | _rv, |
|---|
| 24376 | n/a | enabled); |
|---|
| 24377 | n/a | return _res; |
|---|
| 24378 | n/a | } |
|---|
| 24379 | n/a | |
|---|
| 24380 | n/a | static PyObject *Qt_MediaSetSoundLevelMeteringEnabled(PyObject *_self, PyObject *_args) |
|---|
| 24381 | n/a | { |
|---|
| 24382 | n/a | PyObject *_res = NULL; |
|---|
| 24383 | n/a | ComponentResult _rv; |
|---|
| 24384 | n/a | MediaHandler mh; |
|---|
| 24385 | n/a | Boolean enable; |
|---|
| 24386 | n/a | #ifndef MediaSetSoundLevelMeteringEnabled |
|---|
| 24387 | n/a | PyMac_PRECHECK(MediaSetSoundLevelMeteringEnabled); |
|---|
| 24388 | n/a | #endif |
|---|
| 24389 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 24390 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24391 | n/a | &enable)) |
|---|
| 24392 | n/a | return NULL; |
|---|
| 24393 | n/a | _rv = MediaSetSoundLevelMeteringEnabled(mh, |
|---|
| 24394 | n/a | enable); |
|---|
| 24395 | n/a | _res = Py_BuildValue("l", |
|---|
| 24396 | n/a | _rv); |
|---|
| 24397 | n/a | return _res; |
|---|
| 24398 | n/a | } |
|---|
| 24399 | n/a | |
|---|
| 24400 | n/a | static PyObject *Qt_MediaGetEffectiveSoundBalance(PyObject *_self, PyObject *_args) |
|---|
| 24401 | n/a | { |
|---|
| 24402 | n/a | PyObject *_res = NULL; |
|---|
| 24403 | n/a | ComponentResult _rv; |
|---|
| 24404 | n/a | MediaHandler mh; |
|---|
| 24405 | n/a | short balance; |
|---|
| 24406 | n/a | #ifndef MediaGetEffectiveSoundBalance |
|---|
| 24407 | n/a | PyMac_PRECHECK(MediaGetEffectiveSoundBalance); |
|---|
| 24408 | n/a | #endif |
|---|
| 24409 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24410 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24411 | n/a | return NULL; |
|---|
| 24412 | n/a | _rv = MediaGetEffectiveSoundBalance(mh, |
|---|
| 24413 | n/a | &balance); |
|---|
| 24414 | n/a | _res = Py_BuildValue("lh", |
|---|
| 24415 | n/a | _rv, |
|---|
| 24416 | n/a | balance); |
|---|
| 24417 | n/a | return _res; |
|---|
| 24418 | n/a | } |
|---|
| 24419 | n/a | |
|---|
| 24420 | n/a | static PyObject *Qt_MediaSetScreenLock(PyObject *_self, PyObject *_args) |
|---|
| 24421 | n/a | { |
|---|
| 24422 | n/a | PyObject *_res = NULL; |
|---|
| 24423 | n/a | ComponentResult _rv; |
|---|
| 24424 | n/a | MediaHandler mh; |
|---|
| 24425 | n/a | Boolean lockIt; |
|---|
| 24426 | n/a | #ifndef MediaSetScreenLock |
|---|
| 24427 | n/a | PyMac_PRECHECK(MediaSetScreenLock); |
|---|
| 24428 | n/a | #endif |
|---|
| 24429 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 24430 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24431 | n/a | &lockIt)) |
|---|
| 24432 | n/a | return NULL; |
|---|
| 24433 | n/a | _rv = MediaSetScreenLock(mh, |
|---|
| 24434 | n/a | lockIt); |
|---|
| 24435 | n/a | _res = Py_BuildValue("l", |
|---|
| 24436 | n/a | _rv); |
|---|
| 24437 | n/a | return _res; |
|---|
| 24438 | n/a | } |
|---|
| 24439 | n/a | |
|---|
| 24440 | n/a | static PyObject *Qt_MediaGetErrorString(PyObject *_self, PyObject *_args) |
|---|
| 24441 | n/a | { |
|---|
| 24442 | n/a | PyObject *_res = NULL; |
|---|
| 24443 | n/a | ComponentResult _rv; |
|---|
| 24444 | n/a | MediaHandler mh; |
|---|
| 24445 | n/a | ComponentResult theError; |
|---|
| 24446 | n/a | Str255 errorString; |
|---|
| 24447 | n/a | #ifndef MediaGetErrorString |
|---|
| 24448 | n/a | PyMac_PRECHECK(MediaGetErrorString); |
|---|
| 24449 | n/a | #endif |
|---|
| 24450 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 24451 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24452 | n/a | &theError, |
|---|
| 24453 | n/a | PyMac_GetStr255, errorString)) |
|---|
| 24454 | n/a | return NULL; |
|---|
| 24455 | n/a | _rv = MediaGetErrorString(mh, |
|---|
| 24456 | n/a | theError, |
|---|
| 24457 | n/a | errorString); |
|---|
| 24458 | n/a | _res = Py_BuildValue("l", |
|---|
| 24459 | n/a | _rv); |
|---|
| 24460 | n/a | return _res; |
|---|
| 24461 | n/a | } |
|---|
| 24462 | n/a | |
|---|
| 24463 | n/a | static PyObject *Qt_MediaGetSoundEqualizerBandLevels(PyObject *_self, PyObject *_args) |
|---|
| 24464 | n/a | { |
|---|
| 24465 | n/a | PyObject *_res = NULL; |
|---|
| 24466 | n/a | ComponentResult _rv; |
|---|
| 24467 | n/a | MediaHandler mh; |
|---|
| 24468 | n/a | UInt8 bandLevels; |
|---|
| 24469 | n/a | #ifndef MediaGetSoundEqualizerBandLevels |
|---|
| 24470 | n/a | PyMac_PRECHECK(MediaGetSoundEqualizerBandLevels); |
|---|
| 24471 | n/a | #endif |
|---|
| 24472 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24473 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24474 | n/a | return NULL; |
|---|
| 24475 | n/a | _rv = MediaGetSoundEqualizerBandLevels(mh, |
|---|
| 24476 | n/a | &bandLevels); |
|---|
| 24477 | n/a | _res = Py_BuildValue("lb", |
|---|
| 24478 | n/a | _rv, |
|---|
| 24479 | n/a | bandLevels); |
|---|
| 24480 | n/a | return _res; |
|---|
| 24481 | n/a | } |
|---|
| 24482 | n/a | |
|---|
| 24483 | n/a | static PyObject *Qt_MediaDoIdleActions(PyObject *_self, PyObject *_args) |
|---|
| 24484 | n/a | { |
|---|
| 24485 | n/a | PyObject *_res = NULL; |
|---|
| 24486 | n/a | ComponentResult _rv; |
|---|
| 24487 | n/a | MediaHandler mh; |
|---|
| 24488 | n/a | #ifndef MediaDoIdleActions |
|---|
| 24489 | n/a | PyMac_PRECHECK(MediaDoIdleActions); |
|---|
| 24490 | n/a | #endif |
|---|
| 24491 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24492 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24493 | n/a | return NULL; |
|---|
| 24494 | n/a | _rv = MediaDoIdleActions(mh); |
|---|
| 24495 | n/a | _res = Py_BuildValue("l", |
|---|
| 24496 | n/a | _rv); |
|---|
| 24497 | n/a | return _res; |
|---|
| 24498 | n/a | } |
|---|
| 24499 | n/a | |
|---|
| 24500 | n/a | static PyObject *Qt_MediaSetSoundBassAndTreble(PyObject *_self, PyObject *_args) |
|---|
| 24501 | n/a | { |
|---|
| 24502 | n/a | PyObject *_res = NULL; |
|---|
| 24503 | n/a | ComponentResult _rv; |
|---|
| 24504 | n/a | MediaHandler mh; |
|---|
| 24505 | n/a | short bass; |
|---|
| 24506 | n/a | short treble; |
|---|
| 24507 | n/a | #ifndef MediaSetSoundBassAndTreble |
|---|
| 24508 | n/a | PyMac_PRECHECK(MediaSetSoundBassAndTreble); |
|---|
| 24509 | n/a | #endif |
|---|
| 24510 | n/a | if (!PyArg_ParseTuple(_args, "O&hh", |
|---|
| 24511 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24512 | n/a | &bass, |
|---|
| 24513 | n/a | &treble)) |
|---|
| 24514 | n/a | return NULL; |
|---|
| 24515 | n/a | _rv = MediaSetSoundBassAndTreble(mh, |
|---|
| 24516 | n/a | bass, |
|---|
| 24517 | n/a | treble); |
|---|
| 24518 | n/a | _res = Py_BuildValue("l", |
|---|
| 24519 | n/a | _rv); |
|---|
| 24520 | n/a | return _res; |
|---|
| 24521 | n/a | } |
|---|
| 24522 | n/a | |
|---|
| 24523 | n/a | static PyObject *Qt_MediaGetSoundBassAndTreble(PyObject *_self, PyObject *_args) |
|---|
| 24524 | n/a | { |
|---|
| 24525 | n/a | PyObject *_res = NULL; |
|---|
| 24526 | n/a | ComponentResult _rv; |
|---|
| 24527 | n/a | MediaHandler mh; |
|---|
| 24528 | n/a | short bass; |
|---|
| 24529 | n/a | short treble; |
|---|
| 24530 | n/a | #ifndef MediaGetSoundBassAndTreble |
|---|
| 24531 | n/a | PyMac_PRECHECK(MediaGetSoundBassAndTreble); |
|---|
| 24532 | n/a | #endif |
|---|
| 24533 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24534 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24535 | n/a | return NULL; |
|---|
| 24536 | n/a | _rv = MediaGetSoundBassAndTreble(mh, |
|---|
| 24537 | n/a | &bass, |
|---|
| 24538 | n/a | &treble); |
|---|
| 24539 | n/a | _res = Py_BuildValue("lhh", |
|---|
| 24540 | n/a | _rv, |
|---|
| 24541 | n/a | bass, |
|---|
| 24542 | n/a | treble); |
|---|
| 24543 | n/a | return _res; |
|---|
| 24544 | n/a | } |
|---|
| 24545 | n/a | |
|---|
| 24546 | n/a | static PyObject *Qt_MediaTimeBaseChanged(PyObject *_self, PyObject *_args) |
|---|
| 24547 | n/a | { |
|---|
| 24548 | n/a | PyObject *_res = NULL; |
|---|
| 24549 | n/a | ComponentResult _rv; |
|---|
| 24550 | n/a | MediaHandler mh; |
|---|
| 24551 | n/a | #ifndef MediaTimeBaseChanged |
|---|
| 24552 | n/a | PyMac_PRECHECK(MediaTimeBaseChanged); |
|---|
| 24553 | n/a | #endif |
|---|
| 24554 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24555 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24556 | n/a | return NULL; |
|---|
| 24557 | n/a | _rv = MediaTimeBaseChanged(mh); |
|---|
| 24558 | n/a | _res = Py_BuildValue("l", |
|---|
| 24559 | n/a | _rv); |
|---|
| 24560 | n/a | return _res; |
|---|
| 24561 | n/a | } |
|---|
| 24562 | n/a | |
|---|
| 24563 | n/a | static PyObject *Qt_MediaMCIsPlayerEvent(PyObject *_self, PyObject *_args) |
|---|
| 24564 | n/a | { |
|---|
| 24565 | n/a | PyObject *_res = NULL; |
|---|
| 24566 | n/a | ComponentResult _rv; |
|---|
| 24567 | n/a | MediaHandler mh; |
|---|
| 24568 | n/a | EventRecord e; |
|---|
| 24569 | n/a | Boolean handledIt; |
|---|
| 24570 | n/a | #ifndef MediaMCIsPlayerEvent |
|---|
| 24571 | n/a | PyMac_PRECHECK(MediaMCIsPlayerEvent); |
|---|
| 24572 | n/a | #endif |
|---|
| 24573 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24574 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24575 | n/a | PyMac_GetEventRecord, &e)) |
|---|
| 24576 | n/a | return NULL; |
|---|
| 24577 | n/a | _rv = MediaMCIsPlayerEvent(mh, |
|---|
| 24578 | n/a | &e, |
|---|
| 24579 | n/a | &handledIt); |
|---|
| 24580 | n/a | _res = Py_BuildValue("lb", |
|---|
| 24581 | n/a | _rv, |
|---|
| 24582 | n/a | handledIt); |
|---|
| 24583 | n/a | return _res; |
|---|
| 24584 | n/a | } |
|---|
| 24585 | n/a | |
|---|
| 24586 | n/a | static PyObject *Qt_MediaGetMediaLoadState(PyObject *_self, PyObject *_args) |
|---|
| 24587 | n/a | { |
|---|
| 24588 | n/a | PyObject *_res = NULL; |
|---|
| 24589 | n/a | ComponentResult _rv; |
|---|
| 24590 | n/a | MediaHandler mh; |
|---|
| 24591 | n/a | long mediaLoadState; |
|---|
| 24592 | n/a | #ifndef MediaGetMediaLoadState |
|---|
| 24593 | n/a | PyMac_PRECHECK(MediaGetMediaLoadState); |
|---|
| 24594 | n/a | #endif |
|---|
| 24595 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24596 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24597 | n/a | return NULL; |
|---|
| 24598 | n/a | _rv = MediaGetMediaLoadState(mh, |
|---|
| 24599 | n/a | &mediaLoadState); |
|---|
| 24600 | n/a | _res = Py_BuildValue("ll", |
|---|
| 24601 | n/a | _rv, |
|---|
| 24602 | n/a | mediaLoadState); |
|---|
| 24603 | n/a | return _res; |
|---|
| 24604 | n/a | } |
|---|
| 24605 | n/a | |
|---|
| 24606 | n/a | static PyObject *Qt_MediaVideoOutputChanged(PyObject *_self, PyObject *_args) |
|---|
| 24607 | n/a | { |
|---|
| 24608 | n/a | PyObject *_res = NULL; |
|---|
| 24609 | n/a | ComponentResult _rv; |
|---|
| 24610 | n/a | MediaHandler mh; |
|---|
| 24611 | n/a | ComponentInstance vout; |
|---|
| 24612 | n/a | #ifndef MediaVideoOutputChanged |
|---|
| 24613 | n/a | PyMac_PRECHECK(MediaVideoOutputChanged); |
|---|
| 24614 | n/a | #endif |
|---|
| 24615 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24616 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24617 | n/a | CmpInstObj_Convert, &vout)) |
|---|
| 24618 | n/a | return NULL; |
|---|
| 24619 | n/a | _rv = MediaVideoOutputChanged(mh, |
|---|
| 24620 | n/a | vout); |
|---|
| 24621 | n/a | _res = Py_BuildValue("l", |
|---|
| 24622 | n/a | _rv); |
|---|
| 24623 | n/a | return _res; |
|---|
| 24624 | n/a | } |
|---|
| 24625 | n/a | |
|---|
| 24626 | n/a | static PyObject *Qt_MediaEmptySampleCache(PyObject *_self, PyObject *_args) |
|---|
| 24627 | n/a | { |
|---|
| 24628 | n/a | PyObject *_res = NULL; |
|---|
| 24629 | n/a | ComponentResult _rv; |
|---|
| 24630 | n/a | MediaHandler mh; |
|---|
| 24631 | n/a | long sampleNum; |
|---|
| 24632 | n/a | long sampleCount; |
|---|
| 24633 | n/a | #ifndef MediaEmptySampleCache |
|---|
| 24634 | n/a | PyMac_PRECHECK(MediaEmptySampleCache); |
|---|
| 24635 | n/a | #endif |
|---|
| 24636 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 24637 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24638 | n/a | &sampleNum, |
|---|
| 24639 | n/a | &sampleCount)) |
|---|
| 24640 | n/a | return NULL; |
|---|
| 24641 | n/a | _rv = MediaEmptySampleCache(mh, |
|---|
| 24642 | n/a | sampleNum, |
|---|
| 24643 | n/a | sampleCount); |
|---|
| 24644 | n/a | _res = Py_BuildValue("l", |
|---|
| 24645 | n/a | _rv); |
|---|
| 24646 | n/a | return _res; |
|---|
| 24647 | n/a | } |
|---|
| 24648 | n/a | |
|---|
| 24649 | n/a | static PyObject *Qt_MediaGetPublicInfo(PyObject *_self, PyObject *_args) |
|---|
| 24650 | n/a | { |
|---|
| 24651 | n/a | PyObject *_res = NULL; |
|---|
| 24652 | n/a | ComponentResult _rv; |
|---|
| 24653 | n/a | MediaHandler mh; |
|---|
| 24654 | n/a | OSType infoSelector; |
|---|
| 24655 | n/a | void * infoDataPtr; |
|---|
| 24656 | n/a | Size ioDataSize; |
|---|
| 24657 | n/a | #ifndef MediaGetPublicInfo |
|---|
| 24658 | n/a | PyMac_PRECHECK(MediaGetPublicInfo); |
|---|
| 24659 | n/a | #endif |
|---|
| 24660 | n/a | if (!PyArg_ParseTuple(_args, "O&O&s", |
|---|
| 24661 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24662 | n/a | PyMac_GetOSType, &infoSelector, |
|---|
| 24663 | n/a | &infoDataPtr)) |
|---|
| 24664 | n/a | return NULL; |
|---|
| 24665 | n/a | _rv = MediaGetPublicInfo(mh, |
|---|
| 24666 | n/a | infoSelector, |
|---|
| 24667 | n/a | infoDataPtr, |
|---|
| 24668 | n/a | &ioDataSize); |
|---|
| 24669 | n/a | _res = Py_BuildValue("ll", |
|---|
| 24670 | n/a | _rv, |
|---|
| 24671 | n/a | ioDataSize); |
|---|
| 24672 | n/a | return _res; |
|---|
| 24673 | n/a | } |
|---|
| 24674 | n/a | |
|---|
| 24675 | n/a | static PyObject *Qt_MediaSetPublicInfo(PyObject *_self, PyObject *_args) |
|---|
| 24676 | n/a | { |
|---|
| 24677 | n/a | PyObject *_res = NULL; |
|---|
| 24678 | n/a | ComponentResult _rv; |
|---|
| 24679 | n/a | MediaHandler mh; |
|---|
| 24680 | n/a | OSType infoSelector; |
|---|
| 24681 | n/a | void * infoDataPtr; |
|---|
| 24682 | n/a | Size dataSize; |
|---|
| 24683 | n/a | #ifndef MediaSetPublicInfo |
|---|
| 24684 | n/a | PyMac_PRECHECK(MediaSetPublicInfo); |
|---|
| 24685 | n/a | #endif |
|---|
| 24686 | n/a | if (!PyArg_ParseTuple(_args, "O&O&sl", |
|---|
| 24687 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24688 | n/a | PyMac_GetOSType, &infoSelector, |
|---|
| 24689 | n/a | &infoDataPtr, |
|---|
| 24690 | n/a | &dataSize)) |
|---|
| 24691 | n/a | return NULL; |
|---|
| 24692 | n/a | _rv = MediaSetPublicInfo(mh, |
|---|
| 24693 | n/a | infoSelector, |
|---|
| 24694 | n/a | infoDataPtr, |
|---|
| 24695 | n/a | dataSize); |
|---|
| 24696 | n/a | _res = Py_BuildValue("l", |
|---|
| 24697 | n/a | _rv); |
|---|
| 24698 | n/a | return _res; |
|---|
| 24699 | n/a | } |
|---|
| 24700 | n/a | |
|---|
| 24701 | n/a | static PyObject *Qt_MediaRefConSetProperty(PyObject *_self, PyObject *_args) |
|---|
| 24702 | n/a | { |
|---|
| 24703 | n/a | PyObject *_res = NULL; |
|---|
| 24704 | n/a | ComponentResult _rv; |
|---|
| 24705 | n/a | MediaHandler mh; |
|---|
| 24706 | n/a | long refCon; |
|---|
| 24707 | n/a | long propertyType; |
|---|
| 24708 | n/a | void * propertyValue; |
|---|
| 24709 | n/a | #ifndef MediaRefConSetProperty |
|---|
| 24710 | n/a | PyMac_PRECHECK(MediaRefConSetProperty); |
|---|
| 24711 | n/a | #endif |
|---|
| 24712 | n/a | if (!PyArg_ParseTuple(_args, "O&lls", |
|---|
| 24713 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24714 | n/a | &refCon, |
|---|
| 24715 | n/a | &propertyType, |
|---|
| 24716 | n/a | &propertyValue)) |
|---|
| 24717 | n/a | return NULL; |
|---|
| 24718 | n/a | _rv = MediaRefConSetProperty(mh, |
|---|
| 24719 | n/a | refCon, |
|---|
| 24720 | n/a | propertyType, |
|---|
| 24721 | n/a | propertyValue); |
|---|
| 24722 | n/a | _res = Py_BuildValue("l", |
|---|
| 24723 | n/a | _rv); |
|---|
| 24724 | n/a | return _res; |
|---|
| 24725 | n/a | } |
|---|
| 24726 | n/a | |
|---|
| 24727 | n/a | static PyObject *Qt_MediaRefConGetProperty(PyObject *_self, PyObject *_args) |
|---|
| 24728 | n/a | { |
|---|
| 24729 | n/a | PyObject *_res = NULL; |
|---|
| 24730 | n/a | ComponentResult _rv; |
|---|
| 24731 | n/a | MediaHandler mh; |
|---|
| 24732 | n/a | long refCon; |
|---|
| 24733 | n/a | long propertyType; |
|---|
| 24734 | n/a | void * propertyValue; |
|---|
| 24735 | n/a | #ifndef MediaRefConGetProperty |
|---|
| 24736 | n/a | PyMac_PRECHECK(MediaRefConGetProperty); |
|---|
| 24737 | n/a | #endif |
|---|
| 24738 | n/a | if (!PyArg_ParseTuple(_args, "O&lls", |
|---|
| 24739 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24740 | n/a | &refCon, |
|---|
| 24741 | n/a | &propertyType, |
|---|
| 24742 | n/a | &propertyValue)) |
|---|
| 24743 | n/a | return NULL; |
|---|
| 24744 | n/a | _rv = MediaRefConGetProperty(mh, |
|---|
| 24745 | n/a | refCon, |
|---|
| 24746 | n/a | propertyType, |
|---|
| 24747 | n/a | propertyValue); |
|---|
| 24748 | n/a | _res = Py_BuildValue("l", |
|---|
| 24749 | n/a | _rv); |
|---|
| 24750 | n/a | return _res; |
|---|
| 24751 | n/a | } |
|---|
| 24752 | n/a | |
|---|
| 24753 | n/a | static PyObject *Qt_MediaNavigateTargetRefCon(PyObject *_self, PyObject *_args) |
|---|
| 24754 | n/a | { |
|---|
| 24755 | n/a | PyObject *_res = NULL; |
|---|
| 24756 | n/a | ComponentResult _rv; |
|---|
| 24757 | n/a | MediaHandler mh; |
|---|
| 24758 | n/a | long navigation; |
|---|
| 24759 | n/a | long refCon; |
|---|
| 24760 | n/a | #ifndef MediaNavigateTargetRefCon |
|---|
| 24761 | n/a | PyMac_PRECHECK(MediaNavigateTargetRefCon); |
|---|
| 24762 | n/a | #endif |
|---|
| 24763 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 24764 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24765 | n/a | &navigation)) |
|---|
| 24766 | n/a | return NULL; |
|---|
| 24767 | n/a | _rv = MediaNavigateTargetRefCon(mh, |
|---|
| 24768 | n/a | navigation, |
|---|
| 24769 | n/a | &refCon); |
|---|
| 24770 | n/a | _res = Py_BuildValue("ll", |
|---|
| 24771 | n/a | _rv, |
|---|
| 24772 | n/a | refCon); |
|---|
| 24773 | n/a | return _res; |
|---|
| 24774 | n/a | } |
|---|
| 24775 | n/a | |
|---|
| 24776 | n/a | static PyObject *Qt_MediaGGetIdleManager(PyObject *_self, PyObject *_args) |
|---|
| 24777 | n/a | { |
|---|
| 24778 | n/a | PyObject *_res = NULL; |
|---|
| 24779 | n/a | ComponentResult _rv; |
|---|
| 24780 | n/a | MediaHandler mh; |
|---|
| 24781 | n/a | IdleManager pim; |
|---|
| 24782 | n/a | #ifndef MediaGGetIdleManager |
|---|
| 24783 | n/a | PyMac_PRECHECK(MediaGGetIdleManager); |
|---|
| 24784 | n/a | #endif |
|---|
| 24785 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24786 | n/a | CmpInstObj_Convert, &mh)) |
|---|
| 24787 | n/a | return NULL; |
|---|
| 24788 | n/a | _rv = MediaGGetIdleManager(mh, |
|---|
| 24789 | n/a | &pim); |
|---|
| 24790 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 24791 | n/a | _rv, |
|---|
| 24792 | n/a | IdleManagerObj_New, pim); |
|---|
| 24793 | n/a | return _res; |
|---|
| 24794 | n/a | } |
|---|
| 24795 | n/a | |
|---|
| 24796 | n/a | static PyObject *Qt_MediaGSetIdleManager(PyObject *_self, PyObject *_args) |
|---|
| 24797 | n/a | { |
|---|
| 24798 | n/a | PyObject *_res = NULL; |
|---|
| 24799 | n/a | ComponentResult _rv; |
|---|
| 24800 | n/a | MediaHandler mh; |
|---|
| 24801 | n/a | IdleManager im; |
|---|
| 24802 | n/a | #ifndef MediaGSetIdleManager |
|---|
| 24803 | n/a | PyMac_PRECHECK(MediaGSetIdleManager); |
|---|
| 24804 | n/a | #endif |
|---|
| 24805 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 24806 | n/a | CmpInstObj_Convert, &mh, |
|---|
| 24807 | n/a | IdleManagerObj_Convert, &im)) |
|---|
| 24808 | n/a | return NULL; |
|---|
| 24809 | n/a | _rv = MediaGSetIdleManager(mh, |
|---|
| 24810 | n/a | im); |
|---|
| 24811 | n/a | _res = Py_BuildValue("l", |
|---|
| 24812 | n/a | _rv); |
|---|
| 24813 | n/a | return _res; |
|---|
| 24814 | n/a | } |
|---|
| 24815 | n/a | |
|---|
| 24816 | n/a | static PyObject *Qt_QTMIDIGetMIDIPorts(PyObject *_self, PyObject *_args) |
|---|
| 24817 | n/a | { |
|---|
| 24818 | n/a | PyObject *_res = NULL; |
|---|
| 24819 | n/a | ComponentResult _rv; |
|---|
| 24820 | n/a | QTMIDIComponent ci; |
|---|
| 24821 | n/a | QTMIDIPortListHandle inputPorts; |
|---|
| 24822 | n/a | QTMIDIPortListHandle outputPorts; |
|---|
| 24823 | n/a | #ifndef QTMIDIGetMIDIPorts |
|---|
| 24824 | n/a | PyMac_PRECHECK(QTMIDIGetMIDIPorts); |
|---|
| 24825 | n/a | #endif |
|---|
| 24826 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 24827 | n/a | CmpInstObj_Convert, &ci)) |
|---|
| 24828 | n/a | return NULL; |
|---|
| 24829 | n/a | _rv = QTMIDIGetMIDIPorts(ci, |
|---|
| 24830 | n/a | &inputPorts, |
|---|
| 24831 | n/a | &outputPorts); |
|---|
| 24832 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 24833 | n/a | _rv, |
|---|
| 24834 | n/a | ResObj_New, inputPorts, |
|---|
| 24835 | n/a | ResObj_New, outputPorts); |
|---|
| 24836 | n/a | return _res; |
|---|
| 24837 | n/a | } |
|---|
| 24838 | n/a | |
|---|
| 24839 | n/a | static PyObject *Qt_QTMIDIUseSendPort(PyObject *_self, PyObject *_args) |
|---|
| 24840 | n/a | { |
|---|
| 24841 | n/a | PyObject *_res = NULL; |
|---|
| 24842 | n/a | ComponentResult _rv; |
|---|
| 24843 | n/a | QTMIDIComponent ci; |
|---|
| 24844 | n/a | long portIndex; |
|---|
| 24845 | n/a | long inUse; |
|---|
| 24846 | n/a | #ifndef QTMIDIUseSendPort |
|---|
| 24847 | n/a | PyMac_PRECHECK(QTMIDIUseSendPort); |
|---|
| 24848 | n/a | #endif |
|---|
| 24849 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 24850 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 24851 | n/a | &portIndex, |
|---|
| 24852 | n/a | &inUse)) |
|---|
| 24853 | n/a | return NULL; |
|---|
| 24854 | n/a | _rv = QTMIDIUseSendPort(ci, |
|---|
| 24855 | n/a | portIndex, |
|---|
| 24856 | n/a | inUse); |
|---|
| 24857 | n/a | _res = Py_BuildValue("l", |
|---|
| 24858 | n/a | _rv); |
|---|
| 24859 | n/a | return _res; |
|---|
| 24860 | n/a | } |
|---|
| 24861 | n/a | |
|---|
| 24862 | n/a | static PyObject *Qt_QTMIDISendMIDI(PyObject *_self, PyObject *_args) |
|---|
| 24863 | n/a | { |
|---|
| 24864 | n/a | PyObject *_res = NULL; |
|---|
| 24865 | n/a | ComponentResult _rv; |
|---|
| 24866 | n/a | QTMIDIComponent ci; |
|---|
| 24867 | n/a | long portIndex; |
|---|
| 24868 | n/a | MusicMIDIPacket mp; |
|---|
| 24869 | n/a | #ifndef QTMIDISendMIDI |
|---|
| 24870 | n/a | PyMac_PRECHECK(QTMIDISendMIDI); |
|---|
| 24871 | n/a | #endif |
|---|
| 24872 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 24873 | n/a | CmpInstObj_Convert, &ci, |
|---|
| 24874 | n/a | &portIndex, |
|---|
| 24875 | n/a | QtMusicMIDIPacket_Convert, &mp)) |
|---|
| 24876 | n/a | return NULL; |
|---|
| 24877 | n/a | _rv = QTMIDISendMIDI(ci, |
|---|
| 24878 | n/a | portIndex, |
|---|
| 24879 | n/a | &mp); |
|---|
| 24880 | n/a | _res = Py_BuildValue("l", |
|---|
| 24881 | n/a | _rv); |
|---|
| 24882 | n/a | return _res; |
|---|
| 24883 | n/a | } |
|---|
| 24884 | n/a | |
|---|
| 24885 | n/a | static PyObject *Qt_MusicGetPart(PyObject *_self, PyObject *_args) |
|---|
| 24886 | n/a | { |
|---|
| 24887 | n/a | PyObject *_res = NULL; |
|---|
| 24888 | n/a | ComponentResult _rv; |
|---|
| 24889 | n/a | MusicComponent mc; |
|---|
| 24890 | n/a | long part; |
|---|
| 24891 | n/a | long midiChannel; |
|---|
| 24892 | n/a | long polyphony; |
|---|
| 24893 | n/a | #ifndef MusicGetPart |
|---|
| 24894 | n/a | PyMac_PRECHECK(MusicGetPart); |
|---|
| 24895 | n/a | #endif |
|---|
| 24896 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 24897 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 24898 | n/a | &part)) |
|---|
| 24899 | n/a | return NULL; |
|---|
| 24900 | n/a | _rv = MusicGetPart(mc, |
|---|
| 24901 | n/a | part, |
|---|
| 24902 | n/a | &midiChannel, |
|---|
| 24903 | n/a | &polyphony); |
|---|
| 24904 | n/a | _res = Py_BuildValue("lll", |
|---|
| 24905 | n/a | _rv, |
|---|
| 24906 | n/a | midiChannel, |
|---|
| 24907 | n/a | polyphony); |
|---|
| 24908 | n/a | return _res; |
|---|
| 24909 | n/a | } |
|---|
| 24910 | n/a | |
|---|
| 24911 | n/a | static PyObject *Qt_MusicSetPart(PyObject *_self, PyObject *_args) |
|---|
| 24912 | n/a | { |
|---|
| 24913 | n/a | PyObject *_res = NULL; |
|---|
| 24914 | n/a | ComponentResult _rv; |
|---|
| 24915 | n/a | MusicComponent mc; |
|---|
| 24916 | n/a | long part; |
|---|
| 24917 | n/a | long midiChannel; |
|---|
| 24918 | n/a | long polyphony; |
|---|
| 24919 | n/a | #ifndef MusicSetPart |
|---|
| 24920 | n/a | PyMac_PRECHECK(MusicSetPart); |
|---|
| 24921 | n/a | #endif |
|---|
| 24922 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 24923 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 24924 | n/a | &part, |
|---|
| 24925 | n/a | &midiChannel, |
|---|
| 24926 | n/a | &polyphony)) |
|---|
| 24927 | n/a | return NULL; |
|---|
| 24928 | n/a | _rv = MusicSetPart(mc, |
|---|
| 24929 | n/a | part, |
|---|
| 24930 | n/a | midiChannel, |
|---|
| 24931 | n/a | polyphony); |
|---|
| 24932 | n/a | _res = Py_BuildValue("l", |
|---|
| 24933 | n/a | _rv); |
|---|
| 24934 | n/a | return _res; |
|---|
| 24935 | n/a | } |
|---|
| 24936 | n/a | |
|---|
| 24937 | n/a | static PyObject *Qt_MusicSetPartInstrumentNumber(PyObject *_self, PyObject *_args) |
|---|
| 24938 | n/a | { |
|---|
| 24939 | n/a | PyObject *_res = NULL; |
|---|
| 24940 | n/a | ComponentResult _rv; |
|---|
| 24941 | n/a | MusicComponent mc; |
|---|
| 24942 | n/a | long part; |
|---|
| 24943 | n/a | long instrumentNumber; |
|---|
| 24944 | n/a | #ifndef MusicSetPartInstrumentNumber |
|---|
| 24945 | n/a | PyMac_PRECHECK(MusicSetPartInstrumentNumber); |
|---|
| 24946 | n/a | #endif |
|---|
| 24947 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 24948 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 24949 | n/a | &part, |
|---|
| 24950 | n/a | &instrumentNumber)) |
|---|
| 24951 | n/a | return NULL; |
|---|
| 24952 | n/a | _rv = MusicSetPartInstrumentNumber(mc, |
|---|
| 24953 | n/a | part, |
|---|
| 24954 | n/a | instrumentNumber); |
|---|
| 24955 | n/a | _res = Py_BuildValue("l", |
|---|
| 24956 | n/a | _rv); |
|---|
| 24957 | n/a | return _res; |
|---|
| 24958 | n/a | } |
|---|
| 24959 | n/a | |
|---|
| 24960 | n/a | static PyObject *Qt_MusicGetPartInstrumentNumber(PyObject *_self, PyObject *_args) |
|---|
| 24961 | n/a | { |
|---|
| 24962 | n/a | PyObject *_res = NULL; |
|---|
| 24963 | n/a | ComponentResult _rv; |
|---|
| 24964 | n/a | MusicComponent mc; |
|---|
| 24965 | n/a | long part; |
|---|
| 24966 | n/a | #ifndef MusicGetPartInstrumentNumber |
|---|
| 24967 | n/a | PyMac_PRECHECK(MusicGetPartInstrumentNumber); |
|---|
| 24968 | n/a | #endif |
|---|
| 24969 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 24970 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 24971 | n/a | &part)) |
|---|
| 24972 | n/a | return NULL; |
|---|
| 24973 | n/a | _rv = MusicGetPartInstrumentNumber(mc, |
|---|
| 24974 | n/a | part); |
|---|
| 24975 | n/a | _res = Py_BuildValue("l", |
|---|
| 24976 | n/a | _rv); |
|---|
| 24977 | n/a | return _res; |
|---|
| 24978 | n/a | } |
|---|
| 24979 | n/a | |
|---|
| 24980 | n/a | static PyObject *Qt_MusicStorePartInstrument(PyObject *_self, PyObject *_args) |
|---|
| 24981 | n/a | { |
|---|
| 24982 | n/a | PyObject *_res = NULL; |
|---|
| 24983 | n/a | ComponentResult _rv; |
|---|
| 24984 | n/a | MusicComponent mc; |
|---|
| 24985 | n/a | long part; |
|---|
| 24986 | n/a | long instrumentNumber; |
|---|
| 24987 | n/a | #ifndef MusicStorePartInstrument |
|---|
| 24988 | n/a | PyMac_PRECHECK(MusicStorePartInstrument); |
|---|
| 24989 | n/a | #endif |
|---|
| 24990 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 24991 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 24992 | n/a | &part, |
|---|
| 24993 | n/a | &instrumentNumber)) |
|---|
| 24994 | n/a | return NULL; |
|---|
| 24995 | n/a | _rv = MusicStorePartInstrument(mc, |
|---|
| 24996 | n/a | part, |
|---|
| 24997 | n/a | instrumentNumber); |
|---|
| 24998 | n/a | _res = Py_BuildValue("l", |
|---|
| 24999 | n/a | _rv); |
|---|
| 25000 | n/a | return _res; |
|---|
| 25001 | n/a | } |
|---|
| 25002 | n/a | |
|---|
| 25003 | n/a | static PyObject *Qt_MusicGetPartAtomicInstrument(PyObject *_self, PyObject *_args) |
|---|
| 25004 | n/a | { |
|---|
| 25005 | n/a | PyObject *_res = NULL; |
|---|
| 25006 | n/a | ComponentResult _rv; |
|---|
| 25007 | n/a | MusicComponent mc; |
|---|
| 25008 | n/a | long part; |
|---|
| 25009 | n/a | AtomicInstrument ai; |
|---|
| 25010 | n/a | long flags; |
|---|
| 25011 | n/a | #ifndef MusicGetPartAtomicInstrument |
|---|
| 25012 | n/a | PyMac_PRECHECK(MusicGetPartAtomicInstrument); |
|---|
| 25013 | n/a | #endif |
|---|
| 25014 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25015 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25016 | n/a | &part, |
|---|
| 25017 | n/a | &flags)) |
|---|
| 25018 | n/a | return NULL; |
|---|
| 25019 | n/a | _rv = MusicGetPartAtomicInstrument(mc, |
|---|
| 25020 | n/a | part, |
|---|
| 25021 | n/a | &ai, |
|---|
| 25022 | n/a | flags); |
|---|
| 25023 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 25024 | n/a | _rv, |
|---|
| 25025 | n/a | ResObj_New, ai); |
|---|
| 25026 | n/a | return _res; |
|---|
| 25027 | n/a | } |
|---|
| 25028 | n/a | |
|---|
| 25029 | n/a | static PyObject *Qt_MusicSetPartAtomicInstrument(PyObject *_self, PyObject *_args) |
|---|
| 25030 | n/a | { |
|---|
| 25031 | n/a | PyObject *_res = NULL; |
|---|
| 25032 | n/a | ComponentResult _rv; |
|---|
| 25033 | n/a | MusicComponent mc; |
|---|
| 25034 | n/a | long part; |
|---|
| 25035 | n/a | AtomicInstrumentPtr aiP; |
|---|
| 25036 | n/a | long flags; |
|---|
| 25037 | n/a | #ifndef MusicSetPartAtomicInstrument |
|---|
| 25038 | n/a | PyMac_PRECHECK(MusicSetPartAtomicInstrument); |
|---|
| 25039 | n/a | #endif |
|---|
| 25040 | n/a | if (!PyArg_ParseTuple(_args, "O&lsl", |
|---|
| 25041 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25042 | n/a | &part, |
|---|
| 25043 | n/a | &aiP, |
|---|
| 25044 | n/a | &flags)) |
|---|
| 25045 | n/a | return NULL; |
|---|
| 25046 | n/a | _rv = MusicSetPartAtomicInstrument(mc, |
|---|
| 25047 | n/a | part, |
|---|
| 25048 | n/a | aiP, |
|---|
| 25049 | n/a | flags); |
|---|
| 25050 | n/a | _res = Py_BuildValue("l", |
|---|
| 25051 | n/a | _rv); |
|---|
| 25052 | n/a | return _res; |
|---|
| 25053 | n/a | } |
|---|
| 25054 | n/a | |
|---|
| 25055 | n/a | static PyObject *Qt_MusicGetPartKnob(PyObject *_self, PyObject *_args) |
|---|
| 25056 | n/a | { |
|---|
| 25057 | n/a | PyObject *_res = NULL; |
|---|
| 25058 | n/a | ComponentResult _rv; |
|---|
| 25059 | n/a | MusicComponent mc; |
|---|
| 25060 | n/a | long part; |
|---|
| 25061 | n/a | long knobID; |
|---|
| 25062 | n/a | #ifndef MusicGetPartKnob |
|---|
| 25063 | n/a | PyMac_PRECHECK(MusicGetPartKnob); |
|---|
| 25064 | n/a | #endif |
|---|
| 25065 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25066 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25067 | n/a | &part, |
|---|
| 25068 | n/a | &knobID)) |
|---|
| 25069 | n/a | return NULL; |
|---|
| 25070 | n/a | _rv = MusicGetPartKnob(mc, |
|---|
| 25071 | n/a | part, |
|---|
| 25072 | n/a | knobID); |
|---|
| 25073 | n/a | _res = Py_BuildValue("l", |
|---|
| 25074 | n/a | _rv); |
|---|
| 25075 | n/a | return _res; |
|---|
| 25076 | n/a | } |
|---|
| 25077 | n/a | |
|---|
| 25078 | n/a | static PyObject *Qt_MusicSetPartKnob(PyObject *_self, PyObject *_args) |
|---|
| 25079 | n/a | { |
|---|
| 25080 | n/a | PyObject *_res = NULL; |
|---|
| 25081 | n/a | ComponentResult _rv; |
|---|
| 25082 | n/a | MusicComponent mc; |
|---|
| 25083 | n/a | long part; |
|---|
| 25084 | n/a | long knobID; |
|---|
| 25085 | n/a | long knobValue; |
|---|
| 25086 | n/a | #ifndef MusicSetPartKnob |
|---|
| 25087 | n/a | PyMac_PRECHECK(MusicSetPartKnob); |
|---|
| 25088 | n/a | #endif |
|---|
| 25089 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 25090 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25091 | n/a | &part, |
|---|
| 25092 | n/a | &knobID, |
|---|
| 25093 | n/a | &knobValue)) |
|---|
| 25094 | n/a | return NULL; |
|---|
| 25095 | n/a | _rv = MusicSetPartKnob(mc, |
|---|
| 25096 | n/a | part, |
|---|
| 25097 | n/a | knobID, |
|---|
| 25098 | n/a | knobValue); |
|---|
| 25099 | n/a | _res = Py_BuildValue("l", |
|---|
| 25100 | n/a | _rv); |
|---|
| 25101 | n/a | return _res; |
|---|
| 25102 | n/a | } |
|---|
| 25103 | n/a | |
|---|
| 25104 | n/a | static PyObject *Qt_MusicGetKnob(PyObject *_self, PyObject *_args) |
|---|
| 25105 | n/a | { |
|---|
| 25106 | n/a | PyObject *_res = NULL; |
|---|
| 25107 | n/a | ComponentResult _rv; |
|---|
| 25108 | n/a | MusicComponent mc; |
|---|
| 25109 | n/a | long knobID; |
|---|
| 25110 | n/a | #ifndef MusicGetKnob |
|---|
| 25111 | n/a | PyMac_PRECHECK(MusicGetKnob); |
|---|
| 25112 | n/a | #endif |
|---|
| 25113 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25114 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25115 | n/a | &knobID)) |
|---|
| 25116 | n/a | return NULL; |
|---|
| 25117 | n/a | _rv = MusicGetKnob(mc, |
|---|
| 25118 | n/a | knobID); |
|---|
| 25119 | n/a | _res = Py_BuildValue("l", |
|---|
| 25120 | n/a | _rv); |
|---|
| 25121 | n/a | return _res; |
|---|
| 25122 | n/a | } |
|---|
| 25123 | n/a | |
|---|
| 25124 | n/a | static PyObject *Qt_MusicSetKnob(PyObject *_self, PyObject *_args) |
|---|
| 25125 | n/a | { |
|---|
| 25126 | n/a | PyObject *_res = NULL; |
|---|
| 25127 | n/a | ComponentResult _rv; |
|---|
| 25128 | n/a | MusicComponent mc; |
|---|
| 25129 | n/a | long knobID; |
|---|
| 25130 | n/a | long knobValue; |
|---|
| 25131 | n/a | #ifndef MusicSetKnob |
|---|
| 25132 | n/a | PyMac_PRECHECK(MusicSetKnob); |
|---|
| 25133 | n/a | #endif |
|---|
| 25134 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25135 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25136 | n/a | &knobID, |
|---|
| 25137 | n/a | &knobValue)) |
|---|
| 25138 | n/a | return NULL; |
|---|
| 25139 | n/a | _rv = MusicSetKnob(mc, |
|---|
| 25140 | n/a | knobID, |
|---|
| 25141 | n/a | knobValue); |
|---|
| 25142 | n/a | _res = Py_BuildValue("l", |
|---|
| 25143 | n/a | _rv); |
|---|
| 25144 | n/a | return _res; |
|---|
| 25145 | n/a | } |
|---|
| 25146 | n/a | |
|---|
| 25147 | n/a | static PyObject *Qt_MusicGetPartName(PyObject *_self, PyObject *_args) |
|---|
| 25148 | n/a | { |
|---|
| 25149 | n/a | PyObject *_res = NULL; |
|---|
| 25150 | n/a | ComponentResult _rv; |
|---|
| 25151 | n/a | MusicComponent mc; |
|---|
| 25152 | n/a | long part; |
|---|
| 25153 | n/a | StringPtr name; |
|---|
| 25154 | n/a | #ifndef MusicGetPartName |
|---|
| 25155 | n/a | PyMac_PRECHECK(MusicGetPartName); |
|---|
| 25156 | n/a | #endif |
|---|
| 25157 | n/a | if (!PyArg_ParseTuple(_args, "O&ls", |
|---|
| 25158 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25159 | n/a | &part, |
|---|
| 25160 | n/a | &name)) |
|---|
| 25161 | n/a | return NULL; |
|---|
| 25162 | n/a | _rv = MusicGetPartName(mc, |
|---|
| 25163 | n/a | part, |
|---|
| 25164 | n/a | name); |
|---|
| 25165 | n/a | _res = Py_BuildValue("l", |
|---|
| 25166 | n/a | _rv); |
|---|
| 25167 | n/a | return _res; |
|---|
| 25168 | n/a | } |
|---|
| 25169 | n/a | |
|---|
| 25170 | n/a | static PyObject *Qt_MusicSetPartName(PyObject *_self, PyObject *_args) |
|---|
| 25171 | n/a | { |
|---|
| 25172 | n/a | PyObject *_res = NULL; |
|---|
| 25173 | n/a | ComponentResult _rv; |
|---|
| 25174 | n/a | MusicComponent mc; |
|---|
| 25175 | n/a | long part; |
|---|
| 25176 | n/a | StringPtr name; |
|---|
| 25177 | n/a | #ifndef MusicSetPartName |
|---|
| 25178 | n/a | PyMac_PRECHECK(MusicSetPartName); |
|---|
| 25179 | n/a | #endif |
|---|
| 25180 | n/a | if (!PyArg_ParseTuple(_args, "O&ls", |
|---|
| 25181 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25182 | n/a | &part, |
|---|
| 25183 | n/a | &name)) |
|---|
| 25184 | n/a | return NULL; |
|---|
| 25185 | n/a | _rv = MusicSetPartName(mc, |
|---|
| 25186 | n/a | part, |
|---|
| 25187 | n/a | name); |
|---|
| 25188 | n/a | _res = Py_BuildValue("l", |
|---|
| 25189 | n/a | _rv); |
|---|
| 25190 | n/a | return _res; |
|---|
| 25191 | n/a | } |
|---|
| 25192 | n/a | |
|---|
| 25193 | n/a | static PyObject *Qt_MusicPlayNote(PyObject *_self, PyObject *_args) |
|---|
| 25194 | n/a | { |
|---|
| 25195 | n/a | PyObject *_res = NULL; |
|---|
| 25196 | n/a | ComponentResult _rv; |
|---|
| 25197 | n/a | MusicComponent mc; |
|---|
| 25198 | n/a | long part; |
|---|
| 25199 | n/a | long pitch; |
|---|
| 25200 | n/a | long velocity; |
|---|
| 25201 | n/a | #ifndef MusicPlayNote |
|---|
| 25202 | n/a | PyMac_PRECHECK(MusicPlayNote); |
|---|
| 25203 | n/a | #endif |
|---|
| 25204 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 25205 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25206 | n/a | &part, |
|---|
| 25207 | n/a | &pitch, |
|---|
| 25208 | n/a | &velocity)) |
|---|
| 25209 | n/a | return NULL; |
|---|
| 25210 | n/a | _rv = MusicPlayNote(mc, |
|---|
| 25211 | n/a | part, |
|---|
| 25212 | n/a | pitch, |
|---|
| 25213 | n/a | velocity); |
|---|
| 25214 | n/a | _res = Py_BuildValue("l", |
|---|
| 25215 | n/a | _rv); |
|---|
| 25216 | n/a | return _res; |
|---|
| 25217 | n/a | } |
|---|
| 25218 | n/a | |
|---|
| 25219 | n/a | static PyObject *Qt_MusicResetPart(PyObject *_self, PyObject *_args) |
|---|
| 25220 | n/a | { |
|---|
| 25221 | n/a | PyObject *_res = NULL; |
|---|
| 25222 | n/a | ComponentResult _rv; |
|---|
| 25223 | n/a | MusicComponent mc; |
|---|
| 25224 | n/a | long part; |
|---|
| 25225 | n/a | #ifndef MusicResetPart |
|---|
| 25226 | n/a | PyMac_PRECHECK(MusicResetPart); |
|---|
| 25227 | n/a | #endif |
|---|
| 25228 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25229 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25230 | n/a | &part)) |
|---|
| 25231 | n/a | return NULL; |
|---|
| 25232 | n/a | _rv = MusicResetPart(mc, |
|---|
| 25233 | n/a | part); |
|---|
| 25234 | n/a | _res = Py_BuildValue("l", |
|---|
| 25235 | n/a | _rv); |
|---|
| 25236 | n/a | return _res; |
|---|
| 25237 | n/a | } |
|---|
| 25238 | n/a | |
|---|
| 25239 | n/a | static PyObject *Qt_MusicSetPartController(PyObject *_self, PyObject *_args) |
|---|
| 25240 | n/a | { |
|---|
| 25241 | n/a | PyObject *_res = NULL; |
|---|
| 25242 | n/a | ComponentResult _rv; |
|---|
| 25243 | n/a | MusicComponent mc; |
|---|
| 25244 | n/a | long part; |
|---|
| 25245 | n/a | MusicController controllerNumber; |
|---|
| 25246 | n/a | long controllerValue; |
|---|
| 25247 | n/a | #ifndef MusicSetPartController |
|---|
| 25248 | n/a | PyMac_PRECHECK(MusicSetPartController); |
|---|
| 25249 | n/a | #endif |
|---|
| 25250 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 25251 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25252 | n/a | &part, |
|---|
| 25253 | n/a | &controllerNumber, |
|---|
| 25254 | n/a | &controllerValue)) |
|---|
| 25255 | n/a | return NULL; |
|---|
| 25256 | n/a | _rv = MusicSetPartController(mc, |
|---|
| 25257 | n/a | part, |
|---|
| 25258 | n/a | controllerNumber, |
|---|
| 25259 | n/a | controllerValue); |
|---|
| 25260 | n/a | _res = Py_BuildValue("l", |
|---|
| 25261 | n/a | _rv); |
|---|
| 25262 | n/a | return _res; |
|---|
| 25263 | n/a | } |
|---|
| 25264 | n/a | |
|---|
| 25265 | n/a | static PyObject *Qt_MusicGetPartController(PyObject *_self, PyObject *_args) |
|---|
| 25266 | n/a | { |
|---|
| 25267 | n/a | PyObject *_res = NULL; |
|---|
| 25268 | n/a | ComponentResult _rv; |
|---|
| 25269 | n/a | MusicComponent mc; |
|---|
| 25270 | n/a | long part; |
|---|
| 25271 | n/a | MusicController controllerNumber; |
|---|
| 25272 | n/a | #ifndef MusicGetPartController |
|---|
| 25273 | n/a | PyMac_PRECHECK(MusicGetPartController); |
|---|
| 25274 | n/a | #endif |
|---|
| 25275 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25276 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25277 | n/a | &part, |
|---|
| 25278 | n/a | &controllerNumber)) |
|---|
| 25279 | n/a | return NULL; |
|---|
| 25280 | n/a | _rv = MusicGetPartController(mc, |
|---|
| 25281 | n/a | part, |
|---|
| 25282 | n/a | controllerNumber); |
|---|
| 25283 | n/a | _res = Py_BuildValue("l", |
|---|
| 25284 | n/a | _rv); |
|---|
| 25285 | n/a | return _res; |
|---|
| 25286 | n/a | } |
|---|
| 25287 | n/a | |
|---|
| 25288 | n/a | static PyObject *Qt_MusicGetInstrumentNames(PyObject *_self, PyObject *_args) |
|---|
| 25289 | n/a | { |
|---|
| 25290 | n/a | PyObject *_res = NULL; |
|---|
| 25291 | n/a | ComponentResult _rv; |
|---|
| 25292 | n/a | MusicComponent mc; |
|---|
| 25293 | n/a | long modifiableInstruments; |
|---|
| 25294 | n/a | Handle instrumentNames; |
|---|
| 25295 | n/a | Handle instrumentCategoryLasts; |
|---|
| 25296 | n/a | Handle instrumentCategoryNames; |
|---|
| 25297 | n/a | #ifndef MusicGetInstrumentNames |
|---|
| 25298 | n/a | PyMac_PRECHECK(MusicGetInstrumentNames); |
|---|
| 25299 | n/a | #endif |
|---|
| 25300 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25301 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25302 | n/a | &modifiableInstruments)) |
|---|
| 25303 | n/a | return NULL; |
|---|
| 25304 | n/a | _rv = MusicGetInstrumentNames(mc, |
|---|
| 25305 | n/a | modifiableInstruments, |
|---|
| 25306 | n/a | &instrumentNames, |
|---|
| 25307 | n/a | &instrumentCategoryLasts, |
|---|
| 25308 | n/a | &instrumentCategoryNames); |
|---|
| 25309 | n/a | _res = Py_BuildValue("lO&O&O&", |
|---|
| 25310 | n/a | _rv, |
|---|
| 25311 | n/a | ResObj_New, instrumentNames, |
|---|
| 25312 | n/a | ResObj_New, instrumentCategoryLasts, |
|---|
| 25313 | n/a | ResObj_New, instrumentCategoryNames); |
|---|
| 25314 | n/a | return _res; |
|---|
| 25315 | n/a | } |
|---|
| 25316 | n/a | |
|---|
| 25317 | n/a | static PyObject *Qt_MusicGetDrumNames(PyObject *_self, PyObject *_args) |
|---|
| 25318 | n/a | { |
|---|
| 25319 | n/a | PyObject *_res = NULL; |
|---|
| 25320 | n/a | ComponentResult _rv; |
|---|
| 25321 | n/a | MusicComponent mc; |
|---|
| 25322 | n/a | long modifiableInstruments; |
|---|
| 25323 | n/a | Handle instrumentNumbers; |
|---|
| 25324 | n/a | Handle instrumentNames; |
|---|
| 25325 | n/a | #ifndef MusicGetDrumNames |
|---|
| 25326 | n/a | PyMac_PRECHECK(MusicGetDrumNames); |
|---|
| 25327 | n/a | #endif |
|---|
| 25328 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25329 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25330 | n/a | &modifiableInstruments)) |
|---|
| 25331 | n/a | return NULL; |
|---|
| 25332 | n/a | _rv = MusicGetDrumNames(mc, |
|---|
| 25333 | n/a | modifiableInstruments, |
|---|
| 25334 | n/a | &instrumentNumbers, |
|---|
| 25335 | n/a | &instrumentNames); |
|---|
| 25336 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 25337 | n/a | _rv, |
|---|
| 25338 | n/a | ResObj_New, instrumentNumbers, |
|---|
| 25339 | n/a | ResObj_New, instrumentNames); |
|---|
| 25340 | n/a | return _res; |
|---|
| 25341 | n/a | } |
|---|
| 25342 | n/a | |
|---|
| 25343 | n/a | static PyObject *Qt_MusicGetMasterTune(PyObject *_self, PyObject *_args) |
|---|
| 25344 | n/a | { |
|---|
| 25345 | n/a | PyObject *_res = NULL; |
|---|
| 25346 | n/a | ComponentResult _rv; |
|---|
| 25347 | n/a | MusicComponent mc; |
|---|
| 25348 | n/a | #ifndef MusicGetMasterTune |
|---|
| 25349 | n/a | PyMac_PRECHECK(MusicGetMasterTune); |
|---|
| 25350 | n/a | #endif |
|---|
| 25351 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25352 | n/a | CmpInstObj_Convert, &mc)) |
|---|
| 25353 | n/a | return NULL; |
|---|
| 25354 | n/a | _rv = MusicGetMasterTune(mc); |
|---|
| 25355 | n/a | _res = Py_BuildValue("l", |
|---|
| 25356 | n/a | _rv); |
|---|
| 25357 | n/a | return _res; |
|---|
| 25358 | n/a | } |
|---|
| 25359 | n/a | |
|---|
| 25360 | n/a | static PyObject *Qt_MusicSetMasterTune(PyObject *_self, PyObject *_args) |
|---|
| 25361 | n/a | { |
|---|
| 25362 | n/a | PyObject *_res = NULL; |
|---|
| 25363 | n/a | ComponentResult _rv; |
|---|
| 25364 | n/a | MusicComponent mc; |
|---|
| 25365 | n/a | long masterTune; |
|---|
| 25366 | n/a | #ifndef MusicSetMasterTune |
|---|
| 25367 | n/a | PyMac_PRECHECK(MusicSetMasterTune); |
|---|
| 25368 | n/a | #endif |
|---|
| 25369 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25370 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25371 | n/a | &masterTune)) |
|---|
| 25372 | n/a | return NULL; |
|---|
| 25373 | n/a | _rv = MusicSetMasterTune(mc, |
|---|
| 25374 | n/a | masterTune); |
|---|
| 25375 | n/a | _res = Py_BuildValue("l", |
|---|
| 25376 | n/a | _rv); |
|---|
| 25377 | n/a | return _res; |
|---|
| 25378 | n/a | } |
|---|
| 25379 | n/a | |
|---|
| 25380 | n/a | static PyObject *Qt_MusicGetDeviceConnection(PyObject *_self, PyObject *_args) |
|---|
| 25381 | n/a | { |
|---|
| 25382 | n/a | PyObject *_res = NULL; |
|---|
| 25383 | n/a | ComponentResult _rv; |
|---|
| 25384 | n/a | MusicComponent mc; |
|---|
| 25385 | n/a | long index; |
|---|
| 25386 | n/a | long id1; |
|---|
| 25387 | n/a | long id2; |
|---|
| 25388 | n/a | #ifndef MusicGetDeviceConnection |
|---|
| 25389 | n/a | PyMac_PRECHECK(MusicGetDeviceConnection); |
|---|
| 25390 | n/a | #endif |
|---|
| 25391 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25392 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25393 | n/a | &index)) |
|---|
| 25394 | n/a | return NULL; |
|---|
| 25395 | n/a | _rv = MusicGetDeviceConnection(mc, |
|---|
| 25396 | n/a | index, |
|---|
| 25397 | n/a | &id1, |
|---|
| 25398 | n/a | &id2); |
|---|
| 25399 | n/a | _res = Py_BuildValue("lll", |
|---|
| 25400 | n/a | _rv, |
|---|
| 25401 | n/a | id1, |
|---|
| 25402 | n/a | id2); |
|---|
| 25403 | n/a | return _res; |
|---|
| 25404 | n/a | } |
|---|
| 25405 | n/a | |
|---|
| 25406 | n/a | static PyObject *Qt_MusicUseDeviceConnection(PyObject *_self, PyObject *_args) |
|---|
| 25407 | n/a | { |
|---|
| 25408 | n/a | PyObject *_res = NULL; |
|---|
| 25409 | n/a | ComponentResult _rv; |
|---|
| 25410 | n/a | MusicComponent mc; |
|---|
| 25411 | n/a | long id1; |
|---|
| 25412 | n/a | long id2; |
|---|
| 25413 | n/a | #ifndef MusicUseDeviceConnection |
|---|
| 25414 | n/a | PyMac_PRECHECK(MusicUseDeviceConnection); |
|---|
| 25415 | n/a | #endif |
|---|
| 25416 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25417 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25418 | n/a | &id1, |
|---|
| 25419 | n/a | &id2)) |
|---|
| 25420 | n/a | return NULL; |
|---|
| 25421 | n/a | _rv = MusicUseDeviceConnection(mc, |
|---|
| 25422 | n/a | id1, |
|---|
| 25423 | n/a | id2); |
|---|
| 25424 | n/a | _res = Py_BuildValue("l", |
|---|
| 25425 | n/a | _rv); |
|---|
| 25426 | n/a | return _res; |
|---|
| 25427 | n/a | } |
|---|
| 25428 | n/a | |
|---|
| 25429 | n/a | static PyObject *Qt_MusicGetKnobSettingStrings(PyObject *_self, PyObject *_args) |
|---|
| 25430 | n/a | { |
|---|
| 25431 | n/a | PyObject *_res = NULL; |
|---|
| 25432 | n/a | ComponentResult _rv; |
|---|
| 25433 | n/a | MusicComponent mc; |
|---|
| 25434 | n/a | long knobIndex; |
|---|
| 25435 | n/a | long isGlobal; |
|---|
| 25436 | n/a | Handle settingsNames; |
|---|
| 25437 | n/a | Handle settingsCategoryLasts; |
|---|
| 25438 | n/a | Handle settingsCategoryNames; |
|---|
| 25439 | n/a | #ifndef MusicGetKnobSettingStrings |
|---|
| 25440 | n/a | PyMac_PRECHECK(MusicGetKnobSettingStrings); |
|---|
| 25441 | n/a | #endif |
|---|
| 25442 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25443 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25444 | n/a | &knobIndex, |
|---|
| 25445 | n/a | &isGlobal)) |
|---|
| 25446 | n/a | return NULL; |
|---|
| 25447 | n/a | _rv = MusicGetKnobSettingStrings(mc, |
|---|
| 25448 | n/a | knobIndex, |
|---|
| 25449 | n/a | isGlobal, |
|---|
| 25450 | n/a | &settingsNames, |
|---|
| 25451 | n/a | &settingsCategoryLasts, |
|---|
| 25452 | n/a | &settingsCategoryNames); |
|---|
| 25453 | n/a | _res = Py_BuildValue("lO&O&O&", |
|---|
| 25454 | n/a | _rv, |
|---|
| 25455 | n/a | ResObj_New, settingsNames, |
|---|
| 25456 | n/a | ResObj_New, settingsCategoryLasts, |
|---|
| 25457 | n/a | ResObj_New, settingsCategoryNames); |
|---|
| 25458 | n/a | return _res; |
|---|
| 25459 | n/a | } |
|---|
| 25460 | n/a | |
|---|
| 25461 | n/a | static PyObject *Qt_MusicGetMIDIPorts(PyObject *_self, PyObject *_args) |
|---|
| 25462 | n/a | { |
|---|
| 25463 | n/a | PyObject *_res = NULL; |
|---|
| 25464 | n/a | ComponentResult _rv; |
|---|
| 25465 | n/a | MusicComponent mc; |
|---|
| 25466 | n/a | long inputPortCount; |
|---|
| 25467 | n/a | long outputPortCount; |
|---|
| 25468 | n/a | #ifndef MusicGetMIDIPorts |
|---|
| 25469 | n/a | PyMac_PRECHECK(MusicGetMIDIPorts); |
|---|
| 25470 | n/a | #endif |
|---|
| 25471 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25472 | n/a | CmpInstObj_Convert, &mc)) |
|---|
| 25473 | n/a | return NULL; |
|---|
| 25474 | n/a | _rv = MusicGetMIDIPorts(mc, |
|---|
| 25475 | n/a | &inputPortCount, |
|---|
| 25476 | n/a | &outputPortCount); |
|---|
| 25477 | n/a | _res = Py_BuildValue("lll", |
|---|
| 25478 | n/a | _rv, |
|---|
| 25479 | n/a | inputPortCount, |
|---|
| 25480 | n/a | outputPortCount); |
|---|
| 25481 | n/a | return _res; |
|---|
| 25482 | n/a | } |
|---|
| 25483 | n/a | |
|---|
| 25484 | n/a | static PyObject *Qt_MusicSendMIDI(PyObject *_self, PyObject *_args) |
|---|
| 25485 | n/a | { |
|---|
| 25486 | n/a | PyObject *_res = NULL; |
|---|
| 25487 | n/a | ComponentResult _rv; |
|---|
| 25488 | n/a | MusicComponent mc; |
|---|
| 25489 | n/a | long portIndex; |
|---|
| 25490 | n/a | MusicMIDIPacket mp; |
|---|
| 25491 | n/a | #ifndef MusicSendMIDI |
|---|
| 25492 | n/a | PyMac_PRECHECK(MusicSendMIDI); |
|---|
| 25493 | n/a | #endif |
|---|
| 25494 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 25495 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25496 | n/a | &portIndex, |
|---|
| 25497 | n/a | QtMusicMIDIPacket_Convert, &mp)) |
|---|
| 25498 | n/a | return NULL; |
|---|
| 25499 | n/a | _rv = MusicSendMIDI(mc, |
|---|
| 25500 | n/a | portIndex, |
|---|
| 25501 | n/a | &mp); |
|---|
| 25502 | n/a | _res = Py_BuildValue("l", |
|---|
| 25503 | n/a | _rv); |
|---|
| 25504 | n/a | return _res; |
|---|
| 25505 | n/a | } |
|---|
| 25506 | n/a | |
|---|
| 25507 | n/a | static PyObject *Qt_MusicSetOfflineTimeTo(PyObject *_self, PyObject *_args) |
|---|
| 25508 | n/a | { |
|---|
| 25509 | n/a | PyObject *_res = NULL; |
|---|
| 25510 | n/a | ComponentResult _rv; |
|---|
| 25511 | n/a | MusicComponent mc; |
|---|
| 25512 | n/a | long newTimeStamp; |
|---|
| 25513 | n/a | #ifndef MusicSetOfflineTimeTo |
|---|
| 25514 | n/a | PyMac_PRECHECK(MusicSetOfflineTimeTo); |
|---|
| 25515 | n/a | #endif |
|---|
| 25516 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25517 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25518 | n/a | &newTimeStamp)) |
|---|
| 25519 | n/a | return NULL; |
|---|
| 25520 | n/a | _rv = MusicSetOfflineTimeTo(mc, |
|---|
| 25521 | n/a | newTimeStamp); |
|---|
| 25522 | n/a | _res = Py_BuildValue("l", |
|---|
| 25523 | n/a | _rv); |
|---|
| 25524 | n/a | return _res; |
|---|
| 25525 | n/a | } |
|---|
| 25526 | n/a | |
|---|
| 25527 | n/a | static PyObject *Qt_MusicGetInfoText(PyObject *_self, PyObject *_args) |
|---|
| 25528 | n/a | { |
|---|
| 25529 | n/a | PyObject *_res = NULL; |
|---|
| 25530 | n/a | ComponentResult _rv; |
|---|
| 25531 | n/a | MusicComponent mc; |
|---|
| 25532 | n/a | long selector; |
|---|
| 25533 | n/a | Handle textH; |
|---|
| 25534 | n/a | Handle styleH; |
|---|
| 25535 | n/a | #ifndef MusicGetInfoText |
|---|
| 25536 | n/a | PyMac_PRECHECK(MusicGetInfoText); |
|---|
| 25537 | n/a | #endif |
|---|
| 25538 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25539 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25540 | n/a | &selector)) |
|---|
| 25541 | n/a | return NULL; |
|---|
| 25542 | n/a | _rv = MusicGetInfoText(mc, |
|---|
| 25543 | n/a | selector, |
|---|
| 25544 | n/a | &textH, |
|---|
| 25545 | n/a | &styleH); |
|---|
| 25546 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 25547 | n/a | _rv, |
|---|
| 25548 | n/a | ResObj_New, textH, |
|---|
| 25549 | n/a | ResObj_New, styleH); |
|---|
| 25550 | n/a | return _res; |
|---|
| 25551 | n/a | } |
|---|
| 25552 | n/a | |
|---|
| 25553 | n/a | static PyObject *Qt_MusicGetInstrumentInfo(PyObject *_self, PyObject *_args) |
|---|
| 25554 | n/a | { |
|---|
| 25555 | n/a | PyObject *_res = NULL; |
|---|
| 25556 | n/a | ComponentResult _rv; |
|---|
| 25557 | n/a | MusicComponent mc; |
|---|
| 25558 | n/a | long getInstrumentInfoFlags; |
|---|
| 25559 | n/a | InstrumentInfoListHandle infoListH; |
|---|
| 25560 | n/a | #ifndef MusicGetInstrumentInfo |
|---|
| 25561 | n/a | PyMac_PRECHECK(MusicGetInstrumentInfo); |
|---|
| 25562 | n/a | #endif |
|---|
| 25563 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25564 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25565 | n/a | &getInstrumentInfoFlags)) |
|---|
| 25566 | n/a | return NULL; |
|---|
| 25567 | n/a | _rv = MusicGetInstrumentInfo(mc, |
|---|
| 25568 | n/a | getInstrumentInfoFlags, |
|---|
| 25569 | n/a | &infoListH); |
|---|
| 25570 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 25571 | n/a | _rv, |
|---|
| 25572 | n/a | ResObj_New, infoListH); |
|---|
| 25573 | n/a | return _res; |
|---|
| 25574 | n/a | } |
|---|
| 25575 | n/a | |
|---|
| 25576 | n/a | static PyObject *Qt_MusicTask(PyObject *_self, PyObject *_args) |
|---|
| 25577 | n/a | { |
|---|
| 25578 | n/a | PyObject *_res = NULL; |
|---|
| 25579 | n/a | ComponentResult _rv; |
|---|
| 25580 | n/a | MusicComponent mc; |
|---|
| 25581 | n/a | #ifndef MusicTask |
|---|
| 25582 | n/a | PyMac_PRECHECK(MusicTask); |
|---|
| 25583 | n/a | #endif |
|---|
| 25584 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25585 | n/a | CmpInstObj_Convert, &mc)) |
|---|
| 25586 | n/a | return NULL; |
|---|
| 25587 | n/a | _rv = MusicTask(mc); |
|---|
| 25588 | n/a | _res = Py_BuildValue("l", |
|---|
| 25589 | n/a | _rv); |
|---|
| 25590 | n/a | return _res; |
|---|
| 25591 | n/a | } |
|---|
| 25592 | n/a | |
|---|
| 25593 | n/a | static PyObject *Qt_MusicSetPartInstrumentNumberInterruptSafe(PyObject *_self, PyObject *_args) |
|---|
| 25594 | n/a | { |
|---|
| 25595 | n/a | PyObject *_res = NULL; |
|---|
| 25596 | n/a | ComponentResult _rv; |
|---|
| 25597 | n/a | MusicComponent mc; |
|---|
| 25598 | n/a | long part; |
|---|
| 25599 | n/a | long instrumentNumber; |
|---|
| 25600 | n/a | #ifndef MusicSetPartInstrumentNumberInterruptSafe |
|---|
| 25601 | n/a | PyMac_PRECHECK(MusicSetPartInstrumentNumberInterruptSafe); |
|---|
| 25602 | n/a | #endif |
|---|
| 25603 | n/a | if (!PyArg_ParseTuple(_args, "O&ll", |
|---|
| 25604 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25605 | n/a | &part, |
|---|
| 25606 | n/a | &instrumentNumber)) |
|---|
| 25607 | n/a | return NULL; |
|---|
| 25608 | n/a | _rv = MusicSetPartInstrumentNumberInterruptSafe(mc, |
|---|
| 25609 | n/a | part, |
|---|
| 25610 | n/a | instrumentNumber); |
|---|
| 25611 | n/a | _res = Py_BuildValue("l", |
|---|
| 25612 | n/a | _rv); |
|---|
| 25613 | n/a | return _res; |
|---|
| 25614 | n/a | } |
|---|
| 25615 | n/a | |
|---|
| 25616 | n/a | static PyObject *Qt_MusicSetPartSoundLocalization(PyObject *_self, PyObject *_args) |
|---|
| 25617 | n/a | { |
|---|
| 25618 | n/a | PyObject *_res = NULL; |
|---|
| 25619 | n/a | ComponentResult _rv; |
|---|
| 25620 | n/a | MusicComponent mc; |
|---|
| 25621 | n/a | long part; |
|---|
| 25622 | n/a | Handle data; |
|---|
| 25623 | n/a | #ifndef MusicSetPartSoundLocalization |
|---|
| 25624 | n/a | PyMac_PRECHECK(MusicSetPartSoundLocalization); |
|---|
| 25625 | n/a | #endif |
|---|
| 25626 | n/a | if (!PyArg_ParseTuple(_args, "O&lO&", |
|---|
| 25627 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25628 | n/a | &part, |
|---|
| 25629 | n/a | ResObj_Convert, &data)) |
|---|
| 25630 | n/a | return NULL; |
|---|
| 25631 | n/a | _rv = MusicSetPartSoundLocalization(mc, |
|---|
| 25632 | n/a | part, |
|---|
| 25633 | n/a | data); |
|---|
| 25634 | n/a | _res = Py_BuildValue("l", |
|---|
| 25635 | n/a | _rv); |
|---|
| 25636 | n/a | return _res; |
|---|
| 25637 | n/a | } |
|---|
| 25638 | n/a | |
|---|
| 25639 | n/a | static PyObject *Qt_MusicGenericConfigure(PyObject *_self, PyObject *_args) |
|---|
| 25640 | n/a | { |
|---|
| 25641 | n/a | PyObject *_res = NULL; |
|---|
| 25642 | n/a | ComponentResult _rv; |
|---|
| 25643 | n/a | MusicComponent mc; |
|---|
| 25644 | n/a | long mode; |
|---|
| 25645 | n/a | long flags; |
|---|
| 25646 | n/a | long baseResID; |
|---|
| 25647 | n/a | #ifndef MusicGenericConfigure |
|---|
| 25648 | n/a | PyMac_PRECHECK(MusicGenericConfigure); |
|---|
| 25649 | n/a | #endif |
|---|
| 25650 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 25651 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25652 | n/a | &mode, |
|---|
| 25653 | n/a | &flags, |
|---|
| 25654 | n/a | &baseResID)) |
|---|
| 25655 | n/a | return NULL; |
|---|
| 25656 | n/a | _rv = MusicGenericConfigure(mc, |
|---|
| 25657 | n/a | mode, |
|---|
| 25658 | n/a | flags, |
|---|
| 25659 | n/a | baseResID); |
|---|
| 25660 | n/a | _res = Py_BuildValue("l", |
|---|
| 25661 | n/a | _rv); |
|---|
| 25662 | n/a | return _res; |
|---|
| 25663 | n/a | } |
|---|
| 25664 | n/a | |
|---|
| 25665 | n/a | static PyObject *Qt_MusicGenericGetKnobList(PyObject *_self, PyObject *_args) |
|---|
| 25666 | n/a | { |
|---|
| 25667 | n/a | PyObject *_res = NULL; |
|---|
| 25668 | n/a | ComponentResult _rv; |
|---|
| 25669 | n/a | MusicComponent mc; |
|---|
| 25670 | n/a | long knobType; |
|---|
| 25671 | n/a | GenericKnobDescriptionListHandle gkdlH; |
|---|
| 25672 | n/a | #ifndef MusicGenericGetKnobList |
|---|
| 25673 | n/a | PyMac_PRECHECK(MusicGenericGetKnobList); |
|---|
| 25674 | n/a | #endif |
|---|
| 25675 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25676 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25677 | n/a | &knobType)) |
|---|
| 25678 | n/a | return NULL; |
|---|
| 25679 | n/a | _rv = MusicGenericGetKnobList(mc, |
|---|
| 25680 | n/a | knobType, |
|---|
| 25681 | n/a | &gkdlH); |
|---|
| 25682 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 25683 | n/a | _rv, |
|---|
| 25684 | n/a | ResObj_New, gkdlH); |
|---|
| 25685 | n/a | return _res; |
|---|
| 25686 | n/a | } |
|---|
| 25687 | n/a | |
|---|
| 25688 | n/a | static PyObject *Qt_MusicGenericSetResourceNumbers(PyObject *_self, PyObject *_args) |
|---|
| 25689 | n/a | { |
|---|
| 25690 | n/a | PyObject *_res = NULL; |
|---|
| 25691 | n/a | ComponentResult _rv; |
|---|
| 25692 | n/a | MusicComponent mc; |
|---|
| 25693 | n/a | Handle resourceIDH; |
|---|
| 25694 | n/a | #ifndef MusicGenericSetResourceNumbers |
|---|
| 25695 | n/a | PyMac_PRECHECK(MusicGenericSetResourceNumbers); |
|---|
| 25696 | n/a | #endif |
|---|
| 25697 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 25698 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25699 | n/a | ResObj_Convert, &resourceIDH)) |
|---|
| 25700 | n/a | return NULL; |
|---|
| 25701 | n/a | _rv = MusicGenericSetResourceNumbers(mc, |
|---|
| 25702 | n/a | resourceIDH); |
|---|
| 25703 | n/a | _res = Py_BuildValue("l", |
|---|
| 25704 | n/a | _rv); |
|---|
| 25705 | n/a | return _res; |
|---|
| 25706 | n/a | } |
|---|
| 25707 | n/a | |
|---|
| 25708 | n/a | static PyObject *Qt_MusicDerivedMIDISend(PyObject *_self, PyObject *_args) |
|---|
| 25709 | n/a | { |
|---|
| 25710 | n/a | PyObject *_res = NULL; |
|---|
| 25711 | n/a | ComponentResult _rv; |
|---|
| 25712 | n/a | MusicComponent mc; |
|---|
| 25713 | n/a | MusicMIDIPacket packet; |
|---|
| 25714 | n/a | #ifndef MusicDerivedMIDISend |
|---|
| 25715 | n/a | PyMac_PRECHECK(MusicDerivedMIDISend); |
|---|
| 25716 | n/a | #endif |
|---|
| 25717 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 25718 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25719 | n/a | QtMusicMIDIPacket_Convert, &packet)) |
|---|
| 25720 | n/a | return NULL; |
|---|
| 25721 | n/a | _rv = MusicDerivedMIDISend(mc, |
|---|
| 25722 | n/a | &packet); |
|---|
| 25723 | n/a | _res = Py_BuildValue("l", |
|---|
| 25724 | n/a | _rv); |
|---|
| 25725 | n/a | return _res; |
|---|
| 25726 | n/a | } |
|---|
| 25727 | n/a | |
|---|
| 25728 | n/a | static PyObject *Qt_MusicDerivedOpenResFile(PyObject *_self, PyObject *_args) |
|---|
| 25729 | n/a | { |
|---|
| 25730 | n/a | PyObject *_res = NULL; |
|---|
| 25731 | n/a | ComponentResult _rv; |
|---|
| 25732 | n/a | MusicComponent mc; |
|---|
| 25733 | n/a | #ifndef MusicDerivedOpenResFile |
|---|
| 25734 | n/a | PyMac_PRECHECK(MusicDerivedOpenResFile); |
|---|
| 25735 | n/a | #endif |
|---|
| 25736 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25737 | n/a | CmpInstObj_Convert, &mc)) |
|---|
| 25738 | n/a | return NULL; |
|---|
| 25739 | n/a | _rv = MusicDerivedOpenResFile(mc); |
|---|
| 25740 | n/a | _res = Py_BuildValue("l", |
|---|
| 25741 | n/a | _rv); |
|---|
| 25742 | n/a | return _res; |
|---|
| 25743 | n/a | } |
|---|
| 25744 | n/a | |
|---|
| 25745 | n/a | static PyObject *Qt_MusicDerivedCloseResFile(PyObject *_self, PyObject *_args) |
|---|
| 25746 | n/a | { |
|---|
| 25747 | n/a | PyObject *_res = NULL; |
|---|
| 25748 | n/a | ComponentResult _rv; |
|---|
| 25749 | n/a | MusicComponent mc; |
|---|
| 25750 | n/a | short resRefNum; |
|---|
| 25751 | n/a | #ifndef MusicDerivedCloseResFile |
|---|
| 25752 | n/a | PyMac_PRECHECK(MusicDerivedCloseResFile); |
|---|
| 25753 | n/a | #endif |
|---|
| 25754 | n/a | if (!PyArg_ParseTuple(_args, "O&h", |
|---|
| 25755 | n/a | CmpInstObj_Convert, &mc, |
|---|
| 25756 | n/a | &resRefNum)) |
|---|
| 25757 | n/a | return NULL; |
|---|
| 25758 | n/a | _rv = MusicDerivedCloseResFile(mc, |
|---|
| 25759 | n/a | resRefNum); |
|---|
| 25760 | n/a | _res = Py_BuildValue("l", |
|---|
| 25761 | n/a | _rv); |
|---|
| 25762 | n/a | return _res; |
|---|
| 25763 | n/a | } |
|---|
| 25764 | n/a | |
|---|
| 25765 | n/a | static PyObject *Qt_NAUnregisterMusicDevice(PyObject *_self, PyObject *_args) |
|---|
| 25766 | n/a | { |
|---|
| 25767 | n/a | PyObject *_res = NULL; |
|---|
| 25768 | n/a | ComponentResult _rv; |
|---|
| 25769 | n/a | NoteAllocator na; |
|---|
| 25770 | n/a | long index; |
|---|
| 25771 | n/a | #ifndef NAUnregisterMusicDevice |
|---|
| 25772 | n/a | PyMac_PRECHECK(NAUnregisterMusicDevice); |
|---|
| 25773 | n/a | #endif |
|---|
| 25774 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25775 | n/a | CmpInstObj_Convert, &na, |
|---|
| 25776 | n/a | &index)) |
|---|
| 25777 | n/a | return NULL; |
|---|
| 25778 | n/a | _rv = NAUnregisterMusicDevice(na, |
|---|
| 25779 | n/a | index); |
|---|
| 25780 | n/a | _res = Py_BuildValue("l", |
|---|
| 25781 | n/a | _rv); |
|---|
| 25782 | n/a | return _res; |
|---|
| 25783 | n/a | } |
|---|
| 25784 | n/a | |
|---|
| 25785 | n/a | static PyObject *Qt_NASaveMusicConfiguration(PyObject *_self, PyObject *_args) |
|---|
| 25786 | n/a | { |
|---|
| 25787 | n/a | PyObject *_res = NULL; |
|---|
| 25788 | n/a | ComponentResult _rv; |
|---|
| 25789 | n/a | NoteAllocator na; |
|---|
| 25790 | n/a | #ifndef NASaveMusicConfiguration |
|---|
| 25791 | n/a | PyMac_PRECHECK(NASaveMusicConfiguration); |
|---|
| 25792 | n/a | #endif |
|---|
| 25793 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25794 | n/a | CmpInstObj_Convert, &na)) |
|---|
| 25795 | n/a | return NULL; |
|---|
| 25796 | n/a | _rv = NASaveMusicConfiguration(na); |
|---|
| 25797 | n/a | _res = Py_BuildValue("l", |
|---|
| 25798 | n/a | _rv); |
|---|
| 25799 | n/a | return _res; |
|---|
| 25800 | n/a | } |
|---|
| 25801 | n/a | |
|---|
| 25802 | n/a | static PyObject *Qt_NAGetMIDIPorts(PyObject *_self, PyObject *_args) |
|---|
| 25803 | n/a | { |
|---|
| 25804 | n/a | PyObject *_res = NULL; |
|---|
| 25805 | n/a | ComponentResult _rv; |
|---|
| 25806 | n/a | NoteAllocator na; |
|---|
| 25807 | n/a | QTMIDIPortListHandle inputPorts; |
|---|
| 25808 | n/a | QTMIDIPortListHandle outputPorts; |
|---|
| 25809 | n/a | #ifndef NAGetMIDIPorts |
|---|
| 25810 | n/a | PyMac_PRECHECK(NAGetMIDIPorts); |
|---|
| 25811 | n/a | #endif |
|---|
| 25812 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25813 | n/a | CmpInstObj_Convert, &na)) |
|---|
| 25814 | n/a | return NULL; |
|---|
| 25815 | n/a | _rv = NAGetMIDIPorts(na, |
|---|
| 25816 | n/a | &inputPorts, |
|---|
| 25817 | n/a | &outputPorts); |
|---|
| 25818 | n/a | _res = Py_BuildValue("lO&O&", |
|---|
| 25819 | n/a | _rv, |
|---|
| 25820 | n/a | ResObj_New, inputPorts, |
|---|
| 25821 | n/a | ResObj_New, outputPorts); |
|---|
| 25822 | n/a | return _res; |
|---|
| 25823 | n/a | } |
|---|
| 25824 | n/a | |
|---|
| 25825 | n/a | static PyObject *Qt_NATask(PyObject *_self, PyObject *_args) |
|---|
| 25826 | n/a | { |
|---|
| 25827 | n/a | PyObject *_res = NULL; |
|---|
| 25828 | n/a | ComponentResult _rv; |
|---|
| 25829 | n/a | NoteAllocator na; |
|---|
| 25830 | n/a | #ifndef NATask |
|---|
| 25831 | n/a | PyMac_PRECHECK(NATask); |
|---|
| 25832 | n/a | #endif |
|---|
| 25833 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25834 | n/a | CmpInstObj_Convert, &na)) |
|---|
| 25835 | n/a | return NULL; |
|---|
| 25836 | n/a | _rv = NATask(na); |
|---|
| 25837 | n/a | _res = Py_BuildValue("l", |
|---|
| 25838 | n/a | _rv); |
|---|
| 25839 | n/a | return _res; |
|---|
| 25840 | n/a | } |
|---|
| 25841 | n/a | |
|---|
| 25842 | n/a | static PyObject *Qt_TuneSetHeader(PyObject *_self, PyObject *_args) |
|---|
| 25843 | n/a | { |
|---|
| 25844 | n/a | PyObject *_res = NULL; |
|---|
| 25845 | n/a | ComponentResult _rv; |
|---|
| 25846 | n/a | TunePlayer tp; |
|---|
| 25847 | n/a | unsigned long * header; |
|---|
| 25848 | n/a | #ifndef TuneSetHeader |
|---|
| 25849 | n/a | PyMac_PRECHECK(TuneSetHeader); |
|---|
| 25850 | n/a | #endif |
|---|
| 25851 | n/a | if (!PyArg_ParseTuple(_args, "O&s", |
|---|
| 25852 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 25853 | n/a | &header)) |
|---|
| 25854 | n/a | return NULL; |
|---|
| 25855 | n/a | _rv = TuneSetHeader(tp, |
|---|
| 25856 | n/a | header); |
|---|
| 25857 | n/a | _res = Py_BuildValue("l", |
|---|
| 25858 | n/a | _rv); |
|---|
| 25859 | n/a | return _res; |
|---|
| 25860 | n/a | } |
|---|
| 25861 | n/a | |
|---|
| 25862 | n/a | static PyObject *Qt_TuneGetTimeBase(PyObject *_self, PyObject *_args) |
|---|
| 25863 | n/a | { |
|---|
| 25864 | n/a | PyObject *_res = NULL; |
|---|
| 25865 | n/a | ComponentResult _rv; |
|---|
| 25866 | n/a | TunePlayer tp; |
|---|
| 25867 | n/a | TimeBase tb; |
|---|
| 25868 | n/a | #ifndef TuneGetTimeBase |
|---|
| 25869 | n/a | PyMac_PRECHECK(TuneGetTimeBase); |
|---|
| 25870 | n/a | #endif |
|---|
| 25871 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25872 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 25873 | n/a | return NULL; |
|---|
| 25874 | n/a | _rv = TuneGetTimeBase(tp, |
|---|
| 25875 | n/a | &tb); |
|---|
| 25876 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 25877 | n/a | _rv, |
|---|
| 25878 | n/a | TimeBaseObj_New, tb); |
|---|
| 25879 | n/a | return _res; |
|---|
| 25880 | n/a | } |
|---|
| 25881 | n/a | |
|---|
| 25882 | n/a | static PyObject *Qt_TuneSetTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 25883 | n/a | { |
|---|
| 25884 | n/a | PyObject *_res = NULL; |
|---|
| 25885 | n/a | ComponentResult _rv; |
|---|
| 25886 | n/a | TunePlayer tp; |
|---|
| 25887 | n/a | TimeScale scale; |
|---|
| 25888 | n/a | #ifndef TuneSetTimeScale |
|---|
| 25889 | n/a | PyMac_PRECHECK(TuneSetTimeScale); |
|---|
| 25890 | n/a | #endif |
|---|
| 25891 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25892 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 25893 | n/a | &scale)) |
|---|
| 25894 | n/a | return NULL; |
|---|
| 25895 | n/a | _rv = TuneSetTimeScale(tp, |
|---|
| 25896 | n/a | scale); |
|---|
| 25897 | n/a | _res = Py_BuildValue("l", |
|---|
| 25898 | n/a | _rv); |
|---|
| 25899 | n/a | return _res; |
|---|
| 25900 | n/a | } |
|---|
| 25901 | n/a | |
|---|
| 25902 | n/a | static PyObject *Qt_TuneGetTimeScale(PyObject *_self, PyObject *_args) |
|---|
| 25903 | n/a | { |
|---|
| 25904 | n/a | PyObject *_res = NULL; |
|---|
| 25905 | n/a | ComponentResult _rv; |
|---|
| 25906 | n/a | TunePlayer tp; |
|---|
| 25907 | n/a | TimeScale scale; |
|---|
| 25908 | n/a | #ifndef TuneGetTimeScale |
|---|
| 25909 | n/a | PyMac_PRECHECK(TuneGetTimeScale); |
|---|
| 25910 | n/a | #endif |
|---|
| 25911 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25912 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 25913 | n/a | return NULL; |
|---|
| 25914 | n/a | _rv = TuneGetTimeScale(tp, |
|---|
| 25915 | n/a | &scale); |
|---|
| 25916 | n/a | _res = Py_BuildValue("ll", |
|---|
| 25917 | n/a | _rv, |
|---|
| 25918 | n/a | scale); |
|---|
| 25919 | n/a | return _res; |
|---|
| 25920 | n/a | } |
|---|
| 25921 | n/a | |
|---|
| 25922 | n/a | static PyObject *Qt_TuneInstant(PyObject *_self, PyObject *_args) |
|---|
| 25923 | n/a | { |
|---|
| 25924 | n/a | PyObject *_res = NULL; |
|---|
| 25925 | n/a | ComponentResult _rv; |
|---|
| 25926 | n/a | TunePlayer tp; |
|---|
| 25927 | n/a | unsigned long tune; |
|---|
| 25928 | n/a | unsigned long tunePosition; |
|---|
| 25929 | n/a | #ifndef TuneInstant |
|---|
| 25930 | n/a | PyMac_PRECHECK(TuneInstant); |
|---|
| 25931 | n/a | #endif |
|---|
| 25932 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25933 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 25934 | n/a | &tunePosition)) |
|---|
| 25935 | n/a | return NULL; |
|---|
| 25936 | n/a | _rv = TuneInstant(tp, |
|---|
| 25937 | n/a | &tune, |
|---|
| 25938 | n/a | tunePosition); |
|---|
| 25939 | n/a | _res = Py_BuildValue("ll", |
|---|
| 25940 | n/a | _rv, |
|---|
| 25941 | n/a | tune); |
|---|
| 25942 | n/a | return _res; |
|---|
| 25943 | n/a | } |
|---|
| 25944 | n/a | |
|---|
| 25945 | n/a | static PyObject *Qt_TuneStop(PyObject *_self, PyObject *_args) |
|---|
| 25946 | n/a | { |
|---|
| 25947 | n/a | PyObject *_res = NULL; |
|---|
| 25948 | n/a | ComponentResult _rv; |
|---|
| 25949 | n/a | TunePlayer tp; |
|---|
| 25950 | n/a | long stopFlags; |
|---|
| 25951 | n/a | #ifndef TuneStop |
|---|
| 25952 | n/a | PyMac_PRECHECK(TuneStop); |
|---|
| 25953 | n/a | #endif |
|---|
| 25954 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 25955 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 25956 | n/a | &stopFlags)) |
|---|
| 25957 | n/a | return NULL; |
|---|
| 25958 | n/a | _rv = TuneStop(tp, |
|---|
| 25959 | n/a | stopFlags); |
|---|
| 25960 | n/a | _res = Py_BuildValue("l", |
|---|
| 25961 | n/a | _rv); |
|---|
| 25962 | n/a | return _res; |
|---|
| 25963 | n/a | } |
|---|
| 25964 | n/a | |
|---|
| 25965 | n/a | static PyObject *Qt_TuneSetVolume(PyObject *_self, PyObject *_args) |
|---|
| 25966 | n/a | { |
|---|
| 25967 | n/a | PyObject *_res = NULL; |
|---|
| 25968 | n/a | ComponentResult _rv; |
|---|
| 25969 | n/a | TunePlayer tp; |
|---|
| 25970 | n/a | Fixed volume; |
|---|
| 25971 | n/a | #ifndef TuneSetVolume |
|---|
| 25972 | n/a | PyMac_PRECHECK(TuneSetVolume); |
|---|
| 25973 | n/a | #endif |
|---|
| 25974 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 25975 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 25976 | n/a | PyMac_GetFixed, &volume)) |
|---|
| 25977 | n/a | return NULL; |
|---|
| 25978 | n/a | _rv = TuneSetVolume(tp, |
|---|
| 25979 | n/a | volume); |
|---|
| 25980 | n/a | _res = Py_BuildValue("l", |
|---|
| 25981 | n/a | _rv); |
|---|
| 25982 | n/a | return _res; |
|---|
| 25983 | n/a | } |
|---|
| 25984 | n/a | |
|---|
| 25985 | n/a | static PyObject *Qt_TuneGetVolume(PyObject *_self, PyObject *_args) |
|---|
| 25986 | n/a | { |
|---|
| 25987 | n/a | PyObject *_res = NULL; |
|---|
| 25988 | n/a | ComponentResult _rv; |
|---|
| 25989 | n/a | TunePlayer tp; |
|---|
| 25990 | n/a | #ifndef TuneGetVolume |
|---|
| 25991 | n/a | PyMac_PRECHECK(TuneGetVolume); |
|---|
| 25992 | n/a | #endif |
|---|
| 25993 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 25994 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 25995 | n/a | return NULL; |
|---|
| 25996 | n/a | _rv = TuneGetVolume(tp); |
|---|
| 25997 | n/a | _res = Py_BuildValue("l", |
|---|
| 25998 | n/a | _rv); |
|---|
| 25999 | n/a | return _res; |
|---|
| 26000 | n/a | } |
|---|
| 26001 | n/a | |
|---|
| 26002 | n/a | static PyObject *Qt_TunePreroll(PyObject *_self, PyObject *_args) |
|---|
| 26003 | n/a | { |
|---|
| 26004 | n/a | PyObject *_res = NULL; |
|---|
| 26005 | n/a | ComponentResult _rv; |
|---|
| 26006 | n/a | TunePlayer tp; |
|---|
| 26007 | n/a | #ifndef TunePreroll |
|---|
| 26008 | n/a | PyMac_PRECHECK(TunePreroll); |
|---|
| 26009 | n/a | #endif |
|---|
| 26010 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 26011 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 26012 | n/a | return NULL; |
|---|
| 26013 | n/a | _rv = TunePreroll(tp); |
|---|
| 26014 | n/a | _res = Py_BuildValue("l", |
|---|
| 26015 | n/a | _rv); |
|---|
| 26016 | n/a | return _res; |
|---|
| 26017 | n/a | } |
|---|
| 26018 | n/a | |
|---|
| 26019 | n/a | static PyObject *Qt_TuneUnroll(PyObject *_self, PyObject *_args) |
|---|
| 26020 | n/a | { |
|---|
| 26021 | n/a | PyObject *_res = NULL; |
|---|
| 26022 | n/a | ComponentResult _rv; |
|---|
| 26023 | n/a | TunePlayer tp; |
|---|
| 26024 | n/a | #ifndef TuneUnroll |
|---|
| 26025 | n/a | PyMac_PRECHECK(TuneUnroll); |
|---|
| 26026 | n/a | #endif |
|---|
| 26027 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 26028 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 26029 | n/a | return NULL; |
|---|
| 26030 | n/a | _rv = TuneUnroll(tp); |
|---|
| 26031 | n/a | _res = Py_BuildValue("l", |
|---|
| 26032 | n/a | _rv); |
|---|
| 26033 | n/a | return _res; |
|---|
| 26034 | n/a | } |
|---|
| 26035 | n/a | |
|---|
| 26036 | n/a | static PyObject *Qt_TuneSetPartTranspose(PyObject *_self, PyObject *_args) |
|---|
| 26037 | n/a | { |
|---|
| 26038 | n/a | PyObject *_res = NULL; |
|---|
| 26039 | n/a | ComponentResult _rv; |
|---|
| 26040 | n/a | TunePlayer tp; |
|---|
| 26041 | n/a | unsigned long part; |
|---|
| 26042 | n/a | long transpose; |
|---|
| 26043 | n/a | long velocityShift; |
|---|
| 26044 | n/a | #ifndef TuneSetPartTranspose |
|---|
| 26045 | n/a | PyMac_PRECHECK(TuneSetPartTranspose); |
|---|
| 26046 | n/a | #endif |
|---|
| 26047 | n/a | if (!PyArg_ParseTuple(_args, "O&lll", |
|---|
| 26048 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26049 | n/a | &part, |
|---|
| 26050 | n/a | &transpose, |
|---|
| 26051 | n/a | &velocityShift)) |
|---|
| 26052 | n/a | return NULL; |
|---|
| 26053 | n/a | _rv = TuneSetPartTranspose(tp, |
|---|
| 26054 | n/a | part, |
|---|
| 26055 | n/a | transpose, |
|---|
| 26056 | n/a | velocityShift); |
|---|
| 26057 | n/a | _res = Py_BuildValue("l", |
|---|
| 26058 | n/a | _rv); |
|---|
| 26059 | n/a | return _res; |
|---|
| 26060 | n/a | } |
|---|
| 26061 | n/a | |
|---|
| 26062 | n/a | static PyObject *Qt_TuneGetNoteAllocator(PyObject *_self, PyObject *_args) |
|---|
| 26063 | n/a | { |
|---|
| 26064 | n/a | PyObject *_res = NULL; |
|---|
| 26065 | n/a | NoteAllocator _rv; |
|---|
| 26066 | n/a | TunePlayer tp; |
|---|
| 26067 | n/a | #ifndef TuneGetNoteAllocator |
|---|
| 26068 | n/a | PyMac_PRECHECK(TuneGetNoteAllocator); |
|---|
| 26069 | n/a | #endif |
|---|
| 26070 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 26071 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 26072 | n/a | return NULL; |
|---|
| 26073 | n/a | _rv = TuneGetNoteAllocator(tp); |
|---|
| 26074 | n/a | _res = Py_BuildValue("O&", |
|---|
| 26075 | n/a | CmpInstObj_New, _rv); |
|---|
| 26076 | n/a | return _res; |
|---|
| 26077 | n/a | } |
|---|
| 26078 | n/a | |
|---|
| 26079 | n/a | static PyObject *Qt_TuneSetSofter(PyObject *_self, PyObject *_args) |
|---|
| 26080 | n/a | { |
|---|
| 26081 | n/a | PyObject *_res = NULL; |
|---|
| 26082 | n/a | ComponentResult _rv; |
|---|
| 26083 | n/a | TunePlayer tp; |
|---|
| 26084 | n/a | long softer; |
|---|
| 26085 | n/a | #ifndef TuneSetSofter |
|---|
| 26086 | n/a | PyMac_PRECHECK(TuneSetSofter); |
|---|
| 26087 | n/a | #endif |
|---|
| 26088 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 26089 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26090 | n/a | &softer)) |
|---|
| 26091 | n/a | return NULL; |
|---|
| 26092 | n/a | _rv = TuneSetSofter(tp, |
|---|
| 26093 | n/a | softer); |
|---|
| 26094 | n/a | _res = Py_BuildValue("l", |
|---|
| 26095 | n/a | _rv); |
|---|
| 26096 | n/a | return _res; |
|---|
| 26097 | n/a | } |
|---|
| 26098 | n/a | |
|---|
| 26099 | n/a | static PyObject *Qt_TuneTask(PyObject *_self, PyObject *_args) |
|---|
| 26100 | n/a | { |
|---|
| 26101 | n/a | PyObject *_res = NULL; |
|---|
| 26102 | n/a | ComponentResult _rv; |
|---|
| 26103 | n/a | TunePlayer tp; |
|---|
| 26104 | n/a | #ifndef TuneTask |
|---|
| 26105 | n/a | PyMac_PRECHECK(TuneTask); |
|---|
| 26106 | n/a | #endif |
|---|
| 26107 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 26108 | n/a | CmpInstObj_Convert, &tp)) |
|---|
| 26109 | n/a | return NULL; |
|---|
| 26110 | n/a | _rv = TuneTask(tp); |
|---|
| 26111 | n/a | _res = Py_BuildValue("l", |
|---|
| 26112 | n/a | _rv); |
|---|
| 26113 | n/a | return _res; |
|---|
| 26114 | n/a | } |
|---|
| 26115 | n/a | |
|---|
| 26116 | n/a | static PyObject *Qt_TuneSetBalance(PyObject *_self, PyObject *_args) |
|---|
| 26117 | n/a | { |
|---|
| 26118 | n/a | PyObject *_res = NULL; |
|---|
| 26119 | n/a | ComponentResult _rv; |
|---|
| 26120 | n/a | TunePlayer tp; |
|---|
| 26121 | n/a | long balance; |
|---|
| 26122 | n/a | #ifndef TuneSetBalance |
|---|
| 26123 | n/a | PyMac_PRECHECK(TuneSetBalance); |
|---|
| 26124 | n/a | #endif |
|---|
| 26125 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 26126 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26127 | n/a | &balance)) |
|---|
| 26128 | n/a | return NULL; |
|---|
| 26129 | n/a | _rv = TuneSetBalance(tp, |
|---|
| 26130 | n/a | balance); |
|---|
| 26131 | n/a | _res = Py_BuildValue("l", |
|---|
| 26132 | n/a | _rv); |
|---|
| 26133 | n/a | return _res; |
|---|
| 26134 | n/a | } |
|---|
| 26135 | n/a | |
|---|
| 26136 | n/a | static PyObject *Qt_TuneSetSoundLocalization(PyObject *_self, PyObject *_args) |
|---|
| 26137 | n/a | { |
|---|
| 26138 | n/a | PyObject *_res = NULL; |
|---|
| 26139 | n/a | ComponentResult _rv; |
|---|
| 26140 | n/a | TunePlayer tp; |
|---|
| 26141 | n/a | Handle data; |
|---|
| 26142 | n/a | #ifndef TuneSetSoundLocalization |
|---|
| 26143 | n/a | PyMac_PRECHECK(TuneSetSoundLocalization); |
|---|
| 26144 | n/a | #endif |
|---|
| 26145 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 26146 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26147 | n/a | ResObj_Convert, &data)) |
|---|
| 26148 | n/a | return NULL; |
|---|
| 26149 | n/a | _rv = TuneSetSoundLocalization(tp, |
|---|
| 26150 | n/a | data); |
|---|
| 26151 | n/a | _res = Py_BuildValue("l", |
|---|
| 26152 | n/a | _rv); |
|---|
| 26153 | n/a | return _res; |
|---|
| 26154 | n/a | } |
|---|
| 26155 | n/a | |
|---|
| 26156 | n/a | static PyObject *Qt_TuneSetHeaderWithSize(PyObject *_self, PyObject *_args) |
|---|
| 26157 | n/a | { |
|---|
| 26158 | n/a | PyObject *_res = NULL; |
|---|
| 26159 | n/a | ComponentResult _rv; |
|---|
| 26160 | n/a | TunePlayer tp; |
|---|
| 26161 | n/a | unsigned long * header; |
|---|
| 26162 | n/a | unsigned long size; |
|---|
| 26163 | n/a | #ifndef TuneSetHeaderWithSize |
|---|
| 26164 | n/a | PyMac_PRECHECK(TuneSetHeaderWithSize); |
|---|
| 26165 | n/a | #endif |
|---|
| 26166 | n/a | if (!PyArg_ParseTuple(_args, "O&sl", |
|---|
| 26167 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26168 | n/a | &header, |
|---|
| 26169 | n/a | &size)) |
|---|
| 26170 | n/a | return NULL; |
|---|
| 26171 | n/a | _rv = TuneSetHeaderWithSize(tp, |
|---|
| 26172 | n/a | header, |
|---|
| 26173 | n/a | size); |
|---|
| 26174 | n/a | _res = Py_BuildValue("l", |
|---|
| 26175 | n/a | _rv); |
|---|
| 26176 | n/a | return _res; |
|---|
| 26177 | n/a | } |
|---|
| 26178 | n/a | |
|---|
| 26179 | n/a | static PyObject *Qt_TuneSetPartMix(PyObject *_self, PyObject *_args) |
|---|
| 26180 | n/a | { |
|---|
| 26181 | n/a | PyObject *_res = NULL; |
|---|
| 26182 | n/a | ComponentResult _rv; |
|---|
| 26183 | n/a | TunePlayer tp; |
|---|
| 26184 | n/a | unsigned long partNumber; |
|---|
| 26185 | n/a | long volume; |
|---|
| 26186 | n/a | long balance; |
|---|
| 26187 | n/a | long mixFlags; |
|---|
| 26188 | n/a | #ifndef TuneSetPartMix |
|---|
| 26189 | n/a | PyMac_PRECHECK(TuneSetPartMix); |
|---|
| 26190 | n/a | #endif |
|---|
| 26191 | n/a | if (!PyArg_ParseTuple(_args, "O&llll", |
|---|
| 26192 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26193 | n/a | &partNumber, |
|---|
| 26194 | n/a | &volume, |
|---|
| 26195 | n/a | &balance, |
|---|
| 26196 | n/a | &mixFlags)) |
|---|
| 26197 | n/a | return NULL; |
|---|
| 26198 | n/a | _rv = TuneSetPartMix(tp, |
|---|
| 26199 | n/a | partNumber, |
|---|
| 26200 | n/a | volume, |
|---|
| 26201 | n/a | balance, |
|---|
| 26202 | n/a | mixFlags); |
|---|
| 26203 | n/a | _res = Py_BuildValue("l", |
|---|
| 26204 | n/a | _rv); |
|---|
| 26205 | n/a | return _res; |
|---|
| 26206 | n/a | } |
|---|
| 26207 | n/a | |
|---|
| 26208 | n/a | static PyObject *Qt_TuneGetPartMix(PyObject *_self, PyObject *_args) |
|---|
| 26209 | n/a | { |
|---|
| 26210 | n/a | PyObject *_res = NULL; |
|---|
| 26211 | n/a | ComponentResult _rv; |
|---|
| 26212 | n/a | TunePlayer tp; |
|---|
| 26213 | n/a | unsigned long partNumber; |
|---|
| 26214 | n/a | long volumeOut; |
|---|
| 26215 | n/a | long balanceOut; |
|---|
| 26216 | n/a | long mixFlagsOut; |
|---|
| 26217 | n/a | #ifndef TuneGetPartMix |
|---|
| 26218 | n/a | PyMac_PRECHECK(TuneGetPartMix); |
|---|
| 26219 | n/a | #endif |
|---|
| 26220 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 26221 | n/a | CmpInstObj_Convert, &tp, |
|---|
| 26222 | n/a | &partNumber)) |
|---|
| 26223 | n/a | return NULL; |
|---|
| 26224 | n/a | _rv = TuneGetPartMix(tp, |
|---|
| 26225 | n/a | partNumber, |
|---|
| 26226 | n/a | &volumeOut, |
|---|
| 26227 | n/a | &balanceOut, |
|---|
| 26228 | n/a | &mixFlagsOut); |
|---|
| 26229 | n/a | _res = Py_BuildValue("llll", |
|---|
| 26230 | n/a | _rv, |
|---|
| 26231 | n/a | volumeOut, |
|---|
| 26232 | n/a | balanceOut, |
|---|
| 26233 | n/a | mixFlagsOut); |
|---|
| 26234 | n/a | return _res; |
|---|
| 26235 | n/a | } |
|---|
| 26236 | n/a | |
|---|
| 26237 | n/a | static PyObject *Qt_AlignWindow(PyObject *_self, PyObject *_args) |
|---|
| 26238 | n/a | { |
|---|
| 26239 | n/a | PyObject *_res = NULL; |
|---|
| 26240 | n/a | WindowPtr wp; |
|---|
| 26241 | n/a | Boolean front; |
|---|
| 26242 | n/a | #ifndef AlignWindow |
|---|
| 26243 | n/a | PyMac_PRECHECK(AlignWindow); |
|---|
| 26244 | n/a | #endif |
|---|
| 26245 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 26246 | n/a | WinObj_Convert, &wp, |
|---|
| 26247 | n/a | &front)) |
|---|
| 26248 | n/a | return NULL; |
|---|
| 26249 | n/a | AlignWindow(wp, |
|---|
| 26250 | n/a | front, |
|---|
| 26251 | n/a | (Rect *)0, |
|---|
| 26252 | n/a | (ICMAlignmentProcRecordPtr)0); |
|---|
| 26253 | n/a | Py_INCREF(Py_None); |
|---|
| 26254 | n/a | _res = Py_None; |
|---|
| 26255 | n/a | return _res; |
|---|
| 26256 | n/a | } |
|---|
| 26257 | n/a | |
|---|
| 26258 | n/a | static PyObject *Qt_DragAlignedWindow(PyObject *_self, PyObject *_args) |
|---|
| 26259 | n/a | { |
|---|
| 26260 | n/a | PyObject *_res = NULL; |
|---|
| 26261 | n/a | WindowPtr wp; |
|---|
| 26262 | n/a | Point startPt; |
|---|
| 26263 | n/a | Rect boundsRect; |
|---|
| 26264 | n/a | #ifndef DragAlignedWindow |
|---|
| 26265 | n/a | PyMac_PRECHECK(DragAlignedWindow); |
|---|
| 26266 | n/a | #endif |
|---|
| 26267 | n/a | if (!PyArg_ParseTuple(_args, "O&O&O&", |
|---|
| 26268 | n/a | WinObj_Convert, &wp, |
|---|
| 26269 | n/a | PyMac_GetPoint, &startPt, |
|---|
| 26270 | n/a | PyMac_GetRect, &boundsRect)) |
|---|
| 26271 | n/a | return NULL; |
|---|
| 26272 | n/a | DragAlignedWindow(wp, |
|---|
| 26273 | n/a | startPt, |
|---|
| 26274 | n/a | &boundsRect, |
|---|
| 26275 | n/a | (Rect *)0, |
|---|
| 26276 | n/a | (ICMAlignmentProcRecordPtr)0); |
|---|
| 26277 | n/a | Py_INCREF(Py_None); |
|---|
| 26278 | n/a | _res = Py_None; |
|---|
| 26279 | n/a | return _res; |
|---|
| 26280 | n/a | } |
|---|
| 26281 | n/a | |
|---|
| 26282 | n/a | static PyObject *Qt_MoviesTask(PyObject *_self, PyObject *_args) |
|---|
| 26283 | n/a | { |
|---|
| 26284 | n/a | PyObject *_res = NULL; |
|---|
| 26285 | n/a | long maxMilliSecToUse; |
|---|
| 26286 | n/a | #ifndef MoviesTask |
|---|
| 26287 | n/a | PyMac_PRECHECK(MoviesTask); |
|---|
| 26288 | n/a | #endif |
|---|
| 26289 | n/a | if (!PyArg_ParseTuple(_args, "l", |
|---|
| 26290 | n/a | &maxMilliSecToUse)) |
|---|
| 26291 | n/a | return NULL; |
|---|
| 26292 | n/a | MoviesTask((Movie)0, |
|---|
| 26293 | n/a | maxMilliSecToUse); |
|---|
| 26294 | n/a | Py_INCREF(Py_None); |
|---|
| 26295 | n/a | _res = Py_None; |
|---|
| 26296 | n/a | return _res; |
|---|
| 26297 | n/a | } |
|---|
| 26298 | n/a | #endif /* __LP64__ */ |
|---|
| 26299 | n/a | |
|---|
| 26300 | n/a | static PyMethodDef Qt_methods[] = { |
|---|
| 26301 | n/a | #ifndef __LP64__ |
|---|
| 26302 | n/a | {"EnterMovies", (PyCFunction)Qt_EnterMovies, 1, |
|---|
| 26303 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 26304 | n/a | {"ExitMovies", (PyCFunction)Qt_ExitMovies, 1, |
|---|
| 26305 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 26306 | n/a | {"GetMoviesError", (PyCFunction)Qt_GetMoviesError, 1, |
|---|
| 26307 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 26308 | n/a | {"ClearMoviesStickyError", (PyCFunction)Qt_ClearMoviesStickyError, 1, |
|---|
| 26309 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 26310 | n/a | {"GetMoviesStickyError", (PyCFunction)Qt_GetMoviesStickyError, 1, |
|---|
| 26311 | n/a | PyDoc_STR("() -> None")}, |
|---|
| 26312 | n/a | {"QTGetWallClockTimeBase", (PyCFunction)Qt_QTGetWallClockTimeBase, 1, |
|---|
| 26313 | n/a | PyDoc_STR("() -> (TimeBase wallClockTimeBase)")}, |
|---|
| 26314 | n/a | {"QTIdleManagerOpen", (PyCFunction)Qt_QTIdleManagerOpen, 1, |
|---|
| 26315 | n/a | PyDoc_STR("() -> (IdleManager _rv)")}, |
|---|
| 26316 | n/a | {"CreateMovieControl", (PyCFunction)Qt_CreateMovieControl, 1, |
|---|
| 26317 | n/a | PyDoc_STR("(WindowPtr theWindow, Movie theMovie, UInt32 options) -> (Rect localRect, ControlHandle returnedControl)")}, |
|---|
| 26318 | n/a | {"DisposeMatte", (PyCFunction)Qt_DisposeMatte, 1, |
|---|
| 26319 | n/a | PyDoc_STR("(PixMapHandle theMatte) -> None")}, |
|---|
| 26320 | n/a | {"NewMovie", (PyCFunction)Qt_NewMovie, 1, |
|---|
| 26321 | n/a | PyDoc_STR("(long flags) -> (Movie _rv)")}, |
|---|
| 26322 | n/a | {"QTGetTimeUntilNextTask", (PyCFunction)Qt_QTGetTimeUntilNextTask, 1, |
|---|
| 26323 | n/a | PyDoc_STR("(long scale) -> (long duration)")}, |
|---|
| 26324 | n/a | {"GetDataHandler", (PyCFunction)Qt_GetDataHandler, 1, |
|---|
| 26325 | n/a | PyDoc_STR("(Handle dataRef, OSType dataHandlerSubType, long flags) -> (Component _rv)")}, |
|---|
| 26326 | n/a | {"PasteHandleIntoMovie", (PyCFunction)Qt_PasteHandleIntoMovie, 1, |
|---|
| 26327 | n/a | PyDoc_STR("(Handle h, OSType handleType, Movie theMovie, long flags, ComponentInstance userComp) -> None")}, |
|---|
| 26328 | n/a | {"GetMovieImporterForDataRef", (PyCFunction)Qt_GetMovieImporterForDataRef, 1, |
|---|
| 26329 | n/a | PyDoc_STR("(OSType dataRefType, Handle dataRef, long flags) -> (Component importer)")}, |
|---|
| 26330 | n/a | {"QTGetMIMETypeInfo", (PyCFunction)Qt_QTGetMIMETypeInfo, 1, |
|---|
| 26331 | n/a | PyDoc_STR("(char* mimeStringStart, short mimeStringLength, OSType infoSelector, void * infoDataPtr) -> (long infoDataSize)")}, |
|---|
| 26332 | n/a | {"TrackTimeToMediaTime", (PyCFunction)Qt_TrackTimeToMediaTime, 1, |
|---|
| 26333 | n/a | PyDoc_STR("(TimeValue value, Track theTrack) -> (TimeValue _rv)")}, |
|---|
| 26334 | n/a | {"NewUserData", (PyCFunction)Qt_NewUserData, 1, |
|---|
| 26335 | n/a | PyDoc_STR("() -> (UserData theUserData)")}, |
|---|
| 26336 | n/a | {"NewUserDataFromHandle", (PyCFunction)Qt_NewUserDataFromHandle, 1, |
|---|
| 26337 | n/a | PyDoc_STR("(Handle h) -> (UserData theUserData)")}, |
|---|
| 26338 | n/a | {"CreateMovieFile", (PyCFunction)Qt_CreateMovieFile, 1, |
|---|
| 26339 | n/a | PyDoc_STR("(FSSpec fileSpec, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (short resRefNum, Movie newmovie)")}, |
|---|
| 26340 | n/a | {"OpenMovieFile", (PyCFunction)Qt_OpenMovieFile, 1, |
|---|
| 26341 | n/a | PyDoc_STR("(FSSpec fileSpec, SInt8 permission) -> (short resRefNum)")}, |
|---|
| 26342 | n/a | {"CloseMovieFile", (PyCFunction)Qt_CloseMovieFile, 1, |
|---|
| 26343 | n/a | PyDoc_STR("(short resRefNum) -> None")}, |
|---|
| 26344 | n/a | {"DeleteMovieFile", (PyCFunction)Qt_DeleteMovieFile, 1, |
|---|
| 26345 | n/a | PyDoc_STR("(FSSpec fileSpec) -> None")}, |
|---|
| 26346 | n/a | {"NewMovieFromFile", (PyCFunction)Qt_NewMovieFromFile, 1, |
|---|
| 26347 | n/a | PyDoc_STR("(short resRefNum, short resId, short newMovieFlags) -> (Movie theMovie, short resId, Boolean dataRefWasChanged)")}, |
|---|
| 26348 | n/a | {"NewMovieFromHandle", (PyCFunction)Qt_NewMovieFromHandle, 1, |
|---|
| 26349 | n/a | PyDoc_STR("(Handle h, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)")}, |
|---|
| 26350 | n/a | {"NewMovieFromDataFork", (PyCFunction)Qt_NewMovieFromDataFork, 1, |
|---|
| 26351 | n/a | PyDoc_STR("(short fRefNum, long fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)")}, |
|---|
| 26352 | n/a | {"NewMovieFromDataFork64", (PyCFunction)Qt_NewMovieFromDataFork64, 1, |
|---|
| 26353 | n/a | PyDoc_STR("(long fRefNum, wide fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasChanged)")}, |
|---|
| 26354 | n/a | {"NewMovieFromDataRef", (PyCFunction)Qt_NewMovieFromDataRef, 1, |
|---|
| 26355 | n/a | PyDoc_STR("(short flags, Handle dataRef, OSType dtaRefType) -> (Movie m, short id)")}, |
|---|
| 26356 | n/a | {"NewMovieFromStorageOffset", (PyCFunction)Qt_NewMovieFromStorageOffset, 1, |
|---|
| 26357 | n/a | PyDoc_STR("(DataHandler dh, wide fileOffset, short newMovieFlags) -> (Movie theMovie, Boolean dataRefWasCataRefType)")}, |
|---|
| 26358 | n/a | {"NewMovieForDataRefFromHandle", (PyCFunction)Qt_NewMovieForDataRefFromHandle, 1, |
|---|
| 26359 | n/a | PyDoc_STR("(Handle h, short newMovieFlags, Handle dataRef, OSType dataRefType) -> (Movie theMovie, Boolean dataRefWasChanged)")}, |
|---|
| 26360 | n/a | {"RemoveMovieResource", (PyCFunction)Qt_RemoveMovieResource, 1, |
|---|
| 26361 | n/a | PyDoc_STR("(short resRefNum, short resId) -> None")}, |
|---|
| 26362 | n/a | {"CreateMovieStorage", (PyCFunction)Qt_CreateMovieStorage, 1, |
|---|
| 26363 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType, OSType creator, ScriptCode scriptTag, long createMovieFileFlags) -> (DataHandler outDataHandler, Movie newmovie)")}, |
|---|
| 26364 | n/a | {"OpenMovieStorage", (PyCFunction)Qt_OpenMovieStorage, 1, |
|---|
| 26365 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType, long flags) -> (DataHandler outDataHandler)")}, |
|---|
| 26366 | n/a | {"CloseMovieStorage", (PyCFunction)Qt_CloseMovieStorage, 1, |
|---|
| 26367 | n/a | PyDoc_STR("(DataHandler dh) -> None")}, |
|---|
| 26368 | n/a | {"DeleteMovieStorage", (PyCFunction)Qt_DeleteMovieStorage, 1, |
|---|
| 26369 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType) -> None")}, |
|---|
| 26370 | n/a | {"CreateShortcutMovieFile", (PyCFunction)Qt_CreateShortcutMovieFile, 1, |
|---|
| 26371 | n/a | PyDoc_STR("(FSSpec fileSpec, OSType creator, ScriptCode scriptTag, long createMovieFileFlags, Handle targetDataRef, OSType targetDataRefType) -> None")}, |
|---|
| 26372 | n/a | {"CanQuickTimeOpenFile", (PyCFunction)Qt_CanQuickTimeOpenFile, 1, |
|---|
| 26373 | n/a | PyDoc_STR("(FSSpec fileSpec, OSType fileType, OSType fileNameExtension, UInt32 inFlags) -> (Boolean outCanOpenWithGraphicsImporter, Boolean outCanOpenAsMovie, Boolean outPreferGraphicsImporter)")}, |
|---|
| 26374 | n/a | {"CanQuickTimeOpenDataRef", (PyCFunction)Qt_CanQuickTimeOpenDataRef, 1, |
|---|
| 26375 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType, UInt32 inFlags) -> (Boolean outCanOpenWithGraphicsImporter, Boolean outCanOpenAsMovie, Boolean outPreferGraphicsImporter)")}, |
|---|
| 26376 | n/a | {"NewMovieFromScrap", (PyCFunction)Qt_NewMovieFromScrap, 1, |
|---|
| 26377 | n/a | PyDoc_STR("(long newMovieFlags) -> (Movie _rv)")}, |
|---|
| 26378 | n/a | {"QTNewAlias", (PyCFunction)Qt_QTNewAlias, 1, |
|---|
| 26379 | n/a | PyDoc_STR("(FSSpec fss, Boolean minimal) -> (AliasHandle alias)")}, |
|---|
| 26380 | n/a | {"EndFullScreen", (PyCFunction)Qt_EndFullScreen, 1, |
|---|
| 26381 | n/a | PyDoc_STR("(Ptr fullState, long flags) -> None")}, |
|---|
| 26382 | n/a | {"AddSoundDescriptionExtension", (PyCFunction)Qt_AddSoundDescriptionExtension, 1, |
|---|
| 26383 | n/a | PyDoc_STR("(SoundDescriptionHandle desc, Handle extension, OSType idType) -> None")}, |
|---|
| 26384 | n/a | {"GetSoundDescriptionExtension", (PyCFunction)Qt_GetSoundDescriptionExtension, 1, |
|---|
| 26385 | n/a | PyDoc_STR("(SoundDescriptionHandle desc, OSType idType) -> (Handle extension)")}, |
|---|
| 26386 | n/a | {"RemoveSoundDescriptionExtension", (PyCFunction)Qt_RemoveSoundDescriptionExtension, 1, |
|---|
| 26387 | n/a | PyDoc_STR("(SoundDescriptionHandle desc, OSType idType) -> None")}, |
|---|
| 26388 | n/a | {"QTIsStandardParameterDialogEvent", (PyCFunction)Qt_QTIsStandardParameterDialogEvent, 1, |
|---|
| 26389 | n/a | PyDoc_STR("(QTParameterDialog createdDialog) -> (EventRecord pEvent)")}, |
|---|
| 26390 | n/a | {"QTDismissStandardParameterDialog", (PyCFunction)Qt_QTDismissStandardParameterDialog, 1, |
|---|
| 26391 | n/a | PyDoc_STR("(QTParameterDialog createdDialog) -> None")}, |
|---|
| 26392 | n/a | {"QTStandardParameterDialogDoAction", (PyCFunction)Qt_QTStandardParameterDialogDoAction, 1, |
|---|
| 26393 | n/a | PyDoc_STR("(QTParameterDialog createdDialog, long action, void * params) -> None")}, |
|---|
| 26394 | n/a | {"QTRegisterAccessKey", (PyCFunction)Qt_QTRegisterAccessKey, 1, |
|---|
| 26395 | n/a | PyDoc_STR("(Str255 accessKeyType, long flags, Handle accessKey) -> None")}, |
|---|
| 26396 | n/a | {"QTUnregisterAccessKey", (PyCFunction)Qt_QTUnregisterAccessKey, 1, |
|---|
| 26397 | n/a | PyDoc_STR("(Str255 accessKeyType, long flags, Handle accessKey) -> None")}, |
|---|
| 26398 | n/a | {"QTGetSupportedRestrictions", (PyCFunction)Qt_QTGetSupportedRestrictions, 1, |
|---|
| 26399 | n/a | PyDoc_STR("(OSType inRestrictionClass) -> (UInt32 outRestrictionIDs)")}, |
|---|
| 26400 | n/a | {"QTTextToNativeText", (PyCFunction)Qt_QTTextToNativeText, 1, |
|---|
| 26401 | n/a | PyDoc_STR("(Handle theText, long encoding, long flags) -> None")}, |
|---|
| 26402 | n/a | {"VideoMediaResetStatistics", (PyCFunction)Qt_VideoMediaResetStatistics, 1, |
|---|
| 26403 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 26404 | n/a | {"VideoMediaGetStatistics", (PyCFunction)Qt_VideoMediaGetStatistics, 1, |
|---|
| 26405 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 26406 | n/a | {"VideoMediaGetStallCount", (PyCFunction)Qt_VideoMediaGetStallCount, 1, |
|---|
| 26407 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, unsigned long stalls)")}, |
|---|
| 26408 | n/a | {"VideoMediaSetCodecParameter", (PyCFunction)Qt_VideoMediaSetCodecParameter, 1, |
|---|
| 26409 | n/a | PyDoc_STR("(MediaHandler mh, CodecType cType, OSType parameterID, long parameterChangeSeed, void * dataPtr, long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26410 | n/a | {"VideoMediaGetCodecParameter", (PyCFunction)Qt_VideoMediaGetCodecParameter, 1, |
|---|
| 26411 | n/a | PyDoc_STR("(MediaHandler mh, CodecType cType, OSType parameterID, Handle outParameterData) -> (ComponentResult _rv)")}, |
|---|
| 26412 | n/a | {"TextMediaAddTextSample", (PyCFunction)Qt_TextMediaAddTextSample, 1, |
|---|
| 26413 | n/a | 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)")}, |
|---|
| 26414 | n/a | {"TextMediaAddTESample", (PyCFunction)Qt_TextMediaAddTESample, 1, |
|---|
| 26415 | n/a | 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)")}, |
|---|
| 26416 | n/a | {"TextMediaAddHiliteSample", (PyCFunction)Qt_TextMediaAddHiliteSample, 1, |
|---|
| 26417 | n/a | PyDoc_STR("(MediaHandler mh, short hiliteStart, short hiliteEnd, TimeValue duration) -> (ComponentResult _rv, RGBColor rgbHiliteColor, TimeValue sampleTime)")}, |
|---|
| 26418 | n/a | {"TextMediaDrawRaw", (PyCFunction)Qt_TextMediaDrawRaw, 1, |
|---|
| 26419 | n/a | PyDoc_STR("(MediaHandler mh, GWorldPtr gw, GDHandle gd, void * data, long dataSize, TextDescriptionHandle tdh) -> (ComponentResult _rv)")}, |
|---|
| 26420 | n/a | {"TextMediaSetTextProperty", (PyCFunction)Qt_TextMediaSetTextProperty, 1, |
|---|
| 26421 | n/a | PyDoc_STR("(MediaHandler mh, TimeValue atMediaTime, long propertyType, void * data, long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26422 | n/a | {"TextMediaRawSetup", (PyCFunction)Qt_TextMediaRawSetup, 1, |
|---|
| 26423 | n/a | PyDoc_STR("(MediaHandler mh, GWorldPtr gw, GDHandle gd, void * data, long dataSize, TextDescriptionHandle tdh, TimeValue sampleDuration) -> (ComponentResult _rv)")}, |
|---|
| 26424 | n/a | {"TextMediaRawIdle", (PyCFunction)Qt_TextMediaRawIdle, 1, |
|---|
| 26425 | n/a | PyDoc_STR("(MediaHandler mh, GWorldPtr gw, GDHandle gd, TimeValue sampleTime, long flagsIn) -> (ComponentResult _rv, long flagsOut)")}, |
|---|
| 26426 | n/a | {"TextMediaGetTextProperty", (PyCFunction)Qt_TextMediaGetTextProperty, 1, |
|---|
| 26427 | n/a | PyDoc_STR("(MediaHandler mh, TimeValue atMediaTime, long propertyType, void * data, long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26428 | n/a | {"TextMediaFindNextText", (PyCFunction)Qt_TextMediaFindNextText, 1, |
|---|
| 26429 | n/a | PyDoc_STR("(MediaHandler mh, Ptr text, long size, short findFlags, TimeValue startTime) -> (ComponentResult _rv, TimeValue foundTime, TimeValue foundDuration, long offset)")}, |
|---|
| 26430 | n/a | {"TextMediaHiliteTextSample", (PyCFunction)Qt_TextMediaHiliteTextSample, 1, |
|---|
| 26431 | n/a | PyDoc_STR("(MediaHandler mh, TimeValue sampleTime, short hiliteStart, short hiliteEnd) -> (ComponentResult _rv, RGBColor rgbHiliteColor)")}, |
|---|
| 26432 | n/a | {"TextMediaSetTextSampleData", (PyCFunction)Qt_TextMediaSetTextSampleData, 1, |
|---|
| 26433 | n/a | PyDoc_STR("(MediaHandler mh, void * data, OSType dataType) -> (ComponentResult _rv)")}, |
|---|
| 26434 | n/a | {"SpriteMediaSetProperty", (PyCFunction)Qt_SpriteMediaSetProperty, 1, |
|---|
| 26435 | n/a | PyDoc_STR("(MediaHandler mh, short spriteIndex, long propertyType, void * propertyValue) -> (ComponentResult _rv)")}, |
|---|
| 26436 | n/a | {"SpriteMediaGetProperty", (PyCFunction)Qt_SpriteMediaGetProperty, 1, |
|---|
| 26437 | n/a | PyDoc_STR("(MediaHandler mh, short spriteIndex, long propertyType, void * propertyValue) -> (ComponentResult _rv)")}, |
|---|
| 26438 | n/a | {"SpriteMediaHitTestSprites", (PyCFunction)Qt_SpriteMediaHitTestSprites, 1, |
|---|
| 26439 | n/a | PyDoc_STR("(MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, short spriteHitIndex)")}, |
|---|
| 26440 | n/a | {"SpriteMediaCountSprites", (PyCFunction)Qt_SpriteMediaCountSprites, 1, |
|---|
| 26441 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short numSprites)")}, |
|---|
| 26442 | n/a | {"SpriteMediaCountImages", (PyCFunction)Qt_SpriteMediaCountImages, 1, |
|---|
| 26443 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short numImages)")}, |
|---|
| 26444 | n/a | {"SpriteMediaGetIndImageDescription", (PyCFunction)Qt_SpriteMediaGetIndImageDescription, 1, |
|---|
| 26445 | n/a | PyDoc_STR("(MediaHandler mh, short imageIndex, ImageDescriptionHandle imageDescription) -> (ComponentResult _rv)")}, |
|---|
| 26446 | n/a | {"SpriteMediaGetDisplayedSampleNumber", (PyCFunction)Qt_SpriteMediaGetDisplayedSampleNumber, 1, |
|---|
| 26447 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long sampleNum)")}, |
|---|
| 26448 | n/a | {"SpriteMediaGetSpriteName", (PyCFunction)Qt_SpriteMediaGetSpriteName, 1, |
|---|
| 26449 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, Str255 spriteName) -> (ComponentResult _rv)")}, |
|---|
| 26450 | n/a | {"SpriteMediaGetImageName", (PyCFunction)Qt_SpriteMediaGetImageName, 1, |
|---|
| 26451 | n/a | PyDoc_STR("(MediaHandler mh, short imageIndex, Str255 imageName) -> (ComponentResult _rv)")}, |
|---|
| 26452 | n/a | {"SpriteMediaSetSpriteProperty", (PyCFunction)Qt_SpriteMediaSetSpriteProperty, 1, |
|---|
| 26453 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, long propertyType, void * propertyValue) -> (ComponentResult _rv)")}, |
|---|
| 26454 | n/a | {"SpriteMediaGetSpriteProperty", (PyCFunction)Qt_SpriteMediaGetSpriteProperty, 1, |
|---|
| 26455 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, long propertyType, void * propertyValue) -> (ComponentResult _rv)")}, |
|---|
| 26456 | n/a | {"SpriteMediaHitTestAllSprites", (PyCFunction)Qt_SpriteMediaHitTestAllSprites, 1, |
|---|
| 26457 | n/a | PyDoc_STR("(MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, QTAtomID spriteHitID)")}, |
|---|
| 26458 | n/a | {"SpriteMediaHitTestOneSprite", (PyCFunction)Qt_SpriteMediaHitTestOneSprite, 1, |
|---|
| 26459 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID spriteID, long flags, Point loc) -> (ComponentResult _rv, Boolean wasHit)")}, |
|---|
| 26460 | n/a | {"SpriteMediaSpriteIndexToID", (PyCFunction)Qt_SpriteMediaSpriteIndexToID, 1, |
|---|
| 26461 | n/a | PyDoc_STR("(MediaHandler mh, short spriteIndex) -> (ComponentResult _rv, QTAtomID spriteID)")}, |
|---|
| 26462 | n/a | {"SpriteMediaSpriteIDToIndex", (PyCFunction)Qt_SpriteMediaSpriteIDToIndex, 1, |
|---|
| 26463 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID spriteID) -> (ComponentResult _rv, short spriteIndex)")}, |
|---|
| 26464 | n/a | {"SpriteMediaSetActionVariable", (PyCFunction)Qt_SpriteMediaSetActionVariable, 1, |
|---|
| 26465 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID variableID, float value) -> (ComponentResult _rv)")}, |
|---|
| 26466 | n/a | {"SpriteMediaGetActionVariable", (PyCFunction)Qt_SpriteMediaGetActionVariable, 1, |
|---|
| 26467 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value)")}, |
|---|
| 26468 | n/a | {"SpriteMediaDisposeSprite", (PyCFunction)Qt_SpriteMediaDisposeSprite, 1, |
|---|
| 26469 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID spriteID) -> (ComponentResult _rv)")}, |
|---|
| 26470 | n/a | {"SpriteMediaSetActionVariableToString", (PyCFunction)Qt_SpriteMediaSetActionVariableToString, 1, |
|---|
| 26471 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID variableID, Ptr theCString) -> (ComponentResult _rv)")}, |
|---|
| 26472 | n/a | {"SpriteMediaGetActionVariableAsString", (PyCFunction)Qt_SpriteMediaGetActionVariableAsString, 1, |
|---|
| 26473 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, Handle theCString)")}, |
|---|
| 26474 | n/a | {"SpriteMediaNewImage", (PyCFunction)Qt_SpriteMediaNewImage, 1, |
|---|
| 26475 | n/a | PyDoc_STR("(MediaHandler mh, Handle dataRef, OSType dataRefType, QTAtomID desiredID) -> (ComponentResult _rv)")}, |
|---|
| 26476 | n/a | {"SpriteMediaDisposeImage", (PyCFunction)Qt_SpriteMediaDisposeImage, 1, |
|---|
| 26477 | n/a | PyDoc_STR("(MediaHandler mh, short imageIndex) -> (ComponentResult _rv)")}, |
|---|
| 26478 | n/a | {"SpriteMediaImageIndexToID", (PyCFunction)Qt_SpriteMediaImageIndexToID, 1, |
|---|
| 26479 | n/a | PyDoc_STR("(MediaHandler mh, short imageIndex) -> (ComponentResult _rv, QTAtomID imageID)")}, |
|---|
| 26480 | n/a | {"SpriteMediaImageIDToIndex", (PyCFunction)Qt_SpriteMediaImageIDToIndex, 1, |
|---|
| 26481 | n/a | PyDoc_STR("(MediaHandler mh, QTAtomID imageID) -> (ComponentResult _rv, short imageIndex)")}, |
|---|
| 26482 | n/a | {"FlashMediaSetPan", (PyCFunction)Qt_FlashMediaSetPan, 1, |
|---|
| 26483 | n/a | PyDoc_STR("(MediaHandler mh, short xPercent, short yPercent) -> (ComponentResult _rv)")}, |
|---|
| 26484 | n/a | {"FlashMediaSetZoom", (PyCFunction)Qt_FlashMediaSetZoom, 1, |
|---|
| 26485 | n/a | PyDoc_STR("(MediaHandler mh, short factor) -> (ComponentResult _rv)")}, |
|---|
| 26486 | n/a | {"FlashMediaSetZoomRect", (PyCFunction)Qt_FlashMediaSetZoomRect, 1, |
|---|
| 26487 | n/a | PyDoc_STR("(MediaHandler mh, long left, long top, long right, long bottom) -> (ComponentResult _rv)")}, |
|---|
| 26488 | n/a | {"FlashMediaGetRefConBounds", (PyCFunction)Qt_FlashMediaGetRefConBounds, 1, |
|---|
| 26489 | n/a | PyDoc_STR("(MediaHandler mh, long refCon) -> (ComponentResult _rv, long left, long top, long right, long bottom)")}, |
|---|
| 26490 | n/a | {"FlashMediaGetRefConID", (PyCFunction)Qt_FlashMediaGetRefConID, 1, |
|---|
| 26491 | n/a | PyDoc_STR("(MediaHandler mh, long refCon) -> (ComponentResult _rv, long refConID)")}, |
|---|
| 26492 | n/a | {"FlashMediaIDToRefCon", (PyCFunction)Qt_FlashMediaIDToRefCon, 1, |
|---|
| 26493 | n/a | PyDoc_STR("(MediaHandler mh, long refConID) -> (ComponentResult _rv, long refCon)")}, |
|---|
| 26494 | n/a | {"FlashMediaGetDisplayedFrameNumber", (PyCFunction)Qt_FlashMediaGetDisplayedFrameNumber, 1, |
|---|
| 26495 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long flashFrameNumber)")}, |
|---|
| 26496 | n/a | {"FlashMediaFrameNumberToMovieTime", (PyCFunction)Qt_FlashMediaFrameNumberToMovieTime, 1, |
|---|
| 26497 | n/a | PyDoc_STR("(MediaHandler mh, long flashFrameNumber) -> (ComponentResult _rv, TimeValue movieTime)")}, |
|---|
| 26498 | n/a | {"FlashMediaFrameLabelToMovieTime", (PyCFunction)Qt_FlashMediaFrameLabelToMovieTime, 1, |
|---|
| 26499 | n/a | PyDoc_STR("(MediaHandler mh, Ptr theLabel) -> (ComponentResult _rv, TimeValue movieTime)")}, |
|---|
| 26500 | n/a | {"FlashMediaGetFlashVariable", (PyCFunction)Qt_FlashMediaGetFlashVariable, 1, |
|---|
| 26501 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, char path, char name, Handle theVariableCStringOut)")}, |
|---|
| 26502 | n/a | {"FlashMediaSetFlashVariable", (PyCFunction)Qt_FlashMediaSetFlashVariable, 1, |
|---|
| 26503 | n/a | PyDoc_STR("(MediaHandler mh, Boolean updateFocus) -> (ComponentResult _rv, char path, char name, char value)")}, |
|---|
| 26504 | n/a | {"FlashMediaDoButtonActions", (PyCFunction)Qt_FlashMediaDoButtonActions, 1, |
|---|
| 26505 | n/a | PyDoc_STR("(MediaHandler mh, long buttonID, long transition) -> (ComponentResult _rv, char path)")}, |
|---|
| 26506 | n/a | {"FlashMediaGetSupportedSwfVersion", (PyCFunction)Qt_FlashMediaGetSupportedSwfVersion, 1, |
|---|
| 26507 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, UInt8 swfVersion)")}, |
|---|
| 26508 | n/a | {"Media3DGetCurrentGroup", (PyCFunction)Qt_Media3DGetCurrentGroup, 1, |
|---|
| 26509 | n/a | PyDoc_STR("(MediaHandler mh, void * group) -> (ComponentResult _rv)")}, |
|---|
| 26510 | n/a | {"Media3DTranslateNamedObjectTo", (PyCFunction)Qt_Media3DTranslateNamedObjectTo, 1, |
|---|
| 26511 | n/a | PyDoc_STR("(MediaHandler mh, Fixed x, Fixed y, Fixed z) -> (ComponentResult _rv, char objectName)")}, |
|---|
| 26512 | n/a | {"Media3DScaleNamedObjectTo", (PyCFunction)Qt_Media3DScaleNamedObjectTo, 1, |
|---|
| 26513 | n/a | PyDoc_STR("(MediaHandler mh, Fixed xScale, Fixed yScale, Fixed zScale) -> (ComponentResult _rv, char objectName)")}, |
|---|
| 26514 | n/a | {"Media3DRotateNamedObjectTo", (PyCFunction)Qt_Media3DRotateNamedObjectTo, 1, |
|---|
| 26515 | n/a | PyDoc_STR("(MediaHandler mh, Fixed xDegrees, Fixed yDegrees, Fixed zDegrees) -> (ComponentResult _rv, char objectName)")}, |
|---|
| 26516 | n/a | {"Media3DSetCameraData", (PyCFunction)Qt_Media3DSetCameraData, 1, |
|---|
| 26517 | n/a | PyDoc_STR("(MediaHandler mh, void * cameraData) -> (ComponentResult _rv)")}, |
|---|
| 26518 | n/a | {"Media3DGetCameraData", (PyCFunction)Qt_Media3DGetCameraData, 1, |
|---|
| 26519 | n/a | PyDoc_STR("(MediaHandler mh, void * cameraData) -> (ComponentResult _rv)")}, |
|---|
| 26520 | n/a | {"Media3DSetCameraAngleAspect", (PyCFunction)Qt_Media3DSetCameraAngleAspect, 1, |
|---|
| 26521 | n/a | PyDoc_STR("(MediaHandler mh, QTFloatSingle fov, QTFloatSingle aspectRatioXToY) -> (ComponentResult _rv)")}, |
|---|
| 26522 | n/a | {"Media3DGetCameraAngleAspect", (PyCFunction)Qt_Media3DGetCameraAngleAspect, 1, |
|---|
| 26523 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, QTFloatSingle fov, QTFloatSingle aspectRatioXToY)")}, |
|---|
| 26524 | n/a | {"Media3DSetCameraRange", (PyCFunction)Qt_Media3DSetCameraRange, 1, |
|---|
| 26525 | n/a | PyDoc_STR("(MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv)")}, |
|---|
| 26526 | n/a | {"Media3DGetCameraRange", (PyCFunction)Qt_Media3DGetCameraRange, 1, |
|---|
| 26527 | n/a | PyDoc_STR("(MediaHandler mh, void * tQ3CameraRange) -> (ComponentResult _rv)")}, |
|---|
| 26528 | n/a | {"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1, |
|---|
| 26529 | n/a | PyDoc_STR("() -> (TimeBase _rv)")}, |
|---|
| 26530 | n/a | {"ConvertTime", (PyCFunction)Qt_ConvertTime, 1, |
|---|
| 26531 | n/a | PyDoc_STR("(TimeRecord theTime, TimeBase newBase) -> (TimeRecord theTime)")}, |
|---|
| 26532 | n/a | {"ConvertTimeScale", (PyCFunction)Qt_ConvertTimeScale, 1, |
|---|
| 26533 | n/a | PyDoc_STR("(TimeRecord theTime, TimeScale newScale) -> (TimeRecord theTime)")}, |
|---|
| 26534 | n/a | {"AddTime", (PyCFunction)Qt_AddTime, 1, |
|---|
| 26535 | n/a | PyDoc_STR("(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)")}, |
|---|
| 26536 | n/a | {"SubtractTime", (PyCFunction)Qt_SubtractTime, 1, |
|---|
| 26537 | n/a | PyDoc_STR("(TimeRecord dst, TimeRecord src) -> (TimeRecord dst)")}, |
|---|
| 26538 | n/a | {"MusicMediaGetIndexedTunePlayer", (PyCFunction)Qt_MusicMediaGetIndexedTunePlayer, 1, |
|---|
| 26539 | n/a | PyDoc_STR("(ComponentInstance ti, long sampleDescIndex) -> (ComponentResult _rv, ComponentInstance tp)")}, |
|---|
| 26540 | n/a | {"CodecManagerVersion", (PyCFunction)Qt_CodecManagerVersion, 1, |
|---|
| 26541 | n/a | PyDoc_STR("() -> (long version)")}, |
|---|
| 26542 | n/a | {"GetMaxCompressionSize", (PyCFunction)Qt_GetMaxCompressionSize, 1, |
|---|
| 26543 | n/a | PyDoc_STR("(PixMapHandle src, Rect srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec) -> (long size)")}, |
|---|
| 26544 | n/a | {"GetCompressionTime", (PyCFunction)Qt_GetCompressionTime, 1, |
|---|
| 26545 | n/a | PyDoc_STR("(PixMapHandle src, Rect srcRect, short colorDepth, CodecType cType, CompressorComponent codec) -> (CodecQ spatialQuality, CodecQ temporalQuality, unsigned long compressTime)")}, |
|---|
| 26546 | n/a | {"CompressImage", (PyCFunction)Qt_CompressImage, 1, |
|---|
| 26547 | n/a | PyDoc_STR("(PixMapHandle src, Rect srcRect, CodecQ quality, CodecType cType, ImageDescriptionHandle desc, Ptr data) -> None")}, |
|---|
| 26548 | n/a | {"DecompressImage", (PyCFunction)Qt_DecompressImage, 1, |
|---|
| 26549 | n/a | PyDoc_STR("(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, Rect srcRect, Rect dstRect, short mode, RgnHandle mask) -> None")}, |
|---|
| 26550 | n/a | {"GetSimilarity", (PyCFunction)Qt_GetSimilarity, 1, |
|---|
| 26551 | n/a | PyDoc_STR("(PixMapHandle src, Rect srcRect, ImageDescriptionHandle desc, Ptr data) -> (Fixed similarity)")}, |
|---|
| 26552 | n/a | {"GetImageDescriptionCTable", (PyCFunction)Qt_GetImageDescriptionCTable, 1, |
|---|
| 26553 | n/a | PyDoc_STR("(ImageDescriptionHandle desc) -> (CTabHandle ctable)")}, |
|---|
| 26554 | n/a | {"SetImageDescriptionCTable", (PyCFunction)Qt_SetImageDescriptionCTable, 1, |
|---|
| 26555 | n/a | PyDoc_STR("(ImageDescriptionHandle desc, CTabHandle ctable) -> None")}, |
|---|
| 26556 | n/a | {"GetImageDescriptionExtension", (PyCFunction)Qt_GetImageDescriptionExtension, 1, |
|---|
| 26557 | n/a | PyDoc_STR("(ImageDescriptionHandle desc, long idType, long index) -> (Handle extension)")}, |
|---|
| 26558 | n/a | {"AddImageDescriptionExtension", (PyCFunction)Qt_AddImageDescriptionExtension, 1, |
|---|
| 26559 | n/a | PyDoc_STR("(ImageDescriptionHandle desc, Handle extension, long idType) -> None")}, |
|---|
| 26560 | n/a | {"RemoveImageDescriptionExtension", (PyCFunction)Qt_RemoveImageDescriptionExtension, 1, |
|---|
| 26561 | n/a | PyDoc_STR("(ImageDescriptionHandle desc, long idType, long index) -> None")}, |
|---|
| 26562 | n/a | {"CountImageDescriptionExtensionType", (PyCFunction)Qt_CountImageDescriptionExtensionType, 1, |
|---|
| 26563 | n/a | PyDoc_STR("(ImageDescriptionHandle desc, long idType) -> (long count)")}, |
|---|
| 26564 | n/a | {"GetNextImageDescriptionExtensionType", (PyCFunction)Qt_GetNextImageDescriptionExtensionType, 1, |
|---|
| 26565 | n/a | PyDoc_STR("(ImageDescriptionHandle desc) -> (long idType)")}, |
|---|
| 26566 | n/a | {"FindCodec", (PyCFunction)Qt_FindCodec, 1, |
|---|
| 26567 | n/a | PyDoc_STR("(CodecType cType, CodecComponent specCodec) -> (CompressorComponent compressor, DecompressorComponent decompressor)")}, |
|---|
| 26568 | n/a | {"CompressPicture", (PyCFunction)Qt_CompressPicture, 1, |
|---|
| 26569 | n/a | PyDoc_STR("(PicHandle srcPicture, PicHandle dstPicture, CodecQ quality, CodecType cType) -> None")}, |
|---|
| 26570 | n/a | {"CompressPictureFile", (PyCFunction)Qt_CompressPictureFile, 1, |
|---|
| 26571 | n/a | PyDoc_STR("(short srcRefNum, short dstRefNum, CodecQ quality, CodecType cType) -> None")}, |
|---|
| 26572 | n/a | {"ConvertImage", (PyCFunction)Qt_ConvertImage, 1, |
|---|
| 26573 | n/a | PyDoc_STR("(ImageDescriptionHandle srcDD, Ptr srcData, short colorDepth, CTabHandle ctable, CodecQ accuracy, CodecQ quality, CodecType cType, CodecComponent codec, ImageDescriptionHandle dstDD, Ptr dstData) -> None")}, |
|---|
| 26574 | n/a | {"AddFilePreview", (PyCFunction)Qt_AddFilePreview, 1, |
|---|
| 26575 | n/a | PyDoc_STR("(short resRefNum, OSType previewType, Handle previewData) -> None")}, |
|---|
| 26576 | n/a | {"GetBestDeviceRect", (PyCFunction)Qt_GetBestDeviceRect, 1, |
|---|
| 26577 | n/a | PyDoc_STR("() -> (GDHandle gdh, Rect rp)")}, |
|---|
| 26578 | n/a | {"GDHasScale", (PyCFunction)Qt_GDHasScale, 1, |
|---|
| 26579 | n/a | PyDoc_STR("(GDHandle gdh, short depth) -> (Fixed scale)")}, |
|---|
| 26580 | n/a | {"GDGetScale", (PyCFunction)Qt_GDGetScale, 1, |
|---|
| 26581 | n/a | PyDoc_STR("(GDHandle gdh) -> (Fixed scale, short flags)")}, |
|---|
| 26582 | n/a | {"GDSetScale", (PyCFunction)Qt_GDSetScale, 1, |
|---|
| 26583 | n/a | PyDoc_STR("(GDHandle gdh, Fixed scale, short flags) -> None")}, |
|---|
| 26584 | n/a | {"GetGraphicsImporterForFile", (PyCFunction)Qt_GetGraphicsImporterForFile, 1, |
|---|
| 26585 | n/a | PyDoc_STR("(FSSpec theFile) -> (ComponentInstance gi)")}, |
|---|
| 26586 | n/a | {"GetGraphicsImporterForDataRef", (PyCFunction)Qt_GetGraphicsImporterForDataRef, 1, |
|---|
| 26587 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType) -> (ComponentInstance gi)")}, |
|---|
| 26588 | n/a | {"GetGraphicsImporterForFileWithFlags", (PyCFunction)Qt_GetGraphicsImporterForFileWithFlags, 1, |
|---|
| 26589 | n/a | PyDoc_STR("(FSSpec theFile, long flags) -> (ComponentInstance gi)")}, |
|---|
| 26590 | n/a | {"GetGraphicsImporterForDataRefWithFlags", (PyCFunction)Qt_GetGraphicsImporterForDataRefWithFlags, 1, |
|---|
| 26591 | n/a | PyDoc_STR("(Handle dataRef, OSType dataRefType, long flags) -> (ComponentInstance gi)")}, |
|---|
| 26592 | n/a | {"MakeImageDescriptionForPixMap", (PyCFunction)Qt_MakeImageDescriptionForPixMap, 1, |
|---|
| 26593 | n/a | PyDoc_STR("(PixMapHandle pixmap) -> (ImageDescriptionHandle idh)")}, |
|---|
| 26594 | n/a | {"MakeImageDescriptionForEffect", (PyCFunction)Qt_MakeImageDescriptionForEffect, 1, |
|---|
| 26595 | n/a | PyDoc_STR("(OSType effectType) -> (ImageDescriptionHandle idh)")}, |
|---|
| 26596 | n/a | {"QTGetPixelSize", (PyCFunction)Qt_QTGetPixelSize, 1, |
|---|
| 26597 | n/a | PyDoc_STR("(OSType PixelFormat) -> (short _rv)")}, |
|---|
| 26598 | n/a | {"QTGetPixelFormatDepthForImageDescription", (PyCFunction)Qt_QTGetPixelFormatDepthForImageDescription, 1, |
|---|
| 26599 | n/a | PyDoc_STR("(OSType PixelFormat) -> (short _rv)")}, |
|---|
| 26600 | n/a | {"QTGetPixMapHandleRowBytes", (PyCFunction)Qt_QTGetPixMapHandleRowBytes, 1, |
|---|
| 26601 | n/a | PyDoc_STR("(PixMapHandle pm) -> (long _rv)")}, |
|---|
| 26602 | n/a | {"QTSetPixMapHandleRowBytes", (PyCFunction)Qt_QTSetPixMapHandleRowBytes, 1, |
|---|
| 26603 | n/a | PyDoc_STR("(PixMapHandle pm, long rowBytes) -> None")}, |
|---|
| 26604 | n/a | {"QTGetPixMapHandleGammaLevel", (PyCFunction)Qt_QTGetPixMapHandleGammaLevel, 1, |
|---|
| 26605 | n/a | PyDoc_STR("(PixMapHandle pm) -> (Fixed _rv)")}, |
|---|
| 26606 | n/a | {"QTSetPixMapHandleGammaLevel", (PyCFunction)Qt_QTSetPixMapHandleGammaLevel, 1, |
|---|
| 26607 | n/a | PyDoc_STR("(PixMapHandle pm, Fixed gammaLevel) -> None")}, |
|---|
| 26608 | n/a | {"QTGetPixMapHandleRequestedGammaLevel", (PyCFunction)Qt_QTGetPixMapHandleRequestedGammaLevel, 1, |
|---|
| 26609 | n/a | PyDoc_STR("(PixMapHandle pm) -> (Fixed _rv)")}, |
|---|
| 26610 | n/a | {"QTSetPixMapHandleRequestedGammaLevel", (PyCFunction)Qt_QTSetPixMapHandleRequestedGammaLevel, 1, |
|---|
| 26611 | n/a | PyDoc_STR("(PixMapHandle pm, Fixed requestedGammaLevel) -> None")}, |
|---|
| 26612 | n/a | {"CompAdd", (PyCFunction)Qt_CompAdd, 1, |
|---|
| 26613 | n/a | PyDoc_STR("() -> (wide src, wide dst)")}, |
|---|
| 26614 | n/a | {"CompSub", (PyCFunction)Qt_CompSub, 1, |
|---|
| 26615 | n/a | PyDoc_STR("() -> (wide src, wide dst)")}, |
|---|
| 26616 | n/a | {"CompNeg", (PyCFunction)Qt_CompNeg, 1, |
|---|
| 26617 | n/a | PyDoc_STR("() -> (wide dst)")}, |
|---|
| 26618 | n/a | {"CompShift", (PyCFunction)Qt_CompShift, 1, |
|---|
| 26619 | n/a | PyDoc_STR("(short shift) -> (wide src)")}, |
|---|
| 26620 | n/a | {"CompMul", (PyCFunction)Qt_CompMul, 1, |
|---|
| 26621 | n/a | PyDoc_STR("(long src1, long src2) -> (wide dst)")}, |
|---|
| 26622 | n/a | {"CompDiv", (PyCFunction)Qt_CompDiv, 1, |
|---|
| 26623 | n/a | PyDoc_STR("(long denominator) -> (long _rv, wide numerator, long remainder)")}, |
|---|
| 26624 | n/a | {"CompFixMul", (PyCFunction)Qt_CompFixMul, 1, |
|---|
| 26625 | n/a | PyDoc_STR("(Fixed fixSrc) -> (wide compSrc, wide compDst)")}, |
|---|
| 26626 | n/a | {"CompMulDiv", (PyCFunction)Qt_CompMulDiv, 1, |
|---|
| 26627 | n/a | PyDoc_STR("(long mul, long divisor) -> (wide co)")}, |
|---|
| 26628 | n/a | {"CompMulDivTrunc", (PyCFunction)Qt_CompMulDivTrunc, 1, |
|---|
| 26629 | n/a | PyDoc_STR("(long mul, long divisor) -> (wide co, long remainder)")}, |
|---|
| 26630 | n/a | {"CompCompare", (PyCFunction)Qt_CompCompare, 1, |
|---|
| 26631 | n/a | PyDoc_STR("(wide a, wide minusb) -> (long _rv)")}, |
|---|
| 26632 | n/a | {"CompSquareRoot", (PyCFunction)Qt_CompSquareRoot, 1, |
|---|
| 26633 | n/a | PyDoc_STR("(wide src) -> (unsigned long _rv)")}, |
|---|
| 26634 | n/a | {"FixMulDiv", (PyCFunction)Qt_FixMulDiv, 1, |
|---|
| 26635 | n/a | PyDoc_STR("(Fixed src, Fixed mul, Fixed divisor) -> (Fixed _rv)")}, |
|---|
| 26636 | n/a | {"UnsignedFixMulDiv", (PyCFunction)Qt_UnsignedFixMulDiv, 1, |
|---|
| 26637 | n/a | PyDoc_STR("(Fixed src, Fixed mul, Fixed divisor) -> (Fixed _rv)")}, |
|---|
| 26638 | n/a | {"FixExp2", (PyCFunction)Qt_FixExp2, 1, |
|---|
| 26639 | n/a | PyDoc_STR("(Fixed src) -> (Fixed _rv)")}, |
|---|
| 26640 | n/a | {"FixLog2", (PyCFunction)Qt_FixLog2, 1, |
|---|
| 26641 | n/a | PyDoc_STR("(Fixed src) -> (Fixed _rv)")}, |
|---|
| 26642 | n/a | {"FixPow", (PyCFunction)Qt_FixPow, 1, |
|---|
| 26643 | n/a | PyDoc_STR("(Fixed base, Fixed exp) -> (Fixed _rv)")}, |
|---|
| 26644 | n/a | {"GraphicsImportSetDataReference", (PyCFunction)Qt_GraphicsImportSetDataReference, 1, |
|---|
| 26645 | n/a | PyDoc_STR("(GraphicsImportComponent ci, Handle dataRef, OSType dataReType) -> (ComponentResult _rv)")}, |
|---|
| 26646 | n/a | {"GraphicsImportGetDataReference", (PyCFunction)Qt_GraphicsImportGetDataReference, 1, |
|---|
| 26647 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Handle dataRef, OSType dataReType)")}, |
|---|
| 26648 | n/a | {"GraphicsImportSetDataFile", (PyCFunction)Qt_GraphicsImportSetDataFile, 1, |
|---|
| 26649 | n/a | PyDoc_STR("(GraphicsImportComponent ci, FSSpec theFile) -> (ComponentResult _rv)")}, |
|---|
| 26650 | n/a | {"GraphicsImportGetDataFile", (PyCFunction)Qt_GraphicsImportGetDataFile, 1, |
|---|
| 26651 | n/a | PyDoc_STR("(GraphicsImportComponent ci, FSSpec theFile) -> (ComponentResult _rv)")}, |
|---|
| 26652 | n/a | {"GraphicsImportSetDataHandle", (PyCFunction)Qt_GraphicsImportSetDataHandle, 1, |
|---|
| 26653 | n/a | PyDoc_STR("(GraphicsImportComponent ci, Handle h) -> (ComponentResult _rv)")}, |
|---|
| 26654 | n/a | {"GraphicsImportGetDataHandle", (PyCFunction)Qt_GraphicsImportGetDataHandle, 1, |
|---|
| 26655 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Handle h)")}, |
|---|
| 26656 | n/a | {"GraphicsImportGetImageDescription", (PyCFunction)Qt_GraphicsImportGetImageDescription, 1, |
|---|
| 26657 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, ImageDescriptionHandle desc)")}, |
|---|
| 26658 | n/a | {"GraphicsImportGetDataOffsetAndSize", (PyCFunction)Qt_GraphicsImportGetDataOffsetAndSize, 1, |
|---|
| 26659 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, unsigned long offset, unsigned long size)")}, |
|---|
| 26660 | n/a | {"GraphicsImportReadData", (PyCFunction)Qt_GraphicsImportReadData, 1, |
|---|
| 26661 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * dataPtr, unsigned long dataOffset, unsigned long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26662 | n/a | {"GraphicsImportSetClip", (PyCFunction)Qt_GraphicsImportSetClip, 1, |
|---|
| 26663 | n/a | PyDoc_STR("(GraphicsImportComponent ci, RgnHandle clipRgn) -> (ComponentResult _rv)")}, |
|---|
| 26664 | n/a | {"GraphicsImportGetClip", (PyCFunction)Qt_GraphicsImportGetClip, 1, |
|---|
| 26665 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, RgnHandle clipRgn)")}, |
|---|
| 26666 | n/a | {"GraphicsImportSetSourceRect", (PyCFunction)Qt_GraphicsImportSetSourceRect, 1, |
|---|
| 26667 | n/a | PyDoc_STR("(GraphicsImportComponent ci, Rect sourceRect) -> (ComponentResult _rv)")}, |
|---|
| 26668 | n/a | {"GraphicsImportGetSourceRect", (PyCFunction)Qt_GraphicsImportGetSourceRect, 1, |
|---|
| 26669 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Rect sourceRect)")}, |
|---|
| 26670 | n/a | {"GraphicsImportGetNaturalBounds", (PyCFunction)Qt_GraphicsImportGetNaturalBounds, 1, |
|---|
| 26671 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Rect naturalBounds)")}, |
|---|
| 26672 | n/a | {"GraphicsImportDraw", (PyCFunction)Qt_GraphicsImportDraw, 1, |
|---|
| 26673 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 26674 | n/a | {"GraphicsImportSetGWorld", (PyCFunction)Qt_GraphicsImportSetGWorld, 1, |
|---|
| 26675 | n/a | PyDoc_STR("(GraphicsImportComponent ci, CGrafPtr port, GDHandle gd) -> (ComponentResult _rv)")}, |
|---|
| 26676 | n/a | {"GraphicsImportGetGWorld", (PyCFunction)Qt_GraphicsImportGetGWorld, 1, |
|---|
| 26677 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, CGrafPtr port, GDHandle gd)")}, |
|---|
| 26678 | n/a | {"GraphicsImportSetBoundsRect", (PyCFunction)Qt_GraphicsImportSetBoundsRect, 1, |
|---|
| 26679 | n/a | PyDoc_STR("(GraphicsImportComponent ci, Rect bounds) -> (ComponentResult _rv)")}, |
|---|
| 26680 | n/a | {"GraphicsImportGetBoundsRect", (PyCFunction)Qt_GraphicsImportGetBoundsRect, 1, |
|---|
| 26681 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Rect bounds)")}, |
|---|
| 26682 | n/a | {"GraphicsImportSaveAsPicture", (PyCFunction)Qt_GraphicsImportSaveAsPicture, 1, |
|---|
| 26683 | n/a | PyDoc_STR("(GraphicsImportComponent ci, FSSpec fss, ScriptCode scriptTag) -> (ComponentResult _rv)")}, |
|---|
| 26684 | n/a | {"GraphicsImportSetGraphicsMode", (PyCFunction)Qt_GraphicsImportSetGraphicsMode, 1, |
|---|
| 26685 | n/a | PyDoc_STR("(GraphicsImportComponent ci, long graphicsMode, RGBColor opColor) -> (ComponentResult _rv)")}, |
|---|
| 26686 | n/a | {"GraphicsImportGetGraphicsMode", (PyCFunction)Qt_GraphicsImportGetGraphicsMode, 1, |
|---|
| 26687 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, long graphicsMode, RGBColor opColor)")}, |
|---|
| 26688 | n/a | {"GraphicsImportSetQuality", (PyCFunction)Qt_GraphicsImportSetQuality, 1, |
|---|
| 26689 | n/a | PyDoc_STR("(GraphicsImportComponent ci, CodecQ quality) -> (ComponentResult _rv)")}, |
|---|
| 26690 | n/a | {"GraphicsImportGetQuality", (PyCFunction)Qt_GraphicsImportGetQuality, 1, |
|---|
| 26691 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, CodecQ quality)")}, |
|---|
| 26692 | n/a | {"GraphicsImportSaveAsQuickTimeImageFile", (PyCFunction)Qt_GraphicsImportSaveAsQuickTimeImageFile, 1, |
|---|
| 26693 | n/a | PyDoc_STR("(GraphicsImportComponent ci, FSSpec fss, ScriptCode scriptTag) -> (ComponentResult _rv)")}, |
|---|
| 26694 | n/a | {"GraphicsImportSetDataReferenceOffsetAndLimit", (PyCFunction)Qt_GraphicsImportSetDataReferenceOffsetAndLimit, 1, |
|---|
| 26695 | n/a | PyDoc_STR("(GraphicsImportComponent ci, unsigned long offset, unsigned long limit) -> (ComponentResult _rv)")}, |
|---|
| 26696 | n/a | {"GraphicsImportGetDataReferenceOffsetAndLimit", (PyCFunction)Qt_GraphicsImportGetDataReferenceOffsetAndLimit, 1, |
|---|
| 26697 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, unsigned long offset, unsigned long limit)")}, |
|---|
| 26698 | n/a | {"GraphicsImportGetAliasedDataReference", (PyCFunction)Qt_GraphicsImportGetAliasedDataReference, 1, |
|---|
| 26699 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Handle dataRef, OSType dataRefType)")}, |
|---|
| 26700 | n/a | {"GraphicsImportValidate", (PyCFunction)Qt_GraphicsImportValidate, 1, |
|---|
| 26701 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Boolean valid)")}, |
|---|
| 26702 | n/a | {"GraphicsImportGetMetaData", (PyCFunction)Qt_GraphicsImportGetMetaData, 1, |
|---|
| 26703 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * userData) -> (ComponentResult _rv)")}, |
|---|
| 26704 | n/a | {"GraphicsImportGetMIMETypeList", (PyCFunction)Qt_GraphicsImportGetMIMETypeList, 1, |
|---|
| 26705 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * qtAtomContainerPtr) -> (ComponentResult _rv)")}, |
|---|
| 26706 | n/a | {"GraphicsImportDoesDrawAllPixels", (PyCFunction)Qt_GraphicsImportDoesDrawAllPixels, 1, |
|---|
| 26707 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, short drawsAllPixels)")}, |
|---|
| 26708 | n/a | {"GraphicsImportGetAsPicture", (PyCFunction)Qt_GraphicsImportGetAsPicture, 1, |
|---|
| 26709 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, PicHandle picture)")}, |
|---|
| 26710 | n/a | {"GraphicsImportExportImageFile", (PyCFunction)Qt_GraphicsImportExportImageFile, 1, |
|---|
| 26711 | n/a | PyDoc_STR("(GraphicsImportComponent ci, OSType fileType, OSType fileCreator, FSSpec fss, ScriptCode scriptTag) -> (ComponentResult _rv)")}, |
|---|
| 26712 | n/a | {"GraphicsImportGetExportImageTypeList", (PyCFunction)Qt_GraphicsImportGetExportImageTypeList, 1, |
|---|
| 26713 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * qtAtomContainerPtr) -> (ComponentResult _rv)")}, |
|---|
| 26714 | n/a | {"GraphicsImportGetExportSettingsAsAtomContainer", (PyCFunction)Qt_GraphicsImportGetExportSettingsAsAtomContainer, 1, |
|---|
| 26715 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * qtAtomContainerPtr) -> (ComponentResult _rv)")}, |
|---|
| 26716 | n/a | {"GraphicsImportSetExportSettingsFromAtomContainer", (PyCFunction)Qt_GraphicsImportSetExportSettingsFromAtomContainer, 1, |
|---|
| 26717 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * qtAtomContainer) -> (ComponentResult _rv)")}, |
|---|
| 26718 | n/a | {"GraphicsImportGetImageCount", (PyCFunction)Qt_GraphicsImportGetImageCount, 1, |
|---|
| 26719 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, unsigned long imageCount)")}, |
|---|
| 26720 | n/a | {"GraphicsImportSetImageIndex", (PyCFunction)Qt_GraphicsImportSetImageIndex, 1, |
|---|
| 26721 | n/a | PyDoc_STR("(GraphicsImportComponent ci, unsigned long imageIndex) -> (ComponentResult _rv)")}, |
|---|
| 26722 | n/a | {"GraphicsImportGetImageIndex", (PyCFunction)Qt_GraphicsImportGetImageIndex, 1, |
|---|
| 26723 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, unsigned long imageIndex)")}, |
|---|
| 26724 | n/a | {"GraphicsImportGetDataOffsetAndSize64", (PyCFunction)Qt_GraphicsImportGetDataOffsetAndSize64, 1, |
|---|
| 26725 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, wide offset, wide size)")}, |
|---|
| 26726 | n/a | {"GraphicsImportReadData64", (PyCFunction)Qt_GraphicsImportReadData64, 1, |
|---|
| 26727 | n/a | PyDoc_STR("(GraphicsImportComponent ci, void * dataPtr, wide dataOffset, unsigned long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26728 | n/a | {"GraphicsImportSetDataReferenceOffsetAndLimit64", (PyCFunction)Qt_GraphicsImportSetDataReferenceOffsetAndLimit64, 1, |
|---|
| 26729 | n/a | PyDoc_STR("(GraphicsImportComponent ci, wide offset, wide limit) -> (ComponentResult _rv)")}, |
|---|
| 26730 | n/a | {"GraphicsImportGetDataReferenceOffsetAndLimit64", (PyCFunction)Qt_GraphicsImportGetDataReferenceOffsetAndLimit64, 1, |
|---|
| 26731 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, wide offset, wide limit)")}, |
|---|
| 26732 | n/a | {"GraphicsImportGetDefaultClip", (PyCFunction)Qt_GraphicsImportGetDefaultClip, 1, |
|---|
| 26733 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, RgnHandle defaultRgn)")}, |
|---|
| 26734 | n/a | {"GraphicsImportGetDefaultGraphicsMode", (PyCFunction)Qt_GraphicsImportGetDefaultGraphicsMode, 1, |
|---|
| 26735 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, long defaultGraphicsMode, RGBColor defaultOpColor)")}, |
|---|
| 26736 | n/a | {"GraphicsImportGetDefaultSourceRect", (PyCFunction)Qt_GraphicsImportGetDefaultSourceRect, 1, |
|---|
| 26737 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Rect defaultSourceRect)")}, |
|---|
| 26738 | n/a | {"GraphicsImportGetColorSyncProfile", (PyCFunction)Qt_GraphicsImportGetColorSyncProfile, 1, |
|---|
| 26739 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Handle profile)")}, |
|---|
| 26740 | n/a | {"GraphicsImportSetDestRect", (PyCFunction)Qt_GraphicsImportSetDestRect, 1, |
|---|
| 26741 | n/a | PyDoc_STR("(GraphicsImportComponent ci, Rect destRect) -> (ComponentResult _rv)")}, |
|---|
| 26742 | n/a | {"GraphicsImportGetDestRect", (PyCFunction)Qt_GraphicsImportGetDestRect, 1, |
|---|
| 26743 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, Rect destRect)")}, |
|---|
| 26744 | n/a | {"GraphicsImportSetFlags", (PyCFunction)Qt_GraphicsImportSetFlags, 1, |
|---|
| 26745 | n/a | PyDoc_STR("(GraphicsImportComponent ci, long flags) -> (ComponentResult _rv)")}, |
|---|
| 26746 | n/a | {"GraphicsImportGetFlags", (PyCFunction)Qt_GraphicsImportGetFlags, 1, |
|---|
| 26747 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, long flags)")}, |
|---|
| 26748 | n/a | {"GraphicsImportGetBaseDataOffsetAndSize64", (PyCFunction)Qt_GraphicsImportGetBaseDataOffsetAndSize64, 1, |
|---|
| 26749 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv, wide offset, wide size)")}, |
|---|
| 26750 | n/a | {"GraphicsImportSetImageIndexToThumbnail", (PyCFunction)Qt_GraphicsImportSetImageIndexToThumbnail, 1, |
|---|
| 26751 | n/a | PyDoc_STR("(GraphicsImportComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 26752 | n/a | {"GraphicsExportDoExport", (PyCFunction)Qt_GraphicsExportDoExport, 1, |
|---|
| 26753 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long actualSizeWritten)")}, |
|---|
| 26754 | n/a | {"GraphicsExportCanTranscode", (PyCFunction)Qt_GraphicsExportCanTranscode, 1, |
|---|
| 26755 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean canTranscode)")}, |
|---|
| 26756 | n/a | {"GraphicsExportDoTranscode", (PyCFunction)Qt_GraphicsExportDoTranscode, 1, |
|---|
| 26757 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 26758 | n/a | {"GraphicsExportCanUseCompressor", (PyCFunction)Qt_GraphicsExportCanUseCompressor, 1, |
|---|
| 26759 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * codecSettingsAtomContainerPtr) -> (ComponentResult _rv, Boolean canUseCompressor)")}, |
|---|
| 26760 | n/a | {"GraphicsExportDoUseCompressor", (PyCFunction)Qt_GraphicsExportDoUseCompressor, 1, |
|---|
| 26761 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * codecSettingsAtomContainer) -> (ComponentResult _rv, ImageDescriptionHandle outDesc)")}, |
|---|
| 26762 | n/a | {"GraphicsExportDoStandaloneExport", (PyCFunction)Qt_GraphicsExportDoStandaloneExport, 1, |
|---|
| 26763 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 26764 | n/a | {"GraphicsExportGetDefaultFileTypeAndCreator", (PyCFunction)Qt_GraphicsExportGetDefaultFileTypeAndCreator, 1, |
|---|
| 26765 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, OSType fileType, OSType fileCreator)")}, |
|---|
| 26766 | n/a | {"GraphicsExportGetDefaultFileNameExtension", (PyCFunction)Qt_GraphicsExportGetDefaultFileNameExtension, 1, |
|---|
| 26767 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, OSType fileNameExtension)")}, |
|---|
| 26768 | n/a | {"GraphicsExportGetMIMETypeList", (PyCFunction)Qt_GraphicsExportGetMIMETypeList, 1, |
|---|
| 26769 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * qtAtomContainerPtr) -> (ComponentResult _rv)")}, |
|---|
| 26770 | n/a | {"GraphicsExportSetSettingsFromAtomContainer", (PyCFunction)Qt_GraphicsExportSetSettingsFromAtomContainer, 1, |
|---|
| 26771 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * qtAtomContainer) -> (ComponentResult _rv)")}, |
|---|
| 26772 | n/a | {"GraphicsExportGetSettingsAsAtomContainer", (PyCFunction)Qt_GraphicsExportGetSettingsAsAtomContainer, 1, |
|---|
| 26773 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * qtAtomContainerPtr) -> (ComponentResult _rv)")}, |
|---|
| 26774 | n/a | {"GraphicsExportGetSettingsAsText", (PyCFunction)Qt_GraphicsExportGetSettingsAsText, 1, |
|---|
| 26775 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Handle theText)")}, |
|---|
| 26776 | n/a | {"GraphicsExportSetDontRecompress", (PyCFunction)Qt_GraphicsExportSetDontRecompress, 1, |
|---|
| 26777 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Boolean dontRecompress) -> (ComponentResult _rv)")}, |
|---|
| 26778 | n/a | {"GraphicsExportGetDontRecompress", (PyCFunction)Qt_GraphicsExportGetDontRecompress, 1, |
|---|
| 26779 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean dontRecompress)")}, |
|---|
| 26780 | n/a | {"GraphicsExportSetInterlaceStyle", (PyCFunction)Qt_GraphicsExportSetInterlaceStyle, 1, |
|---|
| 26781 | n/a | PyDoc_STR("(GraphicsExportComponent ci, unsigned long interlaceStyle) -> (ComponentResult _rv)")}, |
|---|
| 26782 | n/a | {"GraphicsExportGetInterlaceStyle", (PyCFunction)Qt_GraphicsExportGetInterlaceStyle, 1, |
|---|
| 26783 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long interlaceStyle)")}, |
|---|
| 26784 | n/a | {"GraphicsExportSetMetaData", (PyCFunction)Qt_GraphicsExportSetMetaData, 1, |
|---|
| 26785 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * userData) -> (ComponentResult _rv)")}, |
|---|
| 26786 | n/a | {"GraphicsExportGetMetaData", (PyCFunction)Qt_GraphicsExportGetMetaData, 1, |
|---|
| 26787 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * userData) -> (ComponentResult _rv)")}, |
|---|
| 26788 | n/a | {"GraphicsExportSetTargetDataSize", (PyCFunction)Qt_GraphicsExportSetTargetDataSize, 1, |
|---|
| 26789 | n/a | PyDoc_STR("(GraphicsExportComponent ci, unsigned long targetDataSize) -> (ComponentResult _rv)")}, |
|---|
| 26790 | n/a | {"GraphicsExportGetTargetDataSize", (PyCFunction)Qt_GraphicsExportGetTargetDataSize, 1, |
|---|
| 26791 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long targetDataSize)")}, |
|---|
| 26792 | n/a | {"GraphicsExportSetCompressionMethod", (PyCFunction)Qt_GraphicsExportSetCompressionMethod, 1, |
|---|
| 26793 | n/a | PyDoc_STR("(GraphicsExportComponent ci, long compressionMethod) -> (ComponentResult _rv)")}, |
|---|
| 26794 | n/a | {"GraphicsExportGetCompressionMethod", (PyCFunction)Qt_GraphicsExportGetCompressionMethod, 1, |
|---|
| 26795 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, long compressionMethod)")}, |
|---|
| 26796 | n/a | {"GraphicsExportSetCompressionQuality", (PyCFunction)Qt_GraphicsExportSetCompressionQuality, 1, |
|---|
| 26797 | n/a | PyDoc_STR("(GraphicsExportComponent ci, CodecQ spatialQuality) -> (ComponentResult _rv)")}, |
|---|
| 26798 | n/a | {"GraphicsExportGetCompressionQuality", (PyCFunction)Qt_GraphicsExportGetCompressionQuality, 1, |
|---|
| 26799 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, CodecQ spatialQuality)")}, |
|---|
| 26800 | n/a | {"GraphicsExportSetResolution", (PyCFunction)Qt_GraphicsExportSetResolution, 1, |
|---|
| 26801 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Fixed horizontalResolution, Fixed verticalResolution) -> (ComponentResult _rv)")}, |
|---|
| 26802 | n/a | {"GraphicsExportGetResolution", (PyCFunction)Qt_GraphicsExportGetResolution, 1, |
|---|
| 26803 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Fixed horizontalResolution, Fixed verticalResolution)")}, |
|---|
| 26804 | n/a | {"GraphicsExportSetDepth", (PyCFunction)Qt_GraphicsExportSetDepth, 1, |
|---|
| 26805 | n/a | PyDoc_STR("(GraphicsExportComponent ci, long depth) -> (ComponentResult _rv)")}, |
|---|
| 26806 | n/a | {"GraphicsExportGetDepth", (PyCFunction)Qt_GraphicsExportGetDepth, 1, |
|---|
| 26807 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, long depth)")}, |
|---|
| 26808 | n/a | {"GraphicsExportSetColorSyncProfile", (PyCFunction)Qt_GraphicsExportSetColorSyncProfile, 1, |
|---|
| 26809 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Handle colorSyncProfile) -> (ComponentResult _rv)")}, |
|---|
| 26810 | n/a | {"GraphicsExportGetColorSyncProfile", (PyCFunction)Qt_GraphicsExportGetColorSyncProfile, 1, |
|---|
| 26811 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Handle colorSyncProfile)")}, |
|---|
| 26812 | n/a | {"GraphicsExportSetInputDataReference", (PyCFunction)Qt_GraphicsExportSetInputDataReference, 1, |
|---|
| 26813 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Handle dataRef, OSType dataRefType, ImageDescriptionHandle desc) -> (ComponentResult _rv)")}, |
|---|
| 26814 | n/a | {"GraphicsExportGetInputDataReference", (PyCFunction)Qt_GraphicsExportGetInputDataReference, 1, |
|---|
| 26815 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Handle dataRef, OSType dataRefType)")}, |
|---|
| 26816 | n/a | {"GraphicsExportSetInputFile", (PyCFunction)Qt_GraphicsExportSetInputFile, 1, |
|---|
| 26817 | n/a | PyDoc_STR("(GraphicsExportComponent ci, FSSpec theFile, ImageDescriptionHandle desc) -> (ComponentResult _rv)")}, |
|---|
| 26818 | n/a | {"GraphicsExportGetInputFile", (PyCFunction)Qt_GraphicsExportGetInputFile, 1, |
|---|
| 26819 | n/a | PyDoc_STR("(GraphicsExportComponent ci, FSSpec theFile) -> (ComponentResult _rv)")}, |
|---|
| 26820 | n/a | {"GraphicsExportSetInputHandle", (PyCFunction)Qt_GraphicsExportSetInputHandle, 1, |
|---|
| 26821 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Handle h, ImageDescriptionHandle desc) -> (ComponentResult _rv)")}, |
|---|
| 26822 | n/a | {"GraphicsExportGetInputHandle", (PyCFunction)Qt_GraphicsExportGetInputHandle, 1, |
|---|
| 26823 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Handle h)")}, |
|---|
| 26824 | n/a | {"GraphicsExportSetInputPtr", (PyCFunction)Qt_GraphicsExportSetInputPtr, 1, |
|---|
| 26825 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Ptr p, unsigned long size, ImageDescriptionHandle desc) -> (ComponentResult _rv)")}, |
|---|
| 26826 | n/a | {"GraphicsExportSetInputGraphicsImporter", (PyCFunction)Qt_GraphicsExportSetInputGraphicsImporter, 1, |
|---|
| 26827 | n/a | PyDoc_STR("(GraphicsExportComponent ci, GraphicsImportComponent grip) -> (ComponentResult _rv)")}, |
|---|
| 26828 | n/a | {"GraphicsExportGetInputGraphicsImporter", (PyCFunction)Qt_GraphicsExportGetInputGraphicsImporter, 1, |
|---|
| 26829 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, GraphicsImportComponent grip)")}, |
|---|
| 26830 | n/a | {"GraphicsExportSetInputPicture", (PyCFunction)Qt_GraphicsExportSetInputPicture, 1, |
|---|
| 26831 | n/a | PyDoc_STR("(GraphicsExportComponent ci, PicHandle picture) -> (ComponentResult _rv)")}, |
|---|
| 26832 | n/a | {"GraphicsExportGetInputPicture", (PyCFunction)Qt_GraphicsExportGetInputPicture, 1, |
|---|
| 26833 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, PicHandle picture)")}, |
|---|
| 26834 | n/a | {"GraphicsExportSetInputGWorld", (PyCFunction)Qt_GraphicsExportSetInputGWorld, 1, |
|---|
| 26835 | n/a | PyDoc_STR("(GraphicsExportComponent ci, GWorldPtr gworld) -> (ComponentResult _rv)")}, |
|---|
| 26836 | n/a | {"GraphicsExportGetInputGWorld", (PyCFunction)Qt_GraphicsExportGetInputGWorld, 1, |
|---|
| 26837 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, GWorldPtr gworld)")}, |
|---|
| 26838 | n/a | {"GraphicsExportSetInputPixmap", (PyCFunction)Qt_GraphicsExportSetInputPixmap, 1, |
|---|
| 26839 | n/a | PyDoc_STR("(GraphicsExportComponent ci, PixMapHandle pixmap) -> (ComponentResult _rv)")}, |
|---|
| 26840 | n/a | {"GraphicsExportGetInputPixmap", (PyCFunction)Qt_GraphicsExportGetInputPixmap, 1, |
|---|
| 26841 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, PixMapHandle pixmap)")}, |
|---|
| 26842 | n/a | {"GraphicsExportSetInputOffsetAndLimit", (PyCFunction)Qt_GraphicsExportSetInputOffsetAndLimit, 1, |
|---|
| 26843 | n/a | PyDoc_STR("(GraphicsExportComponent ci, unsigned long offset, unsigned long limit) -> (ComponentResult _rv)")}, |
|---|
| 26844 | n/a | {"GraphicsExportGetInputOffsetAndLimit", (PyCFunction)Qt_GraphicsExportGetInputOffsetAndLimit, 1, |
|---|
| 26845 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long offset, unsigned long limit)")}, |
|---|
| 26846 | n/a | {"GraphicsExportMayExporterReadInputData", (PyCFunction)Qt_GraphicsExportMayExporterReadInputData, 1, |
|---|
| 26847 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean mayReadInputData)")}, |
|---|
| 26848 | n/a | {"GraphicsExportGetInputDataSize", (PyCFunction)Qt_GraphicsExportGetInputDataSize, 1, |
|---|
| 26849 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long size)")}, |
|---|
| 26850 | n/a | {"GraphicsExportReadInputData", (PyCFunction)Qt_GraphicsExportReadInputData, 1, |
|---|
| 26851 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * dataPtr, unsigned long dataOffset, unsigned long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26852 | n/a | {"GraphicsExportGetInputImageDescription", (PyCFunction)Qt_GraphicsExportGetInputImageDescription, 1, |
|---|
| 26853 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, ImageDescriptionHandle desc)")}, |
|---|
| 26854 | n/a | {"GraphicsExportGetInputImageDimensions", (PyCFunction)Qt_GraphicsExportGetInputImageDimensions, 1, |
|---|
| 26855 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Rect dimensions)")}, |
|---|
| 26856 | n/a | {"GraphicsExportGetInputImageDepth", (PyCFunction)Qt_GraphicsExportGetInputImageDepth, 1, |
|---|
| 26857 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, long inputDepth)")}, |
|---|
| 26858 | n/a | {"GraphicsExportDrawInputImage", (PyCFunction)Qt_GraphicsExportDrawInputImage, 1, |
|---|
| 26859 | n/a | PyDoc_STR("(GraphicsExportComponent ci, CGrafPtr gw, GDHandle gd, Rect srcRect, Rect dstRect) -> (ComponentResult _rv)")}, |
|---|
| 26860 | n/a | {"GraphicsExportSetOutputDataReference", (PyCFunction)Qt_GraphicsExportSetOutputDataReference, 1, |
|---|
| 26861 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Handle dataRef, OSType dataRefType) -> (ComponentResult _rv)")}, |
|---|
| 26862 | n/a | {"GraphicsExportGetOutputDataReference", (PyCFunction)Qt_GraphicsExportGetOutputDataReference, 1, |
|---|
| 26863 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Handle dataRef, OSType dataRefType)")}, |
|---|
| 26864 | n/a | {"GraphicsExportSetOutputFile", (PyCFunction)Qt_GraphicsExportSetOutputFile, 1, |
|---|
| 26865 | n/a | PyDoc_STR("(GraphicsExportComponent ci, FSSpec theFile) -> (ComponentResult _rv)")}, |
|---|
| 26866 | n/a | {"GraphicsExportGetOutputFile", (PyCFunction)Qt_GraphicsExportGetOutputFile, 1, |
|---|
| 26867 | n/a | PyDoc_STR("(GraphicsExportComponent ci, FSSpec theFile) -> (ComponentResult _rv)")}, |
|---|
| 26868 | n/a | {"GraphicsExportSetOutputHandle", (PyCFunction)Qt_GraphicsExportSetOutputHandle, 1, |
|---|
| 26869 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Handle h) -> (ComponentResult _rv)")}, |
|---|
| 26870 | n/a | {"GraphicsExportGetOutputHandle", (PyCFunction)Qt_GraphicsExportGetOutputHandle, 1, |
|---|
| 26871 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Handle h)")}, |
|---|
| 26872 | n/a | {"GraphicsExportSetOutputOffsetAndMaxSize", (PyCFunction)Qt_GraphicsExportSetOutputOffsetAndMaxSize, 1, |
|---|
| 26873 | n/a | PyDoc_STR("(GraphicsExportComponent ci, unsigned long offset, unsigned long maxSize, Boolean truncateFile) -> (ComponentResult _rv)")}, |
|---|
| 26874 | n/a | {"GraphicsExportGetOutputOffsetAndMaxSize", (PyCFunction)Qt_GraphicsExportGetOutputOffsetAndMaxSize, 1, |
|---|
| 26875 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long offset, unsigned long maxSize, Boolean truncateFile)")}, |
|---|
| 26876 | n/a | {"GraphicsExportSetOutputFileTypeAndCreator", (PyCFunction)Qt_GraphicsExportSetOutputFileTypeAndCreator, 1, |
|---|
| 26877 | n/a | PyDoc_STR("(GraphicsExportComponent ci, OSType fileType, OSType fileCreator) -> (ComponentResult _rv)")}, |
|---|
| 26878 | n/a | {"GraphicsExportGetOutputFileTypeAndCreator", (PyCFunction)Qt_GraphicsExportGetOutputFileTypeAndCreator, 1, |
|---|
| 26879 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, OSType fileType, OSType fileCreator)")}, |
|---|
| 26880 | n/a | {"GraphicsExportSetOutputMark", (PyCFunction)Qt_GraphicsExportSetOutputMark, 1, |
|---|
| 26881 | n/a | PyDoc_STR("(GraphicsExportComponent ci, unsigned long mark) -> (ComponentResult _rv)")}, |
|---|
| 26882 | n/a | {"GraphicsExportGetOutputMark", (PyCFunction)Qt_GraphicsExportGetOutputMark, 1, |
|---|
| 26883 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, unsigned long mark)")}, |
|---|
| 26884 | n/a | {"GraphicsExportReadOutputData", (PyCFunction)Qt_GraphicsExportReadOutputData, 1, |
|---|
| 26885 | n/a | PyDoc_STR("(GraphicsExportComponent ci, void * dataPtr, unsigned long dataOffset, unsigned long dataSize) -> (ComponentResult _rv)")}, |
|---|
| 26886 | n/a | {"GraphicsExportSetThumbnailEnabled", (PyCFunction)Qt_GraphicsExportSetThumbnailEnabled, 1, |
|---|
| 26887 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Boolean enableThumbnail, long maxThumbnailWidth, long maxThumbnailHeight) -> (ComponentResult _rv)")}, |
|---|
| 26888 | n/a | {"GraphicsExportGetThumbnailEnabled", (PyCFunction)Qt_GraphicsExportGetThumbnailEnabled, 1, |
|---|
| 26889 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean thumbnailEnabled, long maxThumbnailWidth, long maxThumbnailHeight)")}, |
|---|
| 26890 | n/a | {"GraphicsExportSetExifEnabled", (PyCFunction)Qt_GraphicsExportSetExifEnabled, 1, |
|---|
| 26891 | n/a | PyDoc_STR("(GraphicsExportComponent ci, Boolean enableExif) -> (ComponentResult _rv)")}, |
|---|
| 26892 | n/a | {"GraphicsExportGetExifEnabled", (PyCFunction)Qt_GraphicsExportGetExifEnabled, 1, |
|---|
| 26893 | n/a | PyDoc_STR("(GraphicsExportComponent ci) -> (ComponentResult _rv, Boolean exifEnabled)")}, |
|---|
| 26894 | n/a | {"ImageTranscoderBeginSequence", (PyCFunction)Qt_ImageTranscoderBeginSequence, 1, |
|---|
| 26895 | n/a | PyDoc_STR("(ImageTranscoderComponent itc, ImageDescriptionHandle srcDesc, void * data, long dataSize) -> (ComponentResult _rv, ImageDescriptionHandle dstDesc)")}, |
|---|
| 26896 | n/a | {"ImageTranscoderDisposeData", (PyCFunction)Qt_ImageTranscoderDisposeData, 1, |
|---|
| 26897 | n/a | PyDoc_STR("(ImageTranscoderComponent itc, void * dstData) -> (ComponentResult _rv)")}, |
|---|
| 26898 | n/a | {"ImageTranscoderEndSequence", (PyCFunction)Qt_ImageTranscoderEndSequence, 1, |
|---|
| 26899 | n/a | PyDoc_STR("(ImageTranscoderComponent itc) -> (ComponentResult _rv)")}, |
|---|
| 26900 | n/a | {"ClockGetTime", (PyCFunction)Qt_ClockGetTime, 1, |
|---|
| 26901 | n/a | PyDoc_STR("(ComponentInstance aClock) -> (ComponentResult _rv, TimeRecord out)")}, |
|---|
| 26902 | n/a | {"ClockSetTimeBase", (PyCFunction)Qt_ClockSetTimeBase, 1, |
|---|
| 26903 | n/a | PyDoc_STR("(ComponentInstance aClock, TimeBase tb) -> (ComponentResult _rv)")}, |
|---|
| 26904 | n/a | {"ClockGetRate", (PyCFunction)Qt_ClockGetRate, 1, |
|---|
| 26905 | n/a | PyDoc_STR("(ComponentInstance aClock) -> (ComponentResult _rv, Fixed rate)")}, |
|---|
| 26906 | n/a | {"SCPositionRect", (PyCFunction)Qt_SCPositionRect, 1, |
|---|
| 26907 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv, Rect rp, Point where)")}, |
|---|
| 26908 | n/a | {"SCPositionDialog", (PyCFunction)Qt_SCPositionDialog, 1, |
|---|
| 26909 | n/a | PyDoc_STR("(ComponentInstance ci, short id) -> (ComponentResult _rv, Point where)")}, |
|---|
| 26910 | n/a | {"SCSetTestImagePictHandle", (PyCFunction)Qt_SCSetTestImagePictHandle, 1, |
|---|
| 26911 | n/a | PyDoc_STR("(ComponentInstance ci, PicHandle testPict, short testFlags) -> (ComponentResult _rv, Rect testRect)")}, |
|---|
| 26912 | n/a | {"SCSetTestImagePictFile", (PyCFunction)Qt_SCSetTestImagePictFile, 1, |
|---|
| 26913 | n/a | PyDoc_STR("(ComponentInstance ci, short testFileRef, short testFlags) -> (ComponentResult _rv, Rect testRect)")}, |
|---|
| 26914 | n/a | {"SCSetTestImagePixMap", (PyCFunction)Qt_SCSetTestImagePixMap, 1, |
|---|
| 26915 | n/a | PyDoc_STR("(ComponentInstance ci, PixMapHandle testPixMap, short testFlags) -> (ComponentResult _rv, Rect testRect)")}, |
|---|
| 26916 | n/a | {"SCGetBestDeviceRect", (PyCFunction)Qt_SCGetBestDeviceRect, 1, |
|---|
| 26917 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv, Rect r)")}, |
|---|
| 26918 | n/a | {"SCRequestImageSettings", (PyCFunction)Qt_SCRequestImageSettings, 1, |
|---|
| 26919 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv)")}, |
|---|
| 26920 | n/a | {"SCCompressImage", (PyCFunction)Qt_SCCompressImage, 1, |
|---|
| 26921 | n/a | PyDoc_STR("(ComponentInstance ci, PixMapHandle src, Rect srcRect) -> (ComponentResult _rv, ImageDescriptionHandle desc, Handle data)")}, |
|---|
| 26922 | n/a | {"SCCompressPicture", (PyCFunction)Qt_SCCompressPicture, 1, |
|---|
| 26923 | n/a | PyDoc_STR("(ComponentInstance ci, PicHandle srcPicture, PicHandle dstPicture) -> (ComponentResult _rv)")}, |
|---|
| 26924 | n/a | {"SCCompressPictureFile", (PyCFunction)Qt_SCCompressPictureFile, 1, |
|---|
| 26925 | n/a | PyDoc_STR("(ComponentInstance ci, short srcRefNum, short dstRefNum) -> (ComponentResult _rv)")}, |
|---|
| 26926 | n/a | {"SCRequestSequenceSettings", (PyCFunction)Qt_SCRequestSequenceSettings, 1, |
|---|
| 26927 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv)")}, |
|---|
| 26928 | n/a | {"SCCompressSequenceBegin", (PyCFunction)Qt_SCCompressSequenceBegin, 1, |
|---|
| 26929 | n/a | PyDoc_STR("(ComponentInstance ci, PixMapHandle src, Rect srcRect) -> (ComponentResult _rv, ImageDescriptionHandle desc)")}, |
|---|
| 26930 | n/a | {"SCCompressSequenceFrame", (PyCFunction)Qt_SCCompressSequenceFrame, 1, |
|---|
| 26931 | n/a | PyDoc_STR("(ComponentInstance ci, PixMapHandle src, Rect srcRect) -> (ComponentResult _rv, Handle data, long dataSize, short notSyncFlag)")}, |
|---|
| 26932 | n/a | {"SCCompressSequenceEnd", (PyCFunction)Qt_SCCompressSequenceEnd, 1, |
|---|
| 26933 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv)")}, |
|---|
| 26934 | n/a | {"SCDefaultPictHandleSettings", (PyCFunction)Qt_SCDefaultPictHandleSettings, 1, |
|---|
| 26935 | n/a | PyDoc_STR("(ComponentInstance ci, PicHandle srcPicture, short motion) -> (ComponentResult _rv)")}, |
|---|
| 26936 | n/a | {"SCDefaultPictFileSettings", (PyCFunction)Qt_SCDefaultPictFileSettings, 1, |
|---|
| 26937 | n/a | PyDoc_STR("(ComponentInstance ci, short srcRef, short motion) -> (ComponentResult _rv)")}, |
|---|
| 26938 | n/a | {"SCDefaultPixMapSettings", (PyCFunction)Qt_SCDefaultPixMapSettings, 1, |
|---|
| 26939 | n/a | PyDoc_STR("(ComponentInstance ci, PixMapHandle src, short motion) -> (ComponentResult _rv)")}, |
|---|
| 26940 | n/a | {"SCGetInfo", (PyCFunction)Qt_SCGetInfo, 1, |
|---|
| 26941 | n/a | PyDoc_STR("(ComponentInstance ci, OSType infoType, void * info) -> (ComponentResult _rv)")}, |
|---|
| 26942 | n/a | {"SCSetInfo", (PyCFunction)Qt_SCSetInfo, 1, |
|---|
| 26943 | n/a | PyDoc_STR("(ComponentInstance ci, OSType infoType, void * info) -> (ComponentResult _rv)")}, |
|---|
| 26944 | n/a | {"SCSetCompressFlags", (PyCFunction)Qt_SCSetCompressFlags, 1, |
|---|
| 26945 | n/a | PyDoc_STR("(ComponentInstance ci, long flags) -> (ComponentResult _rv)")}, |
|---|
| 26946 | n/a | {"SCGetCompressFlags", (PyCFunction)Qt_SCGetCompressFlags, 1, |
|---|
| 26947 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv, long flags)")}, |
|---|
| 26948 | n/a | {"SCGetSettingsAsText", (PyCFunction)Qt_SCGetSettingsAsText, 1, |
|---|
| 26949 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv, Handle text)")}, |
|---|
| 26950 | n/a | {"SCAsyncIdle", (PyCFunction)Qt_SCAsyncIdle, 1, |
|---|
| 26951 | n/a | PyDoc_STR("(ComponentInstance ci) -> (ComponentResult _rv)")}, |
|---|
| 26952 | n/a | {"TweenerReset", (PyCFunction)Qt_TweenerReset, 1, |
|---|
| 26953 | n/a | PyDoc_STR("(TweenerComponent tc) -> (ComponentResult _rv)")}, |
|---|
| 26954 | n/a | {"TCGetSourceRef", (PyCFunction)Qt_TCGetSourceRef, 1, |
|---|
| 26955 | n/a | PyDoc_STR("(MediaHandler mh, TimeCodeDescriptionHandle tcdH) -> (HandlerError _rv, UserData srefH)")}, |
|---|
| 26956 | n/a | {"TCSetSourceRef", (PyCFunction)Qt_TCSetSourceRef, 1, |
|---|
| 26957 | n/a | PyDoc_STR("(MediaHandler mh, TimeCodeDescriptionHandle tcdH, UserData srefH) -> (HandlerError _rv)")}, |
|---|
| 26958 | n/a | {"TCSetTimeCodeFlags", (PyCFunction)Qt_TCSetTimeCodeFlags, 1, |
|---|
| 26959 | n/a | PyDoc_STR("(MediaHandler mh, long flags, long flagsMask) -> (HandlerError _rv)")}, |
|---|
| 26960 | n/a | {"TCGetTimeCodeFlags", (PyCFunction)Qt_TCGetTimeCodeFlags, 1, |
|---|
| 26961 | n/a | PyDoc_STR("(MediaHandler mh) -> (HandlerError _rv, long flags)")}, |
|---|
| 26962 | n/a | {"MovieImportHandle", (PyCFunction)Qt_MovieImportHandle, 1, |
|---|
| 26963 | n/a | PyDoc_STR("(MovieImportComponent ci, Handle dataH, Movie theMovie, Track targetTrack, TimeValue atTime, long inFlags) -> (ComponentResult _rv, Track usedTrack, TimeValue addedDuration, long outFlags)")}, |
|---|
| 26964 | n/a | {"MovieImportFile", (PyCFunction)Qt_MovieImportFile, 1, |
|---|
| 26965 | n/a | PyDoc_STR("(MovieImportComponent ci, FSSpec theFile, Movie theMovie, Track targetTrack, TimeValue atTime, long inFlags) -> (ComponentResult _rv, Track usedTrack, TimeValue addedDuration, long outFlags)")}, |
|---|
| 26966 | n/a | {"MovieImportSetSampleDuration", (PyCFunction)Qt_MovieImportSetSampleDuration, 1, |
|---|
| 26967 | n/a | PyDoc_STR("(MovieImportComponent ci, TimeValue duration, TimeScale scale) -> (ComponentResult _rv)")}, |
|---|
| 26968 | n/a | {"MovieImportSetSampleDescription", (PyCFunction)Qt_MovieImportSetSampleDescription, 1, |
|---|
| 26969 | n/a | PyDoc_STR("(MovieImportComponent ci, SampleDescriptionHandle desc, OSType mediaType) -> (ComponentResult _rv)")}, |
|---|
| 26970 | n/a | {"MovieImportSetMediaFile", (PyCFunction)Qt_MovieImportSetMediaFile, 1, |
|---|
| 26971 | n/a | PyDoc_STR("(MovieImportComponent ci, AliasHandle alias) -> (ComponentResult _rv)")}, |
|---|
| 26972 | n/a | {"MovieImportSetDimensions", (PyCFunction)Qt_MovieImportSetDimensions, 1, |
|---|
| 26973 | n/a | PyDoc_STR("(MovieImportComponent ci, Fixed width, Fixed height) -> (ComponentResult _rv)")}, |
|---|
| 26974 | n/a | {"MovieImportSetChunkSize", (PyCFunction)Qt_MovieImportSetChunkSize, 1, |
|---|
| 26975 | n/a | PyDoc_STR("(MovieImportComponent ci, long chunkSize) -> (ComponentResult _rv)")}, |
|---|
| 26976 | n/a | {"MovieImportSetAuxiliaryData", (PyCFunction)Qt_MovieImportSetAuxiliaryData, 1, |
|---|
| 26977 | n/a | PyDoc_STR("(MovieImportComponent ci, Handle data, OSType handleType) -> (ComponentResult _rv)")}, |
|---|
| 26978 | n/a | {"MovieImportSetFromScrap", (PyCFunction)Qt_MovieImportSetFromScrap, 1, |
|---|
| 26979 | n/a | PyDoc_STR("(MovieImportComponent ci, Boolean fromScrap) -> (ComponentResult _rv)")}, |
|---|
| 26980 | n/a | {"MovieImportDoUserDialog", (PyCFunction)Qt_MovieImportDoUserDialog, 1, |
|---|
| 26981 | n/a | PyDoc_STR("(MovieImportComponent ci, FSSpec theFile, Handle theData) -> (ComponentResult _rv, Boolean canceled)")}, |
|---|
| 26982 | n/a | {"MovieImportSetDuration", (PyCFunction)Qt_MovieImportSetDuration, 1, |
|---|
| 26983 | n/a | PyDoc_STR("(MovieImportComponent ci, TimeValue duration) -> (ComponentResult _rv)")}, |
|---|
| 26984 | n/a | {"MovieImportGetAuxiliaryDataType", (PyCFunction)Qt_MovieImportGetAuxiliaryDataType, 1, |
|---|
| 26985 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, OSType auxType)")}, |
|---|
| 26986 | n/a | {"MovieImportValidate", (PyCFunction)Qt_MovieImportValidate, 1, |
|---|
| 26987 | n/a | PyDoc_STR("(MovieImportComponent ci, FSSpec theFile, Handle theData) -> (ComponentResult _rv, Boolean valid)")}, |
|---|
| 26988 | n/a | {"MovieImportGetFileType", (PyCFunction)Qt_MovieImportGetFileType, 1, |
|---|
| 26989 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, OSType fileType)")}, |
|---|
| 26990 | n/a | {"MovieImportDataRef", (PyCFunction)Qt_MovieImportDataRef, 1, |
|---|
| 26991 | n/a | PyDoc_STR("(MovieImportComponent ci, Handle dataRef, OSType dataRefType, Movie theMovie, Track targetTrack, TimeValue atTime, long inFlags) -> (ComponentResult _rv, Track usedTrack, TimeValue addedDuration, long outFlags)")}, |
|---|
| 26992 | n/a | {"MovieImportGetSampleDescription", (PyCFunction)Qt_MovieImportGetSampleDescription, 1, |
|---|
| 26993 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, SampleDescriptionHandle desc, OSType mediaType)")}, |
|---|
| 26994 | n/a | {"MovieImportSetOffsetAndLimit", (PyCFunction)Qt_MovieImportSetOffsetAndLimit, 1, |
|---|
| 26995 | n/a | PyDoc_STR("(MovieImportComponent ci, unsigned long offset, unsigned long limit) -> (ComponentResult _rv)")}, |
|---|
| 26996 | n/a | {"MovieImportSetOffsetAndLimit64", (PyCFunction)Qt_MovieImportSetOffsetAndLimit64, 1, |
|---|
| 26997 | n/a | PyDoc_STR("(MovieImportComponent ci, wide offset, wide limit) -> (ComponentResult _rv)")}, |
|---|
| 26998 | n/a | {"MovieImportIdle", (PyCFunction)Qt_MovieImportIdle, 1, |
|---|
| 26999 | n/a | PyDoc_STR("(MovieImportComponent ci, long inFlags) -> (ComponentResult _rv, long outFlags)")}, |
|---|
| 27000 | n/a | {"MovieImportValidateDataRef", (PyCFunction)Qt_MovieImportValidateDataRef, 1, |
|---|
| 27001 | n/a | PyDoc_STR("(MovieImportComponent ci, Handle dataRef, OSType dataRefType) -> (ComponentResult _rv, UInt8 valid)")}, |
|---|
| 27002 | n/a | {"MovieImportGetLoadState", (PyCFunction)Qt_MovieImportGetLoadState, 1, |
|---|
| 27003 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, long importerLoadState)")}, |
|---|
| 27004 | n/a | {"MovieImportGetMaxLoadedTime", (PyCFunction)Qt_MovieImportGetMaxLoadedTime, 1, |
|---|
| 27005 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, TimeValue time)")}, |
|---|
| 27006 | n/a | {"MovieImportEstimateCompletionTime", (PyCFunction)Qt_MovieImportEstimateCompletionTime, 1, |
|---|
| 27007 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, TimeRecord time)")}, |
|---|
| 27008 | n/a | {"MovieImportSetDontBlock", (PyCFunction)Qt_MovieImportSetDontBlock, 1, |
|---|
| 27009 | n/a | PyDoc_STR("(MovieImportComponent ci, Boolean dontBlock) -> (ComponentResult _rv)")}, |
|---|
| 27010 | n/a | {"MovieImportGetDontBlock", (PyCFunction)Qt_MovieImportGetDontBlock, 1, |
|---|
| 27011 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, Boolean willBlock)")}, |
|---|
| 27012 | n/a | {"MovieImportSetIdleManager", (PyCFunction)Qt_MovieImportSetIdleManager, 1, |
|---|
| 27013 | n/a | PyDoc_STR("(MovieImportComponent ci, IdleManager im) -> (ComponentResult _rv)")}, |
|---|
| 27014 | n/a | {"MovieImportSetNewMovieFlags", (PyCFunction)Qt_MovieImportSetNewMovieFlags, 1, |
|---|
| 27015 | n/a | PyDoc_STR("(MovieImportComponent ci, long newMovieFlags) -> (ComponentResult _rv)")}, |
|---|
| 27016 | n/a | {"MovieImportGetDestinationMediaType", (PyCFunction)Qt_MovieImportGetDestinationMediaType, 1, |
|---|
| 27017 | n/a | PyDoc_STR("(MovieImportComponent ci) -> (ComponentResult _rv, OSType mediaType)")}, |
|---|
| 27018 | n/a | {"MovieExportToHandle", (PyCFunction)Qt_MovieExportToHandle, 1, |
|---|
| 27019 | n/a | PyDoc_STR("(MovieExportComponent ci, Handle dataH, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration) -> (ComponentResult _rv)")}, |
|---|
| 27020 | n/a | {"MovieExportToFile", (PyCFunction)Qt_MovieExportToFile, 1, |
|---|
| 27021 | n/a | PyDoc_STR("(MovieExportComponent ci, FSSpec theFile, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration) -> (ComponentResult _rv)")}, |
|---|
| 27022 | n/a | {"MovieExportGetAuxiliaryData", (PyCFunction)Qt_MovieExportGetAuxiliaryData, 1, |
|---|
| 27023 | n/a | PyDoc_STR("(MovieExportComponent ci, Handle dataH) -> (ComponentResult _rv, OSType handleType)")}, |
|---|
| 27024 | n/a | {"MovieExportSetSampleDescription", (PyCFunction)Qt_MovieExportSetSampleDescription, 1, |
|---|
| 27025 | n/a | PyDoc_STR("(MovieExportComponent ci, SampleDescriptionHandle desc, OSType mediaType) -> (ComponentResult _rv)")}, |
|---|
| 27026 | n/a | {"MovieExportDoUserDialog", (PyCFunction)Qt_MovieExportDoUserDialog, 1, |
|---|
| 27027 | n/a | PyDoc_STR("(MovieExportComponent ci, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration) -> (ComponentResult _rv, Boolean canceled)")}, |
|---|
| 27028 | n/a | {"MovieExportGetCreatorType", (PyCFunction)Qt_MovieExportGetCreatorType, 1, |
|---|
| 27029 | n/a | PyDoc_STR("(MovieExportComponent ci) -> (ComponentResult _rv, OSType creator)")}, |
|---|
| 27030 | n/a | {"MovieExportToDataRef", (PyCFunction)Qt_MovieExportToDataRef, 1, |
|---|
| 27031 | n/a | PyDoc_STR("(MovieExportComponent ci, Handle dataRef, OSType dataRefType, Movie theMovie, Track onlyThisTrack, TimeValue startTime, TimeValue duration) -> (ComponentResult _rv)")}, |
|---|
| 27032 | n/a | {"MovieExportFromProceduresToDataRef", (PyCFunction)Qt_MovieExportFromProceduresToDataRef, 1, |
|---|
| 27033 | n/a | PyDoc_STR("(MovieExportComponent ci, Handle dataRef, OSType dataRefType) -> (ComponentResult _rv)")}, |
|---|
| 27034 | n/a | {"MovieExportValidate", (PyCFunction)Qt_MovieExportValidate, 1, |
|---|
| 27035 | n/a | PyDoc_STR("(MovieExportComponent ci, Movie theMovie, Track onlyThisTrack) -> (ComponentResult _rv, Boolean valid)")}, |
|---|
| 27036 | n/a | {"MovieExportGetFileNameExtension", (PyCFunction)Qt_MovieExportGetFileNameExtension, 1, |
|---|
| 27037 | n/a | PyDoc_STR("(MovieExportComponent ci) -> (ComponentResult _rv, OSType extension)")}, |
|---|
| 27038 | n/a | {"MovieExportGetShortFileTypeString", (PyCFunction)Qt_MovieExportGetShortFileTypeString, 1, |
|---|
| 27039 | n/a | PyDoc_STR("(MovieExportComponent ci, Str255 typeString) -> (ComponentResult _rv)")}, |
|---|
| 27040 | n/a | {"MovieExportGetSourceMediaType", (PyCFunction)Qt_MovieExportGetSourceMediaType, 1, |
|---|
| 27041 | n/a | PyDoc_STR("(MovieExportComponent ci) -> (ComponentResult _rv, OSType mediaType)")}, |
|---|
| 27042 | n/a | {"TextExportGetTimeFraction", (PyCFunction)Qt_TextExportGetTimeFraction, 1, |
|---|
| 27043 | n/a | PyDoc_STR("(TextExportComponent ci) -> (ComponentResult _rv, long movieTimeFraction)")}, |
|---|
| 27044 | n/a | {"TextExportSetTimeFraction", (PyCFunction)Qt_TextExportSetTimeFraction, 1, |
|---|
| 27045 | n/a | PyDoc_STR("(TextExportComponent ci, long movieTimeFraction) -> (ComponentResult _rv)")}, |
|---|
| 27046 | n/a | {"TextExportGetSettings", (PyCFunction)Qt_TextExportGetSettings, 1, |
|---|
| 27047 | n/a | PyDoc_STR("(TextExportComponent ci) -> (ComponentResult _rv, long setting)")}, |
|---|
| 27048 | n/a | {"TextExportSetSettings", (PyCFunction)Qt_TextExportSetSettings, 1, |
|---|
| 27049 | n/a | PyDoc_STR("(TextExportComponent ci, long setting) -> (ComponentResult _rv)")}, |
|---|
| 27050 | n/a | {"MIDIImportGetSettings", (PyCFunction)Qt_MIDIImportGetSettings, 1, |
|---|
| 27051 | n/a | PyDoc_STR("(TextExportComponent ci) -> (ComponentResult _rv, long setting)")}, |
|---|
| 27052 | n/a | {"MIDIImportSetSettings", (PyCFunction)Qt_MIDIImportSetSettings, 1, |
|---|
| 27053 | n/a | PyDoc_STR("(TextExportComponent ci, long setting) -> (ComponentResult _rv)")}, |
|---|
| 27054 | n/a | {"GraphicsImageImportSetSequenceEnabled", (PyCFunction)Qt_GraphicsImageImportSetSequenceEnabled, 1, |
|---|
| 27055 | n/a | PyDoc_STR("(GraphicImageMovieImportComponent ci, Boolean enable) -> (ComponentResult _rv)")}, |
|---|
| 27056 | n/a | {"GraphicsImageImportGetSequenceEnabled", (PyCFunction)Qt_GraphicsImageImportGetSequenceEnabled, 1, |
|---|
| 27057 | n/a | PyDoc_STR("(GraphicImageMovieImportComponent ci) -> (ComponentResult _rv, Boolean enable)")}, |
|---|
| 27058 | n/a | {"PreviewShowData", (PyCFunction)Qt_PreviewShowData, 1, |
|---|
| 27059 | n/a | PyDoc_STR("(pnotComponent p, OSType dataType, Handle data, Rect inHere) -> (ComponentResult _rv)")}, |
|---|
| 27060 | n/a | {"PreviewMakePreviewReference", (PyCFunction)Qt_PreviewMakePreviewReference, 1, |
|---|
| 27061 | n/a | PyDoc_STR("(pnotComponent p, FSSpec sourceFile) -> (ComponentResult _rv, OSType previewType, short resID)")}, |
|---|
| 27062 | n/a | {"PreviewEvent", (PyCFunction)Qt_PreviewEvent, 1, |
|---|
| 27063 | n/a | PyDoc_STR("(pnotComponent p) -> (ComponentResult _rv, EventRecord e, Boolean handledEvent)")}, |
|---|
| 27064 | n/a | {"DataCodecDecompress", (PyCFunction)Qt_DataCodecDecompress, 1, |
|---|
| 27065 | n/a | PyDoc_STR("(DataCodecComponent dc, void * srcData, UInt32 srcSize, void * dstData, UInt32 dstBufferSize) -> (ComponentResult _rv)")}, |
|---|
| 27066 | n/a | {"DataCodecGetCompressBufferSize", (PyCFunction)Qt_DataCodecGetCompressBufferSize, 1, |
|---|
| 27067 | n/a | PyDoc_STR("(DataCodecComponent dc, UInt32 srcSize) -> (ComponentResult _rv, UInt32 dstSize)")}, |
|---|
| 27068 | n/a | {"DataCodecCompress", (PyCFunction)Qt_DataCodecCompress, 1, |
|---|
| 27069 | n/a | PyDoc_STR("(DataCodecComponent dc, void * srcData, UInt32 srcSize, void * dstData, UInt32 dstBufferSize) -> (ComponentResult _rv, UInt32 actualDstSize, UInt32 decompressSlop)")}, |
|---|
| 27070 | n/a | {"DataCodecBeginInterruptSafe", (PyCFunction)Qt_DataCodecBeginInterruptSafe, 1, |
|---|
| 27071 | n/a | PyDoc_STR("(DataCodecComponent dc, unsigned long maxSrcSize) -> (ComponentResult _rv)")}, |
|---|
| 27072 | n/a | {"DataCodecEndInterruptSafe", (PyCFunction)Qt_DataCodecEndInterruptSafe, 1, |
|---|
| 27073 | n/a | PyDoc_STR("(DataCodecComponent dc) -> (ComponentResult _rv)")}, |
|---|
| 27074 | n/a | {"DataHGetData", (PyCFunction)Qt_DataHGetData, 1, |
|---|
| 27075 | n/a | PyDoc_STR("(DataHandler dh, Handle h, long hOffset, long offset, long size) -> (ComponentResult _rv)")}, |
|---|
| 27076 | n/a | {"DataHPutData", (PyCFunction)Qt_DataHPutData, 1, |
|---|
| 27077 | n/a | PyDoc_STR("(DataHandler dh, Handle h, long hOffset, long size) -> (ComponentResult _rv, long offset)")}, |
|---|
| 27078 | n/a | {"DataHFlushData", (PyCFunction)Qt_DataHFlushData, 1, |
|---|
| 27079 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27080 | n/a | {"DataHOpenForWrite", (PyCFunction)Qt_DataHOpenForWrite, 1, |
|---|
| 27081 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27082 | n/a | {"DataHCloseForWrite", (PyCFunction)Qt_DataHCloseForWrite, 1, |
|---|
| 27083 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27084 | n/a | {"DataHOpenForRead", (PyCFunction)Qt_DataHOpenForRead, 1, |
|---|
| 27085 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27086 | n/a | {"DataHCloseForRead", (PyCFunction)Qt_DataHCloseForRead, 1, |
|---|
| 27087 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27088 | n/a | {"DataHSetDataRef", (PyCFunction)Qt_DataHSetDataRef, 1, |
|---|
| 27089 | n/a | PyDoc_STR("(DataHandler dh, Handle dataRef) -> (ComponentResult _rv)")}, |
|---|
| 27090 | n/a | {"DataHGetDataRef", (PyCFunction)Qt_DataHGetDataRef, 1, |
|---|
| 27091 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, Handle dataRef)")}, |
|---|
| 27092 | n/a | {"DataHCompareDataRef", (PyCFunction)Qt_DataHCompareDataRef, 1, |
|---|
| 27093 | n/a | PyDoc_STR("(DataHandler dh, Handle dataRef) -> (ComponentResult _rv, Boolean equal)")}, |
|---|
| 27094 | n/a | {"DataHTask", (PyCFunction)Qt_DataHTask, 1, |
|---|
| 27095 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27096 | n/a | {"DataHFinishData", (PyCFunction)Qt_DataHFinishData, 1, |
|---|
| 27097 | n/a | PyDoc_STR("(DataHandler dh, Ptr PlaceToPutDataPtr, Boolean Cancel) -> (ComponentResult _rv)")}, |
|---|
| 27098 | n/a | {"DataHFlushCache", (PyCFunction)Qt_DataHFlushCache, 1, |
|---|
| 27099 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27100 | n/a | {"DataHResolveDataRef", (PyCFunction)Qt_DataHResolveDataRef, 1, |
|---|
| 27101 | n/a | PyDoc_STR("(DataHandler dh, Handle theDataRef, Boolean userInterfaceAllowed) -> (ComponentResult _rv, Boolean wasChanged)")}, |
|---|
| 27102 | n/a | {"DataHGetFileSize", (PyCFunction)Qt_DataHGetFileSize, 1, |
|---|
| 27103 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, long fileSize)")}, |
|---|
| 27104 | n/a | {"DataHCanUseDataRef", (PyCFunction)Qt_DataHCanUseDataRef, 1, |
|---|
| 27105 | n/a | PyDoc_STR("(DataHandler dh, Handle dataRef) -> (ComponentResult _rv, long useFlags)")}, |
|---|
| 27106 | n/a | {"DataHPreextend", (PyCFunction)Qt_DataHPreextend, 1, |
|---|
| 27107 | n/a | PyDoc_STR("(DataHandler dh, unsigned long maxToAdd) -> (ComponentResult _rv, unsigned long spaceAdded)")}, |
|---|
| 27108 | n/a | {"DataHSetFileSize", (PyCFunction)Qt_DataHSetFileSize, 1, |
|---|
| 27109 | n/a | PyDoc_STR("(DataHandler dh, long fileSize) -> (ComponentResult _rv)")}, |
|---|
| 27110 | n/a | {"DataHGetFreeSpace", (PyCFunction)Qt_DataHGetFreeSpace, 1, |
|---|
| 27111 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, unsigned long freeSize)")}, |
|---|
| 27112 | n/a | {"DataHCreateFile", (PyCFunction)Qt_DataHCreateFile, 1, |
|---|
| 27113 | n/a | PyDoc_STR("(DataHandler dh, OSType creator, Boolean deleteExisting) -> (ComponentResult _rv)")}, |
|---|
| 27114 | n/a | {"DataHGetPreferredBlockSize", (PyCFunction)Qt_DataHGetPreferredBlockSize, 1, |
|---|
| 27115 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, long blockSize)")}, |
|---|
| 27116 | n/a | {"DataHGetDeviceIndex", (PyCFunction)Qt_DataHGetDeviceIndex, 1, |
|---|
| 27117 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, long deviceIndex)")}, |
|---|
| 27118 | n/a | {"DataHIsStreamingDataHandler", (PyCFunction)Qt_DataHIsStreamingDataHandler, 1, |
|---|
| 27119 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, Boolean yes)")}, |
|---|
| 27120 | n/a | {"DataHGetDataInBuffer", (PyCFunction)Qt_DataHGetDataInBuffer, 1, |
|---|
| 27121 | n/a | PyDoc_STR("(DataHandler dh, long startOffset) -> (ComponentResult _rv, long size)")}, |
|---|
| 27122 | n/a | {"DataHGetScheduleAheadTime", (PyCFunction)Qt_DataHGetScheduleAheadTime, 1, |
|---|
| 27123 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, long millisecs)")}, |
|---|
| 27124 | n/a | {"DataHSetCacheSizeLimit", (PyCFunction)Qt_DataHSetCacheSizeLimit, 1, |
|---|
| 27125 | n/a | PyDoc_STR("(DataHandler dh, Size cacheSizeLimit) -> (ComponentResult _rv)")}, |
|---|
| 27126 | n/a | {"DataHGetCacheSizeLimit", (PyCFunction)Qt_DataHGetCacheSizeLimit, 1, |
|---|
| 27127 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, Size cacheSizeLimit)")}, |
|---|
| 27128 | n/a | {"DataHGetMovie", (PyCFunction)Qt_DataHGetMovie, 1, |
|---|
| 27129 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, Movie theMovie, short id)")}, |
|---|
| 27130 | n/a | {"DataHAddMovie", (PyCFunction)Qt_DataHAddMovie, 1, |
|---|
| 27131 | n/a | PyDoc_STR("(DataHandler dh, Movie theMovie) -> (ComponentResult _rv, short id)")}, |
|---|
| 27132 | n/a | {"DataHUpdateMovie", (PyCFunction)Qt_DataHUpdateMovie, 1, |
|---|
| 27133 | n/a | PyDoc_STR("(DataHandler dh, Movie theMovie, short id) -> (ComponentResult _rv)")}, |
|---|
| 27134 | n/a | {"DataHDoesBuffer", (PyCFunction)Qt_DataHDoesBuffer, 1, |
|---|
| 27135 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, Boolean buffersReads, Boolean buffersWrites)")}, |
|---|
| 27136 | n/a | {"DataHGetFileName", (PyCFunction)Qt_DataHGetFileName, 1, |
|---|
| 27137 | n/a | PyDoc_STR("(DataHandler dh, Str255 str) -> (ComponentResult _rv)")}, |
|---|
| 27138 | n/a | {"DataHGetAvailableFileSize", (PyCFunction)Qt_DataHGetAvailableFileSize, 1, |
|---|
| 27139 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, long fileSize)")}, |
|---|
| 27140 | n/a | {"DataHGetMacOSFileType", (PyCFunction)Qt_DataHGetMacOSFileType, 1, |
|---|
| 27141 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, OSType fileType)")}, |
|---|
| 27142 | n/a | {"DataHGetMIMEType", (PyCFunction)Qt_DataHGetMIMEType, 1, |
|---|
| 27143 | n/a | PyDoc_STR("(DataHandler dh, Str255 mimeType) -> (ComponentResult _rv)")}, |
|---|
| 27144 | n/a | {"DataHSetDataRefWithAnchor", (PyCFunction)Qt_DataHSetDataRefWithAnchor, 1, |
|---|
| 27145 | n/a | PyDoc_STR("(DataHandler dh, Handle anchorDataRef, OSType dataRefType, Handle dataRef) -> (ComponentResult _rv)")}, |
|---|
| 27146 | n/a | {"DataHGetDataRefWithAnchor", (PyCFunction)Qt_DataHGetDataRefWithAnchor, 1, |
|---|
| 27147 | n/a | PyDoc_STR("(DataHandler dh, Handle anchorDataRef, OSType dataRefType) -> (ComponentResult _rv, Handle dataRef)")}, |
|---|
| 27148 | n/a | {"DataHSetMacOSFileType", (PyCFunction)Qt_DataHSetMacOSFileType, 1, |
|---|
| 27149 | n/a | PyDoc_STR("(DataHandler dh, OSType fileType) -> (ComponentResult _rv)")}, |
|---|
| 27150 | n/a | {"DataHSetTimeBase", (PyCFunction)Qt_DataHSetTimeBase, 1, |
|---|
| 27151 | n/a | PyDoc_STR("(DataHandler dh, TimeBase tb) -> (ComponentResult _rv)")}, |
|---|
| 27152 | n/a | {"DataHGetInfoFlags", (PyCFunction)Qt_DataHGetInfoFlags, 1, |
|---|
| 27153 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, UInt32 flags)")}, |
|---|
| 27154 | n/a | {"DataHGetFileSize64", (PyCFunction)Qt_DataHGetFileSize64, 1, |
|---|
| 27155 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, wide fileSize)")}, |
|---|
| 27156 | n/a | {"DataHPreextend64", (PyCFunction)Qt_DataHPreextend64, 1, |
|---|
| 27157 | n/a | PyDoc_STR("(DataHandler dh, wide maxToAdd) -> (ComponentResult _rv, wide spaceAdded)")}, |
|---|
| 27158 | n/a | {"DataHSetFileSize64", (PyCFunction)Qt_DataHSetFileSize64, 1, |
|---|
| 27159 | n/a | PyDoc_STR("(DataHandler dh, wide fileSize) -> (ComponentResult _rv)")}, |
|---|
| 27160 | n/a | {"DataHGetFreeSpace64", (PyCFunction)Qt_DataHGetFreeSpace64, 1, |
|---|
| 27161 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, wide freeSize)")}, |
|---|
| 27162 | n/a | {"DataHAppend64", (PyCFunction)Qt_DataHAppend64, 1, |
|---|
| 27163 | n/a | PyDoc_STR("(DataHandler dh, void * data, unsigned long size) -> (ComponentResult _rv, wide fileOffset)")}, |
|---|
| 27164 | n/a | {"DataHPollRead", (PyCFunction)Qt_DataHPollRead, 1, |
|---|
| 27165 | n/a | PyDoc_STR("(DataHandler dh, void * dataPtr) -> (ComponentResult _rv, UInt32 dataSizeSoFar)")}, |
|---|
| 27166 | n/a | {"DataHGetDataAvailability", (PyCFunction)Qt_DataHGetDataAvailability, 1, |
|---|
| 27167 | n/a | PyDoc_STR("(DataHandler dh, long offset, long len) -> (ComponentResult _rv, long missing_offset, long missing_len)")}, |
|---|
| 27168 | n/a | {"DataHGetDataRefAsType", (PyCFunction)Qt_DataHGetDataRefAsType, 1, |
|---|
| 27169 | n/a | PyDoc_STR("(DataHandler dh, OSType requestedType) -> (ComponentResult _rv, Handle dataRef)")}, |
|---|
| 27170 | n/a | {"DataHSetDataRefExtension", (PyCFunction)Qt_DataHSetDataRefExtension, 1, |
|---|
| 27171 | n/a | PyDoc_STR("(DataHandler dh, Handle extension, OSType idType) -> (ComponentResult _rv)")}, |
|---|
| 27172 | n/a | {"DataHGetDataRefExtension", (PyCFunction)Qt_DataHGetDataRefExtension, 1, |
|---|
| 27173 | n/a | PyDoc_STR("(DataHandler dh, OSType idType) -> (ComponentResult _rv, Handle extension)")}, |
|---|
| 27174 | n/a | {"DataHGetMovieWithFlags", (PyCFunction)Qt_DataHGetMovieWithFlags, 1, |
|---|
| 27175 | n/a | PyDoc_STR("(DataHandler dh, short flags) -> (ComponentResult _rv, Movie theMovie, short id)")}, |
|---|
| 27176 | n/a | {"DataHGetFileTypeOrdering", (PyCFunction)Qt_DataHGetFileTypeOrdering, 1, |
|---|
| 27177 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, DataHFileTypeOrderingHandle orderingListHandle)")}, |
|---|
| 27178 | n/a | {"DataHCreateFileWithFlags", (PyCFunction)Qt_DataHCreateFileWithFlags, 1, |
|---|
| 27179 | n/a | PyDoc_STR("(DataHandler dh, OSType creator, Boolean deleteExisting, UInt32 flags) -> (ComponentResult _rv)")}, |
|---|
| 27180 | n/a | {"DataHGetInfo", (PyCFunction)Qt_DataHGetInfo, 1, |
|---|
| 27181 | n/a | PyDoc_STR("(DataHandler dh, OSType what, void * info) -> (ComponentResult _rv)")}, |
|---|
| 27182 | n/a | {"DataHSetIdleManager", (PyCFunction)Qt_DataHSetIdleManager, 1, |
|---|
| 27183 | n/a | PyDoc_STR("(DataHandler dh, IdleManager im) -> (ComponentResult _rv)")}, |
|---|
| 27184 | n/a | {"DataHDeleteFile", (PyCFunction)Qt_DataHDeleteFile, 1, |
|---|
| 27185 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv)")}, |
|---|
| 27186 | n/a | {"DataHSetMovieUsageFlags", (PyCFunction)Qt_DataHSetMovieUsageFlags, 1, |
|---|
| 27187 | n/a | PyDoc_STR("(DataHandler dh, long flags) -> (ComponentResult _rv)")}, |
|---|
| 27188 | n/a | {"DataHUseTemporaryDataRef", (PyCFunction)Qt_DataHUseTemporaryDataRef, 1, |
|---|
| 27189 | n/a | PyDoc_STR("(DataHandler dh, long inFlags) -> (ComponentResult _rv)")}, |
|---|
| 27190 | n/a | {"DataHGetTemporaryDataRefCapabilities", (PyCFunction)Qt_DataHGetTemporaryDataRefCapabilities, 1, |
|---|
| 27191 | n/a | PyDoc_STR("(DataHandler dh) -> (ComponentResult _rv, long outUnderstoodFlags)")}, |
|---|
| 27192 | n/a | {"DataHRenameFile", (PyCFunction)Qt_DataHRenameFile, 1, |
|---|
| 27193 | n/a | PyDoc_STR("(DataHandler dh, Handle newDataRef) -> (ComponentResult _rv)")}, |
|---|
| 27194 | n/a | {"DataHPlaybackHints", (PyCFunction)Qt_DataHPlaybackHints, 1, |
|---|
| 27195 | n/a | PyDoc_STR("(DataHandler dh, long flags, unsigned long minFileOffset, unsigned long maxFileOffset, long bytesPerSecond) -> (ComponentResult _rv)")}, |
|---|
| 27196 | n/a | {"DataHPlaybackHints64", (PyCFunction)Qt_DataHPlaybackHints64, 1, |
|---|
| 27197 | n/a | PyDoc_STR("(DataHandler dh, long flags, wide minFileOffset, wide maxFileOffset, long bytesPerSecond) -> (ComponentResult _rv)")}, |
|---|
| 27198 | n/a | {"DataHGetDataRate", (PyCFunction)Qt_DataHGetDataRate, 1, |
|---|
| 27199 | n/a | PyDoc_STR("(DataHandler dh, long flags) -> (ComponentResult _rv, long bytesPerSecond)")}, |
|---|
| 27200 | n/a | {"DataHSetTimeHints", (PyCFunction)Qt_DataHSetTimeHints, 1, |
|---|
| 27201 | n/a | PyDoc_STR("(DataHandler dh, long flags, long bandwidthPriority, TimeScale scale, TimeValue minTime, TimeValue maxTime) -> (ComponentResult _rv)")}, |
|---|
| 27202 | n/a | {"VDGetMaxSrcRect", (PyCFunction)Qt_VDGetMaxSrcRect, 1, |
|---|
| 27203 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short inputStd) -> (ComponentResult _rv, Rect maxSrcRect)")}, |
|---|
| 27204 | n/a | {"VDGetActiveSrcRect", (PyCFunction)Qt_VDGetActiveSrcRect, 1, |
|---|
| 27205 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short inputStd) -> (ComponentResult _rv, Rect activeSrcRect)")}, |
|---|
| 27206 | n/a | {"VDSetDigitizerRect", (PyCFunction)Qt_VDSetDigitizerRect, 1, |
|---|
| 27207 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, Rect digitizerRect)")}, |
|---|
| 27208 | n/a | {"VDGetDigitizerRect", (PyCFunction)Qt_VDGetDigitizerRect, 1, |
|---|
| 27209 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, Rect digitizerRect)")}, |
|---|
| 27210 | n/a | {"VDGetVBlankRect", (PyCFunction)Qt_VDGetVBlankRect, 1, |
|---|
| 27211 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short inputStd) -> (ComponentResult _rv, Rect vBlankRect)")}, |
|---|
| 27212 | n/a | {"VDGetMaskPixMap", (PyCFunction)Qt_VDGetMaskPixMap, 1, |
|---|
| 27213 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, PixMapHandle maskPixMap) -> (ComponentResult _rv)")}, |
|---|
| 27214 | n/a | {"VDUseThisCLUT", (PyCFunction)Qt_VDUseThisCLUT, 1, |
|---|
| 27215 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, CTabHandle colorTableHandle) -> (ComponentResult _rv)")}, |
|---|
| 27216 | n/a | {"VDSetInputGammaValue", (PyCFunction)Qt_VDSetInputGammaValue, 1, |
|---|
| 27217 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, Fixed channel1, Fixed channel2, Fixed channel3) -> (ComponentResult _rv)")}, |
|---|
| 27218 | n/a | {"VDGetInputGammaValue", (PyCFunction)Qt_VDGetInputGammaValue, 1, |
|---|
| 27219 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, Fixed channel1, Fixed channel2, Fixed channel3)")}, |
|---|
| 27220 | n/a | {"VDSetBrightness", (PyCFunction)Qt_VDSetBrightness, 1, |
|---|
| 27221 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short brightness)")}, |
|---|
| 27222 | n/a | {"VDGetBrightness", (PyCFunction)Qt_VDGetBrightness, 1, |
|---|
| 27223 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short brightness)")}, |
|---|
| 27224 | n/a | {"VDSetContrast", (PyCFunction)Qt_VDSetContrast, 1, |
|---|
| 27225 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short contrast)")}, |
|---|
| 27226 | n/a | {"VDSetHue", (PyCFunction)Qt_VDSetHue, 1, |
|---|
| 27227 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short hue)")}, |
|---|
| 27228 | n/a | {"VDSetSharpness", (PyCFunction)Qt_VDSetSharpness, 1, |
|---|
| 27229 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short sharpness)")}, |
|---|
| 27230 | n/a | {"VDSetSaturation", (PyCFunction)Qt_VDSetSaturation, 1, |
|---|
| 27231 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short saturation)")}, |
|---|
| 27232 | n/a | {"VDGetContrast", (PyCFunction)Qt_VDGetContrast, 1, |
|---|
| 27233 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short contrast)")}, |
|---|
| 27234 | n/a | {"VDGetHue", (PyCFunction)Qt_VDGetHue, 1, |
|---|
| 27235 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short hue)")}, |
|---|
| 27236 | n/a | {"VDGetSharpness", (PyCFunction)Qt_VDGetSharpness, 1, |
|---|
| 27237 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short sharpness)")}, |
|---|
| 27238 | n/a | {"VDGetSaturation", (PyCFunction)Qt_VDGetSaturation, 1, |
|---|
| 27239 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short saturation)")}, |
|---|
| 27240 | n/a | {"VDGrabOneFrame", (PyCFunction)Qt_VDGrabOneFrame, 1, |
|---|
| 27241 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 27242 | n/a | {"VDGetMaxAuxBuffer", (PyCFunction)Qt_VDGetMaxAuxBuffer, 1, |
|---|
| 27243 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, PixMapHandle pm, Rect r)")}, |
|---|
| 27244 | n/a | {"VDGetCurrentFlags", (PyCFunction)Qt_VDGetCurrentFlags, 1, |
|---|
| 27245 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, long inputCurrentFlag, long outputCurrentFlag)")}, |
|---|
| 27246 | n/a | {"VDSetKeyColor", (PyCFunction)Qt_VDSetKeyColor, 1, |
|---|
| 27247 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long index) -> (ComponentResult _rv)")}, |
|---|
| 27248 | n/a | {"VDGetKeyColor", (PyCFunction)Qt_VDGetKeyColor, 1, |
|---|
| 27249 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, long index)")}, |
|---|
| 27250 | n/a | {"VDAddKeyColor", (PyCFunction)Qt_VDAddKeyColor, 1, |
|---|
| 27251 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, long index)")}, |
|---|
| 27252 | n/a | {"VDGetNextKeyColor", (PyCFunction)Qt_VDGetNextKeyColor, 1, |
|---|
| 27253 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long index) -> (ComponentResult _rv)")}, |
|---|
| 27254 | n/a | {"VDSetKeyColorRange", (PyCFunction)Qt_VDSetKeyColorRange, 1, |
|---|
| 27255 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, RGBColor minRGB, RGBColor maxRGB)")}, |
|---|
| 27256 | n/a | {"VDGetKeyColorRange", (PyCFunction)Qt_VDGetKeyColorRange, 1, |
|---|
| 27257 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, RGBColor minRGB, RGBColor maxRGB)")}, |
|---|
| 27258 | n/a | {"VDSetInputColorSpaceMode", (PyCFunction)Qt_VDSetInputColorSpaceMode, 1, |
|---|
| 27259 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short colorSpaceMode) -> (ComponentResult _rv)")}, |
|---|
| 27260 | n/a | {"VDGetInputColorSpaceMode", (PyCFunction)Qt_VDGetInputColorSpaceMode, 1, |
|---|
| 27261 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, short colorSpaceMode)")}, |
|---|
| 27262 | n/a | {"VDSetClipState", (PyCFunction)Qt_VDSetClipState, 1, |
|---|
| 27263 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short clipEnable) -> (ComponentResult _rv)")}, |
|---|
| 27264 | n/a | {"VDGetClipState", (PyCFunction)Qt_VDGetClipState, 1, |
|---|
| 27265 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, short clipEnable)")}, |
|---|
| 27266 | n/a | {"VDSetClipRgn", (PyCFunction)Qt_VDSetClipRgn, 1, |
|---|
| 27267 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, RgnHandle clipRegion) -> (ComponentResult _rv)")}, |
|---|
| 27268 | n/a | {"VDClearClipRgn", (PyCFunction)Qt_VDClearClipRgn, 1, |
|---|
| 27269 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, RgnHandle clipRegion) -> (ComponentResult _rv)")}, |
|---|
| 27270 | n/a | {"VDGetCLUTInUse", (PyCFunction)Qt_VDGetCLUTInUse, 1, |
|---|
| 27271 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, CTabHandle colorTableHandle)")}, |
|---|
| 27272 | n/a | {"VDSetPLLFilterType", (PyCFunction)Qt_VDSetPLLFilterType, 1, |
|---|
| 27273 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short pllType) -> (ComponentResult _rv)")}, |
|---|
| 27274 | n/a | {"VDGetPLLFilterType", (PyCFunction)Qt_VDGetPLLFilterType, 1, |
|---|
| 27275 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, short pllType)")}, |
|---|
| 27276 | n/a | {"VDGetMaskandValue", (PyCFunction)Qt_VDGetMaskandValue, 1, |
|---|
| 27277 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, unsigned short blendLevel) -> (ComponentResult _rv, long mask, long value)")}, |
|---|
| 27278 | n/a | {"VDSetMasterBlendLevel", (PyCFunction)Qt_VDSetMasterBlendLevel, 1, |
|---|
| 27279 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short blendLevel)")}, |
|---|
| 27280 | n/a | {"VDSetPlayThruOnOff", (PyCFunction)Qt_VDSetPlayThruOnOff, 1, |
|---|
| 27281 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short state) -> (ComponentResult _rv)")}, |
|---|
| 27282 | n/a | {"VDSetFieldPreference", (PyCFunction)Qt_VDSetFieldPreference, 1, |
|---|
| 27283 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short fieldFlag) -> (ComponentResult _rv)")}, |
|---|
| 27284 | n/a | {"VDGetFieldPreference", (PyCFunction)Qt_VDGetFieldPreference, 1, |
|---|
| 27285 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, short fieldFlag)")}, |
|---|
| 27286 | n/a | {"VDPreflightGlobalRect", (PyCFunction)Qt_VDPreflightGlobalRect, 1, |
|---|
| 27287 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, GrafPtr theWindow) -> (ComponentResult _rv, Rect globalRect)")}, |
|---|
| 27288 | n/a | {"VDSetPlayThruGlobalRect", (PyCFunction)Qt_VDSetPlayThruGlobalRect, 1, |
|---|
| 27289 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, GrafPtr theWindow) -> (ComponentResult _rv, Rect globalRect)")}, |
|---|
| 27290 | n/a | {"VDSetBlackLevelValue", (PyCFunction)Qt_VDSetBlackLevelValue, 1, |
|---|
| 27291 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short blackLevel)")}, |
|---|
| 27292 | n/a | {"VDGetBlackLevelValue", (PyCFunction)Qt_VDGetBlackLevelValue, 1, |
|---|
| 27293 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short blackLevel)")}, |
|---|
| 27294 | n/a | {"VDSetWhiteLevelValue", (PyCFunction)Qt_VDSetWhiteLevelValue, 1, |
|---|
| 27295 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short whiteLevel)")}, |
|---|
| 27296 | n/a | {"VDGetWhiteLevelValue", (PyCFunction)Qt_VDGetWhiteLevelValue, 1, |
|---|
| 27297 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short whiteLevel)")}, |
|---|
| 27298 | n/a | {"VDGetVideoDefaults", (PyCFunction)Qt_VDGetVideoDefaults, 1, |
|---|
| 27299 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, unsigned short blackLevel, unsigned short whiteLevel, unsigned short brightness, unsigned short hue, unsigned short saturation, unsigned short contrast, unsigned short sharpness)")}, |
|---|
| 27300 | n/a | {"VDGetNumberOfInputs", (PyCFunction)Qt_VDGetNumberOfInputs, 1, |
|---|
| 27301 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, short inputs)")}, |
|---|
| 27302 | n/a | {"VDGetInputFormat", (PyCFunction)Qt_VDGetInputFormat, 1, |
|---|
| 27303 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short input) -> (ComponentResult _rv, short format)")}, |
|---|
| 27304 | n/a | {"VDSetInput", (PyCFunction)Qt_VDSetInput, 1, |
|---|
| 27305 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short input) -> (ComponentResult _rv)")}, |
|---|
| 27306 | n/a | {"VDGetInput", (PyCFunction)Qt_VDGetInput, 1, |
|---|
| 27307 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, short input)")}, |
|---|
| 27308 | n/a | {"VDSetInputStandard", (PyCFunction)Qt_VDSetInputStandard, 1, |
|---|
| 27309 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short inputStandard) -> (ComponentResult _rv)")}, |
|---|
| 27310 | n/a | {"VDSetupBuffers", (PyCFunction)Qt_VDSetupBuffers, 1, |
|---|
| 27311 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, VdigBufferRecListHandle bufferList) -> (ComponentResult _rv)")}, |
|---|
| 27312 | n/a | {"VDGrabOneFrameAsync", (PyCFunction)Qt_VDGrabOneFrameAsync, 1, |
|---|
| 27313 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short buffer) -> (ComponentResult _rv)")}, |
|---|
| 27314 | n/a | {"VDDone", (PyCFunction)Qt_VDDone, 1, |
|---|
| 27315 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, short buffer) -> (ComponentResult _rv)")}, |
|---|
| 27316 | n/a | {"VDSetCompression", (PyCFunction)Qt_VDSetCompression, 1, |
|---|
| 27317 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, OSType compressType, short depth, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate) -> (ComponentResult _rv, Rect bounds)")}, |
|---|
| 27318 | n/a | {"VDCompressOneFrameAsync", (PyCFunction)Qt_VDCompressOneFrameAsync, 1, |
|---|
| 27319 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 27320 | n/a | {"VDGetImageDescription", (PyCFunction)Qt_VDGetImageDescription, 1, |
|---|
| 27321 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, ImageDescriptionHandle desc) -> (ComponentResult _rv)")}, |
|---|
| 27322 | n/a | {"VDResetCompressSequence", (PyCFunction)Qt_VDResetCompressSequence, 1, |
|---|
| 27323 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 27324 | n/a | {"VDSetCompressionOnOff", (PyCFunction)Qt_VDSetCompressionOnOff, 1, |
|---|
| 27325 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, Boolean state) -> (ComponentResult _rv)")}, |
|---|
| 27326 | n/a | {"VDGetCompressionTypes", (PyCFunction)Qt_VDGetCompressionTypes, 1, |
|---|
| 27327 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, VDCompressionListHandle h) -> (ComponentResult _rv)")}, |
|---|
| 27328 | n/a | {"VDSetTimeBase", (PyCFunction)Qt_VDSetTimeBase, 1, |
|---|
| 27329 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, TimeBase t) -> (ComponentResult _rv)")}, |
|---|
| 27330 | n/a | {"VDSetFrameRate", (PyCFunction)Qt_VDSetFrameRate, 1, |
|---|
| 27331 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, Fixed framesPerSecond) -> (ComponentResult _rv)")}, |
|---|
| 27332 | n/a | {"VDGetDataRate", (PyCFunction)Qt_VDGetDataRate, 1, |
|---|
| 27333 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, long milliSecPerFrame, Fixed framesPerSecond, long bytesPerSecond)")}, |
|---|
| 27334 | n/a | {"VDGetSoundInputDriver", (PyCFunction)Qt_VDGetSoundInputDriver, 1, |
|---|
| 27335 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, Str255 soundDriverName) -> (ComponentResult _rv)")}, |
|---|
| 27336 | n/a | {"VDGetDMADepths", (PyCFunction)Qt_VDGetDMADepths, 1, |
|---|
| 27337 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, long depthArray, long preferredDepth)")}, |
|---|
| 27338 | n/a | {"VDGetPreferredTimeScale", (PyCFunction)Qt_VDGetPreferredTimeScale, 1, |
|---|
| 27339 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, TimeScale preferred)")}, |
|---|
| 27340 | n/a | {"VDReleaseAsyncBuffers", (PyCFunction)Qt_VDReleaseAsyncBuffers, 1, |
|---|
| 27341 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv)")}, |
|---|
| 27342 | n/a | {"VDSetDataRate", (PyCFunction)Qt_VDSetDataRate, 1, |
|---|
| 27343 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long bytesPerSecond) -> (ComponentResult _rv)")}, |
|---|
| 27344 | n/a | {"VDGetTimeCode", (PyCFunction)Qt_VDGetTimeCode, 1, |
|---|
| 27345 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, void * timeCodeFormat, void * timeCodeTime) -> (ComponentResult _rv, TimeRecord atTime)")}, |
|---|
| 27346 | n/a | {"VDUseSafeBuffers", (PyCFunction)Qt_VDUseSafeBuffers, 1, |
|---|
| 27347 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, Boolean useSafeBuffers) -> (ComponentResult _rv)")}, |
|---|
| 27348 | n/a | {"VDGetSoundInputSource", (PyCFunction)Qt_VDGetSoundInputSource, 1, |
|---|
| 27349 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long videoInput) -> (ComponentResult _rv, long soundInput)")}, |
|---|
| 27350 | n/a | {"VDGetCompressionTime", (PyCFunction)Qt_VDGetCompressionTime, 1, |
|---|
| 27351 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, OSType compressionType, short depth) -> (ComponentResult _rv, Rect srcRect, CodecQ spatialQuality, CodecQ temporalQuality, unsigned long compressTime)")}, |
|---|
| 27352 | n/a | {"VDSetPreferredPacketSize", (PyCFunction)Qt_VDSetPreferredPacketSize, 1, |
|---|
| 27353 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long preferredPacketSizeInBytes) -> (ComponentResult _rv)")}, |
|---|
| 27354 | n/a | {"VDSetPreferredImageDimensions", (PyCFunction)Qt_VDSetPreferredImageDimensions, 1, |
|---|
| 27355 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long width, long height) -> (ComponentResult _rv)")}, |
|---|
| 27356 | n/a | {"VDGetPreferredImageDimensions", (PyCFunction)Qt_VDGetPreferredImageDimensions, 1, |
|---|
| 27357 | n/a | PyDoc_STR("(VideoDigitizerComponent ci) -> (ComponentResult _rv, long width, long height)")}, |
|---|
| 27358 | n/a | {"VDGetInputName", (PyCFunction)Qt_VDGetInputName, 1, |
|---|
| 27359 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, long videoInput, Str255 name) -> (ComponentResult _rv)")}, |
|---|
| 27360 | n/a | {"VDSetDestinationPort", (PyCFunction)Qt_VDSetDestinationPort, 1, |
|---|
| 27361 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, CGrafPtr destPort) -> (ComponentResult _rv)")}, |
|---|
| 27362 | n/a | {"VDGetDeviceNameAndFlags", (PyCFunction)Qt_VDGetDeviceNameAndFlags, 1, |
|---|
| 27363 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, Str255 outName) -> (ComponentResult _rv, UInt32 outNameFlags)")}, |
|---|
| 27364 | n/a | {"VDCaptureStateChanging", (PyCFunction)Qt_VDCaptureStateChanging, 1, |
|---|
| 27365 | n/a | PyDoc_STR("(VideoDigitizerComponent ci, UInt32 inStateFlags) -> (ComponentResult _rv)")}, |
|---|
| 27366 | n/a | {"XMLParseGetDetailedParseError", (PyCFunction)Qt_XMLParseGetDetailedParseError, 1, |
|---|
| 27367 | n/a | PyDoc_STR("(ComponentInstance aParser, StringPtr errDesc) -> (ComponentResult _rv, long errorLine)")}, |
|---|
| 27368 | n/a | {"XMLParseAddElement", (PyCFunction)Qt_XMLParseAddElement, 1, |
|---|
| 27369 | n/a | PyDoc_STR("(ComponentInstance aParser, UInt32 nameSpaceID, long elementFlags) -> (ComponentResult _rv, char elementName, UInt32 elementID)")}, |
|---|
| 27370 | n/a | {"XMLParseAddAttribute", (PyCFunction)Qt_XMLParseAddAttribute, 1, |
|---|
| 27371 | n/a | PyDoc_STR("(ComponentInstance aParser, UInt32 elementID, UInt32 nameSpaceID) -> (ComponentResult _rv, char attributeName, UInt32 attributeID)")}, |
|---|
| 27372 | n/a | {"XMLParseAddMultipleAttributes", (PyCFunction)Qt_XMLParseAddMultipleAttributes, 1, |
|---|
| 27373 | n/a | PyDoc_STR("(ComponentInstance aParser, UInt32 elementID) -> (ComponentResult _rv, UInt32 nameSpaceIDs, char attributeNames, UInt32 attributeIDs)")}, |
|---|
| 27374 | n/a | {"XMLParseAddAttributeAndValue", (PyCFunction)Qt_XMLParseAddAttributeAndValue, 1, |
|---|
| 27375 | n/a | PyDoc_STR("(ComponentInstance aParser, UInt32 elementID, UInt32 nameSpaceID, UInt32 attributeValueKind, void * attributeValueKindInfo) -> (ComponentResult _rv, char attributeName, UInt32 attributeID)")}, |
|---|
| 27376 | n/a | {"XMLParseAddAttributeValueKind", (PyCFunction)Qt_XMLParseAddAttributeValueKind, 1, |
|---|
| 27377 | n/a | PyDoc_STR("(ComponentInstance aParser, UInt32 elementID, UInt32 attributeID, UInt32 attributeValueKind, void * attributeValueKindInfo) -> (ComponentResult _rv)")}, |
|---|
| 27378 | n/a | {"XMLParseAddNameSpace", (PyCFunction)Qt_XMLParseAddNameSpace, 1, |
|---|
| 27379 | n/a | PyDoc_STR("(ComponentInstance aParser) -> (ComponentResult _rv, char nameSpaceURL, UInt32 nameSpaceID)")}, |
|---|
| 27380 | n/a | {"XMLParseSetOffsetAndLimit", (PyCFunction)Qt_XMLParseSetOffsetAndLimit, 1, |
|---|
| 27381 | n/a | PyDoc_STR("(ComponentInstance aParser, UInt32 offset, UInt32 limit) -> (ComponentResult _rv)")}, |
|---|
| 27382 | n/a | {"XMLParseSetEventParseRefCon", (PyCFunction)Qt_XMLParseSetEventParseRefCon, 1, |
|---|
| 27383 | n/a | PyDoc_STR("(ComponentInstance aParser, long refcon) -> (ComponentResult _rv)")}, |
|---|
| 27384 | n/a | {"SGInitialize", (PyCFunction)Qt_SGInitialize, 1, |
|---|
| 27385 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv)")}, |
|---|
| 27386 | n/a | {"SGSetDataOutput", (PyCFunction)Qt_SGSetDataOutput, 1, |
|---|
| 27387 | n/a | PyDoc_STR("(SeqGrabComponent s, FSSpec movieFile, long whereFlags) -> (ComponentResult _rv)")}, |
|---|
| 27388 | n/a | {"SGGetDataOutput", (PyCFunction)Qt_SGGetDataOutput, 1, |
|---|
| 27389 | n/a | PyDoc_STR("(SeqGrabComponent s, FSSpec movieFile) -> (ComponentResult _rv, long whereFlags)")}, |
|---|
| 27390 | n/a | {"SGSetGWorld", (PyCFunction)Qt_SGSetGWorld, 1, |
|---|
| 27391 | n/a | PyDoc_STR("(SeqGrabComponent s, CGrafPtr gp, GDHandle gd) -> (ComponentResult _rv)")}, |
|---|
| 27392 | n/a | {"SGGetGWorld", (PyCFunction)Qt_SGGetGWorld, 1, |
|---|
| 27393 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, CGrafPtr gp, GDHandle gd)")}, |
|---|
| 27394 | n/a | {"SGNewChannel", (PyCFunction)Qt_SGNewChannel, 1, |
|---|
| 27395 | n/a | PyDoc_STR("(SeqGrabComponent s, OSType channelType) -> (ComponentResult _rv, SGChannel ref)")}, |
|---|
| 27396 | n/a | {"SGDisposeChannel", (PyCFunction)Qt_SGDisposeChannel, 1, |
|---|
| 27397 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c) -> (ComponentResult _rv)")}, |
|---|
| 27398 | n/a | {"SGStartPreview", (PyCFunction)Qt_SGStartPreview, 1, |
|---|
| 27399 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv)")}, |
|---|
| 27400 | n/a | {"SGStartRecord", (PyCFunction)Qt_SGStartRecord, 1, |
|---|
| 27401 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv)")}, |
|---|
| 27402 | n/a | {"SGIdle", (PyCFunction)Qt_SGIdle, 1, |
|---|
| 27403 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv)")}, |
|---|
| 27404 | n/a | {"SGStop", (PyCFunction)Qt_SGStop, 1, |
|---|
| 27405 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv)")}, |
|---|
| 27406 | n/a | {"SGPause", (PyCFunction)Qt_SGPause, 1, |
|---|
| 27407 | n/a | PyDoc_STR("(SeqGrabComponent s, Boolean pause) -> (ComponentResult _rv)")}, |
|---|
| 27408 | n/a | {"SGPrepare", (PyCFunction)Qt_SGPrepare, 1, |
|---|
| 27409 | n/a | PyDoc_STR("(SeqGrabComponent s, Boolean prepareForPreview, Boolean prepareForRecord) -> (ComponentResult _rv)")}, |
|---|
| 27410 | n/a | {"SGRelease", (PyCFunction)Qt_SGRelease, 1, |
|---|
| 27411 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv)")}, |
|---|
| 27412 | n/a | {"SGGetMovie", (PyCFunction)Qt_SGGetMovie, 1, |
|---|
| 27413 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (Movie _rv)")}, |
|---|
| 27414 | n/a | {"SGSetMaximumRecordTime", (PyCFunction)Qt_SGSetMaximumRecordTime, 1, |
|---|
| 27415 | n/a | PyDoc_STR("(SeqGrabComponent s, unsigned long ticks) -> (ComponentResult _rv)")}, |
|---|
| 27416 | n/a | {"SGGetMaximumRecordTime", (PyCFunction)Qt_SGGetMaximumRecordTime, 1, |
|---|
| 27417 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, unsigned long ticks)")}, |
|---|
| 27418 | n/a | {"SGGetStorageSpaceRemaining", (PyCFunction)Qt_SGGetStorageSpaceRemaining, 1, |
|---|
| 27419 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, unsigned long bytes)")}, |
|---|
| 27420 | n/a | {"SGGetTimeRemaining", (PyCFunction)Qt_SGGetTimeRemaining, 1, |
|---|
| 27421 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, long ticksLeft)")}, |
|---|
| 27422 | n/a | {"SGGrabPict", (PyCFunction)Qt_SGGrabPict, 1, |
|---|
| 27423 | n/a | PyDoc_STR("(SeqGrabComponent s, Rect bounds, short offscreenDepth, long grabPictFlags) -> (ComponentResult _rv, PicHandle p)")}, |
|---|
| 27424 | n/a | {"SGGetLastMovieResID", (PyCFunction)Qt_SGGetLastMovieResID, 1, |
|---|
| 27425 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, short resID)")}, |
|---|
| 27426 | n/a | {"SGSetFlags", (PyCFunction)Qt_SGSetFlags, 1, |
|---|
| 27427 | n/a | PyDoc_STR("(SeqGrabComponent s, long sgFlags) -> (ComponentResult _rv)")}, |
|---|
| 27428 | n/a | {"SGGetFlags", (PyCFunction)Qt_SGGetFlags, 1, |
|---|
| 27429 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, long sgFlags)")}, |
|---|
| 27430 | n/a | {"SGNewChannelFromComponent", (PyCFunction)Qt_SGNewChannelFromComponent, 1, |
|---|
| 27431 | n/a | PyDoc_STR("(SeqGrabComponent s, Component sgChannelComponent) -> (ComponentResult _rv, SGChannel newChannel)")}, |
|---|
| 27432 | n/a | {"SGSetSettings", (PyCFunction)Qt_SGSetSettings, 1, |
|---|
| 27433 | n/a | PyDoc_STR("(SeqGrabComponent s, UserData ud, long flags) -> (ComponentResult _rv)")}, |
|---|
| 27434 | n/a | {"SGGetSettings", (PyCFunction)Qt_SGGetSettings, 1, |
|---|
| 27435 | n/a | PyDoc_STR("(SeqGrabComponent s, long flags) -> (ComponentResult _rv, UserData ud)")}, |
|---|
| 27436 | n/a | {"SGGetIndChannel", (PyCFunction)Qt_SGGetIndChannel, 1, |
|---|
| 27437 | n/a | PyDoc_STR("(SeqGrabComponent s, short index) -> (ComponentResult _rv, SGChannel ref, OSType chanType)")}, |
|---|
| 27438 | n/a | {"SGUpdate", (PyCFunction)Qt_SGUpdate, 1, |
|---|
| 27439 | n/a | PyDoc_STR("(SeqGrabComponent s, RgnHandle updateRgn) -> (ComponentResult _rv)")}, |
|---|
| 27440 | n/a | {"SGGetPause", (PyCFunction)Qt_SGGetPause, 1, |
|---|
| 27441 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, Boolean paused)")}, |
|---|
| 27442 | n/a | {"SGSetChannelSettings", (PyCFunction)Qt_SGSetChannelSettings, 1, |
|---|
| 27443 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, UserData ud, long flags) -> (ComponentResult _rv)")}, |
|---|
| 27444 | n/a | {"SGGetChannelSettings", (PyCFunction)Qt_SGGetChannelSettings, 1, |
|---|
| 27445 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, long flags) -> (ComponentResult _rv, UserData ud)")}, |
|---|
| 27446 | n/a | {"SGGetMode", (PyCFunction)Qt_SGGetMode, 1, |
|---|
| 27447 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, Boolean previewMode, Boolean recordMode)")}, |
|---|
| 27448 | n/a | {"SGSetDataRef", (PyCFunction)Qt_SGSetDataRef, 1, |
|---|
| 27449 | n/a | PyDoc_STR("(SeqGrabComponent s, Handle dataRef, OSType dataRefType, long whereFlags) -> (ComponentResult _rv)")}, |
|---|
| 27450 | n/a | {"SGGetDataRef", (PyCFunction)Qt_SGGetDataRef, 1, |
|---|
| 27451 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, Handle dataRef, OSType dataRefType, long whereFlags)")}, |
|---|
| 27452 | n/a | {"SGNewOutput", (PyCFunction)Qt_SGNewOutput, 1, |
|---|
| 27453 | n/a | PyDoc_STR("(SeqGrabComponent s, Handle dataRef, OSType dataRefType, long whereFlags) -> (ComponentResult _rv, SGOutput sgOut)")}, |
|---|
| 27454 | n/a | {"SGDisposeOutput", (PyCFunction)Qt_SGDisposeOutput, 1, |
|---|
| 27455 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut) -> (ComponentResult _rv)")}, |
|---|
| 27456 | n/a | {"SGSetOutputFlags", (PyCFunction)Qt_SGSetOutputFlags, 1, |
|---|
| 27457 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut, long whereFlags) -> (ComponentResult _rv)")}, |
|---|
| 27458 | n/a | {"SGSetChannelOutput", (PyCFunction)Qt_SGSetChannelOutput, 1, |
|---|
| 27459 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, SGOutput sgOut) -> (ComponentResult _rv)")}, |
|---|
| 27460 | n/a | {"SGGetDataOutputStorageSpaceRemaining", (PyCFunction)Qt_SGGetDataOutputStorageSpaceRemaining, 1, |
|---|
| 27461 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut) -> (ComponentResult _rv, unsigned long space)")}, |
|---|
| 27462 | n/a | {"SGHandleUpdateEvent", (PyCFunction)Qt_SGHandleUpdateEvent, 1, |
|---|
| 27463 | n/a | PyDoc_STR("(SeqGrabComponent s, EventRecord event) -> (ComponentResult _rv, Boolean handled)")}, |
|---|
| 27464 | n/a | {"SGSetOutputNextOutput", (PyCFunction)Qt_SGSetOutputNextOutput, 1, |
|---|
| 27465 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut, SGOutput nextOut) -> (ComponentResult _rv)")}, |
|---|
| 27466 | n/a | {"SGGetOutputNextOutput", (PyCFunction)Qt_SGGetOutputNextOutput, 1, |
|---|
| 27467 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut) -> (ComponentResult _rv, SGOutput nextOut)")}, |
|---|
| 27468 | n/a | {"SGSetOutputMaximumOffset", (PyCFunction)Qt_SGSetOutputMaximumOffset, 1, |
|---|
| 27469 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut, wide maxOffset) -> (ComponentResult _rv)")}, |
|---|
| 27470 | n/a | {"SGGetOutputMaximumOffset", (PyCFunction)Qt_SGGetOutputMaximumOffset, 1, |
|---|
| 27471 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut) -> (ComponentResult _rv, wide maxOffset)")}, |
|---|
| 27472 | n/a | {"SGGetOutputDataReference", (PyCFunction)Qt_SGGetOutputDataReference, 1, |
|---|
| 27473 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut) -> (ComponentResult _rv, Handle dataRef, OSType dataRefType)")}, |
|---|
| 27474 | n/a | {"SGWriteExtendedMovieData", (PyCFunction)Qt_SGWriteExtendedMovieData, 1, |
|---|
| 27475 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, Ptr p, long len) -> (ComponentResult _rv, wide offset, SGOutput sgOut)")}, |
|---|
| 27476 | n/a | {"SGGetStorageSpaceRemaining64", (PyCFunction)Qt_SGGetStorageSpaceRemaining64, 1, |
|---|
| 27477 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, wide bytes)")}, |
|---|
| 27478 | n/a | {"SGGetDataOutputStorageSpaceRemaining64", (PyCFunction)Qt_SGGetDataOutputStorageSpaceRemaining64, 1, |
|---|
| 27479 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut) -> (ComponentResult _rv, wide space)")}, |
|---|
| 27480 | n/a | {"SGWriteMovieData", (PyCFunction)Qt_SGWriteMovieData, 1, |
|---|
| 27481 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, Ptr p, long len) -> (ComponentResult _rv, long offset)")}, |
|---|
| 27482 | n/a | {"SGGetTimeBase", (PyCFunction)Qt_SGGetTimeBase, 1, |
|---|
| 27483 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, TimeBase tb)")}, |
|---|
| 27484 | n/a | {"SGAddMovieData", (PyCFunction)Qt_SGAddMovieData, 1, |
|---|
| 27485 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, Ptr p, long len, long chRefCon, TimeValue time, short writeType) -> (ComponentResult _rv, long offset)")}, |
|---|
| 27486 | n/a | {"SGChangedSource", (PyCFunction)Qt_SGChangedSource, 1, |
|---|
| 27487 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c) -> (ComponentResult _rv)")}, |
|---|
| 27488 | n/a | {"SGAddExtendedMovieData", (PyCFunction)Qt_SGAddExtendedMovieData, 1, |
|---|
| 27489 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, Ptr p, long len, long chRefCon, TimeValue time, short writeType) -> (ComponentResult _rv, wide offset, SGOutput whichOutput)")}, |
|---|
| 27490 | n/a | {"SGAddOutputDataRefToMedia", (PyCFunction)Qt_SGAddOutputDataRefToMedia, 1, |
|---|
| 27491 | n/a | PyDoc_STR("(SeqGrabComponent s, SGOutput sgOut, Media theMedia, SampleDescriptionHandle desc) -> (ComponentResult _rv)")}, |
|---|
| 27492 | n/a | {"SGSetSettingsSummary", (PyCFunction)Qt_SGSetSettingsSummary, 1, |
|---|
| 27493 | n/a | PyDoc_STR("(SeqGrabComponent s, Handle summaryText) -> (ComponentResult _rv)")}, |
|---|
| 27494 | n/a | {"SGSetChannelUsage", (PyCFunction)Qt_SGSetChannelUsage, 1, |
|---|
| 27495 | n/a | PyDoc_STR("(SGChannel c, long usage) -> (ComponentResult _rv)")}, |
|---|
| 27496 | n/a | {"SGGetChannelUsage", (PyCFunction)Qt_SGGetChannelUsage, 1, |
|---|
| 27497 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long usage)")}, |
|---|
| 27498 | n/a | {"SGSetChannelBounds", (PyCFunction)Qt_SGSetChannelBounds, 1, |
|---|
| 27499 | n/a | PyDoc_STR("(SGChannel c, Rect bounds) -> (ComponentResult _rv)")}, |
|---|
| 27500 | n/a | {"SGGetChannelBounds", (PyCFunction)Qt_SGGetChannelBounds, 1, |
|---|
| 27501 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Rect bounds)")}, |
|---|
| 27502 | n/a | {"SGSetChannelVolume", (PyCFunction)Qt_SGSetChannelVolume, 1, |
|---|
| 27503 | n/a | PyDoc_STR("(SGChannel c, short volume) -> (ComponentResult _rv)")}, |
|---|
| 27504 | n/a | {"SGGetChannelVolume", (PyCFunction)Qt_SGGetChannelVolume, 1, |
|---|
| 27505 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, short volume)")}, |
|---|
| 27506 | n/a | {"SGGetChannelInfo", (PyCFunction)Qt_SGGetChannelInfo, 1, |
|---|
| 27507 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long channelInfo)")}, |
|---|
| 27508 | n/a | {"SGSetChannelPlayFlags", (PyCFunction)Qt_SGSetChannelPlayFlags, 1, |
|---|
| 27509 | n/a | PyDoc_STR("(SGChannel c, long playFlags) -> (ComponentResult _rv)")}, |
|---|
| 27510 | n/a | {"SGGetChannelPlayFlags", (PyCFunction)Qt_SGGetChannelPlayFlags, 1, |
|---|
| 27511 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long playFlags)")}, |
|---|
| 27512 | n/a | {"SGSetChannelMaxFrames", (PyCFunction)Qt_SGSetChannelMaxFrames, 1, |
|---|
| 27513 | n/a | PyDoc_STR("(SGChannel c, long frameCount) -> (ComponentResult _rv)")}, |
|---|
| 27514 | n/a | {"SGGetChannelMaxFrames", (PyCFunction)Qt_SGGetChannelMaxFrames, 1, |
|---|
| 27515 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long frameCount)")}, |
|---|
| 27516 | n/a | {"SGSetChannelRefCon", (PyCFunction)Qt_SGSetChannelRefCon, 1, |
|---|
| 27517 | n/a | PyDoc_STR("(SGChannel c, long refCon) -> (ComponentResult _rv)")}, |
|---|
| 27518 | n/a | {"SGSetChannelClip", (PyCFunction)Qt_SGSetChannelClip, 1, |
|---|
| 27519 | n/a | PyDoc_STR("(SGChannel c, RgnHandle theClip) -> (ComponentResult _rv)")}, |
|---|
| 27520 | n/a | {"SGGetChannelClip", (PyCFunction)Qt_SGGetChannelClip, 1, |
|---|
| 27521 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, RgnHandle theClip)")}, |
|---|
| 27522 | n/a | {"SGGetChannelSampleDescription", (PyCFunction)Qt_SGGetChannelSampleDescription, 1, |
|---|
| 27523 | n/a | PyDoc_STR("(SGChannel c, Handle sampleDesc) -> (ComponentResult _rv)")}, |
|---|
| 27524 | n/a | {"SGSetChannelDevice", (PyCFunction)Qt_SGSetChannelDevice, 1, |
|---|
| 27525 | n/a | PyDoc_STR("(SGChannel c, StringPtr name) -> (ComponentResult _rv)")}, |
|---|
| 27526 | n/a | {"SGGetChannelTimeScale", (PyCFunction)Qt_SGGetChannelTimeScale, 1, |
|---|
| 27527 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, TimeScale scale)")}, |
|---|
| 27528 | n/a | {"SGChannelPutPicture", (PyCFunction)Qt_SGChannelPutPicture, 1, |
|---|
| 27529 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv)")}, |
|---|
| 27530 | n/a | {"SGChannelSetRequestedDataRate", (PyCFunction)Qt_SGChannelSetRequestedDataRate, 1, |
|---|
| 27531 | n/a | PyDoc_STR("(SGChannel c, long bytesPerSecond) -> (ComponentResult _rv)")}, |
|---|
| 27532 | n/a | {"SGChannelGetRequestedDataRate", (PyCFunction)Qt_SGChannelGetRequestedDataRate, 1, |
|---|
| 27533 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long bytesPerSecond)")}, |
|---|
| 27534 | n/a | {"SGChannelSetDataSourceName", (PyCFunction)Qt_SGChannelSetDataSourceName, 1, |
|---|
| 27535 | n/a | PyDoc_STR("(SGChannel c, Str255 name, ScriptCode scriptTag) -> (ComponentResult _rv)")}, |
|---|
| 27536 | n/a | {"SGChannelGetDataSourceName", (PyCFunction)Qt_SGChannelGetDataSourceName, 1, |
|---|
| 27537 | n/a | PyDoc_STR("(SGChannel c, Str255 name) -> (ComponentResult _rv, ScriptCode scriptTag)")}, |
|---|
| 27538 | n/a | {"SGChannelSetCodecSettings", (PyCFunction)Qt_SGChannelSetCodecSettings, 1, |
|---|
| 27539 | n/a | PyDoc_STR("(SGChannel c, Handle settings) -> (ComponentResult _rv)")}, |
|---|
| 27540 | n/a | {"SGChannelGetCodecSettings", (PyCFunction)Qt_SGChannelGetCodecSettings, 1, |
|---|
| 27541 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Handle settings)")}, |
|---|
| 27542 | n/a | {"SGGetChannelTimeBase", (PyCFunction)Qt_SGGetChannelTimeBase, 1, |
|---|
| 27543 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, TimeBase tb)")}, |
|---|
| 27544 | n/a | {"SGGetChannelRefCon", (PyCFunction)Qt_SGGetChannelRefCon, 1, |
|---|
| 27545 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long refCon)")}, |
|---|
| 27546 | n/a | {"SGGetChannelDeviceAndInputNames", (PyCFunction)Qt_SGGetChannelDeviceAndInputNames, 1, |
|---|
| 27547 | n/a | PyDoc_STR("(SGChannel c, Str255 outDeviceName, Str255 outInputName) -> (ComponentResult _rv, short outInputNumber)")}, |
|---|
| 27548 | n/a | {"SGSetChannelDeviceInput", (PyCFunction)Qt_SGSetChannelDeviceInput, 1, |
|---|
| 27549 | n/a | PyDoc_STR("(SGChannel c, short inInputNumber) -> (ComponentResult _rv)")}, |
|---|
| 27550 | n/a | {"SGSetChannelSettingsStateChanging", (PyCFunction)Qt_SGSetChannelSettingsStateChanging, 1, |
|---|
| 27551 | n/a | PyDoc_STR("(SGChannel c, UInt32 inFlags) -> (ComponentResult _rv)")}, |
|---|
| 27552 | n/a | {"SGInitChannel", (PyCFunction)Qt_SGInitChannel, 1, |
|---|
| 27553 | n/a | PyDoc_STR("(SGChannel c, SeqGrabComponent owner) -> (ComponentResult _rv)")}, |
|---|
| 27554 | n/a | {"SGWriteSamples", (PyCFunction)Qt_SGWriteSamples, 1, |
|---|
| 27555 | n/a | PyDoc_STR("(SGChannel c, Movie m, AliasHandle theFile) -> (ComponentResult _rv)")}, |
|---|
| 27556 | n/a | {"SGGetDataRate", (PyCFunction)Qt_SGGetDataRate, 1, |
|---|
| 27557 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long bytesPerSecond)")}, |
|---|
| 27558 | n/a | {"SGAlignChannelRect", (PyCFunction)Qt_SGAlignChannelRect, 1, |
|---|
| 27559 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Rect r)")}, |
|---|
| 27560 | n/a | {"SGPanelGetDitl", (PyCFunction)Qt_SGPanelGetDitl, 1, |
|---|
| 27561 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, Handle ditl)")}, |
|---|
| 27562 | n/a | {"SGPanelGetTitle", (PyCFunction)Qt_SGPanelGetTitle, 1, |
|---|
| 27563 | n/a | PyDoc_STR("(SeqGrabComponent s, Str255 title) -> (ComponentResult _rv)")}, |
|---|
| 27564 | n/a | {"SGPanelCanRun", (PyCFunction)Qt_SGPanelCanRun, 1, |
|---|
| 27565 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c) -> (ComponentResult _rv)")}, |
|---|
| 27566 | n/a | {"SGPanelInstall", (PyCFunction)Qt_SGPanelInstall, 1, |
|---|
| 27567 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset) -> (ComponentResult _rv)")}, |
|---|
| 27568 | n/a | {"SGPanelEvent", (PyCFunction)Qt_SGPanelEvent, 1, |
|---|
| 27569 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset, EventRecord theEvent) -> (ComponentResult _rv, short itemHit, Boolean handled)")}, |
|---|
| 27570 | n/a | {"SGPanelItem", (PyCFunction)Qt_SGPanelItem, 1, |
|---|
| 27571 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset, short itemNum) -> (ComponentResult _rv)")}, |
|---|
| 27572 | n/a | {"SGPanelRemove", (PyCFunction)Qt_SGPanelRemove, 1, |
|---|
| 27573 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, DialogPtr d, short itemOffset) -> (ComponentResult _rv)")}, |
|---|
| 27574 | n/a | {"SGPanelSetGrabber", (PyCFunction)Qt_SGPanelSetGrabber, 1, |
|---|
| 27575 | n/a | PyDoc_STR("(SeqGrabComponent s, SeqGrabComponent sg) -> (ComponentResult _rv)")}, |
|---|
| 27576 | n/a | {"SGPanelSetResFile", (PyCFunction)Qt_SGPanelSetResFile, 1, |
|---|
| 27577 | n/a | PyDoc_STR("(SeqGrabComponent s, short resRef) -> (ComponentResult _rv)")}, |
|---|
| 27578 | n/a | {"SGPanelGetSettings", (PyCFunction)Qt_SGPanelGetSettings, 1, |
|---|
| 27579 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, long flags) -> (ComponentResult _rv, UserData ud)")}, |
|---|
| 27580 | n/a | {"SGPanelSetSettings", (PyCFunction)Qt_SGPanelSetSettings, 1, |
|---|
| 27581 | n/a | PyDoc_STR("(SeqGrabComponent s, SGChannel c, UserData ud, long flags) -> (ComponentResult _rv)")}, |
|---|
| 27582 | n/a | {"SGPanelValidateInput", (PyCFunction)Qt_SGPanelValidateInput, 1, |
|---|
| 27583 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, Boolean ok)")}, |
|---|
| 27584 | n/a | {"SGPanelGetDITLForSize", (PyCFunction)Qt_SGPanelGetDITLForSize, 1, |
|---|
| 27585 | n/a | PyDoc_STR("(SeqGrabComponent s) -> (ComponentResult _rv, Handle ditl, Point requestedSize)")}, |
|---|
| 27586 | n/a | {"SGGetSrcVideoBounds", (PyCFunction)Qt_SGGetSrcVideoBounds, 1, |
|---|
| 27587 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Rect r)")}, |
|---|
| 27588 | n/a | {"SGSetVideoRect", (PyCFunction)Qt_SGSetVideoRect, 1, |
|---|
| 27589 | n/a | PyDoc_STR("(SGChannel c, Rect r) -> (ComponentResult _rv)")}, |
|---|
| 27590 | n/a | {"SGGetVideoRect", (PyCFunction)Qt_SGGetVideoRect, 1, |
|---|
| 27591 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Rect r)")}, |
|---|
| 27592 | n/a | {"SGGetVideoCompressorType", (PyCFunction)Qt_SGGetVideoCompressorType, 1, |
|---|
| 27593 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, OSType compressorType)")}, |
|---|
| 27594 | n/a | {"SGSetVideoCompressorType", (PyCFunction)Qt_SGSetVideoCompressorType, 1, |
|---|
| 27595 | n/a | PyDoc_STR("(SGChannel c, OSType compressorType) -> (ComponentResult _rv)")}, |
|---|
| 27596 | n/a | {"SGSetVideoCompressor", (PyCFunction)Qt_SGSetVideoCompressor, 1, |
|---|
| 27597 | n/a | PyDoc_STR("(SGChannel c, short depth, CompressorComponent compressor, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate) -> (ComponentResult _rv)")}, |
|---|
| 27598 | n/a | {"SGGetVideoCompressor", (PyCFunction)Qt_SGGetVideoCompressor, 1, |
|---|
| 27599 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, short depth, CompressorComponent compressor, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate)")}, |
|---|
| 27600 | n/a | {"SGGetVideoDigitizerComponent", (PyCFunction)Qt_SGGetVideoDigitizerComponent, 1, |
|---|
| 27601 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentInstance _rv)")}, |
|---|
| 27602 | n/a | {"SGSetVideoDigitizerComponent", (PyCFunction)Qt_SGSetVideoDigitizerComponent, 1, |
|---|
| 27603 | n/a | PyDoc_STR("(SGChannel c, ComponentInstance vdig) -> (ComponentResult _rv)")}, |
|---|
| 27604 | n/a | {"SGVideoDigitizerChanged", (PyCFunction)Qt_SGVideoDigitizerChanged, 1, |
|---|
| 27605 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv)")}, |
|---|
| 27606 | n/a | {"SGGrabFrame", (PyCFunction)Qt_SGGrabFrame, 1, |
|---|
| 27607 | n/a | PyDoc_STR("(SGChannel c, short bufferNum) -> (ComponentResult _rv)")}, |
|---|
| 27608 | n/a | {"SGGrabFrameComplete", (PyCFunction)Qt_SGGrabFrameComplete, 1, |
|---|
| 27609 | n/a | PyDoc_STR("(SGChannel c, short bufferNum) -> (ComponentResult _rv, Boolean done)")}, |
|---|
| 27610 | n/a | {"SGCompressFrame", (PyCFunction)Qt_SGCompressFrame, 1, |
|---|
| 27611 | n/a | PyDoc_STR("(SGChannel c, short bufferNum) -> (ComponentResult _rv)")}, |
|---|
| 27612 | n/a | {"SGSetCompressBuffer", (PyCFunction)Qt_SGSetCompressBuffer, 1, |
|---|
| 27613 | n/a | PyDoc_STR("(SGChannel c, short depth, Rect compressSize) -> (ComponentResult _rv)")}, |
|---|
| 27614 | n/a | {"SGGetCompressBuffer", (PyCFunction)Qt_SGGetCompressBuffer, 1, |
|---|
| 27615 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, short depth, Rect compressSize)")}, |
|---|
| 27616 | n/a | {"SGGetBufferInfo", (PyCFunction)Qt_SGGetBufferInfo, 1, |
|---|
| 27617 | n/a | PyDoc_STR("(SGChannel c, short bufferNum) -> (ComponentResult _rv, PixMapHandle bufferPM, Rect bufferRect, GWorldPtr compressBuffer, Rect compressBufferRect)")}, |
|---|
| 27618 | n/a | {"SGSetUseScreenBuffer", (PyCFunction)Qt_SGSetUseScreenBuffer, 1, |
|---|
| 27619 | n/a | PyDoc_STR("(SGChannel c, Boolean useScreenBuffer) -> (ComponentResult _rv)")}, |
|---|
| 27620 | n/a | {"SGGetUseScreenBuffer", (PyCFunction)Qt_SGGetUseScreenBuffer, 1, |
|---|
| 27621 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Boolean useScreenBuffer)")}, |
|---|
| 27622 | n/a | {"SGSetFrameRate", (PyCFunction)Qt_SGSetFrameRate, 1, |
|---|
| 27623 | n/a | PyDoc_STR("(SGChannel c, Fixed frameRate) -> (ComponentResult _rv)")}, |
|---|
| 27624 | n/a | {"SGGetFrameRate", (PyCFunction)Qt_SGGetFrameRate, 1, |
|---|
| 27625 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Fixed frameRate)")}, |
|---|
| 27626 | n/a | {"SGSetPreferredPacketSize", (PyCFunction)Qt_SGSetPreferredPacketSize, 1, |
|---|
| 27627 | n/a | PyDoc_STR("(SGChannel c, long preferredPacketSizeInBytes) -> (ComponentResult _rv)")}, |
|---|
| 27628 | n/a | {"SGGetPreferredPacketSize", (PyCFunction)Qt_SGGetPreferredPacketSize, 1, |
|---|
| 27629 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, long preferredPacketSizeInBytes)")}, |
|---|
| 27630 | n/a | {"SGSetUserVideoCompressorList", (PyCFunction)Qt_SGSetUserVideoCompressorList, 1, |
|---|
| 27631 | n/a | PyDoc_STR("(SGChannel c, Handle compressorTypes) -> (ComponentResult _rv)")}, |
|---|
| 27632 | n/a | {"SGGetUserVideoCompressorList", (PyCFunction)Qt_SGGetUserVideoCompressorList, 1, |
|---|
| 27633 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Handle compressorTypes)")}, |
|---|
| 27634 | n/a | {"SGSetSoundInputDriver", (PyCFunction)Qt_SGSetSoundInputDriver, 1, |
|---|
| 27635 | n/a | PyDoc_STR("(SGChannel c, Str255 driverName) -> (ComponentResult _rv)")}, |
|---|
| 27636 | n/a | {"SGGetSoundInputDriver", (PyCFunction)Qt_SGGetSoundInputDriver, 1, |
|---|
| 27637 | n/a | PyDoc_STR("(SGChannel c) -> (long _rv)")}, |
|---|
| 27638 | n/a | {"SGSoundInputDriverChanged", (PyCFunction)Qt_SGSoundInputDriverChanged, 1, |
|---|
| 27639 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv)")}, |
|---|
| 27640 | n/a | {"SGSetSoundRecordChunkSize", (PyCFunction)Qt_SGSetSoundRecordChunkSize, 1, |
|---|
| 27641 | n/a | PyDoc_STR("(SGChannel c, long seconds) -> (ComponentResult _rv)")}, |
|---|
| 27642 | n/a | {"SGGetSoundRecordChunkSize", (PyCFunction)Qt_SGGetSoundRecordChunkSize, 1, |
|---|
| 27643 | n/a | PyDoc_STR("(SGChannel c) -> (long _rv)")}, |
|---|
| 27644 | n/a | {"SGSetSoundInputRate", (PyCFunction)Qt_SGSetSoundInputRate, 1, |
|---|
| 27645 | n/a | PyDoc_STR("(SGChannel c, Fixed rate) -> (ComponentResult _rv)")}, |
|---|
| 27646 | n/a | {"SGGetSoundInputRate", (PyCFunction)Qt_SGGetSoundInputRate, 1, |
|---|
| 27647 | n/a | PyDoc_STR("(SGChannel c) -> (Fixed _rv)")}, |
|---|
| 27648 | n/a | {"SGSetSoundInputParameters", (PyCFunction)Qt_SGSetSoundInputParameters, 1, |
|---|
| 27649 | n/a | PyDoc_STR("(SGChannel c, short sampleSize, short numChannels, OSType compressionType) -> (ComponentResult _rv)")}, |
|---|
| 27650 | n/a | {"SGGetSoundInputParameters", (PyCFunction)Qt_SGGetSoundInputParameters, 1, |
|---|
| 27651 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, short sampleSize, short numChannels, OSType compressionType)")}, |
|---|
| 27652 | n/a | {"SGSetAdditionalSoundRates", (PyCFunction)Qt_SGSetAdditionalSoundRates, 1, |
|---|
| 27653 | n/a | PyDoc_STR("(SGChannel c, Handle rates) -> (ComponentResult _rv)")}, |
|---|
| 27654 | n/a | {"SGGetAdditionalSoundRates", (PyCFunction)Qt_SGGetAdditionalSoundRates, 1, |
|---|
| 27655 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, Handle rates)")}, |
|---|
| 27656 | n/a | {"SGSetFontName", (PyCFunction)Qt_SGSetFontName, 1, |
|---|
| 27657 | n/a | PyDoc_STR("(SGChannel c, StringPtr pstr) -> (ComponentResult _rv)")}, |
|---|
| 27658 | n/a | {"SGSetFontSize", (PyCFunction)Qt_SGSetFontSize, 1, |
|---|
| 27659 | n/a | PyDoc_STR("(SGChannel c, short fontSize) -> (ComponentResult _rv)")}, |
|---|
| 27660 | n/a | {"SGSetTextForeColor", (PyCFunction)Qt_SGSetTextForeColor, 1, |
|---|
| 27661 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, RGBColor theColor)")}, |
|---|
| 27662 | n/a | {"SGSetTextBackColor", (PyCFunction)Qt_SGSetTextBackColor, 1, |
|---|
| 27663 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, RGBColor theColor)")}, |
|---|
| 27664 | n/a | {"SGSetJustification", (PyCFunction)Qt_SGSetJustification, 1, |
|---|
| 27665 | n/a | PyDoc_STR("(SGChannel c, short just) -> (ComponentResult _rv)")}, |
|---|
| 27666 | n/a | {"SGGetTextReturnToSpaceValue", (PyCFunction)Qt_SGGetTextReturnToSpaceValue, 1, |
|---|
| 27667 | n/a | PyDoc_STR("(SGChannel c) -> (ComponentResult _rv, short rettospace)")}, |
|---|
| 27668 | n/a | {"SGSetTextReturnToSpaceValue", (PyCFunction)Qt_SGSetTextReturnToSpaceValue, 1, |
|---|
| 27669 | n/a | PyDoc_STR("(SGChannel c, short rettospace) -> (ComponentResult _rv)")}, |
|---|
| 27670 | n/a | {"QTVideoOutputGetCurrentClientName", (PyCFunction)Qt_QTVideoOutputGetCurrentClientName, 1, |
|---|
| 27671 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, Str255 str) -> (ComponentResult _rv)")}, |
|---|
| 27672 | n/a | {"QTVideoOutputSetClientName", (PyCFunction)Qt_QTVideoOutputSetClientName, 1, |
|---|
| 27673 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, Str255 str) -> (ComponentResult _rv)")}, |
|---|
| 27674 | n/a | {"QTVideoOutputGetClientName", (PyCFunction)Qt_QTVideoOutputGetClientName, 1, |
|---|
| 27675 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, Str255 str) -> (ComponentResult _rv)")}, |
|---|
| 27676 | n/a | {"QTVideoOutputBegin", (PyCFunction)Qt_QTVideoOutputBegin, 1, |
|---|
| 27677 | n/a | PyDoc_STR("(QTVideoOutputComponent vo) -> (ComponentResult _rv)")}, |
|---|
| 27678 | n/a | {"QTVideoOutputEnd", (PyCFunction)Qt_QTVideoOutputEnd, 1, |
|---|
| 27679 | n/a | PyDoc_STR("(QTVideoOutputComponent vo) -> (ComponentResult _rv)")}, |
|---|
| 27680 | n/a | {"QTVideoOutputSetDisplayMode", (PyCFunction)Qt_QTVideoOutputSetDisplayMode, 1, |
|---|
| 27681 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, long displayModeID) -> (ComponentResult _rv)")}, |
|---|
| 27682 | n/a | {"QTVideoOutputGetDisplayMode", (PyCFunction)Qt_QTVideoOutputGetDisplayMode, 1, |
|---|
| 27683 | n/a | PyDoc_STR("(QTVideoOutputComponent vo) -> (ComponentResult _rv, long displayModeID)")}, |
|---|
| 27684 | n/a | {"QTVideoOutputGetGWorld", (PyCFunction)Qt_QTVideoOutputGetGWorld, 1, |
|---|
| 27685 | n/a | PyDoc_STR("(QTVideoOutputComponent vo) -> (ComponentResult _rv, GWorldPtr gw)")}, |
|---|
| 27686 | n/a | {"QTVideoOutputGetIndSoundOutput", (PyCFunction)Qt_QTVideoOutputGetIndSoundOutput, 1, |
|---|
| 27687 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, long index) -> (ComponentResult _rv, Component outputComponent)")}, |
|---|
| 27688 | n/a | {"QTVideoOutputGetClock", (PyCFunction)Qt_QTVideoOutputGetClock, 1, |
|---|
| 27689 | n/a | PyDoc_STR("(QTVideoOutputComponent vo) -> (ComponentResult _rv, ComponentInstance clock)")}, |
|---|
| 27690 | n/a | {"QTVideoOutputSetEchoPort", (PyCFunction)Qt_QTVideoOutputSetEchoPort, 1, |
|---|
| 27691 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, CGrafPtr echoPort) -> (ComponentResult _rv)")}, |
|---|
| 27692 | n/a | {"QTVideoOutputGetIndImageDecompressor", (PyCFunction)Qt_QTVideoOutputGetIndImageDecompressor, 1, |
|---|
| 27693 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, long index) -> (ComponentResult _rv, Component codec)")}, |
|---|
| 27694 | n/a | {"QTVideoOutputBaseSetEchoPort", (PyCFunction)Qt_QTVideoOutputBaseSetEchoPort, 1, |
|---|
| 27695 | n/a | PyDoc_STR("(QTVideoOutputComponent vo, CGrafPtr echoPort) -> (ComponentResult _rv)")}, |
|---|
| 27696 | n/a | {"MediaSetChunkManagementFlags", (PyCFunction)Qt_MediaSetChunkManagementFlags, 1, |
|---|
| 27697 | n/a | PyDoc_STR("(MediaHandler mh, UInt32 flags, UInt32 flagsMask) -> (ComponentResult _rv)")}, |
|---|
| 27698 | n/a | {"MediaGetChunkManagementFlags", (PyCFunction)Qt_MediaGetChunkManagementFlags, 1, |
|---|
| 27699 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, UInt32 flags)")}, |
|---|
| 27700 | n/a | {"MediaSetPurgeableChunkMemoryAllowance", (PyCFunction)Qt_MediaSetPurgeableChunkMemoryAllowance, 1, |
|---|
| 27701 | n/a | PyDoc_STR("(MediaHandler mh, Size allowance) -> (ComponentResult _rv)")}, |
|---|
| 27702 | n/a | {"MediaGetPurgeableChunkMemoryAllowance", (PyCFunction)Qt_MediaGetPurgeableChunkMemoryAllowance, 1, |
|---|
| 27703 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, Size allowance)")}, |
|---|
| 27704 | n/a | {"MediaEmptyAllPurgeableChunks", (PyCFunction)Qt_MediaEmptyAllPurgeableChunks, 1, |
|---|
| 27705 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27706 | n/a | {"MediaSetHandlerCapabilities", (PyCFunction)Qt_MediaSetHandlerCapabilities, 1, |
|---|
| 27707 | n/a | PyDoc_STR("(MediaHandler mh, long flags, long flagsMask) -> (ComponentResult _rv)")}, |
|---|
| 27708 | n/a | {"MediaIdle", (PyCFunction)Qt_MediaIdle, 1, |
|---|
| 27709 | n/a | PyDoc_STR("(MediaHandler mh, TimeValue atMediaTime, long flagsIn, TimeRecord movieTime) -> (ComponentResult _rv, long flagsOut)")}, |
|---|
| 27710 | n/a | {"MediaGetMediaInfo", (PyCFunction)Qt_MediaGetMediaInfo, 1, |
|---|
| 27711 | n/a | PyDoc_STR("(MediaHandler mh, Handle h) -> (ComponentResult _rv)")}, |
|---|
| 27712 | n/a | {"MediaPutMediaInfo", (PyCFunction)Qt_MediaPutMediaInfo, 1, |
|---|
| 27713 | n/a | PyDoc_STR("(MediaHandler mh, Handle h) -> (ComponentResult _rv)")}, |
|---|
| 27714 | n/a | {"MediaSetActive", (PyCFunction)Qt_MediaSetActive, 1, |
|---|
| 27715 | n/a | PyDoc_STR("(MediaHandler mh, Boolean enableMedia) -> (ComponentResult _rv)")}, |
|---|
| 27716 | n/a | {"MediaSetRate", (PyCFunction)Qt_MediaSetRate, 1, |
|---|
| 27717 | n/a | PyDoc_STR("(MediaHandler mh, Fixed rate) -> (ComponentResult _rv)")}, |
|---|
| 27718 | n/a | {"MediaGGetStatus", (PyCFunction)Qt_MediaGGetStatus, 1, |
|---|
| 27719 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, ComponentResult statusErr)")}, |
|---|
| 27720 | n/a | {"MediaTrackEdited", (PyCFunction)Qt_MediaTrackEdited, 1, |
|---|
| 27721 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27722 | n/a | {"MediaSetMediaTimeScale", (PyCFunction)Qt_MediaSetMediaTimeScale, 1, |
|---|
| 27723 | n/a | PyDoc_STR("(MediaHandler mh, TimeScale newTimeScale) -> (ComponentResult _rv)")}, |
|---|
| 27724 | n/a | {"MediaSetMovieTimeScale", (PyCFunction)Qt_MediaSetMovieTimeScale, 1, |
|---|
| 27725 | n/a | PyDoc_STR("(MediaHandler mh, TimeScale newTimeScale) -> (ComponentResult _rv)")}, |
|---|
| 27726 | n/a | {"MediaSetGWorld", (PyCFunction)Qt_MediaSetGWorld, 1, |
|---|
| 27727 | n/a | PyDoc_STR("(MediaHandler mh, CGrafPtr aPort, GDHandle aGD) -> (ComponentResult _rv)")}, |
|---|
| 27728 | n/a | {"MediaSetDimensions", (PyCFunction)Qt_MediaSetDimensions, 1, |
|---|
| 27729 | n/a | PyDoc_STR("(MediaHandler mh, Fixed width, Fixed height) -> (ComponentResult _rv)")}, |
|---|
| 27730 | n/a | {"MediaSetClip", (PyCFunction)Qt_MediaSetClip, 1, |
|---|
| 27731 | n/a | PyDoc_STR("(MediaHandler mh, RgnHandle theClip) -> (ComponentResult _rv)")}, |
|---|
| 27732 | n/a | {"MediaGetTrackOpaque", (PyCFunction)Qt_MediaGetTrackOpaque, 1, |
|---|
| 27733 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, Boolean trackIsOpaque)")}, |
|---|
| 27734 | n/a | {"MediaSetGraphicsMode", (PyCFunction)Qt_MediaSetGraphicsMode, 1, |
|---|
| 27735 | n/a | PyDoc_STR("(MediaHandler mh, long mode, RGBColor opColor) -> (ComponentResult _rv)")}, |
|---|
| 27736 | n/a | {"MediaGetGraphicsMode", (PyCFunction)Qt_MediaGetGraphicsMode, 1, |
|---|
| 27737 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long mode, RGBColor opColor)")}, |
|---|
| 27738 | n/a | {"MediaGSetVolume", (PyCFunction)Qt_MediaGSetVolume, 1, |
|---|
| 27739 | n/a | PyDoc_STR("(MediaHandler mh, short volume) -> (ComponentResult _rv)")}, |
|---|
| 27740 | n/a | {"MediaSetSoundBalance", (PyCFunction)Qt_MediaSetSoundBalance, 1, |
|---|
| 27741 | n/a | PyDoc_STR("(MediaHandler mh, short balance) -> (ComponentResult _rv)")}, |
|---|
| 27742 | n/a | {"MediaGetSoundBalance", (PyCFunction)Qt_MediaGetSoundBalance, 1, |
|---|
| 27743 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short balance)")}, |
|---|
| 27744 | n/a | {"MediaGetNextBoundsChange", (PyCFunction)Qt_MediaGetNextBoundsChange, 1, |
|---|
| 27745 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, TimeValue when)")}, |
|---|
| 27746 | n/a | {"MediaGetSrcRgn", (PyCFunction)Qt_MediaGetSrcRgn, 1, |
|---|
| 27747 | n/a | PyDoc_STR("(MediaHandler mh, RgnHandle rgn, TimeValue atMediaTime) -> (ComponentResult _rv)")}, |
|---|
| 27748 | n/a | {"MediaPreroll", (PyCFunction)Qt_MediaPreroll, 1, |
|---|
| 27749 | n/a | PyDoc_STR("(MediaHandler mh, TimeValue time, Fixed rate) -> (ComponentResult _rv)")}, |
|---|
| 27750 | n/a | {"MediaSampleDescriptionChanged", (PyCFunction)Qt_MediaSampleDescriptionChanged, 1, |
|---|
| 27751 | n/a | PyDoc_STR("(MediaHandler mh, long index) -> (ComponentResult _rv)")}, |
|---|
| 27752 | n/a | {"MediaHasCharacteristic", (PyCFunction)Qt_MediaHasCharacteristic, 1, |
|---|
| 27753 | n/a | PyDoc_STR("(MediaHandler mh, OSType characteristic) -> (ComponentResult _rv, Boolean hasIt)")}, |
|---|
| 27754 | n/a | {"MediaGetOffscreenBufferSize", (PyCFunction)Qt_MediaGetOffscreenBufferSize, 1, |
|---|
| 27755 | n/a | PyDoc_STR("(MediaHandler mh, short depth, CTabHandle ctab) -> (ComponentResult _rv, Rect bounds)")}, |
|---|
| 27756 | n/a | {"MediaSetHints", (PyCFunction)Qt_MediaSetHints, 1, |
|---|
| 27757 | n/a | PyDoc_STR("(MediaHandler mh, long hints) -> (ComponentResult _rv)")}, |
|---|
| 27758 | n/a | {"MediaGetName", (PyCFunction)Qt_MediaGetName, 1, |
|---|
| 27759 | n/a | PyDoc_STR("(MediaHandler mh, Str255 name, long requestedLanguage) -> (ComponentResult _rv, long actualLanguage)")}, |
|---|
| 27760 | n/a | {"MediaForceUpdate", (PyCFunction)Qt_MediaForceUpdate, 1, |
|---|
| 27761 | n/a | PyDoc_STR("(MediaHandler mh, long forceUpdateFlags) -> (ComponentResult _rv)")}, |
|---|
| 27762 | n/a | {"MediaGetDrawingRgn", (PyCFunction)Qt_MediaGetDrawingRgn, 1, |
|---|
| 27763 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, RgnHandle partialRgn)")}, |
|---|
| 27764 | n/a | {"MediaGSetActiveSegment", (PyCFunction)Qt_MediaGSetActiveSegment, 1, |
|---|
| 27765 | n/a | PyDoc_STR("(MediaHandler mh, TimeValue activeStart, TimeValue activeDuration) -> (ComponentResult _rv)")}, |
|---|
| 27766 | n/a | {"MediaInvalidateRegion", (PyCFunction)Qt_MediaInvalidateRegion, 1, |
|---|
| 27767 | n/a | PyDoc_STR("(MediaHandler mh, RgnHandle invalRgn) -> (ComponentResult _rv)")}, |
|---|
| 27768 | n/a | {"MediaGetNextStepTime", (PyCFunction)Qt_MediaGetNextStepTime, 1, |
|---|
| 27769 | n/a | PyDoc_STR("(MediaHandler mh, short flags, TimeValue mediaTimeIn, Fixed rate) -> (ComponentResult _rv, TimeValue mediaTimeOut)")}, |
|---|
| 27770 | n/a | {"MediaChangedNonPrimarySource", (PyCFunction)Qt_MediaChangedNonPrimarySource, 1, |
|---|
| 27771 | n/a | PyDoc_STR("(MediaHandler mh, long inputIndex) -> (ComponentResult _rv)")}, |
|---|
| 27772 | n/a | {"MediaTrackReferencesChanged", (PyCFunction)Qt_MediaTrackReferencesChanged, 1, |
|---|
| 27773 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27774 | n/a | {"MediaReleaseSampleDataPointer", (PyCFunction)Qt_MediaReleaseSampleDataPointer, 1, |
|---|
| 27775 | n/a | PyDoc_STR("(MediaHandler mh, long sampleNum) -> (ComponentResult _rv)")}, |
|---|
| 27776 | n/a | {"MediaTrackPropertyAtomChanged", (PyCFunction)Qt_MediaTrackPropertyAtomChanged, 1, |
|---|
| 27777 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27778 | n/a | {"MediaSetVideoParam", (PyCFunction)Qt_MediaSetVideoParam, 1, |
|---|
| 27779 | n/a | PyDoc_STR("(MediaHandler mh, long whichParam) -> (ComponentResult _rv, unsigned short value)")}, |
|---|
| 27780 | n/a | {"MediaGetVideoParam", (PyCFunction)Qt_MediaGetVideoParam, 1, |
|---|
| 27781 | n/a | PyDoc_STR("(MediaHandler mh, long whichParam) -> (ComponentResult _rv, unsigned short value)")}, |
|---|
| 27782 | n/a | {"MediaCompare", (PyCFunction)Qt_MediaCompare, 1, |
|---|
| 27783 | n/a | PyDoc_STR("(MediaHandler mh, Media srcMedia, ComponentInstance srcMediaComponent) -> (ComponentResult _rv, Boolean isOK)")}, |
|---|
| 27784 | n/a | {"MediaGetClock", (PyCFunction)Qt_MediaGetClock, 1, |
|---|
| 27785 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, ComponentInstance clock)")}, |
|---|
| 27786 | n/a | {"MediaSetSoundOutputComponent", (PyCFunction)Qt_MediaSetSoundOutputComponent, 1, |
|---|
| 27787 | n/a | PyDoc_STR("(MediaHandler mh, Component outputComponent) -> (ComponentResult _rv)")}, |
|---|
| 27788 | n/a | {"MediaGetSoundOutputComponent", (PyCFunction)Qt_MediaGetSoundOutputComponent, 1, |
|---|
| 27789 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, Component outputComponent)")}, |
|---|
| 27790 | n/a | {"MediaSetSoundLocalizationData", (PyCFunction)Qt_MediaSetSoundLocalizationData, 1, |
|---|
| 27791 | n/a | PyDoc_STR("(MediaHandler mh, Handle data) -> (ComponentResult _rv)")}, |
|---|
| 27792 | n/a | {"MediaGetInvalidRegion", (PyCFunction)Qt_MediaGetInvalidRegion, 1, |
|---|
| 27793 | n/a | PyDoc_STR("(MediaHandler mh, RgnHandle rgn) -> (ComponentResult _rv)")}, |
|---|
| 27794 | n/a | {"MediaSampleDescriptionB2N", (PyCFunction)Qt_MediaSampleDescriptionB2N, 1, |
|---|
| 27795 | n/a | PyDoc_STR("(MediaHandler mh, SampleDescriptionHandle sampleDescriptionH) -> (ComponentResult _rv)")}, |
|---|
| 27796 | n/a | {"MediaSampleDescriptionN2B", (PyCFunction)Qt_MediaSampleDescriptionN2B, 1, |
|---|
| 27797 | n/a | PyDoc_STR("(MediaHandler mh, SampleDescriptionHandle sampleDescriptionH) -> (ComponentResult _rv)")}, |
|---|
| 27798 | n/a | {"MediaFlushNonPrimarySourceData", (PyCFunction)Qt_MediaFlushNonPrimarySourceData, 1, |
|---|
| 27799 | n/a | PyDoc_STR("(MediaHandler mh, long inputIndex) -> (ComponentResult _rv)")}, |
|---|
| 27800 | n/a | {"MediaGetURLLink", (PyCFunction)Qt_MediaGetURLLink, 1, |
|---|
| 27801 | n/a | PyDoc_STR("(MediaHandler mh, Point displayWhere) -> (ComponentResult _rv, Handle urlLink)")}, |
|---|
| 27802 | n/a | {"MediaHitTestForTargetRefCon", (PyCFunction)Qt_MediaHitTestForTargetRefCon, 1, |
|---|
| 27803 | n/a | PyDoc_STR("(MediaHandler mh, long flags, Point loc) -> (ComponentResult _rv, long targetRefCon)")}, |
|---|
| 27804 | n/a | {"MediaHitTestTargetRefCon", (PyCFunction)Qt_MediaHitTestTargetRefCon, 1, |
|---|
| 27805 | n/a | PyDoc_STR("(MediaHandler mh, long targetRefCon, long flags, Point loc) -> (ComponentResult _rv, Boolean wasHit)")}, |
|---|
| 27806 | n/a | {"MediaDisposeTargetRefCon", (PyCFunction)Qt_MediaDisposeTargetRefCon, 1, |
|---|
| 27807 | n/a | PyDoc_STR("(MediaHandler mh, long targetRefCon) -> (ComponentResult _rv)")}, |
|---|
| 27808 | n/a | {"MediaTargetRefConsEqual", (PyCFunction)Qt_MediaTargetRefConsEqual, 1, |
|---|
| 27809 | n/a | PyDoc_STR("(MediaHandler mh, long firstRefCon, long secondRefCon) -> (ComponentResult _rv, Boolean equal)")}, |
|---|
| 27810 | n/a | {"MediaPrePrerollCancel", (PyCFunction)Qt_MediaPrePrerollCancel, 1, |
|---|
| 27811 | n/a | PyDoc_STR("(MediaHandler mh, void * refcon) -> (ComponentResult _rv)")}, |
|---|
| 27812 | n/a | {"MediaEnterEmptyEdit", (PyCFunction)Qt_MediaEnterEmptyEdit, 1, |
|---|
| 27813 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27814 | n/a | {"MediaCurrentMediaQueuedData", (PyCFunction)Qt_MediaCurrentMediaQueuedData, 1, |
|---|
| 27815 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long milliSecs)")}, |
|---|
| 27816 | n/a | {"MediaGetEffectiveVolume", (PyCFunction)Qt_MediaGetEffectiveVolume, 1, |
|---|
| 27817 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short volume)")}, |
|---|
| 27818 | n/a | {"MediaGetSoundLevelMeteringEnabled", (PyCFunction)Qt_MediaGetSoundLevelMeteringEnabled, 1, |
|---|
| 27819 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, Boolean enabled)")}, |
|---|
| 27820 | n/a | {"MediaSetSoundLevelMeteringEnabled", (PyCFunction)Qt_MediaSetSoundLevelMeteringEnabled, 1, |
|---|
| 27821 | n/a | PyDoc_STR("(MediaHandler mh, Boolean enable) -> (ComponentResult _rv)")}, |
|---|
| 27822 | n/a | {"MediaGetEffectiveSoundBalance", (PyCFunction)Qt_MediaGetEffectiveSoundBalance, 1, |
|---|
| 27823 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short balance)")}, |
|---|
| 27824 | n/a | {"MediaSetScreenLock", (PyCFunction)Qt_MediaSetScreenLock, 1, |
|---|
| 27825 | n/a | PyDoc_STR("(MediaHandler mh, Boolean lockIt) -> (ComponentResult _rv)")}, |
|---|
| 27826 | n/a | {"MediaGetErrorString", (PyCFunction)Qt_MediaGetErrorString, 1, |
|---|
| 27827 | n/a | PyDoc_STR("(MediaHandler mh, ComponentResult theError, Str255 errorString) -> (ComponentResult _rv)")}, |
|---|
| 27828 | n/a | {"MediaGetSoundEqualizerBandLevels", (PyCFunction)Qt_MediaGetSoundEqualizerBandLevels, 1, |
|---|
| 27829 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, UInt8 bandLevels)")}, |
|---|
| 27830 | n/a | {"MediaDoIdleActions", (PyCFunction)Qt_MediaDoIdleActions, 1, |
|---|
| 27831 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27832 | n/a | {"MediaSetSoundBassAndTreble", (PyCFunction)Qt_MediaSetSoundBassAndTreble, 1, |
|---|
| 27833 | n/a | PyDoc_STR("(MediaHandler mh, short bass, short treble) -> (ComponentResult _rv)")}, |
|---|
| 27834 | n/a | {"MediaGetSoundBassAndTreble", (PyCFunction)Qt_MediaGetSoundBassAndTreble, 1, |
|---|
| 27835 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, short bass, short treble)")}, |
|---|
| 27836 | n/a | {"MediaTimeBaseChanged", (PyCFunction)Qt_MediaTimeBaseChanged, 1, |
|---|
| 27837 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv)")}, |
|---|
| 27838 | n/a | {"MediaMCIsPlayerEvent", (PyCFunction)Qt_MediaMCIsPlayerEvent, 1, |
|---|
| 27839 | n/a | PyDoc_STR("(MediaHandler mh, EventRecord e) -> (ComponentResult _rv, Boolean handledIt)")}, |
|---|
| 27840 | n/a | {"MediaGetMediaLoadState", (PyCFunction)Qt_MediaGetMediaLoadState, 1, |
|---|
| 27841 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, long mediaLoadState)")}, |
|---|
| 27842 | n/a | {"MediaVideoOutputChanged", (PyCFunction)Qt_MediaVideoOutputChanged, 1, |
|---|
| 27843 | n/a | PyDoc_STR("(MediaHandler mh, ComponentInstance vout) -> (ComponentResult _rv)")}, |
|---|
| 27844 | n/a | {"MediaEmptySampleCache", (PyCFunction)Qt_MediaEmptySampleCache, 1, |
|---|
| 27845 | n/a | PyDoc_STR("(MediaHandler mh, long sampleNum, long sampleCount) -> (ComponentResult _rv)")}, |
|---|
| 27846 | n/a | {"MediaGetPublicInfo", (PyCFunction)Qt_MediaGetPublicInfo, 1, |
|---|
| 27847 | n/a | PyDoc_STR("(MediaHandler mh, OSType infoSelector, void * infoDataPtr) -> (ComponentResult _rv, Size ioDataSize)")}, |
|---|
| 27848 | n/a | {"MediaSetPublicInfo", (PyCFunction)Qt_MediaSetPublicInfo, 1, |
|---|
| 27849 | n/a | PyDoc_STR("(MediaHandler mh, OSType infoSelector, void * infoDataPtr, Size dataSize) -> (ComponentResult _rv)")}, |
|---|
| 27850 | n/a | {"MediaRefConSetProperty", (PyCFunction)Qt_MediaRefConSetProperty, 1, |
|---|
| 27851 | n/a | PyDoc_STR("(MediaHandler mh, long refCon, long propertyType, void * propertyValue) -> (ComponentResult _rv)")}, |
|---|
| 27852 | n/a | {"MediaRefConGetProperty", (PyCFunction)Qt_MediaRefConGetProperty, 1, |
|---|
| 27853 | n/a | PyDoc_STR("(MediaHandler mh, long refCon, long propertyType, void * propertyValue) -> (ComponentResult _rv)")}, |
|---|
| 27854 | n/a | {"MediaNavigateTargetRefCon", (PyCFunction)Qt_MediaNavigateTargetRefCon, 1, |
|---|
| 27855 | n/a | PyDoc_STR("(MediaHandler mh, long navigation) -> (ComponentResult _rv, long refCon)")}, |
|---|
| 27856 | n/a | {"MediaGGetIdleManager", (PyCFunction)Qt_MediaGGetIdleManager, 1, |
|---|
| 27857 | n/a | PyDoc_STR("(MediaHandler mh) -> (ComponentResult _rv, IdleManager pim)")}, |
|---|
| 27858 | n/a | {"MediaGSetIdleManager", (PyCFunction)Qt_MediaGSetIdleManager, 1, |
|---|
| 27859 | n/a | PyDoc_STR("(MediaHandler mh, IdleManager im) -> (ComponentResult _rv)")}, |
|---|
| 27860 | n/a | {"QTMIDIGetMIDIPorts", (PyCFunction)Qt_QTMIDIGetMIDIPorts, 1, |
|---|
| 27861 | n/a | PyDoc_STR("(QTMIDIComponent ci) -> (ComponentResult _rv, QTMIDIPortListHandle inputPorts, QTMIDIPortListHandle outputPorts)")}, |
|---|
| 27862 | n/a | {"QTMIDIUseSendPort", (PyCFunction)Qt_QTMIDIUseSendPort, 1, |
|---|
| 27863 | n/a | PyDoc_STR("(QTMIDIComponent ci, long portIndex, long inUse) -> (ComponentResult _rv)")}, |
|---|
| 27864 | n/a | {"QTMIDISendMIDI", (PyCFunction)Qt_QTMIDISendMIDI, 1, |
|---|
| 27865 | n/a | PyDoc_STR("(QTMIDIComponent ci, long portIndex, MusicMIDIPacket mp) -> (ComponentResult _rv)")}, |
|---|
| 27866 | n/a | {"MusicGetPart", (PyCFunction)Qt_MusicGetPart, 1, |
|---|
| 27867 | n/a | PyDoc_STR("(MusicComponent mc, long part) -> (ComponentResult _rv, long midiChannel, long polyphony)")}, |
|---|
| 27868 | n/a | {"MusicSetPart", (PyCFunction)Qt_MusicSetPart, 1, |
|---|
| 27869 | n/a | PyDoc_STR("(MusicComponent mc, long part, long midiChannel, long polyphony) -> (ComponentResult _rv)")}, |
|---|
| 27870 | n/a | {"MusicSetPartInstrumentNumber", (PyCFunction)Qt_MusicSetPartInstrumentNumber, 1, |
|---|
| 27871 | n/a | PyDoc_STR("(MusicComponent mc, long part, long instrumentNumber) -> (ComponentResult _rv)")}, |
|---|
| 27872 | n/a | {"MusicGetPartInstrumentNumber", (PyCFunction)Qt_MusicGetPartInstrumentNumber, 1, |
|---|
| 27873 | n/a | PyDoc_STR("(MusicComponent mc, long part) -> (ComponentResult _rv)")}, |
|---|
| 27874 | n/a | {"MusicStorePartInstrument", (PyCFunction)Qt_MusicStorePartInstrument, 1, |
|---|
| 27875 | n/a | PyDoc_STR("(MusicComponent mc, long part, long instrumentNumber) -> (ComponentResult _rv)")}, |
|---|
| 27876 | n/a | {"MusicGetPartAtomicInstrument", (PyCFunction)Qt_MusicGetPartAtomicInstrument, 1, |
|---|
| 27877 | n/a | PyDoc_STR("(MusicComponent mc, long part, long flags) -> (ComponentResult _rv, AtomicInstrument ai)")}, |
|---|
| 27878 | n/a | {"MusicSetPartAtomicInstrument", (PyCFunction)Qt_MusicSetPartAtomicInstrument, 1, |
|---|
| 27879 | n/a | PyDoc_STR("(MusicComponent mc, long part, AtomicInstrumentPtr aiP, long flags) -> (ComponentResult _rv)")}, |
|---|
| 27880 | n/a | {"MusicGetPartKnob", (PyCFunction)Qt_MusicGetPartKnob, 1, |
|---|
| 27881 | n/a | PyDoc_STR("(MusicComponent mc, long part, long knobID) -> (ComponentResult _rv)")}, |
|---|
| 27882 | n/a | {"MusicSetPartKnob", (PyCFunction)Qt_MusicSetPartKnob, 1, |
|---|
| 27883 | n/a | PyDoc_STR("(MusicComponent mc, long part, long knobID, long knobValue) -> (ComponentResult _rv)")}, |
|---|
| 27884 | n/a | {"MusicGetKnob", (PyCFunction)Qt_MusicGetKnob, 1, |
|---|
| 27885 | n/a | PyDoc_STR("(MusicComponent mc, long knobID) -> (ComponentResult _rv)")}, |
|---|
| 27886 | n/a | {"MusicSetKnob", (PyCFunction)Qt_MusicSetKnob, 1, |
|---|
| 27887 | n/a | PyDoc_STR("(MusicComponent mc, long knobID, long knobValue) -> (ComponentResult _rv)")}, |
|---|
| 27888 | n/a | {"MusicGetPartName", (PyCFunction)Qt_MusicGetPartName, 1, |
|---|
| 27889 | n/a | PyDoc_STR("(MusicComponent mc, long part, StringPtr name) -> (ComponentResult _rv)")}, |
|---|
| 27890 | n/a | {"MusicSetPartName", (PyCFunction)Qt_MusicSetPartName, 1, |
|---|
| 27891 | n/a | PyDoc_STR("(MusicComponent mc, long part, StringPtr name) -> (ComponentResult _rv)")}, |
|---|
| 27892 | n/a | {"MusicPlayNote", (PyCFunction)Qt_MusicPlayNote, 1, |
|---|
| 27893 | n/a | PyDoc_STR("(MusicComponent mc, long part, long pitch, long velocity) -> (ComponentResult _rv)")}, |
|---|
| 27894 | n/a | {"MusicResetPart", (PyCFunction)Qt_MusicResetPart, 1, |
|---|
| 27895 | n/a | PyDoc_STR("(MusicComponent mc, long part) -> (ComponentResult _rv)")}, |
|---|
| 27896 | n/a | {"MusicSetPartController", (PyCFunction)Qt_MusicSetPartController, 1, |
|---|
| 27897 | n/a | PyDoc_STR("(MusicComponent mc, long part, MusicController controllerNumber, long controllerValue) -> (ComponentResult _rv)")}, |
|---|
| 27898 | n/a | {"MusicGetPartController", (PyCFunction)Qt_MusicGetPartController, 1, |
|---|
| 27899 | n/a | PyDoc_STR("(MusicComponent mc, long part, MusicController controllerNumber) -> (ComponentResult _rv)")}, |
|---|
| 27900 | n/a | {"MusicGetInstrumentNames", (PyCFunction)Qt_MusicGetInstrumentNames, 1, |
|---|
| 27901 | n/a | PyDoc_STR("(MusicComponent mc, long modifiableInstruments) -> (ComponentResult _rv, Handle instrumentNames, Handle instrumentCategoryLasts, Handle instrumentCategoryNames)")}, |
|---|
| 27902 | n/a | {"MusicGetDrumNames", (PyCFunction)Qt_MusicGetDrumNames, 1, |
|---|
| 27903 | n/a | PyDoc_STR("(MusicComponent mc, long modifiableInstruments) -> (ComponentResult _rv, Handle instrumentNumbers, Handle instrumentNames)")}, |
|---|
| 27904 | n/a | {"MusicGetMasterTune", (PyCFunction)Qt_MusicGetMasterTune, 1, |
|---|
| 27905 | n/a | PyDoc_STR("(MusicComponent mc) -> (ComponentResult _rv)")}, |
|---|
| 27906 | n/a | {"MusicSetMasterTune", (PyCFunction)Qt_MusicSetMasterTune, 1, |
|---|
| 27907 | n/a | PyDoc_STR("(MusicComponent mc, long masterTune) -> (ComponentResult _rv)")}, |
|---|
| 27908 | n/a | {"MusicGetDeviceConnection", (PyCFunction)Qt_MusicGetDeviceConnection, 1, |
|---|
| 27909 | n/a | PyDoc_STR("(MusicComponent mc, long index) -> (ComponentResult _rv, long id1, long id2)")}, |
|---|
| 27910 | n/a | {"MusicUseDeviceConnection", (PyCFunction)Qt_MusicUseDeviceConnection, 1, |
|---|
| 27911 | n/a | PyDoc_STR("(MusicComponent mc, long id1, long id2) -> (ComponentResult _rv)")}, |
|---|
| 27912 | n/a | {"MusicGetKnobSettingStrings", (PyCFunction)Qt_MusicGetKnobSettingStrings, 1, |
|---|
| 27913 | n/a | PyDoc_STR("(MusicComponent mc, long knobIndex, long isGlobal) -> (ComponentResult _rv, Handle settingsNames, Handle settingsCategoryLasts, Handle settingsCategoryNames)")}, |
|---|
| 27914 | n/a | {"MusicGetMIDIPorts", (PyCFunction)Qt_MusicGetMIDIPorts, 1, |
|---|
| 27915 | n/a | PyDoc_STR("(MusicComponent mc) -> (ComponentResult _rv, long inputPortCount, long outputPortCount)")}, |
|---|
| 27916 | n/a | {"MusicSendMIDI", (PyCFunction)Qt_MusicSendMIDI, 1, |
|---|
| 27917 | n/a | PyDoc_STR("(MusicComponent mc, long portIndex, MusicMIDIPacket mp) -> (ComponentResult _rv)")}, |
|---|
| 27918 | n/a | {"MusicSetOfflineTimeTo", (PyCFunction)Qt_MusicSetOfflineTimeTo, 1, |
|---|
| 27919 | n/a | PyDoc_STR("(MusicComponent mc, long newTimeStamp) -> (ComponentResult _rv)")}, |
|---|
| 27920 | n/a | {"MusicGetInfoText", (PyCFunction)Qt_MusicGetInfoText, 1, |
|---|
| 27921 | n/a | PyDoc_STR("(MusicComponent mc, long selector) -> (ComponentResult _rv, Handle textH, Handle styleH)")}, |
|---|
| 27922 | n/a | {"MusicGetInstrumentInfo", (PyCFunction)Qt_MusicGetInstrumentInfo, 1, |
|---|
| 27923 | n/a | PyDoc_STR("(MusicComponent mc, long getInstrumentInfoFlags) -> (ComponentResult _rv, InstrumentInfoListHandle infoListH)")}, |
|---|
| 27924 | n/a | {"MusicTask", (PyCFunction)Qt_MusicTask, 1, |
|---|
| 27925 | n/a | PyDoc_STR("(MusicComponent mc) -> (ComponentResult _rv)")}, |
|---|
| 27926 | n/a | {"MusicSetPartInstrumentNumberInterruptSafe", (PyCFunction)Qt_MusicSetPartInstrumentNumberInterruptSafe, 1, |
|---|
| 27927 | n/a | PyDoc_STR("(MusicComponent mc, long part, long instrumentNumber) -> (ComponentResult _rv)")}, |
|---|
| 27928 | n/a | {"MusicSetPartSoundLocalization", (PyCFunction)Qt_MusicSetPartSoundLocalization, 1, |
|---|
| 27929 | n/a | PyDoc_STR("(MusicComponent mc, long part, Handle data) -> (ComponentResult _rv)")}, |
|---|
| 27930 | n/a | {"MusicGenericConfigure", (PyCFunction)Qt_MusicGenericConfigure, 1, |
|---|
| 27931 | n/a | PyDoc_STR("(MusicComponent mc, long mode, long flags, long baseResID) -> (ComponentResult _rv)")}, |
|---|
| 27932 | n/a | {"MusicGenericGetKnobList", (PyCFunction)Qt_MusicGenericGetKnobList, 1, |
|---|
| 27933 | n/a | PyDoc_STR("(MusicComponent mc, long knobType) -> (ComponentResult _rv, GenericKnobDescriptionListHandle gkdlH)")}, |
|---|
| 27934 | n/a | {"MusicGenericSetResourceNumbers", (PyCFunction)Qt_MusicGenericSetResourceNumbers, 1, |
|---|
| 27935 | n/a | PyDoc_STR("(MusicComponent mc, Handle resourceIDH) -> (ComponentResult _rv)")}, |
|---|
| 27936 | n/a | {"MusicDerivedMIDISend", (PyCFunction)Qt_MusicDerivedMIDISend, 1, |
|---|
| 27937 | n/a | PyDoc_STR("(MusicComponent mc, MusicMIDIPacket packet) -> (ComponentResult _rv)")}, |
|---|
| 27938 | n/a | {"MusicDerivedOpenResFile", (PyCFunction)Qt_MusicDerivedOpenResFile, 1, |
|---|
| 27939 | n/a | PyDoc_STR("(MusicComponent mc) -> (ComponentResult _rv)")}, |
|---|
| 27940 | n/a | {"MusicDerivedCloseResFile", (PyCFunction)Qt_MusicDerivedCloseResFile, 1, |
|---|
| 27941 | n/a | PyDoc_STR("(MusicComponent mc, short resRefNum) -> (ComponentResult _rv)")}, |
|---|
| 27942 | n/a | {"NAUnregisterMusicDevice", (PyCFunction)Qt_NAUnregisterMusicDevice, 1, |
|---|
| 27943 | n/a | PyDoc_STR("(NoteAllocator na, long index) -> (ComponentResult _rv)")}, |
|---|
| 27944 | n/a | {"NASaveMusicConfiguration", (PyCFunction)Qt_NASaveMusicConfiguration, 1, |
|---|
| 27945 | n/a | PyDoc_STR("(NoteAllocator na) -> (ComponentResult _rv)")}, |
|---|
| 27946 | n/a | {"NAGetMIDIPorts", (PyCFunction)Qt_NAGetMIDIPorts, 1, |
|---|
| 27947 | n/a | PyDoc_STR("(NoteAllocator na) -> (ComponentResult _rv, QTMIDIPortListHandle inputPorts, QTMIDIPortListHandle outputPorts)")}, |
|---|
| 27948 | n/a | {"NATask", (PyCFunction)Qt_NATask, 1, |
|---|
| 27949 | n/a | PyDoc_STR("(NoteAllocator na) -> (ComponentResult _rv)")}, |
|---|
| 27950 | n/a | {"TuneSetHeader", (PyCFunction)Qt_TuneSetHeader, 1, |
|---|
| 27951 | n/a | PyDoc_STR("(TunePlayer tp, unsigned long * header) -> (ComponentResult _rv)")}, |
|---|
| 27952 | n/a | {"TuneGetTimeBase", (PyCFunction)Qt_TuneGetTimeBase, 1, |
|---|
| 27953 | n/a | PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv, TimeBase tb)")}, |
|---|
| 27954 | n/a | {"TuneSetTimeScale", (PyCFunction)Qt_TuneSetTimeScale, 1, |
|---|
| 27955 | n/a | PyDoc_STR("(TunePlayer tp, TimeScale scale) -> (ComponentResult _rv)")}, |
|---|
| 27956 | n/a | {"TuneGetTimeScale", (PyCFunction)Qt_TuneGetTimeScale, 1, |
|---|
| 27957 | n/a | PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv, TimeScale scale)")}, |
|---|
| 27958 | n/a | {"TuneInstant", (PyCFunction)Qt_TuneInstant, 1, |
|---|
| 27959 | n/a | PyDoc_STR("(TunePlayer tp, unsigned long tunePosition) -> (ComponentResult _rv, unsigned long tune)")}, |
|---|
| 27960 | n/a | {"TuneStop", (PyCFunction)Qt_TuneStop, 1, |
|---|
| 27961 | n/a | PyDoc_STR("(TunePlayer tp, long stopFlags) -> (ComponentResult _rv)")}, |
|---|
| 27962 | n/a | {"TuneSetVolume", (PyCFunction)Qt_TuneSetVolume, 1, |
|---|
| 27963 | n/a | PyDoc_STR("(TunePlayer tp, Fixed volume) -> (ComponentResult _rv)")}, |
|---|
| 27964 | n/a | {"TuneGetVolume", (PyCFunction)Qt_TuneGetVolume, 1, |
|---|
| 27965 | n/a | PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv)")}, |
|---|
| 27966 | n/a | {"TunePreroll", (PyCFunction)Qt_TunePreroll, 1, |
|---|
| 27967 | n/a | PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv)")}, |
|---|
| 27968 | n/a | {"TuneUnroll", (PyCFunction)Qt_TuneUnroll, 1, |
|---|
| 27969 | n/a | PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv)")}, |
|---|
| 27970 | n/a | {"TuneSetPartTranspose", (PyCFunction)Qt_TuneSetPartTranspose, 1, |
|---|
| 27971 | n/a | PyDoc_STR("(TunePlayer tp, unsigned long part, long transpose, long velocityShift) -> (ComponentResult _rv)")}, |
|---|
| 27972 | n/a | {"TuneGetNoteAllocator", (PyCFunction)Qt_TuneGetNoteAllocator, 1, |
|---|
| 27973 | n/a | PyDoc_STR("(TunePlayer tp) -> (NoteAllocator _rv)")}, |
|---|
| 27974 | n/a | {"TuneSetSofter", (PyCFunction)Qt_TuneSetSofter, 1, |
|---|
| 27975 | n/a | PyDoc_STR("(TunePlayer tp, long softer) -> (ComponentResult _rv)")}, |
|---|
| 27976 | n/a | {"TuneTask", (PyCFunction)Qt_TuneTask, 1, |
|---|
| 27977 | n/a | PyDoc_STR("(TunePlayer tp) -> (ComponentResult _rv)")}, |
|---|
| 27978 | n/a | {"TuneSetBalance", (PyCFunction)Qt_TuneSetBalance, 1, |
|---|
| 27979 | n/a | PyDoc_STR("(TunePlayer tp, long balance) -> (ComponentResult _rv)")}, |
|---|
| 27980 | n/a | {"TuneSetSoundLocalization", (PyCFunction)Qt_TuneSetSoundLocalization, 1, |
|---|
| 27981 | n/a | PyDoc_STR("(TunePlayer tp, Handle data) -> (ComponentResult _rv)")}, |
|---|
| 27982 | n/a | {"TuneSetHeaderWithSize", (PyCFunction)Qt_TuneSetHeaderWithSize, 1, |
|---|
| 27983 | n/a | PyDoc_STR("(TunePlayer tp, unsigned long * header, unsigned long size) -> (ComponentResult _rv)")}, |
|---|
| 27984 | n/a | {"TuneSetPartMix", (PyCFunction)Qt_TuneSetPartMix, 1, |
|---|
| 27985 | n/a | PyDoc_STR("(TunePlayer tp, unsigned long partNumber, long volume, long balance, long mixFlags) -> (ComponentResult _rv)")}, |
|---|
| 27986 | n/a | {"TuneGetPartMix", (PyCFunction)Qt_TuneGetPartMix, 1, |
|---|
| 27987 | n/a | PyDoc_STR("(TunePlayer tp, unsigned long partNumber) -> (ComponentResult _rv, long volumeOut, long balanceOut, long mixFlagsOut)")}, |
|---|
| 27988 | n/a | {"AlignWindow", (PyCFunction)Qt_AlignWindow, 1, |
|---|
| 27989 | n/a | PyDoc_STR("(WindowPtr wp, Boolean front) -> None")}, |
|---|
| 27990 | n/a | {"DragAlignedWindow", (PyCFunction)Qt_DragAlignedWindow, 1, |
|---|
| 27991 | n/a | PyDoc_STR("(WindowPtr wp, Point startPt, Rect boundsRect) -> None")}, |
|---|
| 27992 | n/a | {"MoviesTask", (PyCFunction)Qt_MoviesTask, 1, |
|---|
| 27993 | n/a | PyDoc_STR("(long maxMilliSecToUse) -> None")}, |
|---|
| 27994 | n/a | #endif /* __LP64__ */ |
|---|
| 27995 | n/a | {NULL, NULL, 0} |
|---|
| 27996 | n/a | }; |
|---|
| 27997 | n/a | |
|---|
| 27998 | n/a | |
|---|
| 27999 | n/a | |
|---|
| 28000 | n/a | |
|---|
| 28001 | n/a | void init_Qt(void) |
|---|
| 28002 | n/a | { |
|---|
| 28003 | n/a | PyObject *m; |
|---|
| 28004 | n/a | #ifndef __LP64__ |
|---|
| 28005 | n/a | PyObject *d; |
|---|
| 28006 | n/a | |
|---|
| 28007 | n/a | |
|---|
| 28008 | n/a | |
|---|
| 28009 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(Track, TrackObj_New); |
|---|
| 28010 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Track, TrackObj_Convert); |
|---|
| 28011 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(Movie, MovieObj_New); |
|---|
| 28012 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Movie, MovieObj_Convert); |
|---|
| 28013 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieController, MovieCtlObj_New); |
|---|
| 28014 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieController, MovieCtlObj_Convert); |
|---|
| 28015 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(TimeBase, TimeBaseObj_New); |
|---|
| 28016 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TimeBase, TimeBaseObj_Convert); |
|---|
| 28017 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(UserData, UserDataObj_New); |
|---|
| 28018 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(UserData, UserDataObj_Convert); |
|---|
| 28019 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(Media, MediaObj_New); |
|---|
| 28020 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Media, MediaObj_Convert); |
|---|
| 28021 | n/a | #endif /* __LP64__ */ |
|---|
| 28022 | n/a | |
|---|
| 28023 | n/a | |
|---|
| 28024 | n/a | m = Py_InitModule("_Qt", Qt_methods); |
|---|
| 28025 | n/a | #ifndef __LP64__ |
|---|
| 28026 | n/a | d = PyModule_GetDict(m); |
|---|
| 28027 | n/a | Qt_Error = PyMac_GetOSErrException(); |
|---|
| 28028 | n/a | if (Qt_Error == NULL || |
|---|
| 28029 | n/a | PyDict_SetItemString(d, "Error", Qt_Error) != 0) |
|---|
| 28030 | n/a | return; |
|---|
| 28031 | n/a | IdleManager_Type.ob_type = &PyType_Type; |
|---|
| 28032 | n/a | if (PyType_Ready(&IdleManager_Type) < 0) return; |
|---|
| 28033 | n/a | Py_INCREF(&IdleManager_Type); |
|---|
| 28034 | n/a | PyModule_AddObject(m, "IdleManager", (PyObject *)&IdleManager_Type); |
|---|
| 28035 | n/a | /* Backward-compatible name */ |
|---|
| 28036 | n/a | Py_INCREF(&IdleManager_Type); |
|---|
| 28037 | n/a | PyModule_AddObject(m, "IdleManagerType", (PyObject *)&IdleManager_Type); |
|---|
| 28038 | n/a | MovieController_Type.ob_type = &PyType_Type; |
|---|
| 28039 | n/a | if (PyType_Ready(&MovieController_Type) < 0) return; |
|---|
| 28040 | n/a | Py_INCREF(&MovieController_Type); |
|---|
| 28041 | n/a | PyModule_AddObject(m, "MovieController", (PyObject *)&MovieController_Type); |
|---|
| 28042 | n/a | /* Backward-compatible name */ |
|---|
| 28043 | n/a | Py_INCREF(&MovieController_Type); |
|---|
| 28044 | n/a | PyModule_AddObject(m, "MovieControllerType", (PyObject *)&MovieController_Type); |
|---|
| 28045 | n/a | TimeBase_Type.ob_type = &PyType_Type; |
|---|
| 28046 | n/a | if (PyType_Ready(&TimeBase_Type) < 0) return; |
|---|
| 28047 | n/a | Py_INCREF(&TimeBase_Type); |
|---|
| 28048 | n/a | PyModule_AddObject(m, "TimeBase", (PyObject *)&TimeBase_Type); |
|---|
| 28049 | n/a | /* Backward-compatible name */ |
|---|
| 28050 | n/a | Py_INCREF(&TimeBase_Type); |
|---|
| 28051 | n/a | PyModule_AddObject(m, "TimeBaseType", (PyObject *)&TimeBase_Type); |
|---|
| 28052 | n/a | UserData_Type.ob_type = &PyType_Type; |
|---|
| 28053 | n/a | if (PyType_Ready(&UserData_Type) < 0) return; |
|---|
| 28054 | n/a | Py_INCREF(&UserData_Type); |
|---|
| 28055 | n/a | PyModule_AddObject(m, "UserData", (PyObject *)&UserData_Type); |
|---|
| 28056 | n/a | /* Backward-compatible name */ |
|---|
| 28057 | n/a | Py_INCREF(&UserData_Type); |
|---|
| 28058 | n/a | PyModule_AddObject(m, "UserDataType", (PyObject *)&UserData_Type); |
|---|
| 28059 | n/a | Media_Type.ob_type = &PyType_Type; |
|---|
| 28060 | n/a | if (PyType_Ready(&Media_Type) < 0) return; |
|---|
| 28061 | n/a | Py_INCREF(&Media_Type); |
|---|
| 28062 | n/a | PyModule_AddObject(m, "Media", (PyObject *)&Media_Type); |
|---|
| 28063 | n/a | /* Backward-compatible name */ |
|---|
| 28064 | n/a | Py_INCREF(&Media_Type); |
|---|
| 28065 | n/a | PyModule_AddObject(m, "MediaType", (PyObject *)&Media_Type); |
|---|
| 28066 | n/a | Track_Type.ob_type = &PyType_Type; |
|---|
| 28067 | n/a | if (PyType_Ready(&Track_Type) < 0) return; |
|---|
| 28068 | n/a | Py_INCREF(&Track_Type); |
|---|
| 28069 | n/a | PyModule_AddObject(m, "Track", (PyObject *)&Track_Type); |
|---|
| 28070 | n/a | /* Backward-compatible name */ |
|---|
| 28071 | n/a | Py_INCREF(&Track_Type); |
|---|
| 28072 | n/a | PyModule_AddObject(m, "TrackType", (PyObject *)&Track_Type); |
|---|
| 28073 | n/a | Movie_Type.ob_type = &PyType_Type; |
|---|
| 28074 | n/a | if (PyType_Ready(&Movie_Type) < 0) return; |
|---|
| 28075 | n/a | Py_INCREF(&Movie_Type); |
|---|
| 28076 | n/a | PyModule_AddObject(m, "Movie", (PyObject *)&Movie_Type); |
|---|
| 28077 | n/a | /* Backward-compatible name */ |
|---|
| 28078 | n/a | Py_INCREF(&Movie_Type); |
|---|
| 28079 | n/a | PyModule_AddObject(m, "MovieType", (PyObject *)&Movie_Type); |
|---|
| 28080 | n/a | SGOutput_Type.ob_type = &PyType_Type; |
|---|
| 28081 | n/a | if (PyType_Ready(&SGOutput_Type) < 0) return; |
|---|
| 28082 | n/a | Py_INCREF(&SGOutput_Type); |
|---|
| 28083 | n/a | PyModule_AddObject(m, "SGOutput", (PyObject *)&SGOutput_Type); |
|---|
| 28084 | n/a | /* Backward-compatible name */ |
|---|
| 28085 | n/a | Py_INCREF(&SGOutput_Type); |
|---|
| 28086 | n/a | PyModule_AddObject(m, "SGOutputType", (PyObject *)&SGOutput_Type); |
|---|
| 28087 | n/a | #endif /* __LP64__ */ |
|---|
| 28088 | n/a | } |
|---|
| 28089 | n/a | |
|---|
| 28090 | n/a | /* ========================= End module _Qt ========================= */ |
|---|
| 28091 | n/a | |
|---|