jpegdecmarkers.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Description : SW Jpeg Decoder
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: jpegdecmarkers.h,v $
  23. -- $Revision: 1.1 $
  24. -- $Date: 2007/03/30 05:44:50 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. /*------------------------------------------------------------------------------
  28. Table of contents
  29. 1. Include headers
  30. 2. Module defines
  31. 3. Data types
  32. 4. Function prototypes
  33. ------------------------------------------------------------------------------*/
  34. #ifndef JPEGDECMARKERS_H
  35. #define JPEGDECMARKERS_H
  36. /*------------------------------------------------------------------------------
  37. 1. Include headers
  38. ------------------------------------------------------------------------------*/
  39. /*------------------------------------------------------------------------------
  40. 2. Module defines
  41. ------------------------------------------------------------------------------*/
  42. /* JPEG markers, table B.1 page 32 */
  43. enum
  44. {
  45. SOF0 = 0xC0,
  46. SOF1 = 0xC1,
  47. SOF2 = 0xC2,
  48. SOF3 = 0xC3,
  49. SOF5 = 0xC5,
  50. SOF6 = 0xC6,
  51. SOF7 = 0xC7,
  52. SOF9 = 0xC8,
  53. SOF10 = 0xCA,
  54. SOF11 = 0xCB,
  55. SOF13 = 0xCD,
  56. SOF14 = 0xCE,
  57. SOF15 = 0xCF,
  58. JPG = 0xC8,
  59. DHT = 0xC4,
  60. DAC = 0xCC,
  61. SOI = 0xD8,
  62. EOI = 0xD9,
  63. SOS = 0xDA,
  64. DQT = 0xDB,
  65. DNL = 0xDC,
  66. DRI = 0xDD,
  67. DHP = 0xDE,
  68. EXP = 0xDF,
  69. APP0 = 0xE0,
  70. APP1 = 0xE1,
  71. APP2 = 0xE2,
  72. APP3 = 0xE3,
  73. APP4 = 0xE4,
  74. APP5 = 0xE5,
  75. APP6 = 0xE6,
  76. APP7 = 0xE7,
  77. APP8 = 0xE8,
  78. APP9 = 0xE9,
  79. APP10 = 0xEA,
  80. APP11 = 0xEB,
  81. APP12 = 0xEC,
  82. APP13 = 0xED,
  83. APP14 = 0xEE,
  84. APP15 = 0xEF,
  85. JPG0 = 0xF0,
  86. JPG1 = 0xF1,
  87. JPG2 = 0xF2,
  88. JPG3 = 0xF3,
  89. JPG4 = 0xF4,
  90. JPG5 = 0xF5,
  91. JPG6 = 0xF6,
  92. JPG7 = 0xF7,
  93. JPG8 = 0xF8,
  94. JPG9 = 0xF9,
  95. JPG10 = 0xFA,
  96. JPG11 = 0xFB,
  97. JPG12 = 0xFC,
  98. JPG13 = 0xFD,
  99. COM = 0xFE,
  100. TEM = 0x01,
  101. RST0 = 0xD0,
  102. RST1 = 0xD1,
  103. RST2 = 0xD2,
  104. RST3 = 0xD3,
  105. RST4 = 0xD4,
  106. RST5 = 0xD5,
  107. RST6 = 0xD6,
  108. RST7 = 0xD7
  109. };
  110. /*------------------------------------------------------------------------------
  111. 3. Data types
  112. ------------------------------------------------------------------------------*/
  113. /*------------------------------------------------------------------------------
  114. 4. Function prototypes
  115. ------------------------------------------------------------------------------*/
  116. #endif /* #ifdef JPEGDECMARKERS_H */