hermconf.inc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. Free Pascal port of the Hermes C library.
  3. Copyright (C) 2001-2003 Nikolay Nikolov ([email protected])
  4. Original C version by Christian Nentwich ([email protected])
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. }
  17. Const
  18. HERMES_INITIAL = 8; { Initial size and growth of dynamic }
  19. HERMES_GROWTH = 4; { array structures }
  20. A_32 = 3; { oh yes, hardcode it... tsk tsk tsk }
  21. R_32 = 2; { Position of R,G,B in a 32 bit dword }
  22. G_32 = 1;
  23. B_32 = 0;
  24. R_24 = 2; { Position of R,G,B in a 24 bit pixel }
  25. G_24 = 1;
  26. B_24 = 0;
  27. { #define DWORD_BYTE0(s) s /* Shift values to get to bytes in dwords */
  28. #define DWORD_BYTE1(s) ((s)<<8) /* Check out the bracket paranoia to */
  29. #define DWORD_BYTE2(s) ((s)<<16) /* prevent bugs :)) */
  30. #define DWORD_BYTE3(s) ((s)<<24)
  31. #define DWORD_SHORT0(s) s
  32. #define DWORD_SHORT1(s) ((s)<<16)
  33. #define DWORD_SHORT0(s) s
  34. #define DWORD_SHORT1(s) ((s)<<16)}