1 /* libhpojip -- HP OfficeJet image-processing library. */
3 /* Copyright (C) 1995-2002 Hewlett-Packard Company
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * is provided AS IS, WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, and
13 * NON-INFRINGEMENT. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20 * In addition, as a special exception, Hewlett-Packard Company
21 * gives permission to link the code of this program with any
22 * version of the OpenSSL library which is distributed under a
23 * license identical to that listed in the included LICENSE.OpenSSL
24 * file, and distribute linked combinations including the two.
25 * You must obey the GNU General Public License in all respects
26 * for all of the code used other than OpenSSL. If you modify
27 * this file, you may extend this exception to your version of the
28 * file, but you are not obligated to do so. If you do not wish to
29 * do so, delete this exception statement from your version.
32 /* Original author: Mark Overton and others.
34 * Ported to Linux by David Paschal.
37 /*____________________________________________________________________________
39 | xjpg_mrk.h | Markers used in JPEG images |
40 |____________|_______________________________________________________________|
42 | Mark Overton, Feb 1996 |
43 |____________________________________________________________________________|
46 #define MARKER_NONE 0x00
47 #define MARKER_END_FILE 0x100
49 #define MARKER_SOF0 0xc0
50 #define MARKER_SOF1 0xc1
51 #define MARKER_SOF2 0xc2
52 #define MARKER_SOF3 0xc3
53 #define MARKER_SOF5 0xc5
54 #define MARKER_SOF6 0xc6
55 #define MARKER_SOF7 0xc7
56 #define MARKER_SOF8 0xc8
57 #define MARKER_SOF9 0xc9
58 #define MARKER_SOFA 0xca
59 #define MARKER_SOFB 0xcb
60 #define MARKER_SOFD 0xcd
61 #define MARKER_SOFE 0xce
62 #define MARKER_SOFF 0xcf
64 #define MARKER_DHT 0xc4
65 #define MARKER_DAC 0xcc
67 #define MARKER_RST0 0xd0
68 #define MARKER_RST1 0xd1
69 #define MARKER_RST2 0xd2
70 #define MARKER_RST3 0xd3
71 #define MARKER_RST4 0xd4
72 #define MARKER_RST5 0xd5
73 #define MARKER_RST6 0xd6
74 #define MARKER_RST7 0xd7
76 #define MARKER_SOI 0xd8
77 #define MARKER_EOI 0xd9
78 #define MARKER_SOS 0xda
79 #define MARKER_DQT 0xdb
80 #define MARKER_DNL 0xdc
81 #define MARKER_DRI 0xdd
82 #define MARKER_DHP 0xde
83 #define MARKER_EXP 0xdf
85 #define MARKER_APP 0xe0 /* from 0xe0 - 0xef */
86 #define MARKER_JPG 0xf0 /* from 0xf0 - 0xfd */
87 #define MARKER_COM 0xfe
89 #define MARKER_SHORT_HEADER (MARKER_APP+1)