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 #import <Carbon/Carbon.h>
53 #include <QuickTime/Movies.h>
60 #endif /* __FIXMATH__ */
63 // quicktime structure definition
64 // this structure is part of the anim struct
66 typedef struct _QuicktimeMovie {
67 GWorldPtr offscreenGWorld;
68 PixMapHandle offscreenPixMap;
73 int movWidth, movHeight;
78 TimeValue *frameIndex;
89 char *get_valid_qtname(char *name);
92 // quicktime movie import functions
94 int anim_is_quicktime (char *name);
95 int startquicktime (struct anim *anim);
96 void free_anim_quicktime (struct anim *anim);
97 ImBuf *qtime_fetchibuf (struct anim *anim, int position);
99 // quicktime image import functions
101 int imb_is_a_quicktime (char *name);
102 ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags);
104 #endif // __QUICKTIME_IMP_H__