6 * ***** BEGIN GPL 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.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * The Original Code is Copyright (C) 2002-2003 by TNCCI Inc.
23 * All rights reserved.
25 * The Original Code is: all of this file.
27 * Contributor(s): none yet.
29 * ***** END GPL LICENSE BLOCK *****
33 #ifndef __QUICKTIME_IMP_H__
34 #define __QUICKTIME_IMP_H__
42 #include "../imbuf/IMB_imbuf.h"
43 #include "../imbuf/IMB_imbuf_types.h"
48 #elif defined(__APPLE__)
49 #define __CARBONSOUND__
50 #import <Carbon/Carbon.h>
51 #include <QuickTime/Movies.h>
58 #endif /* __FIXMATH__ */
61 // quicktime structure definition
62 // this structure is part of the anim struct
64 typedef struct _QuicktimeMovie {
65 GWorldPtr offscreenGWorld;
66 PixMapHandle offscreenPixMap;
71 int movWidth, movHeight;
76 TimeValue *frameIndex;
87 char *get_valid_qtname(char *name);
90 // quicktime movie import functions
92 int anim_is_quicktime (char *name);
93 int startquicktime (struct anim *anim);
94 void free_anim_quicktime (struct anim *anim);
95 ImBuf *qtime_fetchibuf (struct anim *anim, int position);
97 // quicktime image import functions
99 int imb_is_a_quicktime (char *name);
100 ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags);
102 #endif // __QUICKTIME_IMP_H__