Max 5 API Reference
|
Functions | |
| void | jit_gworld_clear (GWorldPtr gp, long c) |
| Set all pixels in a QuickDraw GWorld to a specified 32-bit value. | |
| long | jit_gworld_can_coerce_matrix (t_gworld_conv_info *gc, void *m) |
| Determine whether a Jitter matrix can be wrapped in a QuickDraw GWorld (without a copy). | |
| long | jit_gworld_matrix_equal_dim (GWorldPtr gp, void *m) |
| Test for equality of dimensions between a QuickDraw GWorld and a Jitter matrix Note: supports UYVY matrices. | |
| t_jit_err | jit_coerce_matrix_pixmap (void *m, PixMap *pm) |
| Generate a QuickDraw PixMap for a given Jitter matrix. | |
| t_jit_err | jit_qt_utils_moviedataref_create (t_symbol **sname, short *path, Handle *dataRef, OSType *dataRefType) |
| Creates a new Data Reference from a file path, returning it and the filename/path pair. | |
| Movie | jit_qt_utils_moviefile_create (t_symbol **sname, short *path, long flags, DataHandler *dhandler) |
| Creates a new QuickTime Movie from a file path, optionally returning the Data Handler and/or filename/path pair. | |
| Boolean | jit_qt_utils_tempfile (char *name, Handle *dataRef, OSType *dataRefType) |
| Returns a QuickTime-compatible Data Reference for a named file in the system's temporary files directory. | |
| Movie | jit_qt_utils_tempmoviefile_create (t_symbol **sname, short *path, long flags, DataHandler *dhandler) |
| Creates a new QuickTime Movie in the system's temporary file directory, optionally returning the movie's data handler. | |
| long | jit_qt_utils_moviefile_close (Movie movie, DataHandler dhandler) |
| Closes a QuickTime Movie previously created with jit_qt_utils_moviefile_create or jit_qt_utils_tempmoviefile_create, adding the necessary movie resources. | |
| Track | jit_qt_utils_trackmedia_add (Movie movie, long type, Rect *trackframe, long vol, long timescale) |
| Adds a new Track, with associated Media, to a QuickTime Movie. | |
| Media | jit_qt_utils_trackmedia_get (Track track) |
| Returns the Media for a specified Track. | |
| long | jit_qt_utils_trackmedia_dispose (Track track) |
| Removes a Track, with associated Media, from a QuickTime Movie. | |
| void | jit_qt_utils_type2str (OSType type, char *typestr) |
| Given a four-char type code, return a 0-terminated C string. | |
| OSType | jit_qt_utils_str2type (char *typestr) |
| Given a C string, return a four-char code. | |
| void | jit_qt_utils_trackname_set (Track track, t_symbol *s) |
| Set the name of a QuickTime Track. | |
| t_symbol * | jit_qt_utils_trackname_get (Track track) |
| Get the name of a QuickTime Track. | |
| t_symbol * | jit_qt_utils_tracktype_get (Track track) |
| Get the Media Type name from a QuickTime Track. | |
| t_symbol * | jit_qt_utils_tracktypecode_get (Track track) |
| Get the four-char code for a Track's Media Type, formatted as a symbol. | |
| t_jit_err jit_coerce_matrix_pixmap | ( | void * | m, | |
| PixMap * | pm | |||
| ) |
Generate a QuickDraw PixMap for a given Jitter matrix.
| m | input t_jit_matrix pointer | |
| pm | on output, a pointer to the generated PixMap |
Definition at line 165 of file jit.gworld.c.
References t_jit_matrix_info::dim, t_jit_matrix_info::dimstride, and jit_object_method().

