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__
43 #include "../imbuf/IMB_imbuf.h"
44 #include "../imbuf/IMB_imbuf_types.h"
49 #elif defined(__APPLE__)
50 #include <QuickTime/Movies.h>
57 #endif /* __FIXMATH__ */
60 // quicktime structure definition
61 // this structure is part of the anim struct
63 typedef struct _QuicktimeMovie {
64 GWorldPtr offscreenGWorld;
65 PixMapHandle offscreenPixMap;
70 int movWidth, movHeight;
75 TimeValue *frameIndex;
87 // quicktime movie import functions
89 int anim_is_quicktime (char *name);
90 int startquicktime (struct anim *anim);
91 void free_anim_quicktime (struct anim *anim);
92 ImBuf *qtime_fetchibuf (struct anim *anim, int position);
94 // quicktime image import functions
96 int imb_is_a_quicktime (char *name);
97 ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags);
99 #endif // __QUICKTIME_IMP_H__