]>
Commit | Line | Data |
---|---|---|
c153bcda | 1 | /* |
efb2f309 | 2 | Copyright 1993-2002 by Easy Software Products. |
c153bcda | 3 | Copyright 1994, 1998 Aladdin Enterprises. All rights reserved. |
8e4ff0ae | 4 | |
5 | This file is part of GNU Ghostscript. | |
6 | ||
7 | GNU Ghostscript is distributed in the hope that it will be useful, but | |
caddbb58 | 8 | WITHOUT ANY WARRANTY. No author or distributor accepts responsibility |
9 | to anyone for the consequences of using it or for whether it serves any | |
10 | particular purpose or works at all, unless he says so in writing. Refer | |
11 | to the GNU General Public License for full details. | |
8e4ff0ae | 12 | |
13 | Everyone is granted permission to copy, modify and redistribute GNU | |
14 | Ghostscript, but only under the conditions described in the GNU General | |
caddbb58 | 15 | Public License. A copy of this license is supposed to have been given |
16 | to you along with GNU Ghostscript so you can know your rights and | |
8e4ff0ae | 17 | responsibilities. It should be in a file named COPYING. Among other |
18 | things, the copyright notice and this notice must be preserved on all | |
19 | copies. | |
20 | ||
caddbb58 | 21 | Aladdin Enterprises supports the work of the GNU Project, but is not |
22 | affiliated with the Free Software Foundation or the GNU Project. GNU | |
23 | Ghostscript, as distributed by Aladdin Enterprises, does not require any | |
24 | GNU software to build or run it. | |
8e4ff0ae | 25 | */ |
178c9be3 | 26 | #include <config.h> |
27 | #ifdef HAVE_LIBJPEG | |
8e4ff0ae | 28 | |
efb2f309 | 29 | /*$Id: sdctc.c,v 1.7 2002/01/02 17:59:12 mike Exp $ */ |
8e4ff0ae | 30 | /* Code common to DCT encoding and decoding streams */ |
31 | #include "stdio_.h" | |
caddbb58 | 32 | #include "gsmemory.h" |
33 | #include "gsmalloc.h" | |
8e4ff0ae | 34 | #include "jpeglib.h" |
35 | #include "strimpl.h" | |
36 | #include "sdct.h" | |
37 | ||
38 | public_st_DCT_state(); | |
caddbb58 | 39 | |
40 | /* Set the defaults for the DCT filters. */ | |
41 | void | |
42 | s_DCT_set_defaults(stream_state * st) | |
43 | { | |
44 | stream_DCT_state *const ss = (stream_DCT_state *) st; | |
45 | ||
46 | ss->jpeg_memory = &gs_memory_default; | |
47 | ss->data.common = 0; | |
48 | /**************** | |
49 | ss->data.common->Picky = 0; | |
50 | ss->data.common->Relax = 0; | |
51 | ****************/ | |
52 | ss->ColorTransform = -1; | |
53 | ss->QFactor = 1.0; | |
54 | } | |
178c9be3 | 55 | #endif /* HAVE_LIBJPEG */ |