home *** CD-ROM | disk | FTP | other *** search
/ Compressed Image File Formats / CompressedImageFileFormatsJohnMiano.iso / pc / Library / include / jpmarker.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-17  |  3.0 KB  |  80 lines

  1. #ifndef __MARKERS_H
  2. #define __MARKERS_H
  3. //
  4. // Copyright (c) 1997,1998 Colosseum Builders, Inc.
  5. // All rights reserved.
  6. //
  7. // Colosseum Builders, Inc. makes no warranty, expressed or implied
  8. // with regards to this software. It is provided as is.
  9. //
  10. // See the README.TXT file that came with this software for restrictions
  11. // on the use and redistribution of this file or send E-mail to
  12. // info@colosseumbuilders.com
  13. //
  14.  
  15. //
  16. //  JPEG Markers as defined in Section B.1.1.3 of the JPEG standard.
  17. //
  18.  
  19. // These definitions do not include the preceding 0xFF byte.
  20. enum JpegMarkers
  21. {
  22.   // Start of Frame Markers, Non-Differential Huffman Coding
  23.   SOF0 = 0xC0,    // Baseline DCT
  24.   SOF1 = 0xC1,    // Sequential DCT
  25.   SOF2 = 0xC2,    // Progressive DCT
  26.   SOF3 = 0xC3,    // Spatial (sequential) lossless
  27.   // Start of Frame Markers, Differential Huffman Coding
  28.   SOF5 = 0xC5,    // Differential Sequential DCT
  29.   SOF6 = 0xC6,    // Differential Progressive DCT
  30.   SOF7 = 0xC7,    // Differential Spatial
  31.   // Start of Frame Markers, Non-Differential Arithmetic Coding
  32.   SOF9 = 0xC9,    // Extended Sequential DCT
  33.   SOFA = 0xCA,    // Progressive DCT
  34.   SOFB = 0xCB,    // Spacial (sequential) Lossless
  35.   // Start of Frame Markers, Differential Arithmetic Coding
  36.   SOFD = 0xCD,    // Differential Sequential DCT
  37.   SOFE = 0xCE,    // Differential Progressive DCT
  38.   SOFF = 0xCF,    // Differential Spatial
  39.   // Other Markers
  40.   DHT = 0xC4,     // Define Huffman Tables
  41.   DAC = 0xCC,     // Define Arithmetic Coding Conditions
  42.   RST0 = 0xD0,    // Restart Marker
  43.   RST1 = 0xD1,    // Restart Marker
  44.   RST2 = 0xD2,    // Restart Marker
  45.   RST3 = 0xD3,    // Restart Marker
  46.   RST4 = 0xD4,    // Restart Marker
  47.   RST5 = 0xD5,    // Restart Marker
  48.   RST6 = 0xD6,    // Restart Marker
  49.   RST7 = 0xD7,    // Restart Marker
  50.   SOI = 0xD8,     // Start of Image
  51.   EOI = 0xD9,     // End of Image
  52.   SOS = 0xDA,     // Start of Scan
  53.   DQT = 0xDB,     // Define Quantization Table
  54.   DNL = 0xDC,     // Define Number of Lines
  55.   DRI = 0xDD,     // Define Restart Intervale
  56.   DHP = 0xDE,     // Define Hierarchical Progression
  57.   EXP = 0xDF,     // Expand Reference Components
  58.   APP0 = 0xE0,    // Application Segments
  59.   APP1 = 0xE1,    // Application Segments
  60.   APP2 = 0xE2,    // Application Segments
  61.   APP3 = 0xE3,    // Application Segments
  62.   APP4 = 0xE4,    // Application Segments
  63.   APP5 = 0xE5,    // Application Segments
  64.   APP6 = 0xE6,    // Application Segments
  65.   APP7 = 0xE7,    // Application Segments
  66.   APP8 = 0xE8,    // Application Segments
  67.   APP9 = 0xE9,    // Application Segments
  68.   APPA = 0xEA,    // Application Segments
  69.   APPB = 0xEB,    // Application Segments
  70.   APPC = 0xEC,    // Application Segments
  71.   APPD = 0xED,    // Application Segments
  72.   APPE = 0xEE,    // Application Segments
  73.   APPF = 0xEF,    // Application Segments
  74.   // C8, F0-FD, 01, 02-BF reserved
  75.   COM = 0xFE,     // Comment
  76.   SOB = 0xFF,     // Start of Block - Byte that precedes all others - not in the standard.
  77. } ;
  78.  
  79. #endif
  80.