EncJpegMarkers.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. -- Abstract :
  17. --
  18. ------------------------------------------------------------------------------*/
  19. /*------------------------------------------------------------------------------
  20. Table of contents
  21. 1. Include headers
  22. 2. Module defines
  23. 3. Data types
  24. 4. Function prototypes
  25. ------------------------------------------------------------------------------*/
  26. #ifndef __ENC_JPEG_MARKERS_H__
  27. #define __ENC_JPEG_MARKERS_H__
  28. /*------------------------------------------------------------------------------
  29. 1. Include headers
  30. ------------------------------------------------------------------------------*/
  31. #include "basetype.h"
  32. /*------------------------------------------------------------------------------
  33. 2. Module defines
  34. ------------------------------------------------------------------------------*/
  35. /* JPEG markers, table B.1 page 32 */
  36. enum
  37. {
  38. SOI = 0xFFD8, /* Start of Image */
  39. DQT = 0xFFDB, /* Define Quantization Table(s) */
  40. SOF0 = 0xFFC0, /* Start of Frame */
  41. DRI = 0xFFDD, /* Define Restart Interval */
  42. RST0 = 0xFFD0, /* Restart marker 0 */
  43. RST1 = 0xFFD1, /* Restart marker 1 */
  44. RST2 = 0xFFD2, /* Restart marker 2 */
  45. RST3 = 0xFFD3, /* Restart marker 3 */
  46. RST4 = 0xFFD4, /* Restart marker 4 */
  47. RST5 = 0xFFD5, /* Restart marker 5 */
  48. RST6 = 0xFFD6, /* Restart marker 6 */
  49. RST7 = 0xFFD7, /* Restart marker 7 */
  50. DHT = 0xFFC4, /* Define Huffman Table(s) */
  51. SOS = 0xFFDA, /* Start of Scan */
  52. EOI = 0xFFD9, /* End of Image */
  53. APP0 = 0xFFE0, /* APP0 Marker */
  54. COM = 0xFFFE /* Comment marker */
  55. };
  56. /*------------------------------------------------------------------------------
  57. 3. Data types
  58. ------------------------------------------------------------------------------*/
  59. /*------------------------------------------------------------------------------
  60. 4. Function prototypes
  61. ------------------------------------------------------------------------------*/
  62. #endif