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 |
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 |
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 |
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 |
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 |
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 |
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 |
OSType jit_qt_utils_str2type | ( | char * | typestr | ) |
Given a C string, return a four-char code.
typestr | C string |
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 |
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 |
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 |
long jit_qt_utils_trackmedia_dispose | ( | Track | track | ) |
Removes a Track, with associated Media, from a QuickTime Movie.
track | QuickTime Track |
Media jit_qt_utils_trackmedia_get | ( | Track | track | ) |
Returns the Media for a specified Track.
track | QuickTime Track |
t_symbol* jit_qt_utils_trackname_get | ( | Track | track | ) |
Get the name of a QuickTime Track.
track | QuickTime Track |
void jit_qt_utils_trackname_set | ( | Track | track, |
t_symbol * | s | ||
) |
Set the name of a QuickTime Track.
track | QuickTime Track |
s | track name |
t_symbol* jit_qt_utils_tracktype_get | ( | Track | track | ) |
Get the Media Type name from a QuickTime Track.
track | 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.
track | QuickTime Track |
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 |