Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Haarsma <phaseIV@zonnet.nl>2003-04-28 06:15:46 +0400
committerRob Haarsma <phaseIV@zonnet.nl>2003-04-28 06:15:46 +0400
commit706ccc040159356056d423c54a920cfcd1681ebf (patch)
treee17725338956c61e05274744c16f1f71699b57c4 /source/blender/quicktime/quicktime_import.h
parent1ab53ee998a266ab89d0bc33e2eb2fb1d69b1c4c (diff)
Added Quicktime support for OSX and Windows.
This code allows you to load Quicktime images and movies as textures and render animations to Quicktime movies. Note that the selected output codec is *not* saved in the blendfile. To enable Quicktime functionality you need the SDK from Apple: OSX: ftp://ftp.apple.com/developer/Development_Kits/QT6SDK_Mac.hqx Win: ftp://ftp.apple.com/developer/Development_Kits/QT6SDK_Win.hqx Add the \QTDevWin\CIncludes and \QTDevWin\Libraries directories from this SDK to your build environment. Enable the WITH_QUICKTIME compile flag in the following directories: bf\blender\source\blender\imbuf bf\blender\source\blender\src bf\blender\source\blender\render bf\blender\source\creator
Diffstat (limited to 'source/blender/quicktime/quicktime_import.h')
-rw-r--r--source/blender/quicktime/quicktime_import.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/source/blender/quicktime/quicktime_import.h b/source/blender/quicktime/quicktime_import.h
new file mode 100644
index 00000000000..2a2e35fd671
--- /dev/null
+++ b/source/blender/quicktime/quicktime_import.h
@@ -0,0 +1,95 @@
+/**
+ * Quicktime_import.h
+ *
+ * $Id$
+ *
+ * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version. The Blender
+ * Foundation also sells licenses for use in proprietary software under
+ * the Blender License. See http://www.blender.org/BL/ for information
+ * about this.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * The Original Code is Copyright (C) 2002-2003 by TNCCI Inc.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): none yet.
+ *
+ * ***** END GPL/BL DUAL LICENSE BLOCK *****
+ */
+
+
+#ifndef __QUICKTIME_IMP_H__
+#define __QUICKTIME_IMP_H__
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "../imbuf/IMB_imbuf.h"
+#include "../imbuf/IMB_imbuf_types.h"
+
+#ifndef __MOVIES__
+#include <Movies.h>
+#endif
+
+#ifdef _WIN32
+#ifndef __FIXMATH__
+#include <FixMath.h>
+#endif /* __FIXMATH__ */
+#endif /* _WIN32 _ */
+
+// quicktime structure definition
+// this structure is part of the anim struct
+
+typedef struct _QuicktimeMovie {
+ GWorldPtr offscreenGWorld;
+ PixMapHandle offscreenPixMap;
+
+ Movie movie;
+ short movieRefNum;
+ short movieResId;
+ int movWidth, movHeight;
+ Rect movieBounds;
+
+ int framecount;
+
+ TimeValue *frameIndex;
+ ImBuf *ibuf;
+
+ Media theMedia;
+ Track theTrack;
+ long trackIndex;
+ short depth;
+
+ int have_gw; //ugly
+} QuicktimeMovie;
+
+
+// quicktime movie import functions
+
+int anim_is_quicktime (char *name);
+int startquicktime (struct anim *anim);
+void free_anim_quicktime (struct anim *anim);
+ImBuf *qtime_fetchibuf (struct anim *anim, int position);
+
+// quicktime image import functions
+
+int imb_is_a_quicktime (char *name);
+ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags);
+
+#endif // __QUICKTIME_IMP_H__