1 /* -*-C-*-
2 ******************************************************************************
3 *
4 * File:         ejpeg.h
5 * RCS:          $Header: /ImageMagick/delegates/fpx/jpeg/ejpeg.h,v 1.3 2000/12/23 22:37:48 bfriesen Exp $
6 * Description:  header file for JPEG encoder library.
7 * Author:       Hugh P. Nguyen
8 * Created:      Fri Dec  4 11:04:22 1992
9 * Initial Source Release:     Wed Jan 17 1996
10 * Language:     C
11 * Package:      Hewlett-Packard JPEG Encoder/Decoder
12 *
13 * Copyright (c) 1999 Digital Imaging Group, Inc.
14 * For conditions of distribution and use, see copyright notice
15 * in Flashpix.h
16 *
17 ******************************************************************************
18 */
19 
20 /* CHG_FILE_ERR - unified JPEG error values by prepending EJPEG_ to the following
21         error codes and offsetting the values by 0x0100 */
22 # define EJPEG_ERROR_PARSER  0x0101        /* error during parsing */
23 # define EJPEG_ERROR_MEM     0x0102        /* memory can not be allocated */
24 # define EJPEG_ERROR_EOF     0x0103        /* unexpected EOF (or end of data stream) */
25 # define EJPEG_ERROR_FORMAT  0x0104        /* unsupported color format */
26 
27 #define IMG_FORMAT_0    0x00   /* Un-supported image format */
28 #define IMG_FORMAT_1    0x01   /* Grayscale image */
29 #define IMG_FORMAT_11   0x02   /* Two-component non-interleaved image */
30 #define IMG_FORMAT_111  0x03   /* Three-component non-interleaved image */
31 #define IMG_FORMAT_1111 0x04   /* Four-component non-interleaved image */
32 #define IMG_FORMAT_411  0x05   /* Three-component 4:1:1  image */
33