config.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Avisynth C Interface Version 0.20
  2. // Copyright 2003 Kevin Atkinson
  3. // This program is free software; you can redistribute it and/or modify
  4. // it under the terms of the GNU General Public License as published by
  5. // the Free Software Foundation; either version 2 of the License, or
  6. // (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 of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program; if not, write to the Free Software
  15. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
  16. // http://www.gnu.org/copyleft/gpl.html .
  17. //
  18. // As a special exception, I give you permission to link to the
  19. // Avisynth C interface with independent modules that communicate with
  20. // the Avisynth C interface solely through the interfaces defined in
  21. // avisynth_c.h, regardless of the license terms of these independent
  22. // modules, and to copy and distribute the resulting combined work
  23. // under terms of your choice, provided that every copy of the
  24. // combined work is accompanied by a complete copy of the source code
  25. // of the Avisynth C interface and Avisynth itself (with the version
  26. // used to produce the combined work), being distributed under the
  27. // terms of the GNU General Public License plus this exception. An
  28. // independent module is a module which is not derived from or based
  29. // on Avisynth C Interface, such as 3rd-party filters, import and
  30. // export plugins, or graphical user interfaces.
  31. #ifndef AVS_CONFIG_H
  32. #define AVS_CONFIG_H
  33. // Undefine this to get cdecl calling convention
  34. #define AVSC_USE_STDCALL 1
  35. // NOTE TO PLUGIN AUTHORS:
  36. // Because FRAME_ALIGN can be substantially higher than the alignment
  37. // a plugin actually needs, plugins should not use FRAME_ALIGN to check for
  38. // alignment. They should always request the exact alignment value they need.
  39. // This is to make sure that plugins work over the widest range of AviSynth
  40. // builds possible.
  41. #define FRAME_ALIGN 32
  42. #if defined(_M_AMD64) || defined(__x86_64)
  43. # define X86_64
  44. #elif defined(_M_IX86) || defined(__i386__)
  45. # define X86_32
  46. #else
  47. # error Unsupported CPU architecture.
  48. #endif
  49. #endif //AVS_CONFIG_H