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.

55 lines
1.9 KiB

  1. //-----------------------------------------------------------------------------
  2. // FILE NAME : FUMHDEF.H
  3. // AUTHER : 1996.08.08 FPL)Y.YUTANI
  4. // NOTE : MH,MH2 Compress Heder File for FJXL.DLL
  5. // : (for Windows NT V4.0)
  6. // MODIFY : for NT5.0 Minidriver Sep.3,1997 H.Ishida (FPL)
  7. //-----------------------------------------------------------------------------
  8. // COPYRIGHT(C) FUJITSU LIMITED 1996-1997
  9. #define RAMDOM_BIT 1
  10. #define NEXT_COLOR_WHITE 0x0000
  11. #define NEXT_COLOR_BLACK 0x0010
  12. #define ALL_WHITE 0x00
  13. #define ALL_BLACK 0xFF
  14. #define EOL_CODE 0x0010
  15. #define FILL_CODE 0x0000
  16. #define SAMELINE_CODE 0x0080
  17. #define SAMEPATN_CODE 0x0090
  18. #define CBITS_EOL_CODE 12
  19. #define CBITS_SAMELINE_CODE 12
  20. #define CBITS_SAMELINE_NUM 8
  21. #define CBITS_SAMELINE ( CBITS_SAMELINE_CODE + CBITS_SAMELINE_NUM )
  22. #define CBITS_SAMEPATN_CODE 12
  23. #define CBITS_SAMEPATN_BYTE 8
  24. #define CBITS_SAMEPATN_NUM 12
  25. #define CBITS_SAMEPATN ( CBITS_SAMEPATN_CODE + CBITS_SAMEPATN_BYTE + CBITS_SAMEPATN_NUM )
  26. #define SAMELINE_MAX 255
  27. #define SAMEPATN_MAX 2047
  28. #define RUNLENGTH_MAX 2560
  29. #define TERMINATE_MAX 64
  30. #define MAKEUP_TABLE_MAX 40
  31. // MH code table struction
  32. typedef struct {
  33. WORD wCode; // Run code
  34. WORD cBits; // Run length
  35. } CODETABLE;
  36. // Same pattern informaiton sturction
  37. typedef struct {
  38. DWORD dwPatn; // Same pattern image(8bits)
  39. DWORD dwPatnNum; // Same pattern number
  40. DWORD dwNextColor; // Color of next bit
  41. } PATNINFO;
  42. extern const CODETABLE WhiteMakeUpTable[];
  43. extern const CODETABLE WhiteTerminateTable[];
  44. extern const CODETABLE BlackMakeUpTable[];
  45. extern const CODETABLE BlackTerminateTable[];
  46. DWORD FjCountBits( BYTE *pTmp, DWORD cBitsTmp, DWORD cBitsMax, BOOL bWhite );
  47. VOID FjBitsCopy( BYTE *pTmp, DWORD cBitsTmp, DWORD dwCode, INT cCopyBits );
  48. // end of FUMHDEF.H