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.

76 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1990-2003 Microsoft Corporation
  3. Module Name:
  4. transpos.h
  5. Abstract:
  6. This module contains defines and prototypes for the transpos.c module.
  7. Author:
  8. 22-Dec-1993 Wed 15:49:08 created
  9. [Environment:]
  10. GDI Device Driver - Plotter.
  11. [Notes:]
  12. Revision History:
  13. --*/
  14. #ifndef _TRANSPOS_
  15. #define _TRANSPOS_
  16. typedef struct _TPINFO {
  17. PPDEV pPDev;
  18. LPBYTE pSrc;
  19. LPBYTE pDest;
  20. LONG cbSrcScan;
  21. LONG cbDestScan;
  22. DWORD cySrc;
  23. DWORD DestXStart;
  24. } TPINFO, *PTPINFO;
  25. #define _RL_TPI(pTPInfo, cScan) \
  26. { \
  27. pTPInfo->pDest += (pTPInfo->cbDestScan * cScan) \
  28. pTPInfo->cbDestScan = -pTBInfo->cbDestScan; \
  29. pTPInfo->pSrc += (pTPInfo->cbSrcScan * (pTPInfo->cySrc - 1)); \
  30. pTPInfo->cbSrcScan = -pTBInfo->cbSrcScan; \
  31. }
  32. //
  33. // Function prototypes exported by transpos.c
  34. //
  35. BOOL
  36. TransPos4BPP(
  37. PTPINFO pTPInfo
  38. );
  39. BOOL
  40. TransPos1BPP(
  41. PTPINFO pTPInfo
  42. );
  43. #endif // _TRANSPOS_