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.

101 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1990-1991 Microsoft Corporation
  3. Module Name:
  4. htrender.h
  5. Abstract:
  6. This module contains halftone rendering declarations
  7. Author:
  8. 28-Mar-1992 Sat 20:58:50 updated -by- Daniel Chou (danielc)
  9. Update for VGA16 support, so it intenally compute at 4 primaries.
  10. 22-Jan-1991 Tue 12:46:48 created -by- Daniel Chou (danielc)
  11. [Environment:]
  12. GDI Device Driver - Halftone.
  13. [Notes:]
  14. Revision History:
  15. --*/
  16. #ifndef _HTRENDER_
  17. #define _HTRENDER_
  18. #define GET_PHTSI_CXSIZE(pHTSI) (pHTSI->ScanLineDelta)
  19. #define VALIDATE_HTSI_SRC 0
  20. #define VALIDATE_HTSI_DEST 1
  21. #define VALIDATE_HTSI_MASK 2
  22. //
  23. // Function prototypes
  24. //
  25. BOOL
  26. HTENTRY
  27. ValidateRGBBitFields(
  28. PBFINFO pBFInfo
  29. );
  30. LONG
  31. HTENTRY
  32. ValidateHTSI(
  33. PHALFTONERENDER pHR,
  34. UINT ValidateMode
  35. );
  36. LONG
  37. HTENTRY
  38. ComputeBytesPerScanLine(
  39. UINT SurfaceFormat,
  40. UINT AlignmentBytes,
  41. DWORD WidthInPel
  42. );
  43. BOOL
  44. HTENTRY
  45. IntersectRECTL(
  46. PRECTL prclA,
  47. PRECTL prclB
  48. );
  49. LONG
  50. HTENTRY
  51. ComputeByteOffset(
  52. UINT SurfaceFormat,
  53. LONG xLeft,
  54. LPBYTE pPixelInByteSkip
  55. );
  56. LONG
  57. HTENTRY
  58. AAHalftoneBitmap(
  59. PHALFTONERENDER pHR
  60. );
  61. #endif // _HTRENDER_