source: trunk/third/libart_lgpl/art_filterlevel.h @ 18256

Revision 18256, 2.3 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18255, which included commits to RCS files with non-trunk default branches.
Line 
1/* Libart_LGPL - library of basic graphic primitives
2 * Copyright (C) 1998 Raph Levien
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 */
19
20#ifndef __ART_FILTERLEVEL_H__
21#define __ART_FILTERLEVEL_H__
22
23#ifdef __cplusplus
24extern "C" {
25#endif /* __cplusplus */
26
27typedef enum {
28  ART_FILTER_NEAREST,
29  ART_FILTER_TILES,
30  ART_FILTER_BILINEAR,
31  ART_FILTER_HYPER
32} ArtFilterLevel;
33
34/* NEAREST is nearest neighbor. It is the fastest and lowest quality.
35
36   TILES is an accurate simulation of the PostScript image operator
37   without any interpolation enabled; each pixel is rendered as a tiny
38   parallelogram of solid color, the edges of which are implemented
39   with antialiasing. It resembles nearest neighbor for enlargement,
40   and bilinear for reduction.
41
42   BILINEAR is bilinear interpolation. For enlargement, it is
43   equivalent to point-sampling the ideal bilinear-interpolated
44   image. For reduction, it is equivalent to laying down small tiles
45   and integrating over the coverage area.
46
47   HYPER is the highest quality reconstruction function. It is derived
48   from the hyperbolic filters in Wolberg's "Digital Image Warping,"
49   and is formally defined as the hyperbolic-filter sampling the ideal
50   hyperbolic-filter interpolated image (the filter is designed to be
51   idempotent for 1:1 pixel mapping). It is the slowest and highest
52   quality.
53
54   Note: at this stage of implementation, most filter modes are likely
55   not to be implemented.
56
57   Note: cubic filtering is missing from this list, because there isn't
58   much point - hyper is just as fast to implement and slightly better
59   in quality.
60
61*/
62
63
64#ifdef __cplusplus
65}
66#endif /* __cplusplus */
67
68#endif /* __ART_PATHCODE_H__ */
Note: See TracBrowser for help on using the repository browser.