diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-01-09 19:57:49 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-01-09 19:57:49 +0100 |
| commit | 82d279c2341c88da802b82e0d8732399d4f6b481 (patch) | |
| tree | 8689e2a5f0b4615767916acf27a7ce4cad1a1743 /jpeg/jpegint.h | |
| parent | 8c4930a7d76efdb9c3e627912a100e9abaf3f504 (diff) | |
Upgrade bundled libjpeg from jpeg-9a to jpeg-9c
Release: 9a - Jan 14, 2018
For further details see README.bundled-libs.txt.
Diffstat (limited to 'jpeg/jpegint.h')
| -rw-r--r-- | jpeg/jpegint.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/jpeg/jpegint.h b/jpeg/jpegint.h index 18bb8879a..e312e1af9 100644 --- a/jpeg/jpegint.h +++ b/jpeg/jpegint.h @@ -2,7 +2,7 @@ * jpegint.h * * Copyright (C) 1991-1997, Thomas G. Lane. - * Modified 1997-2013 by Guido Vollbeding. + * Modified 1997-2017 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -260,6 +260,19 @@ struct jpeg_color_quantizer { }; +/* Definition of range extension bits for decompression processes. + * See the comments with prepare_range_limit_table (in jdmaster.c) + * for more info. + * The recommended default value for normal applications is 2. + * Applications with special requirements may use a different value. + * For example, Ghostscript wants to use 3 for proper handling of + * wacky images with oversize coefficient values. + */ + +#define RANGE_BITS 2 +#define RANGE_CENTER (CENTERJSAMPLE << RANGE_BITS) + + /* Miscellaneous useful macros */ #undef MAX |
