diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2003-09-10 01:26:34 +0400 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2003-09-10 01:26:34 +0400 |
commit | 422f4faa1b3698335fe200270b803dba929f6cd3 (patch) | |
tree | be9e4ab1ea69a665c8c0c3464b071a87b4821df4 /source/blender | |
parent | 5572323a3a4070a32ca82cf018ea312208730d5b (diff) |
moved Quicktime init function from creator.c
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 10 | ||||
-rw-r--r-- | source/blender/quicktime/apple/quicktime_import.c | 23 |
2 files changed, 33 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 059e7353c3f..0e77fe2b73d 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -515,4 +515,14 @@ void IMB_freezbufImBuf(struct ImBuf * ibuf); */ void IMB_rectfill(unsigned int *drect, unsigned int *srect, int x, int value); + +#ifdef WITH_QUICKTIME +/** + * + * @attention Defined in quicktime_import.c + */ +void init_quicktime(void); + +#endif //WITH_QUICKTIME + #endif diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c index 42cd9407782..eeaa8c4189e 100644 --- a/source/blender/quicktime/apple/quicktime_import.c +++ b/source/blender/quicktime/apple/quicktime_import.c @@ -36,6 +36,7 @@ #include "IMB_anim.h" #include "BLO_sys_types.h" +#include "BKE_global.h" #ifdef __APPLE__ #include <QuickTime/Movies.h> @@ -58,6 +59,28 @@ #define QTIME_DEBUG 0 +void init_quicktime(void) +{ +#ifdef _WIN32 + if (InitializeQTML(0) != noErr) + G.have_quicktime = FALSE; + else + G.have_quicktime = TRUE; +#endif /* _WIN32 */ + + /* Initialize QuickTime */ +#if defined(_WIN32) || defined (__APPLE__) + if (EnterMovies() != noErr) + G.have_quicktime = FALSE; + else +#endif /* _WIN32 || __APPLE__ */ +#ifdef __linux__ + /* inititalize quicktime codec registry */ + lqt_registry_init(); +#endif + G.have_quicktime = TRUE; +} + int anim_is_quicktime (char *name) { FSSpec theFSSpec; |