6 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version. The Blender
12 * Foundation also sells licenses for use in proprietary software under
13 * the Blender License. See http://www.blender.org/BL/ for information
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software Foundation,
23 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 * The Original Code is Copyright (C) 2002-2003 by TNCCI Inc.
26 * All rights reserved.
28 * The Original Code is: all of this file.
30 * Contributor(s): none yet.
32 * ***** END GPL/BL DUAL LICENSE BLOCK *****
36 #ifndef __QUICKTIME_IMP_H__
37 #define __QUICKTIME_IMP_H__
45 #include "../imbuf/IMB_imbuf.h"
46 #include "../imbuf/IMB_imbuf_types.h"
51 #elif defined(__APPLE__)
52 #include <QuickTime/Movies.h>
59 #endif /* __FIXMATH__ */
62 // quicktime structure definition
63 // this structure is part of the anim struct
65 typedef struct _QuicktimeMovie {
66 GWorldPtr offscreenGWorld;
67 PixMapHandle offscreenPixMap;
72 int movWidth, movHeight;
77 TimeValue *frameIndex;
89 // quicktime movie import functions
91 int anim_is_quicktime (char *name);
92 int startquicktime (struct anim *anim);
93 void free_anim_quicktime (struct anim *anim);
94 ImBuf *qtime_fetchibuf (struct anim *anim, int position);
96 // quicktime image import functions
98 int imb_is_a_quicktime (char *name);
99 ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags);
101 #endif // __QUICKTIME_IMP_H__