| long jit_gworld_can_coerce_matrix | ( | t_gworld_conv_info * | gc, | |
| void * | m | |||
| ) |
Determine whether a Jitter matrix can be wrapped in a QuickDraw GWorld (without a copy).
| gc | optional pointer to a t_gworld_conv_info struct | |
| m | input t_jit_matrix pointer |
Definition at line 85 of file jit.gworld.c.
References t_jit_matrix_info::dimstride, JIT_MATRIX_CONVERT_DSTDIM, JIT_MATRIX_CONVERT_INTERP, JIT_MATRIX_CONVERT_SRCDIM, jit_object_method(), t_jit_matrix_info::planecount, and t_jit_matrix_info::type.
Referenced by jit_qt_record_matrix_calc().

| void jit_gworld_clear | ( | GWorldPtr | gp, | |
| long | c | |||
| ) |
Set all pixels in a QuickDraw GWorld to a specified 32-bit value.
| gp | QuickDraw GWorldPtr | |
| c | clear color |
Definition at line 21 of file jit.gworld.c.
| long jit_gworld_matrix_equal_dim | ( | GWorldPtr | gp, | |
| void * | m | |||
| ) |
Test for equality of dimensions between a QuickDraw GWorld and a Jitter matrix Note: supports UYVY matrices.
| gp | input GWorldPtr | |
| m | input t_jit_matrix pointer |
Definition at line 123 of file jit.gworld.c.
References t_jit_matrix_info::dim, and jit_object_method().
Referenced by jit_qt_record_matrix_calc().

| t_jit_err jit_qt_utils_moviedataref_create | ( | t_symbol ** | sname, | |
| short * | path, | |||
| Handle * | dataRef, | |||
| OSType * | dataRefType | |||
| ) |
Creates a new Data Reference from a file path, returning it and the filename/path pair.
| sname | (in/out) in: file name or fully qualified path in; out: file name of opened movie file | |
| path | (in/out) in: only necessary if sname is unqualified; out: path of opened movie file | |
| dataRef | (on output) QuickTime-compatible Data Reference for the specified file name, must be disposed by the caller | |
| dataRefType | (on output) Data Reference type |
Definition at line 108 of file jit.qt.utils.c.
References gensym(), MAX_PATH_CHARS, path_getdefault(), and saveasdialog_extended().
Referenced by jit_qt_utils_moviefile_create().

| long jit_qt_utils_moviefile_close | ( | Movie | movie, | |
| DataHandler | dhandler | |||
| ) |
Closes a QuickTime Movie previously created with jit_qt_utils_moviefile_create or jit_qt_utils_tempmoviefile_create, adding the necessary movie resources.
| movie | QuickTime Movie, as returned from one of the above-named functions | |
| dhandler | data handler for the Movie, as returned from one of the above-named functions |
Definition at line 346 of file jit.qt.utils.c.
| Movie jit_qt_utils_moviefile_create | ( | t_symbol ** | sname, | |
| short * | path, | |||
| long | flags, | |||
| DataHandler * | dhandler | |||
| ) |
Creates a new QuickTime Movie from a file path, optionally returning the Data Handler and/or filename/path pair.
| sname | (in/out) in: file name or fully qualified path in; out: file name of opened movie file | |
| path | (in/out, optional) in: only necessary if sname is unqualified; out: path of opened movie file | |
| flags | movie file creation flags (see QuickTime Documentation for more information) if no flags are specified, the following flags are used: createMovieFileDeleteCurFile | createMovieFileDontCreateResFile | |
| dhandler | (on output, optional) data handler for the opened movie file |
Definition at line 162 of file jit.qt.utils.c.
References jit_qt_utils_moviedataref_create().

