Blender  V2.59
quicktime_import.h
Go to the documentation of this file.
00001 /*
00002  * Quicktime_import.h
00003  *
00004  * $Id: quicktime_import.h 35235 2011-02-27 20:01:38Z jesterking $
00005  *
00006  * ***** BEGIN GPL LICENSE BLOCK *****
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * as published by the Free Software Foundation; either version 2
00011  * of the License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software Foundation,
00020  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00021  *
00022  * The Original Code is Copyright (C) 2002-2003 by TNCCI Inc.
00023  * All rights reserved.
00024  *
00025  * The Original Code is: all of this file.
00026  *
00027  * Contributor(s): none yet.
00028  *
00029  * ***** END GPL LICENSE BLOCK *****
00030  */
00031 
00038 #ifndef __QUICKTIME_IMP_H__
00039 #define __QUICKTIME_IMP_H__
00040 
00041 #define __AIFF__
00042 
00043 #include "../imbuf/IMB_imbuf.h"
00044 #include "../imbuf/IMB_imbuf_types.h"
00045 
00046 #ifndef USE_QTKIT
00047 #ifndef __MOVIES__
00048 #ifdef _WIN32
00049 #include <Movies.h>
00050 #elif defined(__APPLE__)
00051 #define __CARBONSOUND__
00052 #import <Carbon/Carbon.h>
00053 #include <QuickTime/Movies.h>
00054 #endif
00055 #endif //__MOVIES__
00056 #endif //USE_QTKIT
00057 
00058 #ifdef _WIN32
00059 #ifndef __FIXMATH__
00060 #include <FixMath.h>
00061 #endif /* __FIXMATH__ */
00062 #endif /* _WIN32 _ */
00063 
00064 
00065 char *get_valid_qtname(char *name);
00066 
00067 
00068 // quicktime movie import functions
00069 
00070 int             anim_is_quicktime (const char *name);
00071 int             startquicktime (struct anim *anim);
00072 void    free_anim_quicktime (struct anim *anim);
00073 ImBuf  *qtime_fetchibuf (struct anim *anim, int position);
00074 
00075 // quicktime image import functions
00076 
00077 int             imb_is_a_quicktime (char *name);
00078 ImBuf  *imb_quicktime_decode(unsigned char *mem, int size, int flags);
00079 
00080 #endif  // __QUICKTIME_IMP_H__