Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
805 B

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1999 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * warpdemo.hxx
  8. *
  9. * Abstract:
  10. *
  11. * Image warping demo program - declarations
  12. *
  13. * Revision History:
  14. *
  15. * 01/18/1999 davidx
  16. * Created it.
  17. *
  18. \**************************************************************************/
  19. #ifndef _WARPDEMO_HXX
  20. #define _WARPDEMO_HXX
  21. #define PIXELSIZE 4
  22. #define ROUND2INT(x) ((INT) ((x) + 0.5))
  23. //
  24. // Print error message and exit program
  25. //
  26. VOID Error(const CHAR* fmt, ...);
  27. //
  28. // 1-dimensional image resampling
  29. //
  30. VOID
  31. Resample1D(
  32. VOID* src,
  33. INT srccnt,
  34. VOID* dst,
  35. INT dstcnt,
  36. INT pixstride,
  37. double* outpos
  38. );
  39. #endif // !_WARPDEMO_HXX