| OSType jit_qt_utils_str2type | ( | char * | typestr | ) |
Given a C string, return a four-char code.
| typestr | C string |
Definition at line 574 of file jit.qt.utils.c.
References MIN.
| Boolean jit_qt_utils_tempfile | ( | char * | name, | |
| Handle * | dataRef, | |||
| OSType * | dataRefType | |||
| ) |
Returns a QuickTime-compatible Data Reference for a named file in the system's temporary files directory.
| name | file name | |
| dataRef | (on output) QuickTime-compatible Data Reference for the specified file name, must be disposed by the caller | |
| dataRefType | (on output) Data Reference type |
Definition at line 198 of file jit.qt.utils.c.
References error(), jit_object_free(), jit_object_method(), jit_object_new(), MAX_PATH_CHARS, path_nameconform(), PATH_STYLE_MAX, PATH_STYLE_NATIVE, PATH_TYPE_ABSOLUTE, PATH_TYPE_PATH, and sysmem_freeptr().
Referenced by jit_qt_utils_tempmoviefile_create().

| Movie jit_qt_utils_tempmoviefile_create | ( | t_symbol ** | sname, | |
| short * | path, | |||
| long | flags, | |||
| DataHandler * | dhandler | |||
| ) |
Creates a new QuickTime Movie in the system's temporary file directory, optionally returning the movie's data handler.
| sname | (in/out) in: file name or fully qualified path in; out: file name of opened movie file | |
| path | (in/out, optional) in: only necessary if sname is unqualified; out: path of opened movie file | |
| flags | movie file creation flags (see QuickTime Documentation for more information) if no flags are specified, the following flags are used: createMovieFileDeleteCurFile | createMovieFileDontCreateResFile | |
| dhandler | (on output, optional) data handler for the opened movie file |
Definition at line 298 of file jit.qt.utils.c.
References gensym(), jit_qt_utils_tempfile(), and path_getdefault().

| Track jit_qt_utils_trackmedia_add | ( | Movie | movie, | |
| long | type, | |||
| Rect * | trackframe, | |||
| long | vol, | |||
| long | timescale | |||
| ) |
Adds a new Track, with associated Media, to a QuickTime Movie.
| movie | QuickTime Movie | |
| type | four-char code specifying the track/media type to be added (see QuickTime Documentation) | |
| trackframe | the new Track's Rect, relative to the Movie's Rect | |
| vol | initial value for the sound volume in the new Track | |
| timescale | the new Track's timescale |
Definition at line 451 of file jit.qt.utils.c.
| long jit_qt_utils_trackmedia_dispose | ( | Track | track | ) |
Removes a Track, with associated Media, from a QuickTime Movie.
| track | QuickTime Track |
Definition at line 531 of file jit.qt.utils.c.
| Media jit_qt_utils_trackmedia_get | ( | Track | track | ) |
Returns the Media for a specified Track.
| track | QuickTime Track |
Definition at line 499 of file jit.qt.utils.c.
| t_symbol* jit_qt_utils_trackname_get | ( | Track | track | ) |
Get the name of a QuickTime Track.
| track | QuickTime Track |
Definition at line 627 of file jit.qt.utils.c.
References gensym().

| void jit_qt_utils_trackname_set | ( | Track | track, | |
| t_symbol * | s | |||
| ) |
Set the name of a QuickTime Track.
| track | QuickTime Track | |
| s | track name |
Definition at line 604 of file jit.qt.utils.c.
References t_symbol::s_name.
| t_symbol* jit_qt_utils_tracktype_get | ( | Track | track | ) |
Get the Media Type name from a QuickTime Track.
| track | QuickTime Track |
Definition at line 659 of file jit.qt.utils.c.
References gensym().

| t_symbol* jit_qt_utils_tracktypecode_get | ( | Track | track | ) |
Get the four-char code for a Track's Media Type, formatted as a symbol.
| track | QuickTime Track |
Definition at line 687 of file jit.qt.utils.c.
References gensym(), and jit_qt_utils_type2str().

| void jit_qt_utils_type2str | ( | OSType | type, | |
| char * | typestr | |||
| ) |
Given a four-char type code, return a 0-terminated C string.
| type | four-char code | |
| typestr | (on output) 0-terminated C string |
Definition at line 559 of file jit.qt.utils.c.
Referenced by jit_qt_movie_matrix_to_image(), and jit_qt_utils_tracktypecode_get().