Source code of Windows XP (NT5)
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.

80 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. fasttiff.h
  5. Abstract:
  6. This module defines and exposes Fast TIFF structures.
  7. Author:
  8. Rafael Lisitsa (RafaelL) 14-Aug-1996
  9. Revision History:
  10. --*/
  11. #define LINE_LENGTH 1728
  12. #define MaxColorTransPerLine (LINE_LENGTH + 3)
  13. #define DO_NOT_TEST_LENGTH 0
  14. #define DO_TEST_LENGTH 1
  15. // this makes BLACK_COLOR = 1
  16. #define WHITE_COLOR 0
  17. #define EOL_FOUND 99
  18. // makeup/terminate
  19. #define MAKEUP_CODE 1
  20. #define TERMINATE_CODE 0
  21. // additional useful codes
  22. #define ERROR_CODE 30
  23. #define LOOK_FOR_EOL_CODE 31
  24. #define EOL_FOUND_CODE 32
  25. #define NO_MORE_RECORDS 33
  26. #define ERROR_PREFIX 7
  27. #define LOOK_FOR_EOL_PREFIX 6
  28. #define PASS_PREFIX 5
  29. #define HORIZ_PREFIX 4
  30. #define TIFF_SCAN_SEG_END 1
  31. #define TIFF_SCAN_FAILURE 2
  32. #define TIFF_SCAN_SUCCESS 3
  33. #define MINUS_ONE_DWORD ( (DWORD) 0xffffffff )
  34. #define MINUS_ONE_BYTE ( (BYTE) 0xff )
  35. typedef struct {
  36. char Tail :4;
  37. char Value :4;
  38. } PREF_BYTE;
  39. BOOL
  40. FindNextEol(
  41. LPDWORD lpdwStartPtr,
  42. BYTE dwStartBit,
  43. LPDWORD lpdwEndPtr,
  44. LPDWORD *lpdwResPtr,
  45. BYTE *ResBit,
  46. BOOL fTestlength,
  47. BOOL *fError
  48. );