// Avisynth C Interface Version 0.201// Copyright 2003 Kevin Atkinson23// This program is free software; you can redistribute it and/or modify4// it under the terms of the GNU General Public License as published by5// the Free Software Foundation; either version 2 of the License, or6// (at your option) any later version.7//8// This program is distributed in the hope that it will be useful,9// but WITHOUT ANY WARRANTY; without even the implied warranty of10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11// GNU General Public License for more details.12//13// You should have received a copy of the GNU General Public License14// along with this program; if not, write to the Free Software15// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit16// http://www.gnu.org/copyleft/gpl.html .17//18// As a special exception, I give you permission to link to the19// Avisynth C interface with independent modules that communicate with20// the Avisynth C interface solely through the interfaces defined in21// avisynth_c.h, regardless of the license terms of these independent22// modules, and to copy and distribute the resulting combined work23// under terms of your choice, provided that every copy of the24// combined work is accompanied by a complete copy of the source code25// of the Avisynth C interface and Avisynth itself (with the version26// used to produce the combined work), being distributed under the27// terms of the GNU General Public License plus this exception. An28// independent module is a module which is not derived from or based29// on Avisynth C Interface, such as 3rd-party filters, import and30// export plugins, or graphical user interfaces.3132#ifndef AVS_CAPI_H33#define AVS_CAPI_H3435#ifdef __cplusplus36# define EXTERN_C extern "C"37#else38# define EXTERN_C39#endif4041#ifndef AVSC_USE_STDCALL42# define AVSC_CC __cdecl43#else44# define AVSC_CC __stdcall45#endif4647#define AVSC_INLINE static __inline4849#ifdef BUILDING_AVSCORE50# define AVSC_EXPORT EXTERN_C51# define AVSC_API(ret, name) EXTERN_C __declspec(dllexport) ret AVSC_CC name52#else53# define AVSC_EXPORT EXTERN_C __declspec(dllexport)54# ifndef AVSC_NO_DECLSPEC55# define AVSC_API(ret, name) EXTERN_C __declspec(dllimport) ret AVSC_CC name56# else57# define AVSC_API(ret, name) typedef ret (AVSC_CC *name##_func)58# endif59#endif6061#endif //AVS_CAPI_H626364